Very odd for sure, I tend to suspect something is wrong with your
package repository or sources list (like maybe you only included
main and not universe?).
Hmm. This was an upgrade from an install maybe a year old? I had to use
the repos at the old-releases mirror to make it work.
But an apt-get check
produced no complaints.
The upgrade added a line for jammy universe and commented it out!
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb https://mirror.aarnet.edu.au/ubuntu jammy universe # disabled on upgrade to jammy
I’ve uncommented it and done an apt-get update
.
I have many Ubuntu 22.04 LTS servers with
the python3.10-venv package installed directly from Ubuntu’s package
mirrors.
Good to hear. It worked for me with the previous install (hirsute,
Python 3.9).
Now I get slightly better response. Examples:
root@borg:/# apt-get install python3.10-venv
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
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.10-venv : Depends: python3.10 (= 3.10.4-3) but
3.10.6-1~22.04.2ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
Chris’ suggested command:
root@borg:/# apt-get install python3-venv
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
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.10-venv (>= 3.10.4-1~) but it is not
going to be installed
Depends: python3 (= 3.10.4-0ubuntu2) but 3.10.6-1~22.04
is to be installed
E: Unable to correct problems, you have held broken packages.
My apt
-fu is weak. dpkg
says this:
root@borg:/# dpkg -l|grep python3|grep venv
rc python3.9-venv 3.9.5-3ubuntu0~21.04.1 amd64 Interactive high-level object-oriented language (pyvenv binary, version 3.9)
Doubtless this stems from the previous state of this machine, but I
don’t know how to diagnose and/or repair at this point.
Suggestions?
Small rant:
- my server has an SD card for the boot drive; very compact and cute but
VERY SLOW
- I’m not very enchanted by Ubuntu’s old release policy - I get that
releases have end of life but the mirrors seem to evaporate, and with
no mirror you can’t upgrade! I’ve very tired of doing fresh
installs because of the downtime, rubbish install instructions and
loss of config.
I was saved only by the old-releases
site, which I found just by
chance after months of deferring this because the repos were all
broken/gone.
I’m verging on using OpenBSD for this machine because of this pain; as
an install and upgrade experience, OpenBSD kicks butt - every release I
think they can’t make the install more streamlined and friendly, and
every release just get s better. Not having systemd would be an added
bonus. No docker though (which I’m starting to use to insulate me from
some stale apps by running shiny new ones in a container).
Cheers,
Cameron Simpson cs@cskk.id.au