libcurl4 depends on libnghttp2-14 (>= 1.50.0) which is unavailable in jammy

Asked by Achton

I am trying to upgrade my 22.04 LTS Ubuntu Desktop installation. I need to upgrade all packages first.

APT tells me:

The following packages have been kept back:
  curl libcurl3-gnutls libcurl4

Aptitude tells me (when upgrading those packages):

The following packages will be upgraded:
  curl libcurl3-gnutls{b} libcurl4{b}
3 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 1.175 kB of archives. After unpacking 186 kB will be used.
The following packages have unmet dependencies:
 libcurl4 : Depends: libnghttp2-14 (>= 1.50.0) but 1.43.0-1build3 is installed
 libcurl3-gnutls : Depends: libnghttp2-14 (>= 1.50.0) but 1.43.0-1build3 is installed

So it appears that libcurl4 (and libcurl3-gnutls) depends on a version of libnghttp2-14 that does not exist for jammy.

What should I do to remedy this?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu curl Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes please provide the output that you receive for the following commands (to be executed in a terminal window):

uname -a
lsb_release -crid
apt policy libcurl4 libnghttp2-14 libcurl3-gnutls libnghttp2-14

Revision history for this message
Achton (achton) said :
#2

Linux anarion 5.19.0-38-generic #39~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 17 21:16:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy
libcurl4:
  Installed: 7.81.0-1ubuntu1.13
  Candidate: 7.88.1-10~22.04.sav0
  Version table:
     7.88.1-10~22.04.sav0 500
        500 https://ppa.launchpadcontent.net/savoury1/curl34/ubuntu jammy/main amd64 Packages
 *** 7.81.0-1ubuntu1.13 500
        500 http://dk.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        100 /var/lib/dpkg/status
     7.81.0-1 500
        500 http://dk.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
libnghttp2-14:
  Installed: 1.43.0-1build3
  Candidate: 1.43.0-1build3
  Version table:
 *** 1.43.0-1build3 500
        500 http://dk.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
        100 /var/lib/dpkg/status
libcurl3-gnutls:
  Installed: 7.81.0-1ubuntu1.13
  Candidate: 7.88.1-10~22.04.sav0
  Version table:
     7.88.1-10~22.04.sav0 500
        500 https://ppa.launchpadcontent.net/savoury1/curl34/ubuntu jammy/main amd64 Packages
 *** 7.81.0-1ubuntu1.13 500
        500 http://dk.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        100 /var/lib/dpkg/status
     7.81.0-1 500
        500 http://dk.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
libnghttp2-14:
  Installed: 1.43.0-1build3
  Candidate: 1.43.0-1build3
  Version table:
 *** 1.43.0-1build3 500
        500 http://dk.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#3

It seems that the PPA ppa:savoury1/curl34 is causing the problem.

That PPA seems to contain a higher version of *curl*, where the dependencies cannot be met in your list of allowed sources, and so the update to the latest version available in your sources cannot be installed.

My advice:
Remove that PPA (and eventually other ones) from your list of repositories and then try the release-upgrade again.

Revision history for this message
Achton (achton) said :
#4

Thank you for your help - I can't believe I did not see this myself.

Revision history for this message
Achton (achton) said :
#5
Revision history for this message
Dominique Quatravaux (dominique-quatravaux) said :
#6

Instead of removing the ppa:savoury1/curl34 PPA, replacing it with ppa:savoury1/backports also solves the dependency problem.