eading 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:
libgd3 : Depends: libavif13 (>= 0.9.3) but it is not installable
E: Unable to correct problems, you have held broken packages.
I have Ubuntu systems (both 20.04 and 22.04) they all use libgd3 (Running latest 2.3.0-2ubuntu2) none of them use/depend on libavif13 (>= 0.9.3) or any libavif
It seems odd that libgd3 has been released without checking availability of a dependency. Is the solution to wind back to a previous version of libgd3?
Which version of libgd3 are you trying to install? Is it different from 2.3.0-2ubuntu2 and if so why? As far as I can see libavif is not required. (or is it?)
That package is coming from a third-party repository. If doing the following doesn’t fix it:
apt-get clean
apt-get update
apt-get -f install
Then it’s a problem with the repository that we can’t fix (it’s not our repository), and you’d need to take it up with the maintainers of that repository, or explicitly switch to a version that has dependencies available (if any version has dependencies available).
I strongly recommend you not use third party repos, without a very good reason to do so. If you do use third party repos, I recommend you restrict it to only being used for the packages you need, rather than everything in the repo.