0
$ sudo apt-get dist-upgrade
[sudo] password for shepie:
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Error!
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:
libc6-dev : Breaks: libgcc-9-dev (< 9.3.0-5~) but 9.2.1-22 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
4

1 回答 1

0

按照这个:

  1. sudo leafpad /var/lib/dpkg/status

  2. 从文档中删除以下行并保存。(您可以使用 ctrl F 并删除以下行)

    包:libgcc-9-dev 状态:安装成功优先级:可选部分:libdevel 已安装大小:13607 维护者:Debian GCC 维护者 debian-gcc@lists.debian.org 架构:amd64 多架构:相同来源:gcc-9版本:9.2.1-19 取决于:gcc-9-base (= 9.2.1-19), libgcc1 (>= 1:9.2.1-19), libgomp1 (>= 9.2.1-19), libitm1 (> = 9.2.1-19), libatomic1 (>= 9.2.1-19), libasan5 (>= 9.2.1-19), liblsan0 (>= 9.2.1-19), libtsan0 (>= 9.2.1-19 ), libubsan1 (>= 9.2.1-19), libquadmath0 (>= 9.2.1-19) 推荐:libc6-dev (>= 2.13-5) 说明:GCC 支持库(开发文件) 这个包包含头文件和构建使用 libgcc、libgomp、libquadmath、libssp 或 libitm 的 C 程序所需的静态库文件。主页: http: //gcc.gnu.org/

  3. sudo apt --fix-broken install

  4. sudo apt update && apt 全面升级

于 2020-07-23T20:03:59.293 回答