破壞 Python 安裝後無法在 ParrotOS 上安裝或更新任何內容

破壞 Python 安裝後無法在 ParrotOS 上安裝或更新任何內容

我不小心刪除了所有 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.我不知道該怎麼辦。

相關內容