0

I upgraded from Ubuntu 18.04 to 20.04 and now want to reinstall gnome-control-center as it seems broken. Due to some issues I get the advice to fix broken packages via apt --fix-broken install. This fails with:

dpkg: error processing archive /var/cache/apt/archives/libgcc1_1%3a10.3.0-1ubuntu1~20.04_amd64.deb (--unpack):
 package libgcc1:amd64 (1:10.3.0-1ubuntu1~20.04) with field 'Multi-Arch: no' is not co-installable with libgcc1 which has multiple installed instances
Errors were encountered while processing:
 /var/cache/apt/archives/libgcc1_1%3a10.3.0-1ubuntu1~20.04_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

full output: pastebin with bash commands and output

The solution suggested here does not work, as the file /var/lib/dpkg/status looks somehow differently.

The package libgcc1 seems to exist two times in the status file (see excerpt below).

How would a solution look like in this case?

Package: libgcc1
Status: deinstall ok config-files
Priority: optional
Section: libs
Installed-Size: 150
Maintainer: Ubuntu Core developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: i386
Multi-Arch: same
Source: gcc-9 (9.1.0-2ubuntu2~14.04.2)
Version: 1:9.1.0-2ubuntu2~14.04.2
Config-Version: 1:9.1.0-2ubuntu2~14.04.2
Depends: gcc-9-base (= 9.1.0-2ubuntu2~14.04.2), libc6 (>= 2.2.4)
Pre-Depends: multiarch-support
Breaks: gcc-4.3 (<< 4.3.6-1), gcc-4.4 (<< 4.4.6-4), gcc-4.5 (<< 4.5.3-2)
Description: GCC support library
 Shared version of the support library, a library of internal subroutines
 that GCC uses to overcome shortcomings of particular machines, or
 special needs for some languages.
Homepage: http://gcc.gnu.org/
Original-Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>

Package: libgcc1 Status: install ok installed Priority: optional Section: libs Installed-Size: 135 Maintainer: Ubuntu Core developers <ubuntu-devel-discuss@lists.ubuntu.com> Architecture: amd64 Multi-Arch: same Source: gcc-9 (9.1.0-2ubuntu2~14.04.2) Version: 1:9.1.0-2ubuntu2~14.04.2 Depends: gcc-9-base (= 9.1.0-2ubuntu2~14.04.2), libc6 (>= 2.14) Pre-Depends: multiarch-support Breaks: gcc-4.3 (<< 4.3.6-1), gcc-4.4 (<< 4.4.6-4), gcc-4.5 (<< 4.5.3-2) Description: GCC support library Shared version of the support library, a library of internal subroutines that GCC uses to overcome shortcomings of particular machines, or special needs for some languages. Homepage: http://gcc.gnu.org/ Original-Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>

  • Your pastebin output clearly shows that you have a version conflict: Many packages that gnome-control-center depends upon are not installed and cannot be installed. And you have a long, long list of orphaned packages. Fix all those first. – user535733 Jun 17 '23 at 21:50
  • Thanks for your analysis. But how can I do this? I thought that apt --fix-broken install would do this, but as you can see it fails. – user14175128 Jun 17 '23 at 22:08
  • after the usual back and forth commands I came finally further after executing: sudo apt-get install --reinstall multiarch-support libgcc1- and afterwards sudo apt-get install --reinstall multiarch-support libgcc1 – user14175128 Jun 18 '23 at 16:58

0 Answers0