I recently upgraded to Ubuntu 20.04 LTS. After the upgrade, I've seen that GCC is broken. My guess is that my GCC related packages were installed from another PPA. I removed all the extra PPA to my list and I tried to reinstall the unmet dependencies.
Unfortunately, I cannot install or remove a package using apt
. I always get a message:
$ sudo apt install --reinstall gcc-10-base
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
gcc-10-base : Breaks: gcc-10-base:i386 (!= 10-20200411-0ubuntu1) but 10.1.0-2ubuntu1~18.04 is to be installed
gcc-10-base:i386 : Breaks: gcc-10-base (!= 10.1.0-2ubuntu1~18.04) but 10-20200411-0ubuntu1 is to be installed
libatomic1 : Depends: gcc-10-base (= 10.1.0-2ubuntu1~18.04) but 10-20200411-0ubuntu1 is to be installed
libcc1-0 : Depends: gcc-10-base (= 10.1.0-2ubuntu1~18.04) but 10-20200411-0ubuntu1 is to be installed
libgcc-s1 : Depends: gcc-10-base (= 10.1.0-2ubuntu1~18.04) but 10-20200411-0ubuntu1 is to be installed
libgcc1 : Depends: gcc-10-base (= 10.1.0-2ubuntu1~18.04) but 10-20200411-0ubuntu1 is to be installed
libgomp1 : Depends: gcc-10-base (= 10.1.0-2ubuntu1~18.04) but 10-20200411-0ubuntu1 is to be installed
libitm1 : Depends: gcc-10-base (= 10.1.0-2ubuntu1~18.04) but 10-20200411-0ubuntu1 is to be installed
liblsan0 : Depends: gcc-10-base (= 10.1.0-2ubuntu1~18.04) but 10-20200411-0ubuntu1 is to be installed
libquadmath0 : Depends: gcc-10-base (= 10.1.0-2ubuntu1~18.04) but 10-20200411-0ubuntu1 is to be installed
libstdc++6 : Depends: gcc-10-base (= 10.1.0-2ubuntu1~18.04) but 10-20200411-0ubuntu1 is to be installed
libtsan0 : Depends: gcc-10-base (= 10.1.0-2ubuntu1~18.04) but 10-20200411-0ubuntu1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
How can I force to reinstall dependencies?
gcc-10-base
package has circular dependencies withgcc-10-base:i386
... – didil Jul 20 '20 at 10:16