패키지를 설치하려고 할 때마다 다음과 같이 기록됩니다.
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