Score:0

How to solve dependency issues when package is stated two times in dpkg status file?

es flag

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 <[email protected]>
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 <[email protected]>

---------------------------------------------
Package: libgcc1
Status: install ok installed
Priority: optional
Section: libs
Installed-Size: 135
Maintainer: Ubuntu Core developers <[email protected]>
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 <[email protected]>
user535733 avatar
cn flag
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.
user14175128 avatar
es flag
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 avatar
es flag
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`
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.