我试图通过Ubuntu的deb文件安装最新版本的libstdc ++ 6,但是现在每当我尝试安装软件包时,它都向我显示错误。
libstdc++6 : Depends: gcc-10-base (= 10-20200411-0ubuntu1) but it is not installable
Depends: libgcc-s1 (>= 4.2) but it is not installable
我试图运行apt --fix-broken安装,但也出现了错误。(错误要大得多,我无法获得完整的错误消息。
Done
failed.
The following packages have unmet dependencies.
libstdc++6 : Depends: gcc-10-base (= 10-20200411-0ubuntu1) but it is not installable
Depends: libgcc-s1 (>= 4.2) but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
相同apt-get -f install
。
我怎样才能解决这个问题?
(我正在使用基于Ubuntu 18.04的最新版本的KDE Neon)
您可以通过还原libstdc++6
为发行版的适当版本来解决此问题:
sudo apt install libstdc++6=8.4.0-1ubuntu1~18.04
libstdc++6
是一个系统库,有些难以升级。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句