upgrade failure from older nvidia release

Bug #1621780 reported by Michael Vogt
32
This bug affects 5 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-361 (Ubuntu)
In Progress
High
Alberto Milone
nvidia-graphics-drivers-367 (Ubuntu)
Fix Released
High
Unassigned
snapd (Ubuntu)
Confirmed
High
Unassigned

Bug Description

The following error happens when upgrading the nvidia driver:
"""
> Preparing to unpack
> .../nvidia-opencl-icd-361_367.44-0ubuntu0.16.04.1_amd64.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-361_367.44-0ubuntu0.16.04.1_amd64.d\
eb
> (--unpack):
> 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.
> dpkg: regarding
> .../nvidia-opencl-icd-367_367.44-0ubuntu0.16.04.1_amd64.deb containing
> nvidia-opencl-icd-367:
> nvidia-opencl-icd-367 conflicts with nvidia-opencl-icd
> nvidia-opencl-icd-361 provides nvidia-opencl-icd and is present and
> installed.
"""
in yakkety.

I think what happend here is that we had a buggy version of nvidia in
xenial-proposed (and maybe yakkety) for a brief time. This version
contained the var-lib-snapd-lib-gl.mount - the new package does not
have cleanup script for this.

Michael Vogt (mvo)
Changed in nvidia-graphics-drivers-361 (Ubuntu):
importance: Undecided → High
Changed in snapd (Ubuntu):
importance: Undecided → High
Changed in nvidia-graphics-drivers-361 (Ubuntu):
assignee: nobody → Alberto Milone (albertomilone)
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in snapd (Ubuntu):
status: New → Confirmed
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello Michael, or anyone else affected,

Accepted nvidia-graphics-drivers-367 into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/nvidia-graphics-drivers-367/367.44-0ubuntu0.16.04.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: added: verification-needed
Mathew Hodson (mhodson)
Changed in nvidia-graphics-drivers-367 (Ubuntu):
importance: Undecided → High
status: New → Fix Committed
Revision history for this message
Mario Limonciello (superm1) wrote :
Download full text (5.9 KiB)

I've got proposed turned on, but this bug is still happening to me.

test@test-Precision-5510:~$ apt policy libcuda1-367
libcuda1-367:
  Installed: (none)
  Candidate: 367.44-0ubuntu0.16.04.2
  Version table:
     367.44-0ubuntu0.16.04.2 500
        500 http://archive.ubuntu.com/ubuntu xenial-proposed/restricted amd64 Packages
test@test-Precision-5510:~$ apt policy libcuda1-361
libcuda1-361:
  Installed: 361.45.11-0ubuntu0.16.04.1
  Candidate: 367.44-0ubuntu0.16.04.2
  Version table:
     367.44-0ubuntu0.16.04.2 500
        500 http://archive.ubuntu.com/ubuntu xenial-proposed/restricted amd64 Packages
 *** 361.45.11-0ubuntu0.16.04.1 100
        100 /var/lib/dpkg/status
     361.42-0ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages
test@test-Precision-5510:~$ sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  firefox-locale-en gir1.2-gcr-3 gir1.2-gdesktopenums-3.0 gir1.2-gnomedesktop-3.0 gir1.2-gtkspell3-3.0 gsettings-desktop-schemas-dev ipxe-qemu kwin-data libasound2-dev libatk-wrapper-java
  libatk-wrapper-java-jni libcaca-dev libcacard0 libdevmapper-dev libenchant-dev libfam0 libfdt1 libfuse-dev libfwup0 libgconf2-4 libglib2.0-0:i386 libgmpxxv4-4 libgnome2-0 libgnome2-bin
  libgstreamer-plugins-base0.10-0 libgstreamer-plugins-base0.10-0:i386 libgstreamer0.10-0 libgstreamer0.10-0:i386 libiscsi2 libjs-jquery-ui liblvm2app2.2 libmysqlclient18 libnspr4-dev libnss3-dev
  liboauth-dev liborc-0.4-0:i386 libparted-fs-resize0 libphonon4qt5-4 libpolkit-gobject-1-dev libpolkit-qt5-1-1 libpopt-dev libpulse-dev libqt4-help libqt4-opengl libqt4-scripttools libqt4-svg
  libqt4-test libqt5script5 libqtassistantclient4 libqtwebkit4 libreadline5 libsdl1.2-dev libselinux1-dev libsepol1-dev libslang2-dev libspice-server1 libsystemd-dev libtext-unidecode-perl
  libusbredirparser1 libvoikko1 libxcb-composite0 libxcb-cursor0 libxcb-damage0 libxen-4.6 libxen-dev libxenstore3.0 libxft2:i386 libxkbfile-dev libxml-libxml-perl libxml-namespacesupport-perl
  libxml-sax-base-perl libxml-sax-perl libxt-dev libxtst6:i386 libxv1:i386 linux-image-extra-4.4.0-21-generic linux-image-extra-4.4.0-22-generic linux-image-extra-4.4.0-28-generic
  linux-image-extra-4.4.0-31-generic linux-image-extra-4.4.0-33-generic linux-image-extra-4.4.0-34-generic linux-image-extra-4.4.0-36-generic linux-image-extra-4.4.0-37-generic
  linux-signed-image-4.4.0-21-generic linux-signed-image-4.4.0-22-generic linux-signed-image-4.4.0-28-generic linux-signed-image-4.4.0-31-generic linux-signed-image-4.4.0-33-generic
  linux-signed-image-4.4.0-34-generic linux-signed-image-4.4.0-36-generic linux-signed-image-4.4.0-37-generic linux-tools-4.4.0-21 linux-tools-4.4.0-21-generic linux-tools-4.4.0-22
  linux-tools-4.4.0-22-generic linux-tools-4.4.0-28 linux-tools-4.4.0-28-generic linux-tools-4.4.0-31 linux-tools-4.4.0-31-generic linux-tools-4.4.0-33 linux-tools-4.4.0-33-generic linux-tools-4.4.0-34
  linux-tools-4.4.0-34-generic linux-tools-4.4.0-36 linux-tools-4.4.0-36-generic linux-tools-4.4....

Read more...

tags: added: verification-failed
removed: verification-needed
Revision history for this message
Alberto Milone (albertomilone) wrote :

I suppose all the shipped library packages need the same workaround.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-graphics-drivers-367 - 367.57-0ubuntu2

---------------
nvidia-graphics-drivers-367 (367.57-0ubuntu2) yakkety; urgency=medium

  * debian/templates/libcuda1-361.prerm.in,
    debian/templates/nvidia-libopencl1-361.prerm.in:
    - Add empty prerm scripts for 361 (LP: #1621780).

 -- Alberto Milone <email address hidden> Wed, 12 Oct 2016 12:00:14 +0200

Changed in nvidia-graphics-drivers-367 (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
vmagnin (vincent-magnin) wrote :

Same problem.
I am using the nvidia 367.57 but when I try to apt-get remove nvidia-352 nvidia-361 it fails.
Is there a Workaround to uninstall these broken packages ?

Revision history for this message
vmagnin (vincent-magnin) wrote :

I finally found a solution on an Ubuntu forum:
/var/lib/dpkg/info$ sudo mv libcuda1-352.prerm libcuda1-352.prerm.bak
/var/lib/dpkg/info$ sudo mv nvidia-352.prerm nvidia-352.prerm.bak
/var/lib/dpkg/info$ sudo mv nvidia-opencl-icd-352.prerm nvidia-opencl-icd-352.prerm.bak
/var/lib/dpkg/info$ sudo apt-get dist-upgrade

These packages have then been updated without failure. My problem is solved.

Revision history for this message
Karl Kastner (kastner-karl) wrote :

This blocks release upgrades to Cosmic Cuttlefish. "dpkg --purge --force-all libcuda1-352" does not help, but vmagnin workaround does work.

apt-get upgrade libcuda1-352
...
Preparing to unpack .../libcuda1-352_361.45.11-0ubuntu4_amd64.deb ...
Failed to stop var-lib-snapd-lib-gl.mount: Unit var-lib-snapd-lib-gl.mount not loaded.
dpkg: warning: old libcuda1-352 package pre-removal script subprocess returned error exit status 5
dpkg: trying script from the new package instead ...
dpkg: error processing archive /var/cache/apt/archives/libcuda1-352_361.45.11-0ubuntu4_amd64.deb (--unpack):
 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.
Errors were encountered while processing:
 /var/cache/apt/archives/libcuda1-352_361.45.11-0ubuntu4_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.