NVIDIA driver problem after apt upgrade ubuntu 18.04












0















I have a problem after apt upgrade ang get this message:



 The following packages have unmet dependencies.
libnvidia-ifr1-390 : Depends: libnvidia-gl-390 but it is not installed
libnvidia-ifr1-390:i386 : Depends: libnvidia-gl-390:i386 but it is not installed
nvidia-driver-390 : Depends: libnvidia-gl-390 (= 390.87-0ubuntu0~gpu18.04.1) but it is not installed
Recommends: libnvidia-gl-390:i386 (= 390.87-0ubuntu0~gpu18.04.1)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


After that I try apt --fix-broken install, but I get:



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
Preparing to unpack .../libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_amd64.deb ...
diversion of /usr/lib/x86_64-linux-gnu/libGL.so to /usr/lib/x86_64-linux-gnu/libGL.so.distrib by nvidia-340
dpkg-divert: error: mismatch on package
when removing 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so by libnvidia-gl-390'
found 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so to /usr/lib/x86_64-linux-gnu/libGL.so.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_i386.deb
/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)


Then I try solution from
how to fix this apt problem on ubuntu 18.04 LTS?



sudo rm /var/cache/apt/archives/libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_i386.deb
sudo rm /var/cache/apt/archives/libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_amd64.deb


then to erase all of the downloaded files in your cache.



sudo apt-get clean
sudo apt-get autoremove && sudo apt-get autoclean


And again I got:



The following packages have unmet dependencies.
libnvidia-ifr1-390 : Depends: libnvidia-gl-390 but it is not installed
libnvidia-ifr1-390:i386 : Depends: libnvidia-gl-390:i386 but it is not installed
nvidia-driver-390 : Depends: libnvidia-gl-390 (= 390.87-0ubuntu0~gpu18.04.1) but it is not installed
Recommends: libnvidia-gl-390:i386 (= 390.87-0ubuntu0~gpu18.04.1)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


I update ubuntu from version 16.04 to 18.04 3 weeks ago - but this problem appeared two days ago.



Can anyone help?










share|improve this question





























    0















    I have a problem after apt upgrade ang get this message:



     The following packages have unmet dependencies.
    libnvidia-ifr1-390 : Depends: libnvidia-gl-390 but it is not installed
    libnvidia-ifr1-390:i386 : Depends: libnvidia-gl-390:i386 but it is not installed
    nvidia-driver-390 : Depends: libnvidia-gl-390 (= 390.87-0ubuntu0~gpu18.04.1) but it is not installed
    Recommends: libnvidia-gl-390:i386 (= 390.87-0ubuntu0~gpu18.04.1)
    E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


    After that I try apt --fix-broken install, but I get:



    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
    Preparing to unpack .../libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_amd64.deb ...
    diversion of /usr/lib/x86_64-linux-gnu/libGL.so to /usr/lib/x86_64-linux-gnu/libGL.so.distrib by nvidia-340
    dpkg-divert: error: mismatch on package
    when removing 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so by libnvidia-gl-390'
    found 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so to /usr/lib/x86_64-linux-gnu/libGL.so.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_i386.deb
    /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)


    Then I try solution from
    how to fix this apt problem on ubuntu 18.04 LTS?



    sudo rm /var/cache/apt/archives/libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_i386.deb
    sudo rm /var/cache/apt/archives/libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_amd64.deb


    then to erase all of the downloaded files in your cache.



    sudo apt-get clean
    sudo apt-get autoremove && sudo apt-get autoclean


    And again I got:



    The following packages have unmet dependencies.
    libnvidia-ifr1-390 : Depends: libnvidia-gl-390 but it is not installed
    libnvidia-ifr1-390:i386 : Depends: libnvidia-gl-390:i386 but it is not installed
    nvidia-driver-390 : Depends: libnvidia-gl-390 (= 390.87-0ubuntu0~gpu18.04.1) but it is not installed
    Recommends: libnvidia-gl-390:i386 (= 390.87-0ubuntu0~gpu18.04.1)
    E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


    I update ubuntu from version 16.04 to 18.04 3 weeks ago - but this problem appeared two days ago.



    Can anyone help?










    share|improve this question



























      0












      0








      0








      I have a problem after apt upgrade ang get this message:



       The following packages have unmet dependencies.
      libnvidia-ifr1-390 : Depends: libnvidia-gl-390 but it is not installed
      libnvidia-ifr1-390:i386 : Depends: libnvidia-gl-390:i386 but it is not installed
      nvidia-driver-390 : Depends: libnvidia-gl-390 (= 390.87-0ubuntu0~gpu18.04.1) but it is not installed
      Recommends: libnvidia-gl-390:i386 (= 390.87-0ubuntu0~gpu18.04.1)
      E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


      After that I try apt --fix-broken install, but I get:



      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
      Preparing to unpack .../libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_amd64.deb ...
      diversion of /usr/lib/x86_64-linux-gnu/libGL.so to /usr/lib/x86_64-linux-gnu/libGL.so.distrib by nvidia-340
      dpkg-divert: error: mismatch on package
      when removing 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so by libnvidia-gl-390'
      found 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so to /usr/lib/x86_64-linux-gnu/libGL.so.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_i386.deb
      /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)


      Then I try solution from
      how to fix this apt problem on ubuntu 18.04 LTS?



      sudo rm /var/cache/apt/archives/libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_i386.deb
      sudo rm /var/cache/apt/archives/libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_amd64.deb


      then to erase all of the downloaded files in your cache.



      sudo apt-get clean
      sudo apt-get autoremove && sudo apt-get autoclean


      And again I got:



      The following packages have unmet dependencies.
      libnvidia-ifr1-390 : Depends: libnvidia-gl-390 but it is not installed
      libnvidia-ifr1-390:i386 : Depends: libnvidia-gl-390:i386 but it is not installed
      nvidia-driver-390 : Depends: libnvidia-gl-390 (= 390.87-0ubuntu0~gpu18.04.1) but it is not installed
      Recommends: libnvidia-gl-390:i386 (= 390.87-0ubuntu0~gpu18.04.1)
      E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


      I update ubuntu from version 16.04 to 18.04 3 weeks ago - but this problem appeared two days ago.



      Can anyone help?










      share|improve this question
















      I have a problem after apt upgrade ang get this message:



       The following packages have unmet dependencies.
      libnvidia-ifr1-390 : Depends: libnvidia-gl-390 but it is not installed
      libnvidia-ifr1-390:i386 : Depends: libnvidia-gl-390:i386 but it is not installed
      nvidia-driver-390 : Depends: libnvidia-gl-390 (= 390.87-0ubuntu0~gpu18.04.1) but it is not installed
      Recommends: libnvidia-gl-390:i386 (= 390.87-0ubuntu0~gpu18.04.1)
      E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


      After that I try apt --fix-broken install, but I get:



      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
      Preparing to unpack .../libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_amd64.deb ...
      diversion of /usr/lib/x86_64-linux-gnu/libGL.so to /usr/lib/x86_64-linux-gnu/libGL.so.distrib by nvidia-340
      dpkg-divert: error: mismatch on package
      when removing 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so by libnvidia-gl-390'
      found 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so to /usr/lib/x86_64-linux-gnu/libGL.so.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_i386.deb
      /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)


      Then I try solution from
      how to fix this apt problem on ubuntu 18.04 LTS?



      sudo rm /var/cache/apt/archives/libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_i386.deb
      sudo rm /var/cache/apt/archives/libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_amd64.deb


      then to erase all of the downloaded files in your cache.



      sudo apt-get clean
      sudo apt-get autoremove && sudo apt-get autoclean


      And again I got:



      The following packages have unmet dependencies.
      libnvidia-ifr1-390 : Depends: libnvidia-gl-390 but it is not installed
      libnvidia-ifr1-390:i386 : Depends: libnvidia-gl-390:i386 but it is not installed
      nvidia-driver-390 : Depends: libnvidia-gl-390 (= 390.87-0ubuntu0~gpu18.04.1) but it is not installed
      Recommends: libnvidia-gl-390:i386 (= 390.87-0ubuntu0~gpu18.04.1)
      E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


      I update ubuntu from version 16.04 to 18.04 3 weeks ago - but this problem appeared two days ago.



      Can anyone help?







      drivers nvidia upgrade






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 7 '18 at 8:39







      lakyller

















      asked Sep 7 '18 at 8:23









      lakyllerlakyller

      33




      33






















          3 Answers
          3






          active

          oldest

          votes


















          4














          It most likely didn't install correctly.
          I'd probably remove the packages without dependencies like so:



          sudo dpkg -r libnvidia-ifr1-390
          sudo dpkg -r libnvidia-ifr1-390:i386
          sudo dpkg -r nvidia-driver-390


          Using those commands should free up apt-get, now you can install the dependencies and reinstall the driver: (This should install the dependencies automatically)



          sudo apt-get install nvidia-driver-390


          And if the same thing happens again, try this: (This installs the listed dependencies and the driver)



          sudo apt-get install libnvidia-gl-390:i386
          sudo apt-get install libnvidia-gl-390
          sudo apt-get install nvidia-driver-390


          Or this: (This uninstalls and purges anything installed related to Nvidia and installs the driver while also deleting local copies of packages to download it again)



          sudo apt-get clean
          sudo apt-get purge nvidia*
          sudo apt-get autoremove --purge
          sudo apt-get install nvidia-driver-390





          share|improve this answer


























          • This can help - Thnx!!!!!!!!

            – lakyller
            Sep 24 '18 at 7:08



















          0














          OK I'm in the same boat as this. I upgraded from 16.04 to 18.04 Mate. When I try to do this: apt --fix-broken install. I get this:



          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. What can I try. PS I hate Nvidia with a passion.






          share|improve this answer































            0














            Exact error I get is 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)




            share























              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%2f1072999%2fnvidia-driver-problem-after-apt-upgrade-ubuntu-18-04%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              4














              It most likely didn't install correctly.
              I'd probably remove the packages without dependencies like so:



              sudo dpkg -r libnvidia-ifr1-390
              sudo dpkg -r libnvidia-ifr1-390:i386
              sudo dpkg -r nvidia-driver-390


              Using those commands should free up apt-get, now you can install the dependencies and reinstall the driver: (This should install the dependencies automatically)



              sudo apt-get install nvidia-driver-390


              And if the same thing happens again, try this: (This installs the listed dependencies and the driver)



              sudo apt-get install libnvidia-gl-390:i386
              sudo apt-get install libnvidia-gl-390
              sudo apt-get install nvidia-driver-390


              Or this: (This uninstalls and purges anything installed related to Nvidia and installs the driver while also deleting local copies of packages to download it again)



              sudo apt-get clean
              sudo apt-get purge nvidia*
              sudo apt-get autoremove --purge
              sudo apt-get install nvidia-driver-390





              share|improve this answer


























              • This can help - Thnx!!!!!!!!

                – lakyller
                Sep 24 '18 at 7:08
















              4














              It most likely didn't install correctly.
              I'd probably remove the packages without dependencies like so:



              sudo dpkg -r libnvidia-ifr1-390
              sudo dpkg -r libnvidia-ifr1-390:i386
              sudo dpkg -r nvidia-driver-390


              Using those commands should free up apt-get, now you can install the dependencies and reinstall the driver: (This should install the dependencies automatically)



              sudo apt-get install nvidia-driver-390


              And if the same thing happens again, try this: (This installs the listed dependencies and the driver)



              sudo apt-get install libnvidia-gl-390:i386
              sudo apt-get install libnvidia-gl-390
              sudo apt-get install nvidia-driver-390


              Or this: (This uninstalls and purges anything installed related to Nvidia and installs the driver while also deleting local copies of packages to download it again)



              sudo apt-get clean
              sudo apt-get purge nvidia*
              sudo apt-get autoremove --purge
              sudo apt-get install nvidia-driver-390





              share|improve this answer


























              • This can help - Thnx!!!!!!!!

                – lakyller
                Sep 24 '18 at 7:08














              4












              4








              4







              It most likely didn't install correctly.
              I'd probably remove the packages without dependencies like so:



              sudo dpkg -r libnvidia-ifr1-390
              sudo dpkg -r libnvidia-ifr1-390:i386
              sudo dpkg -r nvidia-driver-390


              Using those commands should free up apt-get, now you can install the dependencies and reinstall the driver: (This should install the dependencies automatically)



              sudo apt-get install nvidia-driver-390


              And if the same thing happens again, try this: (This installs the listed dependencies and the driver)



              sudo apt-get install libnvidia-gl-390:i386
              sudo apt-get install libnvidia-gl-390
              sudo apt-get install nvidia-driver-390


              Or this: (This uninstalls and purges anything installed related to Nvidia and installs the driver while also deleting local copies of packages to download it again)



              sudo apt-get clean
              sudo apt-get purge nvidia*
              sudo apt-get autoremove --purge
              sudo apt-get install nvidia-driver-390





              share|improve this answer















              It most likely didn't install correctly.
              I'd probably remove the packages without dependencies like so:



              sudo dpkg -r libnvidia-ifr1-390
              sudo dpkg -r libnvidia-ifr1-390:i386
              sudo dpkg -r nvidia-driver-390


              Using those commands should free up apt-get, now you can install the dependencies and reinstall the driver: (This should install the dependencies automatically)



              sudo apt-get install nvidia-driver-390


              And if the same thing happens again, try this: (This installs the listed dependencies and the driver)



              sudo apt-get install libnvidia-gl-390:i386
              sudo apt-get install libnvidia-gl-390
              sudo apt-get install nvidia-driver-390


              Or this: (This uninstalls and purges anything installed related to Nvidia and installs the driver while also deleting local copies of packages to download it again)



              sudo apt-get clean
              sudo apt-get purge nvidia*
              sudo apt-get autoremove --purge
              sudo apt-get install nvidia-driver-390






              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Sep 7 '18 at 18:01

























              answered Sep 7 '18 at 17:36









              Zekro KaltZekro Kalt

              563




              563













              • This can help - Thnx!!!!!!!!

                – lakyller
                Sep 24 '18 at 7:08



















              • This can help - Thnx!!!!!!!!

                – lakyller
                Sep 24 '18 at 7:08

















              This can help - Thnx!!!!!!!!

              – lakyller
              Sep 24 '18 at 7:08





              This can help - Thnx!!!!!!!!

              – lakyller
              Sep 24 '18 at 7:08













              0














              OK I'm in the same boat as this. I upgraded from 16.04 to 18.04 Mate. When I try to do this: apt --fix-broken install. I get this:



              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. What can I try. PS I hate Nvidia with a passion.






              share|improve this answer




























                0














                OK I'm in the same boat as this. I upgraded from 16.04 to 18.04 Mate. When I try to do this: apt --fix-broken install. I get this:



                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. What can I try. PS I hate Nvidia with a passion.






                share|improve this answer


























                  0












                  0








                  0







                  OK I'm in the same boat as this. I upgraded from 16.04 to 18.04 Mate. When I try to do this: apt --fix-broken install. I get this:



                  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. What can I try. PS I hate Nvidia with a passion.






                  share|improve this answer













                  OK I'm in the same boat as this. I upgraded from 16.04 to 18.04 Mate. When I try to do this: apt --fix-broken install. I get this:



                  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. What can I try. PS I hate Nvidia with a passion.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 13 mins ago









                  user2533098user2533098

                  212




                  212























                      0














                      Exact error I get is 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)




                      share




























                        0














                        Exact error I get is 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)




                        share


























                          0












                          0








                          0







                          Exact error I get is 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)




                          share













                          Exact error I get is 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)





                          share











                          share


                          share










                          answered 6 mins ago









                          user2533098user2533098

                          212




                          212






























                              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%2f1072999%2fnvidia-driver-problem-after-apt-upgrade-ubuntu-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

                              GameSpot

                              connect to host localhost port 22: Connection refused

                              Getting a Wifi WPA2 wifi connection