deadsnakes / issues

Issues for https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa
86 stars 6 forks source link

Python 3.11 upgrade fails due to unmet dependencies #204

Closed jugmac00 closed 2 years ago

jugmac00 commented 2 years ago

description

sudo apt update && sudo apt upgrade
[sudo] password for jugmac00: 
Hit:1 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease
Get:2 http://oem.archive.canonical.com focal InRelease [515 kB]                                                                                                                                           
Hit:3 http://archive.canonical.com/ubuntu focal InRelease                                                                                                                                                 
Get:4 http://dell.archive.canonical.com focal InRelease [515 kB]                                                                                                                                          
Hit:5 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                                              
Hit:6 http://ppa.launchpad.net/git-core/ppa/ubuntu focal InRelease                                                                                                                                        
Hit:7 http://ppa.launchpad.net/somerville-dla-team/ppa/ubuntu bionic InRelease                                                                                                                            
Hit:8 http://security.ubuntu.com/ubuntu focal-security InRelease                                                                                                                             
Hit:9 http://archive.ubuntu.com/ubuntu focal InRelease                                                                              
Hit:10 http://archive.ubuntu.com/ubuntu focal-updates InRelease                                               
Ign:11 http://linux.dropbox.com/ubuntu disco InRelease
Hit:12 http://linux.dropbox.com/ubuntu disco Release
Hit:13 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Fetched 1.030 kB in 2s (471 kB/s)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
3 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libpython3.11 : Depends: libpython3.11-stdlib (= 3.11.0~a7-1+focal1) but 3.11.0~a6-1+focal1 is installed
 libpython3.11-dev : Depends: libpython3.11-stdlib (= 3.11.0~a7-1+focal1) but 3.11.0~a6-1+focal1 is installed
 libpython3.11-stdlib : Depends: libpython3.11-minimal (= 3.11.0~a6-1+focal1) but 3.11.0~a7-1+focal1 is installed
 python3.11 : Depends: libpython3.11-stdlib (= 3.11.0~a7-1+focal1) but 3.11.0~a6-1+focal1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

os information

lsb_release -a

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.4 LTS
Release:    20.04
Codename:   focal

uname -a

uname -a
Linux XPS-13-9310 5.14.0-1031-oem #34-Ubuntu SMP Fri Mar 25 08:21:05 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

I have not yet ran the suggested command as I do not know whether this is a glitch on my system or there is an actual missing dependency.

jugmac00 commented 2 years ago

When I do an apt-cache search --full I get this..

...
Package: libpython3.11-stdlib
Source: python3.11
Priority: optional
Section: python
Installed-Size: 8378
Maintainer: Matthias Klose <doko@debian.org>
Architecture: amd64
Version: 3.11.0~a7-1+focal1
Recommends: ca-certificates
Depends: libpython3.11-minimal (= 3.11.0~a7-1+focal1), mime-support, tzdata, libbz2-1.0, libc6 (>= 2.28), libcrypt1 (>= 1:4.1.0), libdb5.3, libffi7 (>= 3.3~20180313), liblzma5 (>= 5.1.1alpha+20120614), libncursesw6 (>= 6.1), libreadline8 (>= 7.0~beta), libsqlite3-0 (>= 3.14.0), libtinfo6 (>= 6), libuuid1 (>= 2.20.1)
Filename: pool/main/p/python3.11/libpython3.11-stdlib_3.11.0~a7-1+focal1_amd64.deb
Size: 1755576
MD5sum: 0db6e16237eb5511ee5ea2e7661411c3
SHA1: f55cd4c4e8492be02ed1f232bbad450c38481786
SHA256: 66081599b2c5e65d559cf6d2ce137e132f26140a11f351f2269cb24ec44bcfbc
Description-en: Interactive high-level object-oriented language (standard library, version 3.11)
 Python is a high-level, interactive, object-oriented language. Its 3.11 version
 includes an extensive class library with lots of goodies for
 network programming, system administration, sounds and graphics.
 .
 This package contains Python 3.11's standard library. It is normally not
 used on its own, but as a dependency of python3.11.
Description-md5: 41c666a330b08b8fcf8ac78687a72b26
Multi-Arch: same

...

So indeed the issue is that libpython3.11-stdlib was not updated - for reasons. The other errors were consequential errors.

Running sudo apt --fix-broken install indeed fixed the issue.

Closing as this has been resolved.

P.S.: Do you have an idea why this error happened?

asottile commented 2 years ago

no idea, usually when I get that error I try each individual "won't be installed" package until it shows me the actual error -- unfortunately that'll all be lost with the "--fix-broken"