Debian

由於 libc6-dev,完全升級到 Debian 測試失敗:中斷:libgcc-8-dev

  • February 4, 2021

我剛剛切換到靶心(見下面的來源)

deb http://deb.debian.org/debian/ testing main contrib non-free
deb-src http://deb.debian.org/debian/ testing main contrib non-free

deb http://deb.debian.org/debian/ testing-updates main contrib non-free
deb-src http://deb.debian.org/debian/ testing-updates main contrib non-free

deb http://deb.debian.org/debian-security testing-security main
deb-src http://deb.debian.org/debian-security testing-security main

deb http://security.debian.org testing-security main contrib non-free
deb-src http://security.debian.org testing-security main contrib non-free

更新和升級正常,但由於以下錯誤消息,完全升級失敗:

The following packages have unmet dependencies:
libc6-dev : Breaks: libgcc-8-dev (< 8.4.0-2~) but 8.3.0-6 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

從我在 packages.debian.org 上看到的內容來看,Debian 測試應該有libgcc-8-dev: 8.4.0-4,所以我不明白為什麼要安裝舊版本。

我該如何解決這個問題,以完成靶心全面升級?

安裝gcc-8-base( sudo apt install gcc-8-base) 似乎為我解決了問題並為我解決了問題。

如果它仍然不起作用,請嘗試: apt-get install gcc-9-base

引用自:https://unix.stackexchange.com/questions/592657