当前位置:   article > 正文

当ubuntu出现无法安装包时的解决方案_ubuntu安装java some packages could not be installed.

ubuntu安装java some packages could not be installed. this may mean that you

今天一直弹出如下错误提示:
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

发现是已经安装了相关包或者安装的包已经损坏了。于是通过"sudo apt-get remove "+包名称(如果你不知道具体安装了什么的情况下,最好使用tab出来)
下图以gcc为例,我之前通过update系列命令安装了gcc。
在这里插入图片描述
再次安装。
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
安装gcc完成。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/452786
推荐阅读
相关标签
  

闽ICP备14008679号