You might want to run ‘apt --fix-broken install‘ to correct these. The following packages have unmet

想卸载软件(glusterfs-server https://www.thelinuxfaq.com/ubuntu/ubuntu-17-04-zesty-zapus/glusterfs-server?type=uninstall)时,出现标题中的错误提示,原因是我安装旧版本(3.13.2)后又尝试安装了新版本(8.1),新版本安装失败(Unpacking glusterfs-common (8.1-ubuntu1~bionic1) over (3.13.2-1ubuntu1)),这时我想卸载旧版本,发现旧的版本卸载不了( The following packages have unmet dependencies,... ,Depends: glusterfs-common (>= 8.1-ubuntu1~bionic1) but 3.13.2-1ubuntu1 is to be installed),尝试网上说的https://www.jianshu.com/p/c641040464df sudo apt-get install -f 和 sudo apt-get install aptitude均未果,最终用https://askubuntu.com/questions/176121/dpkg-error-trying-to-overwrite-file-which-is-also-in解决了问题:

sudo dpkg -p glusterfs-server

猜你喜欢

转载自blog.csdn.net/haiyiheng/article/details/108448588