ubuntu 20.04 升级至 22.04 后,运行 apt upgrade 会出现下面的错误
dpkg: error processing package usrmerge (--configure):
installed usrmerge package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
usrmerge
E: Sub-process /usr/bin/dpkg returned an error code (1)
参考 Ubuntu 22.04 Usrmerge fatal error 的回答,用下面的命令解决了
apt remove --purge usrmerge
apt autoremove
apt upgrade