I am struggling to do my release upgrade from Ubuntu 23.04 to 23.10. The release upgrade depends on all packages being upgraded, and one upgrade is held back.
$ sudo do-release-upgrade
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading
When updating and upgrading all packages, the package libgd3
fails to upgrade
$ sudo apt upgrade
...
The following packages have been kept back:
libgd3
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
The package depends on a package that is not installable,
The following packages have unmet dependencies:
libgd3 : Depends: libavif13 (>= 0.9.3) but it is not installable
I have therefore installed libavif13
from source, but to no avail (as I do not know how to indicate the library to apt [and unsure whether this makes sense]). libavif
apparently has newer installation candidates, such as libavif15
, I have no idea why libgd3
would depend on the outdated libavif13
.
I am honestly lost here and would appreciate any hint as to how to resolve this dependency.
Thank you all and cheers
edit: as requested, the output of apt policy libgd3
$ sudo apt policy libgd3
libgd3:
Installed: 2.3.3-7ubuntu2
Candidate: 2.3.3-9+ubuntu22.04.1+deb.sury.org+1
Version table:
2.3.3-9+ubuntu22.04.1+deb.sury.org+1 500
500 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 Packages
*** 2.3.3-7ubuntu2 500
500 http://xx.archive.ubuntu.com/ubuntu lunar/main amd64 Packages
100 /var/lib/dpkg/status
libavif13
was removed from the Ubuntu repositories after 22.04. The 23.04 version oflibgd3
does not have a dependency onlibavif13
. This suggests that your 23.04 system isn't a clean or "real" 23.04 system at all, since it's still using (some) 22.04 packages. The most common reason for such a discrepancy is a failed or partial release-upgrade in the past. – user535733 Nov 07 '23 at 15:47libgd3
package. – Mr.Cave Nov 07 '23 at 16:13apt policy
output is that you have a PPA source. PPAs are a common cause of dependency problems. Remove that PPA and see if that helps. Advice: Remove ALL non-Ubuntu sources and packages before a release-upgrade. Those are the #1 cause of release-upgrade problems. – user535733 Nov 07 '23 at 16:46