首页 > 系统相关 >记一次在ubuntu安装filewall遇到的缺少包的错误解决方案,备用

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

时间:2022-10-04 19:35:02浏览次数:45  
标签:apt installed Depends going ubuntu filewall any python3 备用

折腾了将近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

 

标签:apt,installed,Depends,going,ubuntu,filewall,any,python3,备用
From: https://www.cnblogs.com/simpleyue/p/16754270.html

相关文章