1

I'm trying to install python3-venv on Ubuntu 24.04.3 noble but getting the error:

The following packages have unmet dependencies:
    python3-venv : Depends: python3.12-venv (>= 3.12.3-0~) but it is not going to be installed
    Depends: python3 (= 3.12.3-0ubuntu1) but 3.12.3-0ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages.

apt-mark showhold does not return anything.

I've gathered that python3 3.12.3-0ubuntu2 is being provided by python3-minimal. Attempting to install python3-full gives:

The following packages have unmet dependencies:
python3-full : Depends: python3 (= 3.12.3-0ubuntu1) but 3.12.3-0ubuntu2 is to be installed
               Depends: python3.12-full (>= 3.12.3-0~) but it is not going to be installed
               Depends: python3-venv (= 3.12.3-0ubuntu1) but it is not going to be installed
               Recommends: python3-doc but it is not going to be installed
               Recommends: python3-examples but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I've tried reinstalling python3-minimal (and plain python3), but it gives:

Reinstallation of python3-minimal is not possible, it cannot be downloaded.

Any help would be appreciated!

2
  • 1
    I suspect this was caused by noble-updates and noble-security being disabled. updating now to verify Commented Nov 3, 2025 at 2:58
  • 1
    Your sources are incorrect or aren't updated; the correct depends rules can be seen at packages.ubuntu.com/noble-updates/python3-full which do NOT match your paste Commented Nov 3, 2025 at 3:03

1 Answer 1

1

The cause was misconfigured /etc/apt/sources.list.d/ubuntu.sources. noble-updates and noble-security were not listed on the Suites line. Adding them and updating resolved the issue.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.