Ubuntu apt-get install 报错Try ‘apt --fix-broken install‘ with no packages (or specify a solution).

Posted Jucway

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ubuntu apt-get install 报错Try ‘apt --fix-broken install‘ with no packages (or specify a solution).相关的知识,希望对你有一定的参考价值。

@toc

报错


更新镜像
更新镜像的时候修改配置文件(先修改配置文件的权限)

GCC 安装错误

Recommends: libc6-dev but it is not going to be installed or
libc-dev

The following packages have unmet dependencies:
gcc : Depends: cpp (= 4:9.3.0-1ubuntu2) but 4:10.2.0-1ubuntu1 is to be installed
Recommends: libc6-dev but it is not going to be installed or
libc-dev
E: Unable to correct problems, you have held broken packages.

https://blog.csdn.net/pafei/article/details/83963785

以上是关于Ubuntu apt-get install 报错Try ‘apt --fix-broken install‘ with no packages (or specify a solution).的主要内容,如果未能解决你的问题,请参考以下文章

ubuntu14.04 apt-get install找不到软件,更换源解决

sudo apt-get install libcanberra-gtk-module

apt-get install openssh-server 失败问题解决

ubuntu 无法sudo apt-get 了。。

ubuntu更换pip install,apt-get,conda install 成国内源

apt-get install xxx时,报错信信息: Could not get lock /var/lib/dpkg/lock-frontend - open ……