How do I fix the install error for my video driver?












0














This is the error message I keep getting when trying to install the nvidia driver, libnvidia-gl-390_390.87.Can somebody help me resolve this issue? Please be aware that I am ubuntu challenged.



(Reading database ... 210321 files and directories currently installed.)
Preparing to unpack .../libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_i386.deb ...
diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340
dpkg-divert: error: mismatch on package
when removing 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 by libnvidia-gl-390'
found 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-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_i386.deb (--unpack):
new libnvidia-gl-390:i386 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_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
dpkg: dependency problems prevent configuration of nvidia-driver-390:
nvidia-driver-390 depends on libnvidia-gl-390 (= 390.87-0ubuntu0~gpu18.04.1); however:
Package libnvidia-gl-390:i386 is not installed.

dpkg: error processing package nvidia-driver-390 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnvidia-ifr1-390:i386:
libnvidia-ifr1-390:i386 depends on libnvidia-gl-390; however:
Package libnvidia-gl-390:i386 is not installed.

dpkg: error processing package libnvidia-ifr1-390:i386 (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.27-3ubuntu1) ...
/sbin/ldconfig.real: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf.d/x86_64-linux-gnu_EGL.conf: No such file or directory
/sbin/ldconfig.real: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf: No such file or directory
Errors were encountered while processing:
nvidia-driver-390
libnvidia-ifr1-390:i386









share|improve this question




















  • 1




    Welcome to askubuntu. Please edit your question to include the command you used before the error. Thanks!
    – mchid
    Dec 17 '18 at 22:22
















0














This is the error message I keep getting when trying to install the nvidia driver, libnvidia-gl-390_390.87.Can somebody help me resolve this issue? Please be aware that I am ubuntu challenged.



(Reading database ... 210321 files and directories currently installed.)
Preparing to unpack .../libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_i386.deb ...
diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340
dpkg-divert: error: mismatch on package
when removing 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 by libnvidia-gl-390'
found 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-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_i386.deb (--unpack):
new libnvidia-gl-390:i386 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_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
dpkg: dependency problems prevent configuration of nvidia-driver-390:
nvidia-driver-390 depends on libnvidia-gl-390 (= 390.87-0ubuntu0~gpu18.04.1); however:
Package libnvidia-gl-390:i386 is not installed.

dpkg: error processing package nvidia-driver-390 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnvidia-ifr1-390:i386:
libnvidia-ifr1-390:i386 depends on libnvidia-gl-390; however:
Package libnvidia-gl-390:i386 is not installed.

dpkg: error processing package libnvidia-ifr1-390:i386 (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.27-3ubuntu1) ...
/sbin/ldconfig.real: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf.d/x86_64-linux-gnu_EGL.conf: No such file or directory
/sbin/ldconfig.real: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf: No such file or directory
Errors were encountered while processing:
nvidia-driver-390
libnvidia-ifr1-390:i386









share|improve this question




















  • 1




    Welcome to askubuntu. Please edit your question to include the command you used before the error. Thanks!
    – mchid
    Dec 17 '18 at 22:22














0












0








0


1





This is the error message I keep getting when trying to install the nvidia driver, libnvidia-gl-390_390.87.Can somebody help me resolve this issue? Please be aware that I am ubuntu challenged.



(Reading database ... 210321 files and directories currently installed.)
Preparing to unpack .../libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_i386.deb ...
diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340
dpkg-divert: error: mismatch on package
when removing 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 by libnvidia-gl-390'
found 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-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_i386.deb (--unpack):
new libnvidia-gl-390:i386 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_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
dpkg: dependency problems prevent configuration of nvidia-driver-390:
nvidia-driver-390 depends on libnvidia-gl-390 (= 390.87-0ubuntu0~gpu18.04.1); however:
Package libnvidia-gl-390:i386 is not installed.

dpkg: error processing package nvidia-driver-390 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnvidia-ifr1-390:i386:
libnvidia-ifr1-390:i386 depends on libnvidia-gl-390; however:
Package libnvidia-gl-390:i386 is not installed.

dpkg: error processing package libnvidia-ifr1-390:i386 (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.27-3ubuntu1) ...
/sbin/ldconfig.real: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf.d/x86_64-linux-gnu_EGL.conf: No such file or directory
/sbin/ldconfig.real: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf: No such file or directory
Errors were encountered while processing:
nvidia-driver-390
libnvidia-ifr1-390:i386









share|improve this question















This is the error message I keep getting when trying to install the nvidia driver, libnvidia-gl-390_390.87.Can somebody help me resolve this issue? Please be aware that I am ubuntu challenged.



(Reading database ... 210321 files and directories currently installed.)
Preparing to unpack .../libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_i386.deb ...
diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340
dpkg-divert: error: mismatch on package
when removing 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 by libnvidia-gl-390'
found 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-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_i386.deb (--unpack):
new libnvidia-gl-390:i386 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_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
dpkg: dependency problems prevent configuration of nvidia-driver-390:
nvidia-driver-390 depends on libnvidia-gl-390 (= 390.87-0ubuntu0~gpu18.04.1); however:
Package libnvidia-gl-390:i386 is not installed.

dpkg: error processing package nvidia-driver-390 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnvidia-ifr1-390:i386:
libnvidia-ifr1-390:i386 depends on libnvidia-gl-390; however:
Package libnvidia-gl-390:i386 is not installed.

dpkg: error processing package libnvidia-ifr1-390:i386 (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.27-3ubuntu1) ...
/sbin/ldconfig.real: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf.d/x86_64-linux-gnu_EGL.conf: No such file or directory
/sbin/ldconfig.real: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf: No such file or directory
Errors were encountered while processing:
nvidia-driver-390
libnvidia-ifr1-390:i386






drivers 18.04 nvidia-geforce






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 days ago

























asked Dec 17 '18 at 21:39









Buddyroe

12




12








  • 1




    Welcome to askubuntu. Please edit your question to include the command you used before the error. Thanks!
    – mchid
    Dec 17 '18 at 22:22














  • 1




    Welcome to askubuntu. Please edit your question to include the command you used before the error. Thanks!
    – mchid
    Dec 17 '18 at 22:22








1




1




Welcome to askubuntu. Please edit your question to include the command you used before the error. Thanks!
– mchid
Dec 17 '18 at 22:22




Welcome to askubuntu. Please edit your question to include the command you used before the error. Thanks!
– mchid
Dec 17 '18 at 22:22










2 Answers
2






active

oldest

votes


















0














The output says that libnvidia-gl-390:i386 is not installed and it looks like libnvidia-gl-390:i386 needs to be installed to fix the issue. Run the following commands and please post any errors:



sudo apt update
sudo apt install --reinstall libnvidia-gl-390:i386
sudo apt -f install
sudo dpkg --configure -a


If you get an error, please post the error.






share|improve this answer





















  • Thanks mchid. I did get an error message. As follows....
    – Buddyroe
    Dec 18 '18 at 19:04










  • sudo apt upgrade list Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: libnvidia-ifr1-390 : Depends: libnvidia-gl-390 but it is not installed nvidia-driver-390 : Depends: libnvidia-gl-390 (= 390.87-0ubuntu0~gpu18.04.1) but it is not installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
    – Buddyroe
    Dec 18 '18 at 19:21










  • error message for reinstall libnvidia... sudo apt install --reinstall libnvidia-gl-390:i386 Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: apt-file debtags libjavascriptcoregtk-1.0-0 libnih-dbus1 libregexp-assemble-perl libwebkitgtk-1.0-0 Use 'sudo apt autoremove' to remove them. The following NEW packages will be installed: libnvidia-gl-390 0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded. 2 not fully installed or removed.
    – Buddyroe
    Dec 18 '18 at 19:24










  • 2nd part of comment.... Need to get 0 B/14.8 MB of archives. After this operation, 73.6 MB of additional disk space will be used. (Reading database ... 210321 files and directories currently installed.) Preparing to unpack .../libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_i386.deb ... diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340 dpkg-divert: error: mismatch on package when removing 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 by libnvidia-gl-390'
    – Buddyroe
    Dec 18 '18 at 19:25










  • last part of error message, sorry if I am doing this wrong with add comment....found 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-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_i386.deb (--unpack): new libnvidia-gl-390:i386 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_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
    – Buddyroe
    Dec 18 '18 at 19:26





















0














OK... I found that someone else was having the same problem I am on the ubuntu forums.



I tried this suggestion in terminal...



LC_MESSAGES=C dpkg-divert --list 'nvidia-340' | sed -nre 's/^diversion of (.) to ./1/p' | xargs -rd'n' -n1 -- sudo dpkg-divert --remove
sudo apt --fix-broken install



After which I ran sudo apt --fix broken install



Then ran sudo apt upgrade



This worked for me.
Thanks for your help






share|improve this answer





















    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%2f1102657%2fhow-do-i-fix-the-install-error-for-my-video-driver%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    The output says that libnvidia-gl-390:i386 is not installed and it looks like libnvidia-gl-390:i386 needs to be installed to fix the issue. Run the following commands and please post any errors:



    sudo apt update
    sudo apt install --reinstall libnvidia-gl-390:i386
    sudo apt -f install
    sudo dpkg --configure -a


    If you get an error, please post the error.






    share|improve this answer





















    • Thanks mchid. I did get an error message. As follows....
      – Buddyroe
      Dec 18 '18 at 19:04










    • sudo apt upgrade list Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: libnvidia-ifr1-390 : Depends: libnvidia-gl-390 but it is not installed nvidia-driver-390 : Depends: libnvidia-gl-390 (= 390.87-0ubuntu0~gpu18.04.1) but it is not installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
      – Buddyroe
      Dec 18 '18 at 19:21










    • error message for reinstall libnvidia... sudo apt install --reinstall libnvidia-gl-390:i386 Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: apt-file debtags libjavascriptcoregtk-1.0-0 libnih-dbus1 libregexp-assemble-perl libwebkitgtk-1.0-0 Use 'sudo apt autoremove' to remove them. The following NEW packages will be installed: libnvidia-gl-390 0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded. 2 not fully installed or removed.
      – Buddyroe
      Dec 18 '18 at 19:24










    • 2nd part of comment.... Need to get 0 B/14.8 MB of archives. After this operation, 73.6 MB of additional disk space will be used. (Reading database ... 210321 files and directories currently installed.) Preparing to unpack .../libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_i386.deb ... diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340 dpkg-divert: error: mismatch on package when removing 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 by libnvidia-gl-390'
      – Buddyroe
      Dec 18 '18 at 19:25










    • last part of error message, sorry if I am doing this wrong with add comment....found 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-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_i386.deb (--unpack): new libnvidia-gl-390:i386 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_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
      – Buddyroe
      Dec 18 '18 at 19:26


















    0














    The output says that libnvidia-gl-390:i386 is not installed and it looks like libnvidia-gl-390:i386 needs to be installed to fix the issue. Run the following commands and please post any errors:



    sudo apt update
    sudo apt install --reinstall libnvidia-gl-390:i386
    sudo apt -f install
    sudo dpkg --configure -a


    If you get an error, please post the error.






    share|improve this answer





















    • Thanks mchid. I did get an error message. As follows....
      – Buddyroe
      Dec 18 '18 at 19:04










    • sudo apt upgrade list Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: libnvidia-ifr1-390 : Depends: libnvidia-gl-390 but it is not installed nvidia-driver-390 : Depends: libnvidia-gl-390 (= 390.87-0ubuntu0~gpu18.04.1) but it is not installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
      – Buddyroe
      Dec 18 '18 at 19:21










    • error message for reinstall libnvidia... sudo apt install --reinstall libnvidia-gl-390:i386 Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: apt-file debtags libjavascriptcoregtk-1.0-0 libnih-dbus1 libregexp-assemble-perl libwebkitgtk-1.0-0 Use 'sudo apt autoremove' to remove them. The following NEW packages will be installed: libnvidia-gl-390 0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded. 2 not fully installed or removed.
      – Buddyroe
      Dec 18 '18 at 19:24










    • 2nd part of comment.... Need to get 0 B/14.8 MB of archives. After this operation, 73.6 MB of additional disk space will be used. (Reading database ... 210321 files and directories currently installed.) Preparing to unpack .../libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_i386.deb ... diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340 dpkg-divert: error: mismatch on package when removing 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 by libnvidia-gl-390'
      – Buddyroe
      Dec 18 '18 at 19:25










    • last part of error message, sorry if I am doing this wrong with add comment....found 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-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_i386.deb (--unpack): new libnvidia-gl-390:i386 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_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
      – Buddyroe
      Dec 18 '18 at 19:26
















    0












    0








    0






    The output says that libnvidia-gl-390:i386 is not installed and it looks like libnvidia-gl-390:i386 needs to be installed to fix the issue. Run the following commands and please post any errors:



    sudo apt update
    sudo apt install --reinstall libnvidia-gl-390:i386
    sudo apt -f install
    sudo dpkg --configure -a


    If you get an error, please post the error.






    share|improve this answer












    The output says that libnvidia-gl-390:i386 is not installed and it looks like libnvidia-gl-390:i386 needs to be installed to fix the issue. Run the following commands and please post any errors:



    sudo apt update
    sudo apt install --reinstall libnvidia-gl-390:i386
    sudo apt -f install
    sudo dpkg --configure -a


    If you get an error, please post the error.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Dec 17 '18 at 23:37









    mchid

    22.6k25084




    22.6k25084












    • Thanks mchid. I did get an error message. As follows....
      – Buddyroe
      Dec 18 '18 at 19:04










    • sudo apt upgrade list Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: libnvidia-ifr1-390 : Depends: libnvidia-gl-390 but it is not installed nvidia-driver-390 : Depends: libnvidia-gl-390 (= 390.87-0ubuntu0~gpu18.04.1) but it is not installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
      – Buddyroe
      Dec 18 '18 at 19:21










    • error message for reinstall libnvidia... sudo apt install --reinstall libnvidia-gl-390:i386 Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: apt-file debtags libjavascriptcoregtk-1.0-0 libnih-dbus1 libregexp-assemble-perl libwebkitgtk-1.0-0 Use 'sudo apt autoremove' to remove them. The following NEW packages will be installed: libnvidia-gl-390 0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded. 2 not fully installed or removed.
      – Buddyroe
      Dec 18 '18 at 19:24










    • 2nd part of comment.... Need to get 0 B/14.8 MB of archives. After this operation, 73.6 MB of additional disk space will be used. (Reading database ... 210321 files and directories currently installed.) Preparing to unpack .../libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_i386.deb ... diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340 dpkg-divert: error: mismatch on package when removing 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 by libnvidia-gl-390'
      – Buddyroe
      Dec 18 '18 at 19:25










    • last part of error message, sorry if I am doing this wrong with add comment....found 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-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_i386.deb (--unpack): new libnvidia-gl-390:i386 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_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
      – Buddyroe
      Dec 18 '18 at 19:26




















    • Thanks mchid. I did get an error message. As follows....
      – Buddyroe
      Dec 18 '18 at 19:04










    • sudo apt upgrade list Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: libnvidia-ifr1-390 : Depends: libnvidia-gl-390 but it is not installed nvidia-driver-390 : Depends: libnvidia-gl-390 (= 390.87-0ubuntu0~gpu18.04.1) but it is not installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
      – Buddyroe
      Dec 18 '18 at 19:21










    • error message for reinstall libnvidia... sudo apt install --reinstall libnvidia-gl-390:i386 Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: apt-file debtags libjavascriptcoregtk-1.0-0 libnih-dbus1 libregexp-assemble-perl libwebkitgtk-1.0-0 Use 'sudo apt autoremove' to remove them. The following NEW packages will be installed: libnvidia-gl-390 0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded. 2 not fully installed or removed.
      – Buddyroe
      Dec 18 '18 at 19:24










    • 2nd part of comment.... Need to get 0 B/14.8 MB of archives. After this operation, 73.6 MB of additional disk space will be used. (Reading database ... 210321 files and directories currently installed.) Preparing to unpack .../libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_i386.deb ... diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340 dpkg-divert: error: mismatch on package when removing 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 by libnvidia-gl-390'
      – Buddyroe
      Dec 18 '18 at 19:25










    • last part of error message, sorry if I am doing this wrong with add comment....found 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-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_i386.deb (--unpack): new libnvidia-gl-390:i386 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_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
      – Buddyroe
      Dec 18 '18 at 19:26


















    Thanks mchid. I did get an error message. As follows....
    – Buddyroe
    Dec 18 '18 at 19:04




    Thanks mchid. I did get an error message. As follows....
    – Buddyroe
    Dec 18 '18 at 19:04












    sudo apt upgrade list Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: libnvidia-ifr1-390 : Depends: libnvidia-gl-390 but it is not installed nvidia-driver-390 : Depends: libnvidia-gl-390 (= 390.87-0ubuntu0~gpu18.04.1) but it is not installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
    – Buddyroe
    Dec 18 '18 at 19:21




    sudo apt upgrade list Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: libnvidia-ifr1-390 : Depends: libnvidia-gl-390 but it is not installed nvidia-driver-390 : Depends: libnvidia-gl-390 (= 390.87-0ubuntu0~gpu18.04.1) but it is not installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
    – Buddyroe
    Dec 18 '18 at 19:21












    error message for reinstall libnvidia... sudo apt install --reinstall libnvidia-gl-390:i386 Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: apt-file debtags libjavascriptcoregtk-1.0-0 libnih-dbus1 libregexp-assemble-perl libwebkitgtk-1.0-0 Use 'sudo apt autoremove' to remove them. The following NEW packages will be installed: libnvidia-gl-390 0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded. 2 not fully installed or removed.
    – Buddyroe
    Dec 18 '18 at 19:24




    error message for reinstall libnvidia... sudo apt install --reinstall libnvidia-gl-390:i386 Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: apt-file debtags libjavascriptcoregtk-1.0-0 libnih-dbus1 libregexp-assemble-perl libwebkitgtk-1.0-0 Use 'sudo apt autoremove' to remove them. The following NEW packages will be installed: libnvidia-gl-390 0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded. 2 not fully installed or removed.
    – Buddyroe
    Dec 18 '18 at 19:24












    2nd part of comment.... Need to get 0 B/14.8 MB of archives. After this operation, 73.6 MB of additional disk space will be used. (Reading database ... 210321 files and directories currently installed.) Preparing to unpack .../libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_i386.deb ... diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340 dpkg-divert: error: mismatch on package when removing 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 by libnvidia-gl-390'
    – Buddyroe
    Dec 18 '18 at 19:25




    2nd part of comment.... Need to get 0 B/14.8 MB of archives. After this operation, 73.6 MB of additional disk space will be used. (Reading database ... 210321 files and directories currently installed.) Preparing to unpack .../libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_i386.deb ... diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340 dpkg-divert: error: mismatch on package when removing 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 by libnvidia-gl-390'
    – Buddyroe
    Dec 18 '18 at 19:25












    last part of error message, sorry if I am doing this wrong with add comment....found 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-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_i386.deb (--unpack): new libnvidia-gl-390:i386 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_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
    – Buddyroe
    Dec 18 '18 at 19:26






    last part of error message, sorry if I am doing this wrong with add comment....found 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-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_i386.deb (--unpack): new libnvidia-gl-390:i386 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_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
    – Buddyroe
    Dec 18 '18 at 19:26















    0














    OK... I found that someone else was having the same problem I am on the ubuntu forums.



    I tried this suggestion in terminal...



    LC_MESSAGES=C dpkg-divert --list 'nvidia-340' | sed -nre 's/^diversion of (.) to ./1/p' | xargs -rd'n' -n1 -- sudo dpkg-divert --remove
    sudo apt --fix-broken install



    After which I ran sudo apt --fix broken install



    Then ran sudo apt upgrade



    This worked for me.
    Thanks for your help






    share|improve this answer


























      0














      OK... I found that someone else was having the same problem I am on the ubuntu forums.



      I tried this suggestion in terminal...



      LC_MESSAGES=C dpkg-divert --list 'nvidia-340' | sed -nre 's/^diversion of (.) to ./1/p' | xargs -rd'n' -n1 -- sudo dpkg-divert --remove
      sudo apt --fix-broken install



      After which I ran sudo apt --fix broken install



      Then ran sudo apt upgrade



      This worked for me.
      Thanks for your help






      share|improve this answer
























        0












        0








        0






        OK... I found that someone else was having the same problem I am on the ubuntu forums.



        I tried this suggestion in terminal...



        LC_MESSAGES=C dpkg-divert --list 'nvidia-340' | sed -nre 's/^diversion of (.) to ./1/p' | xargs -rd'n' -n1 -- sudo dpkg-divert --remove
        sudo apt --fix-broken install



        After which I ran sudo apt --fix broken install



        Then ran sudo apt upgrade



        This worked for me.
        Thanks for your help






        share|improve this answer












        OK... I found that someone else was having the same problem I am on the ubuntu forums.



        I tried this suggestion in terminal...



        LC_MESSAGES=C dpkg-divert --list 'nvidia-340' | sed -nre 's/^diversion of (.) to ./1/p' | xargs -rd'n' -n1 -- sudo dpkg-divert --remove
        sudo apt --fix-broken install



        After which I ran sudo apt --fix broken install



        Then ran sudo apt upgrade



        This worked for me.
        Thanks for your help







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 2 days ago









        Buddyroe

        12




        12






























            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2f1102657%2fhow-do-i-fix-the-install-error-for-my-video-driver%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

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

             ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕