我无法安装任何东西,因为这个问题
当我尝试--fix-broken install时
终端显示:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
clang-6.0 : Depends: libgcc-8-dev but it is not installed
clang-7 : Depends: libgcc-8-dev but it is not installed
gcc-8 : Depends: libgcc-8-dev (= 8.3.0-6) but it is not installed
libobjc-8-dev : Depends: libgcc-8-dev (= 8.3.0-6) but it is not installed
libstdc++-8-dev : Depends: libgcc-8-dev (= 8.3.0-6) but it is not installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
请帮助我,谢谢
答案1
您看到此错误是因为您持有一些未满足的依赖项。打开终端窗口并运行以下命令
sudo apt-get update
sudo apt-get install -f
sudo apt autoremove
sudo apt autoclean
sudo apt-get update; sudo apt-get upgrade
然后,您可以继续通过运行命令来安装软件包sudo apt-get install gcc