Unmet dependencies when trying to install curl on Ubuntu 16.04
14,698
UPDATE: I fixed the problem by reverting to an older version of libcurl3-gnutls.
For anyone who is having the same problem, I did this by listing the cache:
apt-cache showpkg libcurl3-gnutls
Which gave me a long output, but the important part was the last three lines:
Provides:
7.47.0-1ubuntu2.6 -
7.47.0-1ubuntu2 -
Reverse Provides:
I used the following command to download the older version:
sudo apt-get install libcurl3-gnutls=7.47.0-1ubuntu2
Then I ran sudo apt install curl
as normal.
Thanks for the help!
Related videos on Youtube
Author by
Wallace
Updated on September 18, 2022Comments
-
Wallace over 1 year
When trying to install curl on Ubuntu 16.04, it gives me the following error message:
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: curl : Depends: libcurl3-gnutls (= 7.47.0-1ubuntu2) but 7.47.0-1ubuntu2.6 is to be installed E: Unable to correct problems, you have held broken packages.
How to fix?
-
Gilles Quenot about 6 yearsDo
sudo apt update; sudo apt-get upgrade
helps ? -
Byte Commander about 6 yearsPlease add the output of
apt policy curl libcurl3-gnutils
to your question. -
NerdOfCode about 6 yearsHow about
apt install -f
? -
Wallace about 6 yearsThe output is: curl: Installed: (none) Candidate: 7.47.0-1ubuntu2 Version table: 7.47.0-1ubuntu2 500 500 us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages N: Unable to locate package libcurl3-gnutils
-
Knud Larsen about 6 yearsWallace : Did you forget
sudo apt update
? I.e. latest is curl 7.47.0-1ubuntu2.6 , not 7.47.0-1ubuntu2 → packages.ubuntu.com/xenial-updates/curl
-
-
Harshal Y. about 5 yearsI'm getting Version '7.47.0-1ubuntu2' for 'libcurl3-gnutls' was not found error