0

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...

  • not sure why you felt the need to install https transport, since the method driver not found is http not https - repeat what you did for apt-transport-https.deb but get apt.deb instead ... i.e. you probably want /raspbian/pool/main/a/apt/apt_1.4.9_armhf.deb – Jaromanda X Feb 6 at 22:28

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.