AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1087083
Accepted
abu-ahmed al-khatiri
abu-ahmed al-khatiri
Asked: 2018-10-26 02:43:51 +0800 CST2018-10-26 02:43:51 +0800 CST 2018-10-26 02:43:51 +0800 CST

E: Depends 的损坏包:python3 (>= 3.6.6-1~)

  • 772

我试图更新/升级我的apt,我从python3依赖中得到错误。

当我更新/升级时:

praz@abuahmed:~$ APTGET
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://dl.google.com/linux/chrome/deb stable Release                                                        
Hit:3 http://ppa.launchpad.net/noobslab/apps/ubuntu bionic InRelease                                                                                 
Hit:4 https://desktop-download.mendeley.com/download/apt stable InRelease                                                                            
Hit:5 http://id.archive.ubuntu.com/ubuntu bionic InRelease                                     
Get:6 http://security.ubuntu.com/ubuntu bionic-security InRelease [83,2 kB]
Get:8 http://id.archive.ubuntu.com/ubuntu bionic-updates InRelease [88,7 kB]         
Hit:9 http://id.archive.ubuntu.com/ubuntu bionic-proposed InRelease                              
Fetched 172 kB in 3s (52,7 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  python3-distutils python3-gdbm python3-lib2to3
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

当我升级该软件包时:

praz@abuahmed:~$ sudo apt-get upgrade python3-distutils python3-gdbm python3-lib2to3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python3-distutils : Depends: python3 (>= 3.6.6-1~) but 3.6.5-3ubuntu1 is to be installed
 python3-gdbm : Depends: python3 (>= 3.6.6-1~) but 3.6.5-3ubuntu1 is to be installed
 python3-lib2to3 : Depends: python3 (>= 3.6.6-1~) but 3.6.5-3ubuntu1 is to be installed
E: Broken packages

当我检查我的 apt 政策时

praz@abuahmed:~$ sudo apt-cache policy python3-distutils python3-gdbm python3-lib2to3
python3-distutils:
  Installed: 3.6.5-3
  Candidate: 3.6.7-1~18.04
  Version table:
     3.6.7-1~18.04 500
        500 http://id.archive.ubuntu.com/ubuntu bionic-proposed/main amd64 Packages
        500 http://id.archive.ubuntu.com/ubuntu bionic-proposed/main i386 Packages
 *** 3.6.5-3 500
        500 http://id.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        500 http://id.archive.ubuntu.com/ubuntu bionic/main i386 Packages
        100 /var/lib/dpkg/status
python3-gdbm:
  Installed: 3.6.5-3
  Candidate: 3.6.7-1~18.04
  Version table:
     3.6.7-1~18.04 500
        500 http://id.archive.ubuntu.com/ubuntu bionic-proposed/main amd64 Packages
 *** 3.6.5-3 500
        500 http://id.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status
python3-lib2to3:
  Installed: 3.6.5-3
  Candidate: 3.6.7-1~18.04
  Version table:
     3.6.7-1~18.04 500
        500 http://id.archive.ubuntu.com/ubuntu bionic-proposed/main amd64 Packages
        500 http://id.archive.ubuntu.com/ubuntu bionic-proposed/main i386 Packages
 *** 3.6.5-3 500
        500 http://id.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        500 http://id.archive.ubuntu.com/ubuntu bionic/main i386 Packages
        100 /var/lib/dpkg/status

我尝试使用 Synaptic 使用Mark All Upgrades&& Edit+ Fix Broken Packages&&修复它Reload,这将在状态部分显示一个 apt upgradable 列表,并尝试Mark For Upgrade在每个需要升级的包上进行,但我没有选择解决这个问题。

package-management upgrade apt 18.04
  • 1 1 个回答
  • 1570 Views

1 个回答

  • Voted
  1. Best Answer
    abu-ahmed al-khatiri
    2018-10-26T05:12:30+08:002018-10-26T05:12:30+08:00

    @user535733 是对的,depends 的三个包python3发生冲突,在:

     python3-distutils=3.6.7-1~ from bionic-proposed/main repository
     python3-gdbm=3.6.7-1~ from bionic-proposed/main repository
     python3-lib2to3=3.6.7-1~ from bionic-proposed/main repository
    

    和

     python3-distutils=3.6.5-3~ from bionic/main repository
     python3-gdbm=3.6.5-3~ from bionic/main repository
     python3-lib2to3=3.6.5-3~ from bionic/main repository
    

    这已通过使用 add #in禁用仿生提议的存储库来修复

    #deb http://id.archive.ubuntu.com/ubuntu/ bionic-proposed universe restricted main multiverse.
    
    • 0

相关问题

  • 如何回滚到 PHP 5.2?

  • 包管理器之间有什么区别?

  • 从 8.04 LTS 升级到 10.04 LTS 的体验?

  • 分销升级的合理途径

  • 在不使用标准升级系统的情况下升级有哪些替代方案?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve