【问题标题】:Error to fill unmet dependencies填充未满足的依赖项时出错
【发布时间】:2017-10-30 06:24:32
【问题描述】:

当我尝试运行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 导致了它的错误,但我不知道如何在谷歌爬行后解决这个问题。 如果您能帮助我,将不胜感激。 提前感谢您的帮助!

【问题讨论】:

    标签: ubuntu apt-get broken-pipe


    【解决方案1】:

    您可以使用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 将再次下载新副本。

    【讨论】:

    • 当我尝试运行“sudo apt-get upgrade”时,它返回以下内容;读取包列表...完成 构建依赖关系树 读取状态信息...完成 您可能需要运行 'apt-get -f install' 来纠正这些问题。以下软件包具有未满足的依赖关系: libpython-stdlib:i386 : Depends: libpython2.7-stdlib:i386 (>= 2.7.11-1~) 但未安装 python2.7:i386 : Depends: libpython2.7-stdlib :i386 (= 2.7.12-1ubuntu0~16.04.1) 但它没有安装(因为它太长所以省略警告) E: 未满足的依赖关系。尝试使用 -f。这实际上是我遇到的原始问题。
    猜你喜欢
    • 2020-09-11
    • 2019-09-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-11-23
    • 2016-08-29
    相关资源
    最近更新 更多