如何解决Ubuntu下的“E: Unable to correct problems, you have held broken packages.”的问题. aptitude

 

今天安装build-essential时出现了以下问题,这属于包的依赖、

如何解决Ubuntu下的“E: Unable to correct problems, you have held broken packages.”的问题.  aptitude

 

 

 

解决方案:

1,sudo apt-get install aptitude:完成aptitude命令安装

 

如何解决Ubuntu下的“E: Unable to correct problems, you have held broken packages.”的问题.  aptitude

 

 

2,sudo aptitude install 软件包:自动安装某个软件包

 

如何解决Ubuntu下的“E: Unable to correct problems, you have held broken packages.”的问题.  aptitude

 

 

3,出现以下选项

 

如何解决Ubuntu下的“E: Unable to correct problems, you have held broken packages.”的问题.  aptitude

 

 

4,完成安装

如何解决Ubuntu下的“E: Unable to correct problems, you have held broken packages.”的问题.  aptitude

 

 

 

注:aptitude这个命令可以自动处理安装包之间的依赖关系

参考链接:https://www.shangmayuan.com/a/834381feea79424297f4a5f3.html

上一篇:基于Qt环境下开发的日志log打印


下一篇:C++ 是如何做到函数重载的