I performed a do-release-upgrade
from 20.04 to 22.04 LTS on two machines. Both went through.
Now I see different old packages on them:
apt list --installed | grep 20.04
g++-11/now 11.4.0-2ubuntu1~20.04 amd64 [installed,local]
gcc-11-base/now 11.4.0-2ubuntu1~20.04 amd64 [installed,local]
gcc-11/now 11.4.0-2ubuntu1~20.04 amd64 [installed,local]
gcc-13-base/now 13.1.0-8ubuntu1~20.04.2 amd64 [installed,local]
gcc-13-base/now 13.1.0-8ubuntu1~20.04.2 i386 [installed,local]
libasan6/now 11.4.0-2ubuntu1~20.04 amd64 [installed,local]
libatomic1/now 13.1.0-8ubuntu1~20.04.2 amd64 [installed,local]
libatomic1/now 13.1.0-8ubuntu1~20.04.2 i386 [installed,local]
libcc1-0/now 13.1.0-8ubuntu1~20.04.2 amd64 [installed,local]
libgcc-11-dev/now 11.4.0-2ubuntu1~20.04 amd64 [installed,local]
libgcc-s1/now 13.1.0-8ubuntu1~20.04.2 amd64 [installed,local]
libgcc-s1/now 13.1.0-8ubuntu1~20.04.2 i386 [installed,local]
libgcc1/now 1:13.1.0-8ubuntu1~20.04.2 amd64 [installed,local]
libgomp1/now 13.1.0-8ubuntu1~20.04.2 amd64 [installed,local]
libitm1/now 13.1.0-8ubuntu1~20.04.2 amd64 [installed,local]
liblsan0/now 13.1.0-8ubuntu1~20.04.2 amd64 [installed,local]
libmbim-glib4/jammy-updates,now 1.28.0-1~ubuntu20.04.1 amd64 [installed,automatic]
libmbim-proxy/jammy-updates,now 1.28.0-1~ubuntu20.04.1 amd64 [installed,automatic]
libquadmath0/now 13.1.0-8ubuntu1~20.04.2 amd64 [installed,local]
libstdc++-11-dev/now 11.4.0-2ubuntu1~20.04 amd64 [installed,local]
libstdc++6/now 13.1.0-8ubuntu1~20.04.2 amd64 [installed,local]
libstdc++6/now 13.1.0-8ubuntu1~20.04.2 i386 [installed,local]
libtsan0/now 11.4.0-2ubuntu1~20.04 amd64 [installed,local]
libubsan1/now 13.1.0-8ubuntu1~20.04.2 amd64 [installed,local]
linux-generic-hwe-20.04/jammy-updates,now 5.15.0.83.80 amd64 [installed]
the other machine has far less:
libmbim-glib4/jammy-updates,now 1.28.0-1~ubuntu20.04.1 amd64 [installed]
libmbim-proxy/jammy-updates,now 1.28.0-1~ubuntu20.04.1 amd64 [installed]
linux-generic-hwe-20.04/now 5.15.0.82.91~20.04.40 amd64 [installed,local]
linux-headers-generic-hwe-20.04/now 5.15.0.82.91~20.04.40 amd64 [installed,local]
linux-image-generic-hwe-20.04/now 5.15.0.82.91~20.04.40 amd64 [installed,local]
- Is this a problem? I tried to install rstudio and it works on the second machine, but fails on the first due to incompatibilities :
sudo apt install -f ./rstudio-2023.06.2-561-amd64.deb
gives
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libobjc-11-dev : Depends: gcc-11-base (= 11.4.0-1ubuntu1~22.04) but 11.4.0-2ubuntu1~20.04 is to be installed
Depends: libgcc-11-dev (= 11.4.0-1ubuntu1~22.04) but 11.4.0-2ubuntu1~20.04 is to be installed
E: Unable to correct problems, you have held broken packages.
So I guess it is a problem at least for the first machine.
- How can I fix this? Maybe some old packages can simply be deleted (e.g. unused linux header etc) but how to upgrade gcc etc to 22.04?
INFO no old nvidia driver installed, installing no new
ERROR got an error from dpkg for pkg: 'nvidia-driver-470': 'dependency problems - leaving unconfigured'
But I think this is not the root of the problem, which rather is the fact that all the gcc stuff is listed as "Foreign" and therefore not touched during upgrade. How can I manually remove these packages and re-install the correct ones? They seem to have lots of dependencies.
– highwind Sep 05 '23 at 05:47