解决 E: Unable to correct problems, you have held broken packages. 问题
参考:
环境
- Ubuntu 14.04, 64bit
问题
在安装gcc-4.9的时候,执行:
$ sudo apt-get install gcc-4.9
出现以下错误:
E: Unable to correct problems, you have held broken packages.
解决方案
1.我的解决方案是先upgrade后update:
$ sudo apt-get upgrade
$ sudo apt-get update
2.文首给出的链接的建议是使用aptitude
这个工具,该工具会想方设法的帮助你安装(提示依赖、其他安装包等等)
2017.5.20
To improve is to change, to be perfect is to change often.