[Bug 2105455] Re: python3-venv : Depends: python3 (= 3.12.3-0ubuntu1) but 3.12.3-0ubuntu2 is to be installed
Dima Tisnek
2105455 at bugs.launchpad.net
Mon Mar 31 14:03:56 UTC 2025
I have ran `sudo apt update` more than a dozen times.
Policy after the fix is probably not informative:
apt-cache policy python3 python3-venv
python3:
Installed: 3.12.3-0ubuntu1
Candidate: 3.12.3-0ubuntu1
Version table:
*** 3.12.3-0ubuntu1 500
500 http://mirror.kakao.com/ubuntu noble/main amd64 Packages
100 /var/lib/dpkg/status
python3-venv:
Installed: 3.12.3-0ubuntu1
Candidate: 3.12.3-0ubuntu1
Version table:
*** 3.12.3-0ubuntu1 500
500 http://mirror.kakao.com/ubuntu noble/universe amd64 Packages
100 /var/lib/dpkg/status
My guess about what happened is that perhaps `3.12.3-0ubuntu2` got installed as part of the OS installed, I've downloaded ubuntu-24.04.2-desktop-amd64.iso on March 25 and then installed the system two days ago.
Here's what I can see in the /var/log/apt/history.log:
--- these are probably when the ISO was baked ---
Start-Date: 2025-02-15 08:09:50
Commandline: apt-get --yes -oDebug::pkgDepCache::AutoInstall=yes --force-yes upgrade
Upgrade: ... python3-minimal:amd64 (3.12.3-0ubuntu1, 3.12.3-0ubuntu2) ... python3:amd64 (3.12.3-0ubuntu1, 3.12.3-0ubuntu2) ... libpython3-stdlib:amd64 (3.12.3-0ubuntu1, 3.12.3-0ubuntu2) ...
Start-Date: 2025-02-15 08:10:24
Commandline: apt-get --yes -oDebug::pkgDepCache::AutoInstall=yes install ... python3-gdbm:amd64 (3.12.3-0ubuntu1) ...
--- these are probably when I installed the system from the flash drive
/ ISO ---
Start-Date: 2025-03-29 12:27:05
Commandline: apt-get --quiet --assume-yes --option=Dpkg::options::=--force-unsafe-io --option=Dpkg::Options::=--force-confold install efibootmgr grub-efi-amd64 grub-efi-amd64-signed shim-signed
(python not mentioned)
Start-Date: 2025-03-29 12:27:56
Commandline: apt-get --quiet --assume-yes --option=Dpkg::options::=--force-unsafe-io --option=Dpkg::Options::=--force-confold install linux-generic-hwe-24.04
(python not mentioned)
Start-Date: 2025-03-29 12:28:34
Commandline: apt-get --quiet --assume-yes --option=Dpkg::options::=--force-unsafe-io --option=Dpkg::Options::=--force-confold install wpasupplicant
(python not mentioned)
Start-Date: 2025-03-29 12:28:43
Commandline: apt-get --quiet --assume-yes --option=Dpkg::options::=--force-unsafe-io --option=Dpkg::Options::=--force-confold install wbritish
(python not mentioned)
Start-Date: 2025-03-29 12:29:19
Commandline: /usr/bin/unattended-upgrades -v
Upgrade: ... python3.12:amd64 (3.12.3-1ubuntu0.4, 3.12.3-1ubuntu0.5) ... python3.12-minimal:amd64 (3.12.3-1ubuntu0.4, 3.12.3-1ubuntu0.5) ... (and a few more like libpython3, same versions all across)
(I'm a but confused about these, TBH)
--- these are when I fixed my system ---
Start-Date: 2025-03-31 09:24:56
Commandline: apt install --allow-downgrades python3=3.12.3-0ubuntu1 python3-full=3.12.3-0ubuntu1 python3-doc=3.12.3-0ubuntu1 python3-examples=3.12.3-0ubuntu1 python3-minimal=3.12.3-0ubuntu1 libpython3-stdlib=3.12.3-0ubuntu1
Requested-By: dima (1000)
Install: ...
Downgrade: python3-minimal:amd64 (3.12.3-0ubuntu2, 3.12.3-0ubuntu1), python3:amd64 (3.12.3-0ubuntu2, 3.12.3-0ubuntu1), libpython3-stdlib:amd64 (3.12.3-0ubuntu2, 3.12.3-0ubuntu1)
---
The best explanation I can come up with is that -0ubuntu2 was a real build at the time when ISO was made, and that build was since yanked.
https://launchpad.net/ubuntu/noble/+package/python3
lists 3.12.3-0ubuntu2 in proposed and updates
lists 3.12.3-0ubuntu1 in proposed and release
could it be that the install media either included a version too new?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/2105455
Title:
python3-venv : Depends: python3 (= 3.12.3-0ubuntu1) but
3.12.3-0ubuntu2 is to be installed
Status in python3-defaults package in Ubuntu:
Incomplete
Bug description:
ommand: /usr/bin/apt-get install -y python3-venv
Output:
Reading package lists...
Building dependency tree...
Reading state information...
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-venv : Depends: python3 (= 3.12.3-0ubuntu1) but 3.12.3-0ubuntu2 is to be installed
Couldn't be fixed by normal update/upgrade or mirror change.
I've patched my system for now with:
sudo apt install --allow-downgrades
python3{,-full,-doc,-examples,-minimal}=3.12.3-0ubuntu1
libpython3-stdlib=3.12.3-0ubuntu1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/2105455/+subscriptions
More information about the foundations-bugs
mailing list