我最近使用 更新了我的 python 版本从 3.8 到 3.10,
sudo update-alternatives --config python3但这似乎在某处导致了 apt 的问题。每当我尝试运行时,sudo apt-get update它都会按预期工作。当我尝试运行时sudo apt-get upgrade,我遇到了以下问题。
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up python-apt (2.0.0ubuntu0.20.04.6) ...
/var/lib/dpkg/info/python-apt.postinst: 6: …Run Code Online (Sandbox Code Playgroud)