记一次在ubuntu安装filewall遇到的缺少包的错误解决方案,备用

折腾了将近8个小时,网上找遍了,才找到这个方法,记录备用,方法纯于照搬

提示:

You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
apparmor : Depends: python3:any
cloud-guest-utils : Depends: python3:any
firewalld : Depends: python3-dbus but it is not going to be installed
Depends: python3-gi but it is not going to be installed
Depends: python3-slip-dbus but it is not going to be installed
Depends: python3:any (>= 3.3.2-2~)
Recommends: ebtables (>= 2.0.10.4-3.1~) but it is not going to be installed
Recommends: ipset but it is not going to be installed
gconf2 : Depends: python3:any
gedit-common : Depends: python3:any (>= 3.3.2-2~)
Recommends: gedit but it is not going to be installed
gir1.2-ibus-1.0 : Depends: python3:any (>= 3.3.2-2~)
gnome-menus : Depends: python3:any (>= 3.1~)
hplip-data : Depends: python3:any (>= 3.3.2-2~)
lsb-release : Depends: python3:any (>= 3.4~)
ubuntu-advantage-tools : Depends: python3-yaml but it is not going to be installed
Depends: python3:any (>= 3.3.2-2~)
Depends: python3-apt but it is not going to be installed
Depends: python3-pkg-resources but it is not going to be installed

 

解决办法:

先执行

sudo apt-get update
sudo apt-get clean
sudo apt-get autoremove

如果不行再执行

sudo apt --fix-broken install
sudo apt-get update && sudo apt-get upgrade
sudo dpkg --configure -a
sudo apt-get install -f 

解决办法来源于:https://blog.csdn.net/qq_41566366/article/details/121244177

 

posted @   素心如何天上月  阅读(180)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· Ollama——大语言模型本地部署的极速利器
· 使用C#创建一个MCP客户端
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· ollama系列1:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现
点击右上角即可分享
微信分享提示