E: The method driver /usr/lib/apt/methods/https could not be found Solution

Hey,

I am Aaditya Purani (@aaditya_purani), so many of my friends experienced issues that they get error while installing qtox when they use command. It is a case study + solution .

sudo apt-get install apt-transport-https

and you will get

E: Unable to locate package apt-transport-https

Screenshot from 2015-11-21 10:46:09

The first traditional way is to look in /etc/apt/sources.list

leafpad /etc/apt/sources.list

Screenshot from 2015-11-21 10:46:48

After going that, i found out the links for apt were in “http” rather than https . So it wasn’t properly Installed (Clue 1)

So, i went trying on

sudo apt-get install apt-transport-https

apt-get update

The Error was

E: The method driver /usr/lib/apt/methods/https could not be found

So, I thought maybe apt was pointing me to an obsolete package. I found that the version  did not exist and hence apt failed to fetch the package. 🙂 (Clue 2)

So, i went to Mirrors for kali linux and downloaded a Kali Linux apt-transport-https (The latest one 1.0.9.10)

http://http.kali.org/pool/main/a/apt/

Find appropriate deb package from the list, If you are on 64-bit Machine, download amd64 file. If you are on 32 Bit Machine, download i386 file. If you are running on Mobile device, download armhf file.

Screenshot from 2015-11-21 10:47:43

And then the commands are

cd Downloads/

dpkg -i apt-transport-https_*.deb

Obviously, it had to be workScreenshot from 2015-11-21 10:48:32

If in case the source file is fine but apt fails to fetch a package, manually tracking the package might provide a solution. This is a kind of case study, many of you won’t get this particular error, but manually tracking of error is the best way.

Thanks a lot for reading. Comments are welcomed

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s