Hello, I was experiencing something similar. I'd like to request some data from you; seems we might have duplicate bugs, so I'm trying to narrowing if they all are reporting the same failures, and I have a potential fix for it.
Please, try to rebuild the packages by running (as root): "/usr/lib/dkms/dkms_autoinstaller start <your_kernel_version>" For example: "/usr/lib/dkms/dkms_autoinstaller start 4.15.0-21-generic" After that, collect the build log and attach it here. It's present usually at: "/var/lib/dkms/nvidia-340/<your_nvidia_pkg_version>/build/make.log" Thanks, Guilherme -- 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/1771413 Title: package nvidia-340 340.106-0ubuntu3 failed to install/upgrade: new nvidia-340 package pre-installation script subprocess returned error exit status 1 Status in nvidia-graphics-drivers-340 package in Ubuntu: New Bug description: I was doing daily updates when the error came up. ProblemType: Package DistroRelease: Ubuntu 18.10 Package: nvidia-340 340.106-0ubuntu3 ProcVersionSignature: Ubuntu 4.15.0-21.22-generic 4.15.17 Uname: Linux 4.15.0-21-generic x86_64 NonfreeKernelModules: nvidia_uvm nvidia ApportVersion: 2.20.10-0ubuntu2 Architecture: amd64 Date: Tue May 15 12:08:02 2018 ErrorMessage: new nvidia-340 package pre-installation script subprocess returned error exit status 1 InstallationDate: Installed on 2017-10-21 (205 days ago) InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Beta amd64 (20171015) Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal, 3.6.5-3 PythonDetails: /usr/bin/python2.7, Python 2.7.15, python-minimal, 2.7.15~rc1-1 RelatedPackageVersions: dpkg 1.19.0.5ubuntu3 apt 1.7.0~alpha0ubuntu1 SourcePackage: nvidia-graphics-drivers-340 Title: package nvidia-340 340.106-0ubuntu3 failed to install/upgrade: new nvidia-340 package pre-installation script subprocess returned error exit status 1 UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-340/+bug/1771413/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp