Nvidia Hybrid GPU: subprocess installed post-installation script returned error exit status 1

Screen resolution, 3D Acceleration, nVidia, ATI
Forum rules
Before you post please read this
Post Reply
Enforcerke
Level 1
Level 1
Posts: 1
Joined: Sun Feb 18, 2018 8:18 pm

Nvidia Hybrid GPU: subprocess installed post-installation script returned error exit status 1

Post by Enforcerke » Sun Feb 18, 2018 8:27 pm

I have a laptop running Linux Mint 18.3 Cinnamon 64-bit.
Processor: Intel i7-4510U
It's currently using my Intel corporation Haswell-ULT Integrated Graphics Controller, but I'm trying to run a game and it doesn't run smooth enough
so I'm trying to activate my Nivida Geforce 840M. I tried this by going to the Driver Manager and selecting the nvidia-384 driver. At the end I get this error:

Code: Select all

installArchives() failed: (Reading database ... 
(Reading database ... 5%%
(Reading database ... 10%%
(Reading database ... 15%%
(Reading database ... 20%%
(Reading database ... 25%%
(Reading database ... 30%%
(Reading database ... 35%%
(Reading database ... 40%%
(Reading database ... 45%%
(Reading database ... 50%%
(Reading database ... 55%%
(Reading database ... 60%%
(Reading database ... 65%%
(Reading database ... 70%%
(Reading database ... 75%%
(Reading database ... 80%%
(Reading database ... 85%%
(Reading database ... 90%%
(Reading database ... 95%%
(Reading database ... 100%%
(Reading database ... 318690 files and directories currently installed.)
Removing libcuda1-384 (384.111-0ubuntu0.16.04.1) ...
Removing nvidia-opencl-icd-384 (384.111-0ubuntu0.16.04.1) ...
Removing nvidia-384 (384.111-0ubuntu0.16.04.1) ...
Removing all DKMS Modules
Done.
update-alternatives: using /usr/lib/nvidia-384-prime/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode
update-alternatives: using /usr/lib/nvidia-384-prime/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_EGL.conf (x86_64-linux-gnu_egl_conf) in auto mode
update-alternatives: using /usr/lib/nvidia-384-prime/alt_ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in auto mode
update-alternatives: using /usr/lib/nvidia-384-prime/alt_ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_EGL.conf (i386-linux-gnu_egl_conf) in auto mode
update-alternatives: using /usr/lib/x86_64-linux-gnu/mesa/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode
update-alternatives: using /usr/lib/x86_64-linux-gnu/mesa-egl/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_EGL.conf (x86_64-linux-gnu_egl_conf) in auto mode
update-alternatives: using /usr/lib/i386-linux-gnu/mesa/ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in auto mode
INFO:Disable nvidia-384
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
update-initramfs: deferring update (trigger activated)
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for initramfs-tools (0.122ubuntu8.10) ...
update-initramfs: Generating /boot/initrd.img-4.13.0-32-generic
Warning: No support for locale: en_US.utf8
Selecting previously unselected package libcuda1-340.
(Reading database ... 
(Reading database ... 5%%
(Reading database ... 10%%
(Reading database ... 15%%
(Reading database ... 20%%
(Reading database ... 25%%
(Reading database ... 30%%
(Reading database ... 35%%
(Reading database ... 40%%
(Reading database ... 45%%
(Reading database ... 50%%
(Reading database ... 55%%
(Reading database ... 60%%
(Reading database ... 65%%
(Reading database ... 70%%
(Reading database ... 75%%
(Reading database ... 80%%
(Reading database ... 85%%
(Reading database ... 90%%
(Reading database ... 95%%
(Reading database ... 100%%
(Reading database ... 318122 files and directories currently installed.)
Preparing to unpack .../libcuda1-340_340.104-0ubuntu0.16.04.1_amd64.deb ...
Unpacking libcuda1-340 (340.104-0ubuntu0.16.04.1) ...
Selecting previously unselected package libjansson4:amd64.
Preparing to unpack .../libjansson4_2.7-3_amd64.deb ...
Unpacking libjansson4:amd64 (2.7-3) ...
Selecting previously unselected package libvdpau1:amd64.
Preparing to unpack .../libvdpau1_1.1.1-3ubuntu1_amd64.deb ...
Unpacking libvdpau1:amd64 (1.1.1-3ubuntu1) ...
Selecting previously unselected package libxnvctrl0.
Preparing to unpack .../libxnvctrl0_361.42-0ubuntu1_amd64.deb ...
Unpacking libxnvctrl0 (361.42-0ubuntu1) ...
Selecting previously unselected package nvidia-340.
Preparing to unpack .../nvidia-340_340.104-0ubuntu0.16.04.1_amd64.deb ...
Unpacking nvidia-340 (340.104-0ubuntu0.16.04.1) ...
Selecting previously unselected package nvidia-opencl-icd-340.
Preparing to unpack .../nvidia-opencl-icd-340_340.104-0ubuntu0.16.04.1_amd64.deb ...
Unpacking nvidia-opencl-icd-340 (340.104-0ubuntu0.16.04.1) ...
Selecting previously unselected package screen-resolution-extra.
Preparing to unpack .../screen-resolution-extra_0.17.1_all.deb ...
Unpacking screen-resolution-extra (0.17.1) ...
Selecting previously unselected package nvidia-settings.
Preparing to unpack .../nvidia-settings_361.42-0ubuntu1_amd64.deb ...
Unpacking nvidia-settings (361.42-0ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for dbus (1.10.6-1ubuntu3.3) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22+linuxmint1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Setting up shim-signed (1.32~16.04.1+0.9+1474479173.6c180c6-1ubuntu1+linuxmint1) ...
Installing for x86_64-efi platform.
Installation finished. No error reported.
Running in non-interactive mode, doing nothing.
--- /var/lib/shim-signed/dkms-list	2018-02-19 01:14:53.536731020 +0100
+++ /var/lib/shim-signed/dkms-list.new	2018-02-19 01:14:53.544730970 +0100
@@ -1,2 +1,3 @@
 /var/lib/dkms
+/var/lib/dkms/bbswitch
 /var/lib/dkms/ndiswrapper
dpkg: error processing package shim-signed (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up libcuda1-340 (340.104-0ubuntu0.16.04.1) ...
Setting up libjansson4:amd64 (2.7-3) ...
Setting up libvdpau1:amd64 (1.1.1-3ubuntu1) ...
Setting up libxnvctrl0 (361.42-0ubuntu1) ...
Setting up nvidia-340 (340.104-0ubuntu0.16.04.1) ...
update-alternatives: using /usr/lib/nvidia-340/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode
update-alternatives: using /usr/lib/nvidia-340/alt_ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in auto mode
update-alternatives: using /usr/share/nvidia-340/glamor.conf to provide /usr/share/X11/xorg.conf.d/glamoregl.conf (glamor_conf) in auto mode
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia-340
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
Adding system user `nvidia-persistenced' (UID 123) ...
Adding new group `nvidia-persistenced' (GID 132) ...
Adding new user `nvidia-persistenced' (UID 123) with group `nvidia-persistenced' ...
Not creating home directory `/'.
Loading new nvidia-340-340.104 DKMS files...
First Installation: checking all kernels...
Building only for 4.13.0-32-generic
Building for architecture x86_64
Building initial module for 4.13.0-32-generic
Done.

nvidia_340:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.13.0-32-generic/kernel/drivers/char/drm/

nvidia_340_uvm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.13.0-32-generic/kernel/drivers/video/

depmod....

DKMS: install completed.
Setting up nvidia-opencl-icd-340 (340.104-0ubuntu0.16.04.1) ...
Setting up screen-resolution-extra (0.17.1) ...
Setting up nvidia-settings (361.42-0ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for initramfs-tools (0.122ubuntu8.10) ...
update-initramfs: Generating /boot/initrd.img-4.13.0-32-generic
Warning: No support for locale: en_US.utf8
Processing triggers for dbus (1.10.6-1ubuntu3.3) ...
Errors were encountered while processing:
 shim-signed
Setting up shim-signed (1.32~16.04.1+0.9+1474479173.6c180c6-1ubuntu1+linuxmint1) ...
Installing for x86_64-efi platform.
Installation finished. No error reported.
Running in non-interactive mode, doing nothing.
--- /var/lib/shim-signed/dkms-list	2018-02-19 01:15:40.380477720 +0100
+++ /var/lib/shim-signed/dkms-list.new	2018-02-19 01:15:40.388477684 +0100
@@ -1,2 +1,4 @@
 /var/lib/dkms
+/var/lib/dkms/bbswitch
 /var/lib/dkms/ndiswrapper
+/var/lib/dkms/nvidia-340
dpkg: error processing package shim-signed (--configure):
 subprocess installed post-installation script returned error exit status 1

I googled this already but I don't find a specific solution for the case of an NVIDIA GPU.

I can't use bumblebee and optimus since the PPA doesn't support xenial on linux mint 18.
Is there a way to fix this error with the driver manager, or another workaround to activate my GPU?

Thanks.

Laurent85
Level 15
Level 15
Posts: 5746
Joined: Tue May 26, 2015 10:11 am

Re: Nvidia Hybrid GPU: subprocess installed post-installation script returned error exit status 1

Post by Laurent85 » Mon Feb 19, 2018 12:28 pm

Remove the ppa and refresh the package list.

Purge installed Nvidia packages:

Code: Select all

apt purge nvidia-*
apt install nvidia-prime-applet
apt install -f
sudo find /lib/modules/$(uname -r)/kernel/drivers/char/drm -iname "nvidia*.ko" -exec rm {} +
Install available driver (recommended) in Driver Manager for your GPU.

Reboot to enter your computer bios setup and check Secure Boot feature is turned off.
Image

Post Reply

Return to “Graphics Cards & Monitors”