Apt-get error: E: The method driver /usr/lib/apt/methods/https could not be found

Apt-get error: E: The method driver /usr/lib/apt/methods/https could not be found

Category : How-to

Get Social!

I’ve been getting the following error when using apt-get update with Debian Wheezy recently.

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.

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.

Once this is installed, apt should function and update its local cache from your apt lists.

Related posts:



25-Jul-2016 at 11:18 pm

unable to locate package apt-transport-https


    26-Jul-2016 at 9:36 pm

    You 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 pm

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


3-Jun-2018 at 7:48 am

Thanks bro. was really helpful.


1-Aug-2018 at 2:09 am

Man.. you save my day too! Freaking genius! Thanks again

Leave a Reply

Visit our advertisers


Quick Poll

Do you use GlusterFS in your workplace?

Visit our advertisers