0

I've already added Ubuntu university repo: cat source with repo content

> > deb http://archive.ubuntu.com/ubuntu questing multiverse universe main restricted
> # deb-src http://archive.ubuntu.com/ubuntu questing multiverse universe main restricted
> # Enabling this repository requires acceptance of the following license:
> # /usr/share/amdgpu-install/AMDGPUPROEULA
> # deb https://repo.radeon.com/amdgpu/7.1.1/ubuntu noble proprietary deb [arch=amd64,i386 signed-by=/etc/apt/keyrings/rocm.gpg]
> https://repo.radeon.com/amdgpu/30.20.1/ubuntu noble main
> #deb-src [signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/amdgpu/30.20.1/ubuntu noble main Types: deb
> URIs: https://download.docker.com/linux/ubuntu Suites: questing
> Components: stable Signed-By: /etc/apt/keyrings/docker.asc deb
> [arch=amd64 signed-by=/usr/share/keyrings/nodesource.gpg]
> https://deb.nodesource.com/node_21.x nodistro main deb [arch=amd64
> signed-by=/etc/apt/keyrings/rocm.gpg]
> https://repo.radeon.com/rocm/apt/7.1.1 noble main deb [arch=amd64,i386
> signed-by=/etc/apt/keyrings/rocm.gpg]
> https://repo.radeon.com/graphics/7.1.1/ubuntu noble main Types: deb
> URIs: http://ru.archive.ubuntu.com/ubuntu/ Suites: questing
> questing-updates questing-backports Components: main restricted
> universe multiverse Signed-By:
> /usr/share/keyrings/ubuntu-archive-keyring.gpg
> 
> Types: deb URIs: http://security.ubuntu.com/ubuntu/ Suites:
> questing-security Components: main restricted universe multiverse
> Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
> # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
> # newer versions of the distribution.
> 
> ## Ubuntu distribution repository
> ##
> ## The following settings can be adjusted to configure which packages to use from Ubuntu.
> ## Mirror your choices (except for URIs and Suites) in the security section below to
> ## ensure timely security updates.
> ##
> ## Types: Append deb-src to enable the fetching of source package.
> ## URIs: A URL to the repository (you may add multiple URLs)
> ## Suites: The following additional suites can be configured
> ##   <name>-updates   - Major bug fix updates produced after the final release of the
> ##                      distribution.
> ##   <name>-backports - software from this repository may not have been tested as
> ##                      extensively as that contained in the main release, although it includes
> ##                      newer versions of some applications which may provide useful features.
> ##                      Also, please note that software in backports WILL NOT receive any review
> ##                      or updates from the Ubuntu security team.
> ## Components: Aside from main, the following components can be added to the list
> ##   restricted  - Software that may not be under a free license, or protected by patents.
> ##   universe    - Community maintained packages. Software in this repository receives maintenance
> ##                 from volunteers in the Ubuntu community, or a 10 year security maintenance
> ##                 commitment from Canonical when an Ubuntu Pro subscription is attached.
> ##   multiverse  - Community maintained of restricted. Software from this repository is
> ##                 ENTIRELY UNSUPPORTED by the Ubuntu team, and may not be under a free
> ##                 licence. Please satisfy yourself as to your rights to use the software.
> ##                 Also, please note that software in multiverse WILL NOT receive any
> ##                 review or updates from the Ubuntu security team.
> ##
> ## See the sources.list(5) manual page for further settings. Types: deb URIs: http://archive.ubuntu.com/ubuntu/ Suites: questing
> questing-updates questing-backports Components: main universe
> restricted multiverse Signed-By:
> /usr/share/keyrings/ubuntu-archive-keyring.gpg
> 
> ## Ubuntu security updates. Aside from URIs and Suites,
> ## this should mirror your choices in the previous section. Types: deb URIs: http://security.ubuntu.com/ubuntu/ Suites: questing-security
> Components: main universe restricted multiverse Signed-By:
> /usr/share/keyrings/ubuntu-archive-keyring.gpg Types: deb URIs:
> https://ppa.launchpadcontent.net/wireshark-dev/stable/ubuntu/ Suites:
> questing Components: main Signed-By: -----BEGIN PGP PUBLIC KEY
> BLOCK-----  . 
> mQINBFSLYMIBEAC40a/fcfUK5r7VDT8v/mLuYANqcD5EcLCy9yYhMssFJJIlV+b1 
> 0aYeQPKO0AoTw7+zh3l2XA1YVfNI/VGs9MPeREkcO8isW33E6IR6X6sZERwU9BXv 
> Ya/pUeRrcevSiaDmj7WK+BvUagAtl61pq1AuaxW3iVLYUcSpTzi3Fn3R7HokpS0W 
> wAkx88X7TGbIQOOvKIDgu+XkllbBXz9myukGSzunhXPC74muQB8FqRDr/Nt3sUqO 
> pjzViuUU9kEmXgZ/ba4uzbeMFrI6NU3ACMaijgJQm781VMhVpPHjqT822/7LEkNq 
> Gw2O3uK42PoEyFIzrM47u75P7ZTIfjQheuk+Q4p5oheZz6SLJsOEG7hqrx8EAIF1 
> sY+LuPAJ/DkB5xAzRM63VnFeOAuiqHKwwhRt5FEy8b9mHl37taiJHDfzaiIH0mmm 
> ZAHCeTAfh1BJDB0CB6aCbBG7mX0F7nhxI66FpvzksjwkBAt0XXey8WFUc9UI0Dnt 
> TRICpDo9yZO5lzeh8lUfRTirOFwnedDRKAw/1ZVwl5VuNXHX/MPYgPQDeafSvKM0 
> yTCV3za6ugbYwH6w694w2BWx1p0ijRV30guJqWD4+43YlWqAZHln8SxDKGlMUwBT 
> Rk1CFICysFhG7fgWpeWlmamv0NagQMJbFenmWLyNY+8sKw1uzn+/AJgKlwARAQAB 
> tCZMYXVuY2hwYWQgUFBBIGZvciBXaXJlc2hhcmsgRGV2ZWxvcGVyc4kCOAQTAQIA
> Types: deb URIs: https://repo.yandex.ru/yandex-browser/deb/ Suites:
> stable Components: main Signed-By:
> /etc/apt/trusted.gpg.d/yandex-browser.gpgTypes: deb URIs:
> https://repo.yandex.ru/yandex-browser/deb/ Suites: stable Components:
> main Signed-By: /etc/apt/trusted.gpg.d/yandex-browser.gpg

I've run install python3-venv, but got an error that it couldn't locate the package:

sudo apt install python3-venv

I've also tried these steps, but had the same issue:

The issue persists even after adding the universe repository.

It works fine on earlier versions of Ubuntu.

6
  • 1
    Please edit the result of this command into your question: sudo apt update; sudo add-apt-repository universe; sudo apt update; sudo apt install python3-venv Commented Dec 18, 2025 at 6:28
  • 1
    I see python3-venv | 3.13.7-1 | questing/universe | amd64, amd64v3, arm64, armhf, i386, ppc64el, riscv64, s390x Commented Dec 18, 2025 at 6:38
  • 2
    When I do apt info python3-venv I see: Section: universe/python, so it has to be in universe. The command I provided enables the universe repository. Likely you disabled it or have a minimal/server install. Commented Dec 18, 2025 at 6:43
  • 1
    same user askubuntu.com/questions/1561862/… It is the same issue: remove i386 from your repositories, Commented Dec 18, 2025 at 7:09
  • 2
    (a) Please don't post screenshots of text. Copy the text output here and use code blocks to format them. (b) The output shown so far indicates you have somehow removed the Ubuntu repositories from your apt sources. Add them back first: askubuntu.com/q/443036/158442 Commented Dec 19, 2025 at 7:09

1 Answer 1

6

In current python versions, you can use the default python with the venv module, available by default, to set up a virtual environment, like:

python -m venv .venv

See the documentation for an extensive tutorial.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.