Public bug reported:

I had some error while installing the drivers for Nvidia, so when i gave the 
command to remove fully and reinstall as `sudo apt remove nvidia-*` 
I get the error as:
`.
.
.
Package 'nvidia-libopencl1-331-updates' is not installed, so not removed
Package 'nvidia-libopencl1-340' is not installed, so not removed
Package 'nvidia-libopencl1-340-updates' is not installed, so not removed
Package 'nvidia-libopencl1-384' is not installed, so not removed
Package 'nvidia-opencl-icd-331' is not installed, so not removed
Package 'nvidia-opencl-icd-331-updates' is not installed, so not removed
Package 'nvidia-opencl-icd-340-updates' is not installed, so not removed
Package 'nvidia-opencl-icd-384' is not installed, so not removed
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 going to be 
installed
 libnvidia-ifr1-390:i386 : Depends: libnvidia-gl-390:i386 but it is not going 
to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or 
specify a solution).`

Even when i typed `sudo apt --fix-broken install`

I get the error as:

`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.77-0ubuntu0.18.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.77-0ubuntu0.18.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.77-0ubuntu0.18.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.77-0ubuntu0.18.04.1_i386.deb
 /var/cache/apt/archives/libnvidia-gl-390_390.77-0ubuntu0.18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)`

How do i solve this issue..??

Any suggestions are highly appreciated.
Thank you.

** Affects: nvidia-graphics-drivers-390 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to nvidia-graphics-drivers-390 in Ubuntu.
https://bugs.launchpad.net/bugs/1804647

Title:
  Installed Nvidia drivers have unmet dependencies

Status in nvidia-graphics-drivers-390 package in Ubuntu:
  New

Bug description:
  I had some error while installing the drivers for Nvidia, so when i gave the 
command to remove fully and reinstall as `sudo apt remove nvidia-*` 
  I get the error as:
  `.
  .
  .
  Package 'nvidia-libopencl1-331-updates' is not installed, so not removed
  Package 'nvidia-libopencl1-340' is not installed, so not removed
  Package 'nvidia-libopencl1-340-updates' is not installed, so not removed
  Package 'nvidia-libopencl1-384' is not installed, so not removed
  Package 'nvidia-opencl-icd-331' is not installed, so not removed
  Package 'nvidia-opencl-icd-331-updates' is not installed, so not removed
  Package 'nvidia-opencl-icd-340-updates' is not installed, so not removed
  Package 'nvidia-opencl-icd-384' is not installed, so not removed
  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 going to be 
installed
   libnvidia-ifr1-390:i386 : Depends: libnvidia-gl-390:i386 but it is not going 
to be installed
  E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or 
specify a solution).`

  Even when i typed `sudo apt --fix-broken install`

  I get the error as:

  `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.77-0ubuntu0.18.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.77-0ubuntu0.18.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.77-0ubuntu0.18.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.77-0ubuntu0.18.04.1_i386.deb
   /var/cache/apt/archives/libnvidia-gl-390_390.77-0ubuntu0.18.04.1_amd64.deb
  E: Sub-process /usr/bin/dpkg returned an error code (1)`

  How do i solve this issue..??

  Any suggestions are highly appreciated.
  Thank you.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-390/+bug/1804647/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to