veronica-c
March 30th, 2019, 06:39 AM
Hi, I am new to Ubuntu and I have some difficulties when I install Cuda 10. I am using Windows 10 and Ubuntu 16.04 dual system.
I installed Cuda to run Caffe successfully before. However, I am trying to using Caffe again now but it failed. I didn't make any changes to my environment files.
It showed that "error while loading shared libraries: libcudart.so.8.0: cannot open shared object file: No such file or directory". I am sure I have PATH and Library PATH.
#CUDA
export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-10.0/lib64
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/veronica/.mujoco/mjpro150/bin
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/cuda-10.0/lib64
What's worse, I didn't find /usr/local/cuda-10.0 folder this time. Thus I decided to re-install Cuda. And I removed older version.
$sudo apt-get purge nvidia-cuda
I used this tutorial to install Cuda. http://www.rignitc.com/2018/12/29/install-cuda-10-with-ubuntu-16-04
I disabled nouveau drivers.
Disable nouveau drivers.
Create a file at /etc/modprobe.d/blacklist-nouveau.conf with the following contents:
blacklist nouveau
options nouveau modeset=0
After that, I regenerated the kernel initrd but it failed.
$ sudo /sbin/mkinitramfs
sudo: /sbin/mkinitramfs: command not found
$ sudo /usr/sbin/mkinitramfs
Usage: /usr/sbin/mkinitramfs [OPTION]... -o outfile [version]
Options:
-c compress Override COMPRESS setting in initramfs.conf.
-d confdir Specify an alternative configuration directory.
-k Keep temporary directory used to make the image.
-o outfile Write to outfile.
-r root Override ROOT setting in initramfs.conf.
See mkinitramfs(8) for further details.
In this process, I am trying to install latest Nvidia driver.
$ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001B06sv00001028sd00003600bc03sc00 i00
vendor : NVIDIA Corporation
driver : nvidia-396 - third-party non-free
driver : nvidia-390 - third-party non-free
driver : nvidia-410 - third-party non-free
driver : nvidia-418 - third-party free recommended
driver : nvidia-415 - third-party free
driver : xserver-xorg-video-nouveau - distro free builtin
driver : nvidia-384 - third-party non-free
$ sudo apt install nvidia-418
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
cuda-toolkit-10-1 : Depends: cuda-documentation-10-1 (>= 10.1.105) but it is not going to be installed
cuda-tools-10-1 : Depends: cuda-visual-tools-10-1 (>= 10.1.105) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
I also tried 'autoinstall driver'
$sudo ubuntu-drivers autoinstallReading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
cuda-toolkit-10-1 : Depends: cuda-documentation-10-1 (>= 10.1.105) but it is not going to be installed
cuda-tools-10-1 : Depends: cuda-visual-tools-10-1 (>= 10.1.105) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
cuda-documentation-10-1 cuda-visual-tools-10-1 nvidia-418
The following NEW packages will be installed:
cuda-documentation-10-1 cuda-visual-tools-10-1 nvidia-418
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
59 not fully installed or removed.
Need to get 0 B/546 MB of archives.
After this operation, 1,168 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 file:/var/cuda-repo-10-1-local-10.1.105-418.39 cuda-visual-tools-10-1 10.1.105-1 [398 MB]
Get:2 file:/var/cuda-repo-10-1-local-10.1.105-418.39 cuda-documentation-10-1 10.1.105-1 [50.4 MB]
(Reading database ... 338150 files and directories currently installed.)
Preparing to unpack .../cuda-visual-tools-10-1_10.1.105-1_amd64.deb ...
Unpacking cuda-visual-tools-10-1 (10.1.105-1) ...
dpkg: error processing archive /var/cuda-repo-10-1-local-10.1.105-418.39/./cuda-visual-tools-10-1_10.1.105-1_amd64.deb (--unpack):
cannot copy extracted data for './usr/local/cuda-10.1/libnvvp/plugins/org.eclipse.birt.chart.engine_4.4.1.v201409160530. jar' to '/usr/local/cuda-10.1/libnvvp/plugins/org.eclipse.birt.chart.engine_4.4.1.v201409160530. jar.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../cuda-documentation-10-1_10.1.105-1_amd64.deb ...
Unpacking cuda-documentation-10-1 (10.1.105-1) ...
dpkg: error processing archive /var/cuda-repo-10-1-local-10.1.105-418.39/./cuda-documentation-10-1_10.1.105-1_amd64.deb (--unpack):
cannot copy extracted data for './usr/local/cuda-10.1/doc/html/npp/group__image__filter__border__32f.html' to '/usr/local/cuda-10.1/doc/html/npp/group__image__filter__border__32f.html.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../nvidia-418_418.56-0ubuntu0~gpu16.04.1_amd64.deb ...
Unpacking nvidia-418 (418.56-0ubuntu0~gpu16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/nvidia-418_418.56-0ubuntu0~gpu16.04.1_amd64.deb (--unpack):
cannot copy extracted data for './usr/lib/nvidia-418/libnvidia-eglcore.so.418.56' to '/usr/lib/nvidia-418/libnvidia-eglcore.so.418.56.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
/var/cuda-repo-10-1-local-10.1.105-418.39/./cuda-visual-tools-10-1_10.1.105-1_amd64.deb
/var/cuda-repo-10-1-local-10.1.105-418.39/./cuda-documentation-10-1_10.1.105-1_amd64.deb
/var/cache/apt/archives/nvidia-418_418.56-0ubuntu0~gpu16.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I thought it happened maybe due to "No space left on device'. I tried the solution which were posted in this link but failed: https://ubuntuforums.org/showthread.php?t=2254523
$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 32G 0 32G 0% /dev
tmpfs 6.3G 122M 6.2G 2% /run
/dev/sda3 21G 21G 0 100% /
tmpfs 32G 191M 32G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 32G 0 32G 0% /sys/fs/cgroup
/dev/sda5 976M 3.7M 972M 1% /boot/efi
/dev/sda6 1.3T 266G 943G 23% /home
tmpfs 6.3G 152K 6.3G 1% /run/user/1000
/dev/sda2 492G 1.8G 490G 1% /media/veronica/DATA
$ df -l
Filesystem 1K-blocks Used Available Use% Mounted on
udev 32803592 0 32803592 0% /dev
tmpfs 6567704 124700 6443004 2% /run
/dev/sda3 21690236 21602756 0 100% /
tmpfs 32838504 195472 32643032 1% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
tmpfs 32838504 0 32838504 0% /sys/fs/cgroup
/dev/sda5 998480 3740 994740 1% /boot/efi
/dev/sda6 1335007296 278843040 988326768 23% /home
tmpfs 6567704 152 6567552 1% /run/user/1000
/dev/sda2 515196924 1784364 513412560 1% /media/veronica/DATA
And I want to remove those older kernels.
$ dpkg -l | grep -G "linux.*image.*"
ii linux-base 4.5ubuntu1~16.04.1 all Linux image base package
rc linux-image-4.15.0-29-generic 4.15.0-29.31~16.04.1 amd64 Signed kernel image generic
rc linux-image-4.15.0-34-generic 4.15.0-34.37~16.04.1 amd64 Signed kernel image generic
ii linux-image-4.15.0-36-generic 4.15.0-36.39~16.04.1 amd64 Signed kernel image generic
rc linux-image-4.15.0-38-generic 4.15.0-38.41~16.04.1 amd64 Signed kernel image generic
rc linux-image-4.15.0-39-generic 4.15.0-39.42~16.04.1 amd64 Signed kernel image generic
rc linux-image-4.15.0-42-generic 4.15.0-42.45~16.04.1 amd64 Signed kernel image generic
rc linux-image-4.15.0-43-generic 4.15.0-43.46~16.04.1 amd64 Signed kernel image generic
ii linux-image-4.15.0-45-generic 4.15.0-45.48~16.04.1 amd64 Signed kernel image generic
ii linux-image-4.15.0-46-generic 4.15.0-46.49~16.04.1 amd64 Signed kernel image generic
ii linux-image-generic-hwe-16.04 4.15.0.46.67 amd64 Generic Linux kernel image
$ sudo dpkg -P linux-headers-4.15.0-{29,34,36,38,39,42,43,45}
dpkg: warning: ignoring request to remove linux-headers-4.15.0-29 which isn't installed
dpkg: dependency problems prevent removal of linux-headers-4.15.0-34:
linux-headers-4.15.0-34-generic depends on linux-headers-4.15.0-34.
dpkg: error processing package linux-headers-4.15.0-34 (--purge):
dependency problems - not removing
dpkg: dependency problems prevent removal of linux-headers-4.15.0-36:
linux-headers-4.15.0-36-generic depends on linux-headers-4.15.0-36.
dpkg: error processing package linux-headers-4.15.0-36 (--purge):
dependency problems - not removing
dpkg: warning: ignoring request to remove linux-headers-4.15.0-38 which isn't installed
dpkg: warning: ignoring request to remove linux-headers-4.15.0-39 which isn't installed
dpkg: warning: ignoring request to remove linux-headers-4.15.0-42 which isn't installed
dpkg: warning: ignoring request to remove linux-headers-4.15.0-43 which isn't installed
dpkg: dependency problems prevent removal of linux-headers-4.15.0-45:
linux-headers-4.15.0-45-generic depends on linux-headers-4.15.0-45.
dpkg: error processing package linux-headers-4.15.0-45 (--purge):
dependency problems - not removing
Errors were encountered while processing:
linux-headers-4.15.0-34
linux-headers-4.15.0-36
linux-headers-4.15.0-45
$ sudo dpkg -P linux-image-4.15.0-{29,34,36,38,39,42,43}-generic
dpkg: warning: ignoring request to remove linux-image-4.15.0-29-generic which isn't installed
dpkg: warning: ignoring request to remove linux-image-4.15.0-34-generic which isn't installed
dpkg: warning: ignoring request to remove linux-image-4.15.0-36-generic which isn't installed
dpkg: warning: ignoring request to remove linux-image-4.15.0-38-generic which isn't installed
dpkg: warning: ignoring request to remove linux-image-4.15.0-39-generic which isn't installed
dpkg: warning: ignoring request to remove linux-image-4.15.0-42-generic which isn't installed
dpkg: warning: ignoring request to remove linux-image-4.15.0-43-generic which isn't installed
$ sudo dpkg --purge linux-headers-4.15.0-{29,34,36,38,39,42,43}
dpkg: warning: ignoring request to remove linux-headers-4.15.0-29 which isn't installed
dpkg: dependency problems prevent removal of linux-headers-4.15.0-34:
linux-headers-4.15.0-34-generic depends on linux-headers-4.15.0-34.
dpkg: error processing package linux-headers-4.15.0-34 (--purge):
dependency problems - not removing
dpkg: dependency problems prevent removal of linux-headers-4.15.0-36:
linux-headers-4.15.0-36-generic depends on linux-headers-4.15.0-36.
dpkg: error processing package linux-headers-4.15.0-36 (--purge):
dependency problems - not removing
dpkg: warning: ignoring request to remove linux-headers-4.15.0-38 which isn't installed
dpkg: warning: ignoring request to remove linux-headers-4.15.0-39 which isn't installed
dpkg: warning: ignoring request to remove linux-headers-4.15.0-42 which isn't installed
dpkg: warning: ignoring request to remove linux-headers-4.15.0-43 which isn't installed
Errors were encountered while processing:
linux-headers-4.15.0-34
linux-headers-4.15.0-36
$ sudo dpkg --remove --force-remove-reinstreq linux-image-extra-4.15.0-46-generic
dpkg: warning: ignoring request to remove linux-image-extra-4.15.0-46-generic which isn't installed
$ for i in /boot/vmlinuz* ; do dpkg -S $i | egrep -v $(uname -r); done |cut -d- -f3-4
4.15.0-45
$ sudo dpkg --remove --force-remove-reinstreq linux-image-4.15.0-45-generic
dpkg: dependency problems prevent removal of linux-image-4.15.0-45-generic:
linux-modules-extra-4.15.0-45-generic depends on linux-image-4.15.0-45-generic | linux-image-unsigned-4.15.0-45-generic; however:
Package linux-image-4.15.0-45-generic is to be removed.
Package linux-image-unsigned-4.15.0-45-generic is not installed.
dpkg: error processing package linux-image-4.15.0-45-generic (--remove):
dependency problems - not removing
Errors were encountered while processing:
linux-image-4.15.0-45-generic
$ uname -r && dpkg --get-selections linux4.15.0-46-generic
dpkg: no packages found matching linux
$ sudo apt install linux-generic-hwe-16.04
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-generic-hwe-16.04 is already the newest version (4.15.0.46.67).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
cuda-drivers : Depends: nvidia-418 (>= 418.40.04) but it is not going to be installed
cuda-toolkit-10-1 : Depends: cuda-documentation-10-1 (>= 10.1.105) but it is not going to be installed
cuda-tools-10-1 : Depends: cuda-visual-tools-10-1 (>= 10.1.105) but it is not going to be installed
libcuda1-418 : Depends: nvidia-418 (>= 418.56) but it is not going to be installed
nvidia-418-dev : Depends: nvidia-418 (>= 418.56) but it is not going to be installed
nvidia-opencl-icd-418 : Depends: nvidia-418 (>= 418.56) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.15.0-36 linux-headers-4.15.0-36-generic
linux-modules-4.15.0-36-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
cuda-documentation-10-1 cuda-visual-tools-10-1 nvidia-418
The following NEW packages will be installed:
cuda-documentation-10-1 cuda-visual-tools-10-1 nvidia-418
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
59 not fully installed or removed.
Need to get 0 B/546 MB of archives.
After this operation, 1,168 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 file:/var/cuda-repo-10-1-local-10.1.105-418.39 cuda-visual-tools-10-1 10.1.105-1 [398 MB]
Get:2 file:/var/cuda-repo-10-1-local-10.1.105-418.39 cuda-documentation-10-1 10.1.105-1 [50.4 MB]
(Reading database ... 338146 files and directories currently installed.)
Preparing to unpack .../cuda-visual-tools-10-1_10.1.105-1_amd64.deb ...
Unpacking cuda-visual-tools-10-1 (10.1.105-1) ...
dpkg: error processing archive /var/cuda-repo-10-1-local-10.1.105-418.39/./cuda-visual-tools-10-1_10.1.105-1_amd64.deb (--unpack):
cannot copy extracted data for './usr/local/cuda-10.1/nsightee_plugins/com.nvidia.cuda.repo-1.0.0-SNAPSHOT.zip' to '/usr/local/cuda-10.1/nsightee_plugins/com.nvidia.cuda.repo-1.0.0-SNAPSHOT.zip.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../cuda-documentation-10-1_10.1.105-1_amd64.deb ...
Unpacking cuda-documentation-10-1 (10.1.105-1) ...
dpkg: error processing archive /var/cuda-repo-10-1-local-10.1.105-418.39/./cuda-documentation-10-1_10.1.105-1_amd64.deb (--unpack):
cannot copy extracted data for './usr/local/cuda-10.1/doc/html/export/npp/group__image__resize__square__pixel.html' to '/usr/local/cuda-10.1/doc/html/export/npp/group__image__resize__square__pixel.html.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../nvidia-418_418.56-0ubuntu0~gpu16.04.1_amd64.deb ...
Unpacking nvidia-418 (418.56-0ubuntu0~gpu16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/nvidia-418_418.56-0ubuntu0~gpu16.04.1_amd64.deb (--unpack):
cannot copy extracted data for './usr/lib/nvidia-418/libnvidia-rtcore.so.418.56' to '/usr/lib/nvidia-418/libnvidia-rtcore.so.418.56.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
/var/cuda-repo-10-1-local-10.1.105-418.39/./cuda-visual-tools-10-1_10.1.105-1_amd64.deb
/var/cuda-repo-10-1-local-10.1.105-418.39/./cuda-documentation-10-1_10.1.105-1_amd64.deb
/var/cache/apt/archives/nvidia-418_418.56-0ubuntu0~gpu16.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
cuda-drivers : Depends: nvidia-418 (>= 418.40.04) but it is not installed
cuda-toolkit-10-1 : Depends: cuda-documentation-10-1 (>= 10.1.105) but it is not installed
cuda-tools-10-1 : Depends: cuda-visual-tools-10-1 (>= 10.1.105) but it is not installed
libcuda1-418 : Depends: nvidia-418 (>= 418.56) but it is not installed
nvidia-418-dev : Depends: nvidia-418 (>= 418.56) but it is not installed
nvidia-opencl-icd-418 : Depends: nvidia-418 (>= 418.56) but it is not installed
E: Unmet dependencies. Try using -f.
$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
cuda-drivers : Depends: nvidia-418 (>= 418.40.04) but it is not installed
cuda-toolkit-10-1 : Depends: cuda-documentation-10-1 (>= 10.1.105) but it is not installed
cuda-tools-10-1 : Depends: cuda-visual-tools-10-1 (>= 10.1.105) but it is not installed
libcuda1-418 : Depends: nvidia-418 (>= 418.56) but it is not installed
nvidia-418-dev : Depends: nvidia-418 (>= 418.56) but it is not installed
nvidia-opencl-icd-418 : Depends: nvidia-418 (>= 418.56) but it is not installed
E: Unmet dependencies. Try using -f.
$ sudo du -sh /var/cache/apt/archives
545M /var/cache/apt/archives
$ sudo apt-get clean
$ sudo spt-get autoremove --purge
sudo: spt-get: command not found
$ sudo apt-get autoremove --purge
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
cuda-drivers : Depends: nvidia-418 (>= 418.40.04) but it is not installed
cuda-toolkit-10-1 : Depends: cuda-documentation-10-1 (>= 10.1.105) but it is not installed
cuda-tools-10-1 : Depends: cuda-visual-tools-10-1 (>= 10.1.105) but it is not installed
libcuda1-418 : Depends: nvidia-418 (>= 418.56) but it is not installed
nvidia-418-dev : Depends: nvidia-418 (>= 418.56) but it is not installed
nvidia-opencl-icd-418 : Depends: nvidia-418 (>= 418.56) but it is not installed
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/teamviewer.list:25 and /etc/apt/sources.list.d/teamviewer.list:30
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/teamviewer.list:25 and /etc/apt/sources.list.d/teamviewer.list:30
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/teamviewer.list:25 and /etc/apt/sources.list.d/teamviewer.list:30
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/teamviewer.list:25 and /etc/apt/sources.list.d/teamviewer.list:30
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/teamviewer.list:25 and /etc/apt/sources.list.d/teamviewer.list:30
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/teamviewer.list:25 and /etc/apt/sources.list.d/teamviewer.list:30
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/teamviewer.list:25 and /etc/apt/sources.list.d/teamviewer.list:30
E: Unmet dependencies. Try using -f.
$ sudo apt-get -f autoremove --purge
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
cuda-documentation-10-1 cuda-visual-tools-10-1 nvidia-418
The following packages will be REMOVED:
linux-headers-4.15.0-36* linux-headers-4.15.0-36-generic*
linux-modules-4.15.0-36-generic*
The following NEW packages will be installed:
cuda-documentation-10-1 cuda-visual-tools-10-1 nvidia-418
0 upgraded, 3 newly installed, 3 to remove and 0 not upgraded.
59 not fully installed or removed.
Need to get 97.4 MB/546 MB of archives.
After this operation, 1,012 MB of additional disk space will be used.
E: You don't have enough free space in /var/cache/apt/archives/.
$ sudo du -sh /var/cache/apt/archives
52K /var/cache/apt/archives
veronica@veronica-Alienware-Aurora-R7:~$ dpkg --get-selections | grep linux-image
linux-image-4.15.0-45-generic deinstall
linux-image-4.15.0-46-generic install
linux-image-generic-hwe-16.04 install
$ sudo ubuntu-drivers autoinstall
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
cuda-toolkit-10-1 : Depends: cuda-documentation-10-1 (>= 10.1.105) but it is not going to be installed
cuda-tools-10-1 : Depends: cuda-visual-tools-10-1 (>= 10.1.105) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
$ sudo apt install nvidia-418
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
cuda-toolkit-10-1 : Depends: cuda-documentation-10-1 (>= 10.1.105) but it is not going to be installed
cuda-tools-10-1 : Depends: cuda-visual-tools-10-1 (>= 10.1.105) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
$ sudo apt-get -f install
[sudo] password for veronica:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.15.0-36 linux-headers-4.15.0-36-generic
linux-modules-4.15.0-36-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
cuda-documentation-10-1 cuda-visual-tools-10-1 nvidia-418
The following NEW packages will be installed:
cuda-documentation-10-1 cuda-visual-tools-10-1 nvidia-418
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
59 not fully installed or removed.
Need to get 97.4 MB/546 MB of archives.
After this operation, 1,168 MB of additional disk space will be used.
E: You don't have enough free space in /var/cache/apt/archives/.
Please help me with that. I am really struggled with it for two days. Thank you in advanced!
I installed Cuda to run Caffe successfully before. However, I am trying to using Caffe again now but it failed. I didn't make any changes to my environment files.
It showed that "error while loading shared libraries: libcudart.so.8.0: cannot open shared object file: No such file or directory". I am sure I have PATH and Library PATH.
#CUDA
export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-10.0/lib64
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/veronica/.mujoco/mjpro150/bin
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/cuda-10.0/lib64
What's worse, I didn't find /usr/local/cuda-10.0 folder this time. Thus I decided to re-install Cuda. And I removed older version.
$sudo apt-get purge nvidia-cuda
I used this tutorial to install Cuda. http://www.rignitc.com/2018/12/29/install-cuda-10-with-ubuntu-16-04
I disabled nouveau drivers.
Disable nouveau drivers.
Create a file at /etc/modprobe.d/blacklist-nouveau.conf with the following contents:
blacklist nouveau
options nouveau modeset=0
After that, I regenerated the kernel initrd but it failed.
$ sudo /sbin/mkinitramfs
sudo: /sbin/mkinitramfs: command not found
$ sudo /usr/sbin/mkinitramfs
Usage: /usr/sbin/mkinitramfs [OPTION]... -o outfile [version]
Options:
-c compress Override COMPRESS setting in initramfs.conf.
-d confdir Specify an alternative configuration directory.
-k Keep temporary directory used to make the image.
-o outfile Write to outfile.
-r root Override ROOT setting in initramfs.conf.
See mkinitramfs(8) for further details.
In this process, I am trying to install latest Nvidia driver.
$ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001B06sv00001028sd00003600bc03sc00 i00
vendor : NVIDIA Corporation
driver : nvidia-396 - third-party non-free
driver : nvidia-390 - third-party non-free
driver : nvidia-410 - third-party non-free
driver : nvidia-418 - third-party free recommended
driver : nvidia-415 - third-party free
driver : xserver-xorg-video-nouveau - distro free builtin
driver : nvidia-384 - third-party non-free
$ sudo apt install nvidia-418
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
cuda-toolkit-10-1 : Depends: cuda-documentation-10-1 (>= 10.1.105) but it is not going to be installed
cuda-tools-10-1 : Depends: cuda-visual-tools-10-1 (>= 10.1.105) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
I also tried 'autoinstall driver'
$sudo ubuntu-drivers autoinstallReading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
cuda-toolkit-10-1 : Depends: cuda-documentation-10-1 (>= 10.1.105) but it is not going to be installed
cuda-tools-10-1 : Depends: cuda-visual-tools-10-1 (>= 10.1.105) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
cuda-documentation-10-1 cuda-visual-tools-10-1 nvidia-418
The following NEW packages will be installed:
cuda-documentation-10-1 cuda-visual-tools-10-1 nvidia-418
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
59 not fully installed or removed.
Need to get 0 B/546 MB of archives.
After this operation, 1,168 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 file:/var/cuda-repo-10-1-local-10.1.105-418.39 cuda-visual-tools-10-1 10.1.105-1 [398 MB]
Get:2 file:/var/cuda-repo-10-1-local-10.1.105-418.39 cuda-documentation-10-1 10.1.105-1 [50.4 MB]
(Reading database ... 338150 files and directories currently installed.)
Preparing to unpack .../cuda-visual-tools-10-1_10.1.105-1_amd64.deb ...
Unpacking cuda-visual-tools-10-1 (10.1.105-1) ...
dpkg: error processing archive /var/cuda-repo-10-1-local-10.1.105-418.39/./cuda-visual-tools-10-1_10.1.105-1_amd64.deb (--unpack):
cannot copy extracted data for './usr/local/cuda-10.1/libnvvp/plugins/org.eclipse.birt.chart.engine_4.4.1.v201409160530. jar' to '/usr/local/cuda-10.1/libnvvp/plugins/org.eclipse.birt.chart.engine_4.4.1.v201409160530. jar.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../cuda-documentation-10-1_10.1.105-1_amd64.deb ...
Unpacking cuda-documentation-10-1 (10.1.105-1) ...
dpkg: error processing archive /var/cuda-repo-10-1-local-10.1.105-418.39/./cuda-documentation-10-1_10.1.105-1_amd64.deb (--unpack):
cannot copy extracted data for './usr/local/cuda-10.1/doc/html/npp/group__image__filter__border__32f.html' to '/usr/local/cuda-10.1/doc/html/npp/group__image__filter__border__32f.html.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../nvidia-418_418.56-0ubuntu0~gpu16.04.1_amd64.deb ...
Unpacking nvidia-418 (418.56-0ubuntu0~gpu16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/nvidia-418_418.56-0ubuntu0~gpu16.04.1_amd64.deb (--unpack):
cannot copy extracted data for './usr/lib/nvidia-418/libnvidia-eglcore.so.418.56' to '/usr/lib/nvidia-418/libnvidia-eglcore.so.418.56.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
/var/cuda-repo-10-1-local-10.1.105-418.39/./cuda-visual-tools-10-1_10.1.105-1_amd64.deb
/var/cuda-repo-10-1-local-10.1.105-418.39/./cuda-documentation-10-1_10.1.105-1_amd64.deb
/var/cache/apt/archives/nvidia-418_418.56-0ubuntu0~gpu16.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I thought it happened maybe due to "No space left on device'. I tried the solution which were posted in this link but failed: https://ubuntuforums.org/showthread.php?t=2254523
$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 32G 0 32G 0% /dev
tmpfs 6.3G 122M 6.2G 2% /run
/dev/sda3 21G 21G 0 100% /
tmpfs 32G 191M 32G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 32G 0 32G 0% /sys/fs/cgroup
/dev/sda5 976M 3.7M 972M 1% /boot/efi
/dev/sda6 1.3T 266G 943G 23% /home
tmpfs 6.3G 152K 6.3G 1% /run/user/1000
/dev/sda2 492G 1.8G 490G 1% /media/veronica/DATA
$ df -l
Filesystem 1K-blocks Used Available Use% Mounted on
udev 32803592 0 32803592 0% /dev
tmpfs 6567704 124700 6443004 2% /run
/dev/sda3 21690236 21602756 0 100% /
tmpfs 32838504 195472 32643032 1% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
tmpfs 32838504 0 32838504 0% /sys/fs/cgroup
/dev/sda5 998480 3740 994740 1% /boot/efi
/dev/sda6 1335007296 278843040 988326768 23% /home
tmpfs 6567704 152 6567552 1% /run/user/1000
/dev/sda2 515196924 1784364 513412560 1% /media/veronica/DATA
And I want to remove those older kernels.
$ dpkg -l | grep -G "linux.*image.*"
ii linux-base 4.5ubuntu1~16.04.1 all Linux image base package
rc linux-image-4.15.0-29-generic 4.15.0-29.31~16.04.1 amd64 Signed kernel image generic
rc linux-image-4.15.0-34-generic 4.15.0-34.37~16.04.1 amd64 Signed kernel image generic
ii linux-image-4.15.0-36-generic 4.15.0-36.39~16.04.1 amd64 Signed kernel image generic
rc linux-image-4.15.0-38-generic 4.15.0-38.41~16.04.1 amd64 Signed kernel image generic
rc linux-image-4.15.0-39-generic 4.15.0-39.42~16.04.1 amd64 Signed kernel image generic
rc linux-image-4.15.0-42-generic 4.15.0-42.45~16.04.1 amd64 Signed kernel image generic
rc linux-image-4.15.0-43-generic 4.15.0-43.46~16.04.1 amd64 Signed kernel image generic
ii linux-image-4.15.0-45-generic 4.15.0-45.48~16.04.1 amd64 Signed kernel image generic
ii linux-image-4.15.0-46-generic 4.15.0-46.49~16.04.1 amd64 Signed kernel image generic
ii linux-image-generic-hwe-16.04 4.15.0.46.67 amd64 Generic Linux kernel image
$ sudo dpkg -P linux-headers-4.15.0-{29,34,36,38,39,42,43,45}
dpkg: warning: ignoring request to remove linux-headers-4.15.0-29 which isn't installed
dpkg: dependency problems prevent removal of linux-headers-4.15.0-34:
linux-headers-4.15.0-34-generic depends on linux-headers-4.15.0-34.
dpkg: error processing package linux-headers-4.15.0-34 (--purge):
dependency problems - not removing
dpkg: dependency problems prevent removal of linux-headers-4.15.0-36:
linux-headers-4.15.0-36-generic depends on linux-headers-4.15.0-36.
dpkg: error processing package linux-headers-4.15.0-36 (--purge):
dependency problems - not removing
dpkg: warning: ignoring request to remove linux-headers-4.15.0-38 which isn't installed
dpkg: warning: ignoring request to remove linux-headers-4.15.0-39 which isn't installed
dpkg: warning: ignoring request to remove linux-headers-4.15.0-42 which isn't installed
dpkg: warning: ignoring request to remove linux-headers-4.15.0-43 which isn't installed
dpkg: dependency problems prevent removal of linux-headers-4.15.0-45:
linux-headers-4.15.0-45-generic depends on linux-headers-4.15.0-45.
dpkg: error processing package linux-headers-4.15.0-45 (--purge):
dependency problems - not removing
Errors were encountered while processing:
linux-headers-4.15.0-34
linux-headers-4.15.0-36
linux-headers-4.15.0-45
$ sudo dpkg -P linux-image-4.15.0-{29,34,36,38,39,42,43}-generic
dpkg: warning: ignoring request to remove linux-image-4.15.0-29-generic which isn't installed
dpkg: warning: ignoring request to remove linux-image-4.15.0-34-generic which isn't installed
dpkg: warning: ignoring request to remove linux-image-4.15.0-36-generic which isn't installed
dpkg: warning: ignoring request to remove linux-image-4.15.0-38-generic which isn't installed
dpkg: warning: ignoring request to remove linux-image-4.15.0-39-generic which isn't installed
dpkg: warning: ignoring request to remove linux-image-4.15.0-42-generic which isn't installed
dpkg: warning: ignoring request to remove linux-image-4.15.0-43-generic which isn't installed
$ sudo dpkg --purge linux-headers-4.15.0-{29,34,36,38,39,42,43}
dpkg: warning: ignoring request to remove linux-headers-4.15.0-29 which isn't installed
dpkg: dependency problems prevent removal of linux-headers-4.15.0-34:
linux-headers-4.15.0-34-generic depends on linux-headers-4.15.0-34.
dpkg: error processing package linux-headers-4.15.0-34 (--purge):
dependency problems - not removing
dpkg: dependency problems prevent removal of linux-headers-4.15.0-36:
linux-headers-4.15.0-36-generic depends on linux-headers-4.15.0-36.
dpkg: error processing package linux-headers-4.15.0-36 (--purge):
dependency problems - not removing
dpkg: warning: ignoring request to remove linux-headers-4.15.0-38 which isn't installed
dpkg: warning: ignoring request to remove linux-headers-4.15.0-39 which isn't installed
dpkg: warning: ignoring request to remove linux-headers-4.15.0-42 which isn't installed
dpkg: warning: ignoring request to remove linux-headers-4.15.0-43 which isn't installed
Errors were encountered while processing:
linux-headers-4.15.0-34
linux-headers-4.15.0-36
$ sudo dpkg --remove --force-remove-reinstreq linux-image-extra-4.15.0-46-generic
dpkg: warning: ignoring request to remove linux-image-extra-4.15.0-46-generic which isn't installed
$ for i in /boot/vmlinuz* ; do dpkg -S $i | egrep -v $(uname -r); done |cut -d- -f3-4
4.15.0-45
$ sudo dpkg --remove --force-remove-reinstreq linux-image-4.15.0-45-generic
dpkg: dependency problems prevent removal of linux-image-4.15.0-45-generic:
linux-modules-extra-4.15.0-45-generic depends on linux-image-4.15.0-45-generic | linux-image-unsigned-4.15.0-45-generic; however:
Package linux-image-4.15.0-45-generic is to be removed.
Package linux-image-unsigned-4.15.0-45-generic is not installed.
dpkg: error processing package linux-image-4.15.0-45-generic (--remove):
dependency problems - not removing
Errors were encountered while processing:
linux-image-4.15.0-45-generic
$ uname -r && dpkg --get-selections linux4.15.0-46-generic
dpkg: no packages found matching linux
$ sudo apt install linux-generic-hwe-16.04
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-generic-hwe-16.04 is already the newest version (4.15.0.46.67).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
cuda-drivers : Depends: nvidia-418 (>= 418.40.04) but it is not going to be installed
cuda-toolkit-10-1 : Depends: cuda-documentation-10-1 (>= 10.1.105) but it is not going to be installed
cuda-tools-10-1 : Depends: cuda-visual-tools-10-1 (>= 10.1.105) but it is not going to be installed
libcuda1-418 : Depends: nvidia-418 (>= 418.56) but it is not going to be installed
nvidia-418-dev : Depends: nvidia-418 (>= 418.56) but it is not going to be installed
nvidia-opencl-icd-418 : Depends: nvidia-418 (>= 418.56) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.15.0-36 linux-headers-4.15.0-36-generic
linux-modules-4.15.0-36-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
cuda-documentation-10-1 cuda-visual-tools-10-1 nvidia-418
The following NEW packages will be installed:
cuda-documentation-10-1 cuda-visual-tools-10-1 nvidia-418
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
59 not fully installed or removed.
Need to get 0 B/546 MB of archives.
After this operation, 1,168 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 file:/var/cuda-repo-10-1-local-10.1.105-418.39 cuda-visual-tools-10-1 10.1.105-1 [398 MB]
Get:2 file:/var/cuda-repo-10-1-local-10.1.105-418.39 cuda-documentation-10-1 10.1.105-1 [50.4 MB]
(Reading database ... 338146 files and directories currently installed.)
Preparing to unpack .../cuda-visual-tools-10-1_10.1.105-1_amd64.deb ...
Unpacking cuda-visual-tools-10-1 (10.1.105-1) ...
dpkg: error processing archive /var/cuda-repo-10-1-local-10.1.105-418.39/./cuda-visual-tools-10-1_10.1.105-1_amd64.deb (--unpack):
cannot copy extracted data for './usr/local/cuda-10.1/nsightee_plugins/com.nvidia.cuda.repo-1.0.0-SNAPSHOT.zip' to '/usr/local/cuda-10.1/nsightee_plugins/com.nvidia.cuda.repo-1.0.0-SNAPSHOT.zip.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../cuda-documentation-10-1_10.1.105-1_amd64.deb ...
Unpacking cuda-documentation-10-1 (10.1.105-1) ...
dpkg: error processing archive /var/cuda-repo-10-1-local-10.1.105-418.39/./cuda-documentation-10-1_10.1.105-1_amd64.deb (--unpack):
cannot copy extracted data for './usr/local/cuda-10.1/doc/html/export/npp/group__image__resize__square__pixel.html' to '/usr/local/cuda-10.1/doc/html/export/npp/group__image__resize__square__pixel.html.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../nvidia-418_418.56-0ubuntu0~gpu16.04.1_amd64.deb ...
Unpacking nvidia-418 (418.56-0ubuntu0~gpu16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/nvidia-418_418.56-0ubuntu0~gpu16.04.1_amd64.deb (--unpack):
cannot copy extracted data for './usr/lib/nvidia-418/libnvidia-rtcore.so.418.56' to '/usr/lib/nvidia-418/libnvidia-rtcore.so.418.56.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
/var/cuda-repo-10-1-local-10.1.105-418.39/./cuda-visual-tools-10-1_10.1.105-1_amd64.deb
/var/cuda-repo-10-1-local-10.1.105-418.39/./cuda-documentation-10-1_10.1.105-1_amd64.deb
/var/cache/apt/archives/nvidia-418_418.56-0ubuntu0~gpu16.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
cuda-drivers : Depends: nvidia-418 (>= 418.40.04) but it is not installed
cuda-toolkit-10-1 : Depends: cuda-documentation-10-1 (>= 10.1.105) but it is not installed
cuda-tools-10-1 : Depends: cuda-visual-tools-10-1 (>= 10.1.105) but it is not installed
libcuda1-418 : Depends: nvidia-418 (>= 418.56) but it is not installed
nvidia-418-dev : Depends: nvidia-418 (>= 418.56) but it is not installed
nvidia-opencl-icd-418 : Depends: nvidia-418 (>= 418.56) but it is not installed
E: Unmet dependencies. Try using -f.
$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
cuda-drivers : Depends: nvidia-418 (>= 418.40.04) but it is not installed
cuda-toolkit-10-1 : Depends: cuda-documentation-10-1 (>= 10.1.105) but it is not installed
cuda-tools-10-1 : Depends: cuda-visual-tools-10-1 (>= 10.1.105) but it is not installed
libcuda1-418 : Depends: nvidia-418 (>= 418.56) but it is not installed
nvidia-418-dev : Depends: nvidia-418 (>= 418.56) but it is not installed
nvidia-opencl-icd-418 : Depends: nvidia-418 (>= 418.56) but it is not installed
E: Unmet dependencies. Try using -f.
$ sudo du -sh /var/cache/apt/archives
545M /var/cache/apt/archives
$ sudo apt-get clean
$ sudo spt-get autoremove --purge
sudo: spt-get: command not found
$ sudo apt-get autoremove --purge
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
cuda-drivers : Depends: nvidia-418 (>= 418.40.04) but it is not installed
cuda-toolkit-10-1 : Depends: cuda-documentation-10-1 (>= 10.1.105) but it is not installed
cuda-tools-10-1 : Depends: cuda-visual-tools-10-1 (>= 10.1.105) but it is not installed
libcuda1-418 : Depends: nvidia-418 (>= 418.56) but it is not installed
nvidia-418-dev : Depends: nvidia-418 (>= 418.56) but it is not installed
nvidia-opencl-icd-418 : Depends: nvidia-418 (>= 418.56) but it is not installed
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/teamviewer.list:25 and /etc/apt/sources.list.d/teamviewer.list:30
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/teamviewer.list:25 and /etc/apt/sources.list.d/teamviewer.list:30
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/teamviewer.list:25 and /etc/apt/sources.list.d/teamviewer.list:30
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/teamviewer.list:25 and /etc/apt/sources.list.d/teamviewer.list:30
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/teamviewer.list:25 and /etc/apt/sources.list.d/teamviewer.list:30
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/teamviewer.list:25 and /etc/apt/sources.list.d/teamviewer.list:30
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/teamviewer.list:25 and /etc/apt/sources.list.d/teamviewer.list:30
E: Unmet dependencies. Try using -f.
$ sudo apt-get -f autoremove --purge
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
cuda-documentation-10-1 cuda-visual-tools-10-1 nvidia-418
The following packages will be REMOVED:
linux-headers-4.15.0-36* linux-headers-4.15.0-36-generic*
linux-modules-4.15.0-36-generic*
The following NEW packages will be installed:
cuda-documentation-10-1 cuda-visual-tools-10-1 nvidia-418
0 upgraded, 3 newly installed, 3 to remove and 0 not upgraded.
59 not fully installed or removed.
Need to get 97.4 MB/546 MB of archives.
After this operation, 1,012 MB of additional disk space will be used.
E: You don't have enough free space in /var/cache/apt/archives/.
$ sudo du -sh /var/cache/apt/archives
52K /var/cache/apt/archives
veronica@veronica-Alienware-Aurora-R7:~$ dpkg --get-selections | grep linux-image
linux-image-4.15.0-45-generic deinstall
linux-image-4.15.0-46-generic install
linux-image-generic-hwe-16.04 install
$ sudo ubuntu-drivers autoinstall
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
cuda-toolkit-10-1 : Depends: cuda-documentation-10-1 (>= 10.1.105) but it is not going to be installed
cuda-tools-10-1 : Depends: cuda-visual-tools-10-1 (>= 10.1.105) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
$ sudo apt install nvidia-418
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
cuda-toolkit-10-1 : Depends: cuda-documentation-10-1 (>= 10.1.105) but it is not going to be installed
cuda-tools-10-1 : Depends: cuda-visual-tools-10-1 (>= 10.1.105) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
$ sudo apt-get -f install
[sudo] password for veronica:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.15.0-36 linux-headers-4.15.0-36-generic
linux-modules-4.15.0-36-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
cuda-documentation-10-1 cuda-visual-tools-10-1 nvidia-418
The following NEW packages will be installed:
cuda-documentation-10-1 cuda-visual-tools-10-1 nvidia-418
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
59 not fully installed or removed.
Need to get 97.4 MB/546 MB of archives.
After this operation, 1,168 MB of additional disk space will be used.
E: You don't have enough free space in /var/cache/apt/archives/.
Please help me with that. I am really struggled with it for two days. Thank you in advanced!