破坏 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.我不知道该怎么办。

相关内容