![Python のインストールを中断した後、ParrotOS に何もインストールまたは更新できない](https://rvso.com/image/178480/Python%20%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%82%92%E4%B8%AD%E6%96%AD%E3%81%97%E3%81%9F%E5%BE%8C%E3%80%81ParrotOS%20%E3%81%AB%E4%BD%95%E3%82%82%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%81%BE%E3%81%9F%E3%81%AF%E6%9B%B4%E6%96%B0%E3%81%A7%E3%81%8D%E3%81%AA%E3%81%84.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 minimals をインストールしようとしましたが、同じエラーが表示されますapt-listchanges
。どうしたらよいかわかりません。