I'm unable to update or install curl
, due to a dependency mismatch problem. (I tried removing and reinstalling, thinking that might help, but it didn't.)
My curl
attempt:
pi@RECOVERY:~ $ sudo apt-get install curl
Reading package lists... Done
Building dependency tree
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:
curl : Depends: libcurl3 (= 7.52.1-5+deb9u1) but 7.38.0-4+deb8u5 is to be installed
E: Unable to correct problems, you have held broken packages.
And then an attempt at one of the dependencies:
pi@RECOVERY:~ $ sudo apt-get install libcurl3
Reading package lists... Done
Building dependency tree
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:
libcurl3 : Depends: libgssapi-krb5-2 (>= 1.14+dfsg) but 1.12.1+dfsg-19+deb8u2 is to be installed
Depends: libnghttp2-14 (>= 1.12.0) but it is not installable
Depends: libpsl5 (>= 0.13.0) but it is not installable
Depends: libssh2-1 (>= 1.7.0) but 1.4.3-4.1+deb8u1 is to be installed
Depends: libssl1.0.2 (>= 1.0.2d) but it is not installable
E: Unable to correct problems, you have held broken packages.
I also tried sudo apt-get update && sudo apt-get upgrade && sudo apt-get -f install
, but that didn't work either. Neither did sudo apt-get purge
.
I see that some of the sub-dependencies (e.g. libnghttp2-14
, libpsl5
, etc.) are shown as "not installable." Could this have something to do with it?
How can I get past this?
--EDIT--
As requested in the comments, here's my /etc/apt/sources.list
, as well as the output from apt-cache policy curl
:
sources.list
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi
deb http://security.debian.org stable/updates main
deb-src http://security.debian.org/ stable/updates main
apt-cache
pi@RECOVERY:~ $ apt-cache policy curl
curl:
Installed: (none)
Candidate: 7.52.1-5+deb9u1
Version table:
7.52.1-5+deb9u1 0
500 http://security.debian.org/ stable/updates/main armhf Packages
7.38.0-4+deb8u6 0
500 http://mirrordirector.raspbian.org/raspbian/ jessie/main armhf Packages
500 http://archive.raspbian.org/raspbian/ jessie/main armhf Packages
mirrordirector
line—having noted in a clean install of the most recent upgrade, Stretch, that it's the only line—but the result was the same. Ultimately the problem was insources.list
, which you helped me with. Thanks again.)