![パッケージ python3-pip の処理中にエラーが発生しました](https://rvso.com/image/1073506/%E3%83%91%E3%83%83%E3%82%B1%E3%83%BC%E3%82%B8%20python3-pip%20%E3%81%AE%E5%87%A6%E7%90%86%E4%B8%AD%E3%81%AB%E3%82%A8%E3%83%A9%E3%83%BC%E3%81%8C%E7%99%BA%E7%94%9F%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F.png)
sudo apt full-upgrade または apt install -f を実行した後、次のエラーが発生しました。
loo# sudo apt full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
4 not fully installed or removed.
Need to get 0 B/384 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [O/n] O
dpkg: error processing package python3-apt (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
dpkg: dependency problems prevent configuration of python3-aptdaemon:
python3-aptdaemon depends on python3-apt (>= 0.8.5~ubuntu1); however:
Package python3-apt is not configured yet.
dpkg: error processing package python3-aptdaemon (--configure):
dependency problems - leaving unconfigured
dpkg: error processing package python3-pip (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
dpkg: dependency problems prevent configuration of aptdaemon:
aptdaemon depends on python3-aptdaemon (= 1.1.1+bzr982-0ubuntu32.3); however:
Package python3-aptdaemon is not configured yet.
dpkg: error processing package aptdaemon (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python3-apt
python3-aptdaemon
python3-pip
aptdaemon
E: Sub-process /usr/bin/dpkg returned an error code (1)
いくつかの情報; loo# dpkg --print-architecture
amd64
アップデート1: sudo apt install --reinstall python3-aptを実行すると
私が得たものは次のとおりです:
dpkg: warning: old python3-apt package pre-removal script subprocess returned er
ror 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 /var/cache/apt/archives/python3-apt_2.0.1ubuntu0.
20.04.1_amd64.deb (--unpack):
new python3-apt package pre-removal script subprocess returned error exit statu
s 127
Errors were encountered while processing:
/var/cache/apt/archives/python3-apt_2.0.1ubuntu0.20.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)