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 Desktop
Packages, which is subscribed to nvidia-graphics-drivers-340 in 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

Status in nvidia-graphics-drivers-340 package in Ubuntu:
  Confirmed

Bug description:
  Hi! I am can not install package nvidia-opencl-icd-340
  340.96-0ubuntu3.16.04.1  in Ubuntu 16.04. See video attachment.

  ProblemType: Package
  DistroRelease: Ubuntu 16.04
  Package: nvidia-opencl-icd-340 340.96-0ubuntu3.16.04.1
  ProcVersionSignature: Ubuntu 4.4.0-23.41-generic 4.4.10
  Uname: Linux 4.4.0-23-generic x86_64
  .tmp.unity_support_test.0:
   
  ApportVersion: 2.20.1-0ubuntu2.1
  Architecture: amd64
  CompizPlugins: No value set for 
`/apps/compiz-1/general/screen0/options/active_plugins'
  CompositorRunning: compiz
  CompositorUnredirectDriverBlacklist: '(nouveau|Intel).*Mesa 8.0'
  CompositorUnredirectFSW: true
  Date: Mon Jun  6 17:52:23 2016
  Dependencies:
   gcc-6-base 6.0.1-0ubuntu1
   libc6 2.23-0ubuntu3
   libgcc1 1:6.0.1-0ubuntu1
   ocl-icd-libopencl1 2.2.8-1
  DistUpgraded: Fresh install
  DistroCodename: xenial
  DistroVariant: ubuntu
  DpkgTerminalLog:
   Removing nvidia-opencl-icd-340 (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 (--remove):
    subprocess installed pre-removal script returned error exit status 5
  DuplicateSignature:
   package:nvidia-opencl-icd-340:340.96-0ubuntu3.16.04.1
   Removing nvidia-opencl-icd-340 (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 (--remove):
    subprocess installed pre-removal script returned error exit status 5
  ErrorMessage: subprocess installed pre-removal script returned error exit 
status 5
  GraphicsCard: NVIDIA Corporation GF108 [GeForce GT 630] [10de:0f00] (rev a1) 
(prog-if 00 [VGA controller])
  InstallationDate: Installed on 2015-05-23 (380 days ago)
  InstallationMedia: Ubuntu 14.04.2 LTS "Trusty Tahr" - Release amd64 
(20150218.1)
  Lsusb:
   Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
   Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
   Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  MachineType: BIOSTAR Group H61MLV2
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-23-generic 
root=UUID=fbee661e-0e41-4b39-845c-f5eae463781b ro quiet splash vt.handoff=7
  RelatedPackageVersions:
   dpkg 1.18.4ubuntu1.1
   apt  1.2.12~ubuntu16.04.1
  SourcePackage: nvidia-graphics-drivers-340
  Title: package nvidia-opencl-icd-340 340.96-0ubuntu3.16.04.1 failed to 
install/upgrade: subprocess installed pre-removal script returned error exit 
status 5
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 11/02/2012
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: 4.6.5
  dmi.board.asset.tag: None
  dmi.board.name: H61MLV2
  dmi.board.vendor: BIOSTAR Group
  dmi.board.version: 6.0
  dmi.chassis.asset.tag: None
  dmi.chassis.type: 3
  dmi.chassis.vendor: BIOSTAR Group
  dmi.chassis.version: 6.0
  dmi.modalias: 
dmi:bvnAmericanMegatrendsInc.:bvr4.6.5:bd11/02/2012:svnBIOSTARGroup:pnH61MLV2:pvr6.0:rvnBIOSTARGroup:rnH61MLV2:rvr6.0:cvnBIOSTARGroup:ct3:cvr6.0:
  dmi.product.name: H61MLV2
  dmi.product.version: 6.0
  dmi.sys.vendor: BIOSTAR Group
  version.compiz: compiz 1:0.9.12.2+16.04.20160526-0ubuntu1
  version.ia32-libs: ia32-libs N/A
  version.libdrm2: libdrm2 2.4.67-1ubuntu0.16.04.1
  version.libgl1-mesa-dri: libgl1-mesa-dri 11.2.0-1ubuntu2
  version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
  version.libgl1-mesa-glx: libgl1-mesa-glx 11.2.0-1ubuntu2
  version.xserver-xorg-core: xserver-xorg-core 2:1.18.3-1ubuntu2.2
  version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.10.1-1ubuntu2
  version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.7.0-1
  version.xserver-xorg-video-intel: xserver-xorg-video-intel 
2:2.99.917+git20160325-1ubuntu1
  version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 
1:1.0.12-1build2
  xserver.bootTime: Mon Jun  6 17:12:17 2016
  xserver.configfile: default
  xserver.devices:
   input        Power Button         KEYBOARD, id 6
   input        Power Button         KEYBOARD, id 7
   input        AT Translated Set 2 keyboard KEYBOARD, id 8
   input        ImPS/2 Generic Wheel Mouse MOUSE, id 9
  xserver.errors:
   Failed to load module "nvidia" (module does not exist, 0)
   Failed to load module "nvidia" (module does not exist, 0)
  xserver.logfile: /var/log/Xorg.0.log
  xserver.version: 2:1.18.3-1ubuntu2.2
  xserver.video_driver: nouveau

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to