Same issue is happening to me, although in my case it's happening on
attempts to upgrade or remove rather than on initial install. Here's
what happens (the .deb file in question is a security update that was
obtained from the Ubuntu archives using apt and should be the latest
version):

$ sudo dpkg -i 
/var/cache/apt/archives/nvidia-opencl-icd-340_340.98-0ubuntu0.16.04.1_i386.deb
Selecting previously unselected package nvidia-opencl-icd-340:i386.
(Reading database ... 817449 files and directories currently installed.)
Preparing to unpack .../nvidia-opencl-icd-340_340.98-0ubuntu0.16.04.1_i386.deb 
...
Failed to stop var-lib-snapd-lib-gl.mount: Unit var-lib-snapd-lib-gl.mount not 
loaded.
dpkg: warning: subprocess old pre-removal script returned error exit status 5
dpkg: trying script from the new package instead ...
dpkg: error processing archive 
/var/cache/apt/archives/nvidia-opencl-icd-340_340.98-0ubuntu0.16.04.1_i386.deb 
(--install):
 there is no script in the new version of the package - giving up
Failed to get unit file state for var-lib-snapd-lib-gl.mount: No such file or 
directory
var-lib-snapd-lib-gl.mount is a disabled or a static unit, not starting it.
Processing triggers for libc-bin (2.23-0ubuntu4) ...
Errors were encountered while processing:
 /var/cache/apt/archives/nvidia-opencl-icd-340_340.98-0ubuntu0.16.04.1_i386.deb

$ sudo dpkg -r nvidia-opencl-icd-340:i386
(Reading database ... 817447 files and directories currently installed.)
Removing nvidia-opencl-icd-340:i386 (340.96-0ubuntu3.16.04.1) ...
Failed to stop var-lib-snapd-lib-gl.mount: Unit var-lib-snapd-lib-gl.mount not 
loaded.
dpkg: error processing package nvidia-opencl-icd-340:i386 (--remove):
 subprocess installed pre-removal script returned error exit status 5
Failed to get unit file state for var-lib-snapd-lib-gl.mount: No such file or 
directory
var-lib-snapd-lib-gl.mount is a disabled or a static unit, not starting it.
Processing triggers for libc-bin (2.23-0ubuntu4) ...
Errors were encountered while processing:
 nvidia-opencl-icd-340:i386

Incidentally, I have no idea why the package in question is on my system
in the first place. It doesn't appear to be a dependency of anything
(neither apt nor dpkg complains when I try to remove it), and I don't
have an NVidia graphics card, so I'd have had no reason to install it
manually.

/var/lib/snapd/lib/gl (which seems to be relevant due to the "Unit var-
lib-snapd-lib-gl.mount" message) exists, but is an empty directory.
Nothing appears to be mounted there.

** Summary changed:

- package nvidia-opencl-icd-340 340.96-0ubuntu3.16.04.1 failed to install
+ package nvidia-opencl-icd-340 340.96-0ubuntu3.16.04.1 cannot be installed, 
removed or upgraded

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1589472

Title:
  package nvidia-opencl-icd-340 340.96-0ubuntu3.16.04.1 cannot be
  installed, removed or upgraded

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to