我想通过输入终端g++在Ubuntu20.04中安装sudo apt-get install g++,但它告诉我如下:
Some packages cannot be installed.
This can mean that an impossible situation was requested or,
if you are using a development distribution, which some packages
required have not yet been created or have been removed from Incoming.
The following information can help resolve the situation:
The following packages have unmet dependencies:
g++: It depends: g++-9 (> = 9.3.0-3 ~) but it is not going to be installed
E: Unable to fix problems, there are bad packages blocked".我能做些什么来解决这些问题?
发布于 2021-06-05 06:41:50
对于解决包依赖问题,智能比apt更有侵略性。aptitude会记住哪些软件包是明确请求的,哪些包是由于依赖关系而安装的。它将自动卸载那些在不再需要时没有显式请求的软件包。
使用sudo apt install aptitude安装智能,运行sudo apt install g++并遵循有关解决aptitude提供的未满足依赖关系的建议。
https://askubuntu.com/questions/1341644
复制相似问题