Occasionally on booting I get the error plasma couldn't and my drivers are configured incorrectly.
I get the following error while updating nvidia graphics:
abhishek bin $ sudo apt-get 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:
fonts-roboto-hinted libechonest2.3 libgsasl7 libjdns2 libjreen1 liblucene++0v5 libntlm0 libqjdns-qt4-2
libqtkeychain0 libquazip1
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
libcuda1-367 nvidia-367 nvidia-opencl-icd-367
3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 69.3 MB/87.5 MB of archives.
After this operation, 16.4 kB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial/main amd64 nvidia-367 amd64 367.18-0ubuntu0~gpu16.04.3 [69.3 MB]
Fetched 25.1 MB in 1min 41s (247 kB/s)
(Reading database ... 295092 files and directories currently installed.)
Preparing to unpack .../libcuda1-367_367.18-0ubuntu0~gpu16.04.3_amd64.deb ...
Job for var-lib-snapd-lib-gl.mount failed. See "systemctl status var-lib-snapd-lib-gl.mount" and "journalctl -xe" for details.
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
dpkg: error processing archive /var/cache/apt/archives/libcuda1-367_367.18-0ubuntu0~gpu16.04.3_amd64.deb (--unpack):
there is no script in the new version of the package - giving up
Preparing to unpack .../nvidia-367_367.18-0ubuntu0~gpu16.04.3_amd64.deb ...
Stopping nvidia-persistenced
nvidia-persistenced: no process found
Done.
Removing all DKMS Modules
Done.
Job for var-lib-snapd-lib-gl.mount failed. See "systemctl status var-lib-snapd-lib-gl.mount" and "journalctl -xe" for details.
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
dpkg: ... it looks like that went OK
Stopping previous nvidia-persistenced
nvidia-persistenced: no process found
Done.
Unpacking nvidia-367 (367.18-0ubuntu0~gpu16.04.3) over (367.18-0ubuntu0~gpu16.04.2) ...
Preparing to unpack .../nvidia-opencl-icd-367_367.18-0ubuntu0~gpu16.04.3_amd64.deb ...
Warning: var-lib-snapd-lib-gl.mount changed on disk. Run 'systemctl daemon-reload' to reload units.
Job for var-lib-snapd-lib-gl.mount failed. See "systemctl status var-lib-snapd-lib-gl.mount" and "journalctl -xe" for details.
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
dpkg: error processing archive /var/cache/apt/archives/nvidia-opencl-icd-367_367.18-0ubuntu0~gpu16.04.3_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.
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for ureadahead (0.100.0-19) ...
ureadahead will be reprofiled on next reboot
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
/var/cache/apt/archives/libcuda1-367_367.18-0ubuntu0~gpu16.04.3_amd64.deb
/var/cache/apt/archives/nvidia-opencl-icd-367_367.18-0ubuntu0~gpu16.04.3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Hardware Info:
abhishek bin $ lspci
00:00.0 Host bridge: Intel Corporation Sky Lake Host Bridge/DRAM Registers (rev 08)
00:02.0 VGA compatible controller: Intel Corporation Sky Lake Integrated Graphics (rev 07)
00:04.0 Signal processing controller: Intel Corporation Skylake Processor Thermal Subsystem (rev 08)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI (rev 21)
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
00:1c.0 PCI bridge: Intel Corporation Device 9d10 (rev f1)
00:1c.4 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port (rev f1)
00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port (rev f1)
00:1d.0 PCI bridge: Intel Corporation Device 9d18 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
01:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 940M] (rev a2)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader (rev 01)
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 0a)
Package present:
abhishek bin $ dpkg -l |grep nvidia
iU nvidia-367 367.18-0ubuntu0~gpu16.04.3 amd64 NVIDIA binary driver - version 367.18
ii nvidia-opencl-icd-367 367.18-0ubuntu0~gpu16.04.2 amd64 NVIDIA OpenCL ICD
ii nvidia-prime 0.8.2 amd64 Tools to enable NVIDIA's Prime
ii nvidia-settings 367.18-0ubuntu0~gpu16.04.1 amd64 Tool for configuring the NVIDIA graphics driver