I attempted to run sudo apt-get update
, but got the error E: The method driver /usr/lib/apt/methods/http could not be found.
Following to this answer, I checked /etc/apt/sources.list.d/
and found no https sources. I tried sudo apt-get install apt-transport-https
and received an error about not being able to connect to the update server or repository. (I lost the exact error text when I rebooted the pi.)
At this point, apt-get
appeared rather broken, so in following the answer, I downloaded the apt-transport-https.deb
directly and (after verifying the sha256 checksum) installed via dpkg -i
. I had one dependency to update, so I also installed libapt-pkg4.12
(confirming checksum, etc.), which then allowed apt-transport-https
to complete installation.
Unfortunately, running sudo apt-get update
produced no output after the manual dpkg install. I tried a sudo shutdown -r now
and after logging in again, still no output.
pi@raspberrypi:~ $ sudo apt-get update
pi@raspberrypi:~ $
What did I do wrong, and can it be fixed? I'm just looking to use apt-get update
...
http
nothttps
- repeat what you did forapt-transport-https.deb
but getapt.deb
instead ... i.e. you probably want/raspbian/pool/main/a/apt/apt_1.4.9_armhf.deb
sudo apt update
still returns no feedback.