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?
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It only takes a minute to sign up.
Sign up to join this communityThe 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
Version: 1.8.2.1
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
deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
for buster and see if that fixes itsudo apt install apt-transport-https