When I try to update with sudo apt-get update, I get the following:

E: The method driver /usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?

How do I fix this?

  • Have you added anything into /etc/apt/sources.list by any chance? Try setting all current lines to comments (with a # at the start) and then make the first line read deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi for buster and see if that fixes it
    – user115418
    Aug 30, 2020 at 20:10
  • you may be able to fix it by running sudo apt install apt-transport-https Aug 31, 2020 at 5:28

1 Answer 1


The error message suggests to install the package apt-transport-https, but I'm afraid that it doesn't help much. If showing the package, you get:

rpi ~$ apt show apt-transport-https
Package: apt-transport-https
Priority: optional
Section: admin
Source: apt
Maintainer: APT Development Team <[email protected]>
Installed-Size: 156 kB
Depends: apt (>= 1.5~alpha4)
Download-Size: 149 kB
APT-Sources: http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
Description: transitional package for https support
 This is a dummy transitional package - https support has been moved into
 the apt package in 1.5. It can be safely removed.

Https support is now in the apt package so you can try to use apt instead of apt-get:

rpi ~$ sudo apt update

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.