填充未满足的依赖项时出错

时间:2017-10-30 06:24:32

标签: ubuntu apt-get broken-pipe

当我尝试运行sudo apt-get -f install命令时遇到以下错误。我正在使用Ubuntu 16.04。

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libpython2.7-stdlib:i386
The following NEW packages will be installed:
  libpython2.7-stdlib:i386
0 upgraded, 1 newly installed, 0 to remove and 14 not upgraded.
13 not fully installed or removed.
Need to get 0 B/1,903 kB of archives.
After this operation, 8,870 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 225635 files and directories currently installed.)
Preparing to unpack .../libpython2.7-stdlib_2.7.12-1ubuntu0~16.04.1_i386.deb ...
Unpacking libpython2.7-stdlib:i386 (2.7.12-1ubuntu0~16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/libpython2.7-stdlib_2.7.12-1ubuntu0~16.04.1_i386.deb (--unpack):
 trying to overwrite shared '/usr/lib/python2.7/gettext.py', which is different from other instances of package libpython2.7-stdlib:i386
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libpython2.7-stdlib_2.7.12-1ubuntu0~16.04.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

显然,libpython2.7-stdlib_2.7.12-1ubuntu0~16.04.1_i386.deb会导致错误,但我不确定如何在google中抓取后解决此问题。 如果你能帮助我,我将不胜感激。 感谢您的帮助!

1 个答案:

答案 0 :(得分:0)

您可以使用sudo apt-get clean

删除缓存中的所有文件

或者你可以删除有问题的.deb文件: -

sudo rm  /var/cache/apt/archives/libpython2.7-stdlib_2.7.12-1ubuntu0~16.04.1_i386.deb   

完成所有这些后,sudo apt-get upgrade将再次下载新副本。