![破壞 Python 安裝後無法在 ParrotOS 上安裝或更新任何內容](https://rvso.com/image/178480/%E7%A0%B4%E5%A3%9E%20Python%20%E5%AE%89%E8%A3%9D%E5%BE%8C%E7%84%A1%E6%B3%95%E5%9C%A8%20ParrotOS%20%E4%B8%8A%E5%AE%89%E8%A3%9D%E6%88%96%E6%9B%B4%E6%96%B0%E4%BB%BB%E4%BD%95%E5%85%A7%E5%AE%B9.png)
我不小心刪除了所有 Python 依賴項,但不知何故設法重新安裝了其中一些依賴項。但是現在我在安裝任何東西時遇到問題:它顯示了某種錯誤apt-listchanges
。每次嘗試執行升級/更新命令時,它都會顯示相同的錯誤
/bin/sh: 1: /usr/bin/apt-listchanges: not found
E: Sub-process /usr/bin/apt-listchanges --apt || test $? -lt 10 returned an error code (1)
E: Failure running script /usr/bin/apt-listchanges --apt || test $? -lt 10
bin 資料夾中的 apt-listchanges 檔案的檔案類型為Python 3 script (text/x-python3)
.作業系統是Parrot-OS。
我也嘗試安裝但失敗的deb
軟體包apt-listchanges
sudo dpkg -i apt-listchanges_3.22_all.deb
Selecting previously unselected package apt-listchanges.
(Reading database ... 605517 files and directories currently installed.)
Preparing to unpack apt-listchanges_3.22_all.deb ...
/var/lib/dpkg/info/apt-listchanges.prerm: 6: py3clean: not found
dpkg: warning: old apt-listchanges package pre-removal script subprocess returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: 6: py3clean: not found
dpkg: error processing archive apt-listchanges_3.22_all.deb (--install):
new apt-listchanges package pre-removal script subprocess returned error exit status 127
Deferring configuration of apt-listchanges until /usr/bin/python3
and python's debconf module are available
/var/lib/dpkg/info/apt-listchanges.postinst: 212: py3compile: not found
dpkg: error while cleaning up:
installed apt-listchanges package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
apt-listchanges_3.22_all.deb
我嘗試安裝 python minis,但它顯示了與apt-listchanges
.我不知道該怎麼辦。