每当我尝试安装软件包时,它都会写入以下内容:
E: /var/cache/apt/archives/mintupdate_5.1.0.4_all.deb: subprocess new pre-removal script returned error exit status 127
E: /var/cache/apt/archives/python-samba_2%3a4.3.11+dfsg-0ubuntu0.16.04.3_amd64.deb: subprocess new pre-removal script returned error exit status 127
请帮忙!
答案1
dpkg
使用以下选项运行--force-overwrite
:
sudo dpkg -i --force-overwrite /var/cache/apt/archives/mintupdate_5.1.0.4_all.deb
sudo dpkg -i --force-overwrite /var/cache/apt/archives/python-samba_2%3a4.3.11+dfsg-0ubuntu0.16.04.3_amd64.deb
sudo apt-get -f install
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade