更新 Ubuntu 从 20.10 更新到 Hirsute Hippo (21.04) 后出错

rix*_*xar 9 21.04

当尝试更新时,错误如下:

FATAL ERROR:
Both /lib/x86_64-linux-gnu/libselinux.so.1 and /usr/lib/x86_64-linux-gnu/libselinux.so.1 exist.

You can try correcting the errors reported and running again
/usr/lib/usrmerge/convert-usrmerge until it will complete without errors.
Do not install or update other Debian packages until the program
has been run successfully.

dpkg: error processing usrmerge package (--configure): 
installed usrmerge package post-installation script subprocess returned error exit status 1
Run Code Online (Sandbox Code Playgroud)

我尝试使用以下命令修复它:sudo apt -f installsudo dpkg --configure -a,没有任何帮助,错误不会消失!告诉我你该如何解决它?

rix*_*xar 13

谢谢你!我找到了解决我的问题的方法!也许有人会派上用场!

cd /var/lib/dpkg/info
sudo rm usrmerge.*
sudo apt-get -f install
Run Code Online (Sandbox Code Playgroud)

  • 这对我有用。谢谢 (3认同)