想卸载软件(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
本文详细记录了解决在Ubuntu上因版本冲突导致的GlusterFS卸载问题的过程。作者在尝试更新GlusterFS版本时遇到安装失败,并在卸载旧版本时遭遇依赖性错误。通过多种方法尝试,包括使用apt-get install-f和aptitude,最终采用dpkg的手动卸载命令解决了问题。

4105

被折叠的 条评论
为什么被折叠?



