Apt-get error: E: The method driver /usr/lib/apt/methods/https could not be found
Category : How-to
I’ve been getting the following error when using apt-get update with Debian Wheezy recently.
1 |
E: The method driver /usr/lib/apt/methods/https could not be found. |
It seems that apt-get only supports HTTP connections by default, and throws an error with any HTTPS URLs. You’ll likely see this error message if you add a new apt source URL that starts with https. What’s most annoying is that apt doesn’t simply ignore the HTTPS URL when updating the local cache, it actually stops all updates regardless of URL schema.
1 2 |
apt-get update E: The method driver /usr/lib/apt/methods/https could not be found. |
Luckily the fix is easy and requires an additional apt package to handle the SSL URLs. Run the below command to install the apt-transport-https package to enable apt to use HTTPS URL lists.
1 |
apt-get install apt-transport-https |
Once this is installed, apt should function and update its local cache from your apt lists.
3 Comments
dick
25-Jul-2016 at 11:18 pmunable to locate package apt-transport-https
james.coyle
26-Jul-2016 at 9:36 pmYou may need to remove any https URLs within /etc/apt/sources.list and /etc/apt/sources.list.d/* in order to perform an apt-get update. Then run the above command, then re-add the https sources.
Anas Ayad
7-Jul-2017 at 4:04 pmIt took me hours for the stupid google to pins me out to your beautiful awesome unbelievable work-around. Thanks to you, you have save my day.