I'm using Ubuntu 22.04.3 Server. I've installed nala
using the Volian Scar repo. Recently, this repo has included a number of updated Python 3 packages, including python3-anyio
.
However, this particular package will not upgrade:
$ sudo apt full-upgrade
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
python3-mdurl
The following packages have been kept back:
python3-anyio
The following packages will be upgraded:
python3-click python3-httpcore python3-markdown-it python3-pygments python3-rich python3-typer python3-typing-extensions
7 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
...
And if I try to force install python3-anyio
, I get the exact reason:
$ sudo apt install --reinstall --dry-run python3-anyio
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-anyio : Depends: python3-exceptiongroup but it is not installable or
python3 (> 3.11) but 3.10.6-1~22.04 is to be installed
E: Unable to correct problems, you have held broken packages.
It's now evident that this updated package requires Python 3 "Exception Groups", which are either included in Python 3.11 (Ubuntu 22.04 uses Python 3.10), or in the backported package python3-exceptiongroup
.
Searching for this package on Ubuntu Package archive reveals that this package is part of the Universe repository, but only for Ubuntu 23.04 (Lunar) or 23.10 (Mantic).
What options do I have to avoid dependency issues in this situation when I still want to upgrade my packages?
FYI, this has already been reported as an issue with Volian. I assume the package python3-exceptiongroup
should be added to the Volian repo in the future.
ALAS, python3-exceptiongroup
has already been added to the Volian Scar repo, so now this dependency error does not show up anymore. Still, the method in this Q&A could be used in other similar situations.