无法在Ubuntu 17.10上安装python-minimal

时间:2017-12-29 21:15:11

标签: python ubuntu-17.10

我一直在尝试在Ubuntu 17.10上安装python-minimal但是出现了这个错误。

sudo apt-get install python-minimal

Reading package lists... Done
Building dependency tree
Reading state information... Done
python-minimal is already the newest version (2.7.14-2ubuntu1).
The following package was automatically installed and is no longer required:
  libpython-stdlib
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up python-minimal (2.7.14-2ubuntu1) ...
dpkg: error processing package python-minimal (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up libpython-stdlib:amd64 (2.7.14-2ubuntu1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Errors were encountered while processing:
 python-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)

我尝试使用.deb文件安装,但仍然没有运气。
请帮助我。

1 个答案:

答案 0 :(得分:0)

旧版安装可能会损坏。所以尝试重新安装:

sudo apt-get install --reinstall python-minimal
sudo apt-get upgrade