Can't fix Nvidia errors after updating to 18.04












0















I upgraded from 16.04 to 18.04 Mate. When I try to do this: apt --fix-broken install. I get this:



  error: mismatch on package
when removing 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 by libnvidia-gl-390'
found 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64- linux-gnu/libGL.so.1.distrib by nvidia-340'
dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl- 390_390.87- 0ubuntu0~gpu18.04.1_amd64.deb (--unpack):
new libnvidia-gl-390:amd64 package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


When I try to purge any with nvidia I get a similar error. So needless to say I can't download any updates. What can I try. PS I hate Nvidia with a passion.










share|improve this question























  • How have you installed the Nvidia drivers in the first place, before the release upgrade? Apparently not as you should in a Ubuntu system. I'm afraid that now you'll have to reinstall them using the same method and then remove/purge and install other version.

    – GabrielaGarcia
    2 days ago











  • Yep had them installed, upgraded then nada, so I installed nvidia-driver-390. Booted up checked for update it said it wanted to install both nvidia libs. I finally got it to remove used this:

    – user2533098
    21 hours ago
















0















I upgraded from 16.04 to 18.04 Mate. When I try to do this: apt --fix-broken install. I get this:



  error: mismatch on package
when removing 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 by libnvidia-gl-390'
found 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64- linux-gnu/libGL.so.1.distrib by nvidia-340'
dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl- 390_390.87- 0ubuntu0~gpu18.04.1_amd64.deb (--unpack):
new libnvidia-gl-390:amd64 package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


When I try to purge any with nvidia I get a similar error. So needless to say I can't download any updates. What can I try. PS I hate Nvidia with a passion.










share|improve this question























  • How have you installed the Nvidia drivers in the first place, before the release upgrade? Apparently not as you should in a Ubuntu system. I'm afraid that now you'll have to reinstall them using the same method and then remove/purge and install other version.

    – GabrielaGarcia
    2 days ago











  • Yep had them installed, upgraded then nada, so I installed nvidia-driver-390. Booted up checked for update it said it wanted to install both nvidia libs. I finally got it to remove used this:

    – user2533098
    21 hours ago














0












0








0








I upgraded from 16.04 to 18.04 Mate. When I try to do this: apt --fix-broken install. I get this:



  error: mismatch on package
when removing 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 by libnvidia-gl-390'
found 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64- linux-gnu/libGL.so.1.distrib by nvidia-340'
dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl- 390_390.87- 0ubuntu0~gpu18.04.1_amd64.deb (--unpack):
new libnvidia-gl-390:amd64 package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


When I try to purge any with nvidia I get a similar error. So needless to say I can't download any updates. What can I try. PS I hate Nvidia with a passion.










share|improve this question














I upgraded from 16.04 to 18.04 Mate. When I try to do this: apt --fix-broken install. I get this:



  error: mismatch on package
when removing 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 by libnvidia-gl-390'
found 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64- linux-gnu/libGL.so.1.distrib by nvidia-340'
dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl- 390_390.87- 0ubuntu0~gpu18.04.1_amd64.deb (--unpack):
new libnvidia-gl-390:amd64 package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


When I try to purge any with nvidia I get a similar error. So needless to say I can't download any updates. What can I try. PS I hate Nvidia with a passion.







nvidia






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 2 days ago









user2533098user2533098

212




212













  • How have you installed the Nvidia drivers in the first place, before the release upgrade? Apparently not as you should in a Ubuntu system. I'm afraid that now you'll have to reinstall them using the same method and then remove/purge and install other version.

    – GabrielaGarcia
    2 days ago











  • Yep had them installed, upgraded then nada, so I installed nvidia-driver-390. Booted up checked for update it said it wanted to install both nvidia libs. I finally got it to remove used this:

    – user2533098
    21 hours ago



















  • How have you installed the Nvidia drivers in the first place, before the release upgrade? Apparently not as you should in a Ubuntu system. I'm afraid that now you'll have to reinstall them using the same method and then remove/purge and install other version.

    – GabrielaGarcia
    2 days ago











  • Yep had them installed, upgraded then nada, so I installed nvidia-driver-390. Booted up checked for update it said it wanted to install both nvidia libs. I finally got it to remove used this:

    – user2533098
    21 hours ago

















How have you installed the Nvidia drivers in the first place, before the release upgrade? Apparently not as you should in a Ubuntu system. I'm afraid that now you'll have to reinstall them using the same method and then remove/purge and install other version.

– GabrielaGarcia
2 days ago





How have you installed the Nvidia drivers in the first place, before the release upgrade? Apparently not as you should in a Ubuntu system. I'm afraid that now you'll have to reinstall them using the same method and then remove/purge and install other version.

– GabrielaGarcia
2 days ago













Yep had them installed, upgraded then nada, so I installed nvidia-driver-390. Booted up checked for update it said it wanted to install both nvidia libs. I finally got it to remove used this:

– user2533098
21 hours ago





Yep had them installed, upgraded then nada, so I installed nvidia-driver-390. Booted up checked for update it said it wanted to install both nvidia libs. I finally got it to remove used this:

– user2533098
21 hours ago










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1113802%2fcant-fix-nvidia-errors-after-updating-to-18-04%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1113802%2fcant-fix-nvidia-errors-after-updating-to-18-04%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Category:香港粉麵

List *all* the tuples!

Channel [V]