This is very annoying. I cannot update Ubuntu. The updates all fail. I have not tinkered with Ubuntu, or changed anything. It is a stock Ubuntu. Now Retropie have stopped working as well, after the last update. Ubuntu is very fragile it seems? I install something, and it works fine. Then I do an update and hell breaks loose.
I do not understand where to even begin to look. The symptoms are that updates can not be installed. The GUI says something like "failed update" or something similar. So I tried to update again from command line to catch the output.
$ sudo apt update
works fine
But this upgrade command causes problems. How can I run some commands giving output, to give you information for debugging?
$ sudo apt 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:
glib-networking:i386 gstreamer1.0-x:i386 libaa1:i386 libavc1394-0:i386 libcaca0:i386 libdv4:i386 libfprint-2-tod1 libgstreamer-plugins-good1.0-0:i386
libgudev-1.0-0:i386 libiec61883-0:i386 libllvm9 libllvm9:i386 libnvidia-common-418-server libnvidia-common-435 libnvidia-common-440
libnvidia-common-440-server libnvidia-common-450-server libproxy1v5:i386 libraw1394-11:i386 libsamplerate0:i386 libshout3:i386 libslang2:i386
libsoup2.4-1:i386 libtag1v5:i386 libtag1v5-vanilla:i386 libxv1:i386 linux-headers-5.4.0-48 linux-headers-5.4.0-48-generic linux-image-5.4.0-48-generic
linux-modules-5.4.0-48-generic linux-modules-extra-5.4.0-48-generic
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
firefox firefox-locale-en libcryptsetup12 libnetplan0 libnvidia-common-450-server netplan.io python3-distupgrade ubuntu-release-upgrader-core
ubuntu-release-upgrader-gtk
9 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 57,0 MB/57,0 MB of archives.
After this operation, 686 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://se.archive.ubuntu.com/ubuntu focal-updates/main amd64 libcryptsetup12 amd64 2:2.2.2-3ubuntu2.3 [183 kB]
Get:2 http://se.archive.ubuntu.com/ubuntu focal-updates/main amd64 libnetplan0 amd64 0.100-0ubuntu4~20.04.2 [28,9 kB]
Get:3 http://se.archive.ubuntu.com/ubuntu focal-updates/main amd64 netplan.io amd64 0.100-0ubuntu4~20.04.2 [83,4 kB]
Get:4 http://se.archive.ubuntu.com/ubuntu focal-updates/main amd64 ubuntu-release-upgrader-gtk all 1:20.04.28 [9 364 B]
Get:5 http://se.archive.ubuntu.com/ubuntu focal-updates/main amd64 ubuntu-release-upgrader-core all 1:20.04.28 [23,7 kB]
Get:6 http://se.archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-distupgrade all 1:20.04.28 [104 kB]
Get:8 http://se.archive.ubuntu.com/ubuntu focal-updates/main amd64 firefox-locale-en amd64 82.0+build2-0ubuntu0.20.04.1 [659 kB]
Get:7 http://saimei.ftp.acc.umu.se/ubuntu focal-updates/main amd64 firefox amd64 82.0+build2-0ubuntu0.20.04.1 [55,9 MB]
Fetched 57,0 MB in 8s (6 791 kB/s)
(Reading database ... 268588 files and directories currently installed.)
Preparing to unpack .../0-libcryptsetup12_2%3a2.2.2-3ubuntu2.3_amd64.deb ...
Unpacking libcryptsetup12:amd64 (2:2.2.2-3ubuntu2.3) over (2:2.2.2-3ubuntu2.2) ...
Preparing to unpack .../1-libnetplan0_0.100-0ubuntu4~20.04.2_amd64.deb ...
Unpacking libnetplan0:amd64 (0.100-0ubuntu4~20.04.2) over (0.99-0ubuntu3~20.04.2) ...
Preparing to unpack .../2-netplan.io_0.100-0ubuntu4~20.04.2_amd64.deb ...
Unpacking netplan.io (0.100-0ubuntu4~20.04.2) over (0.99-0ubuntu3~20.04.2) ...
Preparing to unpack .../3-ubuntu-release-upgrader-gtk_1%3a20.04.28_all.deb ...
Unpacking ubuntu-release-upgrader-gtk (1:20.04.28) over (1:20.04.25) ...
Preparing to unpack .../4-ubuntu-release-upgrader-core_1%3a20.04.28_all.deb ...
Unpacking ubuntu-release-upgrader-core (1:20.04.28) over (1:20.04.25) ...
Preparing to unpack .../5-python3-distupgrade_1%3a20.04.28_all.deb ...
Unpacking python3-distupgrade (1:20.04.28) over (1:20.04.25) ...
Preparing to unpack .../6-firefox_82.0+build2-0ubuntu0.20.04.1_amd64.deb ...
Unpacking firefox (82.0+build2-0ubuntu0.20.04.1) over (81.0.2+build1-0ubuntu0.20.04.1) ...
Preparing to unpack .../7-firefox-locale-en_82.0+build2-0ubuntu0.20.04.1_amd64.deb ...
Unpacking firefox-locale-en (82.0+build2-0ubuntu0.20.04.1) over (81.0.2+build1-0ubuntu0.20.04.1) ...
Preparing to unpack .../8-libnvidia-common-450-server_450.80.02-0ubuntu0.20.04.3_all.deb ...
Unpacking libnvidia-common-450-server (450.80.02-0ubuntu0.20.04.3) over (450.51.06-0ubuntu0.20.04.2) ...
dpkg: error processing archive /tmp/apt-dpkg-install-TTjOMe/8-libnvidia-common-450-server_450.80.02-0ubuntu0.20.04.3_all.deb (--unpack):
trying to overwrite '/usr/share/nvidia/nvidia-application-profiles-450.80.02-key-documentation', which is also in package libnvidia-common-450 450.80.02-0ubu
ntu0.20.04.2
Errors were encountered while processing:
/tmp/apt-dpkg-install-TTjOMe/8-libnvidia-common-450-server_450.80.02-0ubuntu0.20.04.3_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Hello Paride,
This is very annoying. I cannot update Ubuntu. The updates all fail. I have not tinkered with Ubuntu, or changed anything. It is a stock Ubuntu. Now Retropie have stopped working as well, after the last update. Ubuntu is very fragile it seems? I install something, and it works fine. Then I do an update and hell breaks loose.
I do not understand where to even begin to look. The symptoms are that updates can not be installed. The GUI says something like "failed update" or something similar. So I tried to update again from command line to catch the output.
$ sudo apt update
works fine
But this upgrade command causes problems. How can I run some commands giving output, to give you information for debugging?
$ sudo apt upgrade networking: i386 gstreamer1.0-x:i386 libaa1:i386 libavc1394-0:i386 libcaca0:i386 libdv4:i386 libfprint-2-tod1 libgstreamer- plugins- good1.0- 0:i386 1.0-0:i386 libiec61883-0:i386 libllvm9 libllvm9:i386 libnvidia- common- 418-server libnvidia- common- 435 libnvidia- common- 440 common- 440-server libnvidia- common- 450-server libproxy1v5:i386 libraw1394-11:i386 libsamplerate0:i386 libshout3:i386 libslang2:i386 vanilla: i386 libxv1:i386 linux-headers- 5.4.0-48 linux-headers- 5.4.0-48- generic linux-image- 5.4.0-48- generic modules- 5.4.0-48- generic linux-modules- extra-5. 4.0-48- generic common- 450-server netplan.io python3-distupgrade ubuntu- release- upgrader- core release- upgrader- gtk se.archive. ubuntu. com/ubuntu focal-updates/main amd64 libcryptsetup12 amd64 2:2.2.2-3ubuntu2.3 [183 kB] se.archive. ubuntu. com/ubuntu focal-updates/main amd64 libnetplan0 amd64 0.100-0ubuntu4~ 20.04.2 [28,9 kB] se.archive. ubuntu. com/ubuntu focal-updates/main amd64 netplan.io amd64 0.100-0ubuntu4~ 20.04.2 [83,4 kB] se.archive. ubuntu. com/ubuntu focal-updates/main amd64 ubuntu- release- upgrader- gtk all 1:20.04.28 [9 364 B] se.archive. ubuntu. com/ubuntu focal-updates/main amd64 ubuntu- release- upgrader- core all 1:20.04.28 [23,7 kB] se.archive. ubuntu. com/ubuntu focal-updates/main amd64 python3-distupgrade all 1:20.04.28 [104 kB] se.archive. ubuntu. com/ubuntu focal-updates/main amd64 firefox-locale-en amd64 82.0+build2- 0ubuntu0. 20.04.1 [659 kB] saimei. ftp.acc. umu.se/ ubuntu focal-updates/main amd64 firefox amd64 82.0+build2- 0ubuntu0. 20.04.1 [55,9 MB] etup12_ 2%3a2.2. 2-3ubuntu2. 3_amd64. deb ... :amd64 (2:2.2. 2-3ubuntu2. 3) over (2:2.2. 2-3ubuntu2. 2) ... n0_0.100- 0ubuntu4~ 20.04.2_ amd64.deb ... 0ubuntu4~ 20.04.2) over (0.99-0ubuntu3~ 20.04.2) ... io_0.100- 0ubuntu4~ 20.04.2_ amd64.deb ... 0ubuntu4~ 20.04.2) over (0.99-0ubuntu3~ 20.04.2) ... release- upgrader- gtk_1%3a20. 04.28_all. deb ... release- upgrader- gtk (1:20.04.28) over (1:20.04.25) ... release- upgrader- core_1% 3a20.04. 28_all. deb ... release- upgrader- core (1:20.04.28) over (1:20.04.25) ... distupgrade_ 1%3a20. 04.28_all. deb ... 82.0+build2- 0ubuntu0. 20.04.1_ amd64.deb ... 0ubuntu0. 20.04.1) over (81.0.2+ build1- 0ubuntu0. 20.04.1) ... locale- en_82.0+ build2- 0ubuntu0. 20.04.1_ amd64.deb ... 0ubuntu0. 20.04.1) over (81.0.2+ build1- 0ubuntu0. 20.04.1) ... -common- 450-server_ 450.80. 02-0ubuntu0. 20.04.3_ all.deb ... common- 450-server (450.80. 02-0ubuntu0. 20.04.3) over (450.51. 06-0ubuntu0. 20.04.2) ... dpkg-install- TTjOMe/ 8-libnvidia- common- 450-server_ 450.80. 02-0ubuntu0. 20.04.3_ all.deb (--unpack): nvidia/ nvidia- application- profiles- 450.80. 02-key- documentation' , which is also in package libnvidia- common- 450 450.80.02-0ubu dpkg-install- TTjOMe/ 8-libnvidia- common- 450-server_ 450.80. 02-0ubuntu0. 20.04.3_ all.deb
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:
glib-
libgudev-
libnvidia-
libsoup2.4-1:i386 libtag1v5:i386 libtag1v5-
linux-
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
firefox firefox-locale-en libcryptsetup12 libnetplan0 libnvidia-
ubuntu-
9 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 57,0 MB/57,0 MB of archives.
After this operation, 686 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:8 http://
Get:7 http://
Fetched 57,0 MB in 8s (6 791 kB/s)
(Reading database ... 268588 files and directories currently installed.)
Preparing to unpack .../0-libcrypts
Unpacking libcryptsetup12
Preparing to unpack .../1-libnetpla
Unpacking libnetplan0:amd64 (0.100-
Preparing to unpack .../2-netplan.
Unpacking netplan.io (0.100-
Preparing to unpack .../3-ubuntu-
Unpacking ubuntu-
Preparing to unpack .../4-ubuntu-
Unpacking ubuntu-
Preparing to unpack .../5-python3-
Unpacking python3-distupgrade (1:20.04.28) over (1:20.04.25) ...
Preparing to unpack .../6-firefox_
Unpacking firefox (82.0+build2-
Preparing to unpack .../7-firefox-
Unpacking firefox-locale-en (82.0+build2-
Preparing to unpack .../8-libnvidia
Unpacking libnvidia-
dpkg: error processing archive /tmp/apt-
trying to overwrite '/usr/share/
ntu0.20.04.2
Errors were encountered while processing:
/tmp/apt-
E: Sub-process /usr/bin/dpkg returned an error code (1)