Closed rlippmann closed 2 months ago
So, I think I managed to fix this:
sudo aptitude remove python3 sudo ppa-purge ppa:deadsnakes/ppa sudo apt reinstall python3
we don't provide python 3.12 on noble, that's ununtu's package
I'm aware. The problem is that if you have 3.12 installed on jammy via deadsnakes, it conflicts with the one noble wants to install.
So, since the version in deadsnakes jammy is higher (3.12.5) than what ubuntu provides (3.12.3), apt can't find 3.12.5+ in the ubuntu repos. Nor in deadsnakes because 3.12 isn't there either.
you're in severely unsupported territory -- trying to install a python on the wrong ubuntu release is asking for trouble (especially if you're trying to overwrite the system python)
That's not what I did, though.
I had jammy with the system versions of python. I installed 3.12 via deadsnakes on jammy to do development. Not as the system python, just installed the binaries.
When I went and tried to upgrade from jammy to noble, apt saw a version of 3.12 there. So, it tried to use it. Unfortunately, deadsnakes was at 3.12.5, noble is at 3.12.3, so apt gave up.
If you want to reproduce: 1) install jammy on a machine 2) add deadsnakes ppa 3) install 3.12 from deadsnakes onto the jammy machine 4) try to upgrade to noble from there.
I had the very same issue @rlippmann. How did you managed to continue the Ubuntu release upgrade? My sourcelists are completely messed up.
ah rookie mistake. you'll want to purge all ppas when upgrading
For future reference you can manually downgrade to the distro version.
$ sudo apt-get install python3.12=3.12.3-1ubuntu0.2 python3.12-minimal=3.12.3-1ubuntu0.2 libpython3.12-stdlib=3.12.3-1ubuntu0.2 libpython3.12-minimal=3.12.3-1ubuntu0.2
To check the available version numbers use $ apt-cache policy python3.12-minimal
description
Trying to upgrade/reinstall various packages I keep running into the following errors:
Apparently a lot of things depend on python in Noble, so I can't do things like upgrade/reinstall samba, vim, etc.
os information
lsb_release -a
uname -a