package nvidia-dkms-430 430.40-0ubuntu2 failed to install/upgrade: installed nvidia-dkms-430 package post-installation script subprocess returned error exit status 10

Bug #1841762 reported by Dan Roach
62
This bug affects 13 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-430 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Error window popped up without any intervention from me.

ProblemType: Package
DistroRelease: Ubuntu 19.10
Package: nvidia-dkms-430 430.40-0ubuntu2
ProcVersionSignature: Ubuntu 5.2.0-13.14-generic 5.2.8
Uname: Linux 5.2.0-13-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu7
AptOrdering: NULL: ConfigurePending
Architecture: amd64
Date: Wed Aug 28 11:10:40 2019
ErrorMessage: installed nvidia-dkms-430 package post-installation script subprocess returned error exit status 10
InstallationDate: Installed on 2019-08-26 (1 days ago)
InstallationMedia: Ubuntu-Server 19.04 "Disco Dingo" - Release amd64 (20190416.2)
Python3Details: /usr/bin/python3.7, Python 3.7.4, python3-minimal, 3.7.3-1
PythonDetails: /usr/bin/python2.7, Python 2.7.16+, python-minimal, 2.7.16-1
RelatedPackageVersions:
 dpkg 1.19.7ubuntu1
 apt 1.9.3
SourcePackage: nvidia-graphics-drivers-430
Title: package nvidia-dkms-430 430.40-0ubuntu2 failed to install/upgrade: installed nvidia-dkms-430 package post-installation script subprocess returned error exit status 10
UpgradeStatus: Upgraded to eoan on 2019-08-28 (0 days ago)

Revision history for this message
Dan Roach (droach282) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in nvidia-graphics-drivers-430 (Ubuntu):
status: New → Confirmed
Revision history for this message
cue (keino) wrote :

Setting up nvidia-dkms-430 (430.64-0ubuntu0~gpu19.10.1) ...
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
Removing old nvidia-430.64 DKMS files...

------------------------------
Deleting module version: 430.64
completely from the DKMS tree.
------------------------------
Done.
Loading new nvidia-430.64 DKMS files...
Building for 5.3.0-24-generic
Building for architecture x86_64
Building initial module for 5.3.0-24-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/nvidia-dkms-430.0.crash'
Error! Application of patch do-not-call-pci_save_state.patch failed.
Check /var/lib/dkms/nvidia/430.64/build/ for more information.
dpkg: error processing package nvidia-dkms-430 (--configure):
 installed nvidia-dkms-430 package post-installation script subprocess returned error exit status 6
dpkg: dependency problems prevent configuration of nvidia-driver-430:
 nvidia-driver-430 depends on nvidia-dkms-430 (= 430.64-0ubuntu0~gpu19.10.1); however:
  Package nvidia-dkms-430 is not configured yet.

dpkg: error processing package nvidia-driver-430 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nvidia-driver-418:
 nvidia-driver-418 depends on nvidia-driver-430; however:
  Package nvidia-driver-430 is not configured yet.

dpkg: error processing package nvidia-driver-418 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                                                                                                                                    Processing triggers for initramfs-tools (0.133ubuntu10) ...
update-initramfs: Generating /boot/initrd.img-5.3.0-24-generic
cryptsetup: ERROR: Couldn't resolve device
    UUID=84181488-981b-491d-b749-5549618432f6
W: initramfs-tools configuration sets RESUME=UUID=84181488-981b-491d-b749-5549618432f6
W: but no matching swap device is available.
Errors were encountered while processing:
 nvidia-dkms-430
 nvidia-driver-430
 nvidia-driver-418
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
cue (keino) wrote :

Please find an excerpt from my apt dist-upgrade command in #3.

I kind of got used to the cryptsetup ERROR bug on the bottom of the update output.
Now there are more errors popping up during the attempt to only trying to keep my ubuntu instance up to date by apt dist-upgrade.
The insecurity to even reboot my box now as I have to remain productive with it reminds me back on the time in the 90s working with Windows.
A new strange feeling under Linux.

As always, thank you so much for doing work without getting paid with money!

Revision history for this message
cue (keino) wrote :

After reboot indeed I was back on a low resolution and without Nvidia graphic driver.
A complete uninstall via
sudo apt remove nvidia*
and afterwards installing the opensource 440 driver via additional driver fixed the issue.

That was just like under Windows 95
- reboot into safe mode
- remove driver
- reboot
- install lates driver
- reboot

Revision history for this message
Oleksandr Suvorov (mrcry0) wrote :

The issue is that patch "do-not-call-pci_save_state.patch" can't be applied to nvidia/nv.c

Workaround (checked with 430.64, probably should work on other 430.x versions):

1. Install broken package, get an error.
2. Go to nvidia source dir (like /usr/src/nvidia-430.64)
3. Remove from dkms.conf the line 'PATCH[1]="do-not-call-pci_save_state.patch"'
4. Build nvidia driver with dkms: dkms build -m nvidia -v 430.64
5. Install nvidia driver: sudo dkms install -m nvidia -v 430.64

Note, this patch doesn't need anymore as there is no more call of pci_save_state() in nv_power_management().

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.