Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I tried updating my packages from the terminal and this is what I got:

$ sudo apt-get update
E: The method driver /usr/lib/apt/methods/http could not be found.
E: The method driver /usr/lib/apt/methods/http could not be found.
E: The method driver /usr/lib/apt/methods/http could not be found.
E: The method driver /usr/lib/apt/methods/http could not be found.
E: The method driver /usr/lib/apt/methods/http could not be found.

What does this mean? I'm using the United States mirror an I've tried using the main server for the mirror and I keep getting the same result is this because there are no updates?

share|improve this question
    
Can you show your /etc/apt/sources.list? –  César Jul 19 '12 at 20:28
add comment

5 Answers

SirCharlo said in the duplicate of this question:

sudo apt-get install apt-transport-https

I tried it and it worked for me.

share|improve this answer
    
This worked for me in Debian Squeeze. –  Matt Alexander Dec 12 '12 at 22:27
    
How is this possible? He can't able to connect to the internet. –  Avinash Raj Apr 12 at 12:16
add comment

I have faced this problem before, in my case the problem was in /etc/apt/sources.list. Make sure there are no quotation marks '' or "":

deb "http://archive.canonical.com/ubuntu/ maverick partner (Source Code)"

Remove quotes and change those lines to:

deb http://archive.canonical.com/ubuntu/ maverick partner (Source Code)

Also, as @arhimed suggests, make sure the protocol is well-formed: http://

share|improve this answer
    
Everything is in good form any other ideas? –  Abe Jul 20 '12 at 14:12
add comment

Probably in your /etc/apt/sources.list there is http//: instead of http://. Check this file.

share|improve this answer
    
It says i dont have permission? –  Abe Jul 20 '12 at 3:40
    
from terminal use: sudo gedit /etc/apt/sources.list or sudo nano /etc/apt/sources.list. It will ask you your password. –  arhimed Jul 20 '12 at 5:31
    
Ok now i have access to the file but there nothing wrong with it the http:// is in the right protocol. theres no quotes around anything everything seems pretty much in place –  Abe Jul 20 '12 at 14:11
    
Why don't you update your question and show your sources.list or at least give the link to a pastebin.com or something –  César Jul 20 '12 at 14:18
    
(pastebin.com/yuB25JPx) –  Abe Jul 20 '12 at 14:28
show 17 more comments

I have resolved it just now by this command:

cd /etc/apt ; sudo rm sources.list ; mv sources.list~ sources.list
share|improve this answer
add comment
E: The method driver /usr/lib/apt/methods/http could not be found.

This error clearly shows that the apt can't connect to the internet because /usr/lib/apt/methods/http file was not found.To get rid-off this error, you have to copy the http binary file from the Ubuntu live disk to the installed Ubuntu partition.

  • Boot from Ubuntu live disk and then mount the installed Ubuntu partition.

  • Copy the file /usr/lib/apt/methods/http to the mounted Ubuntu partition's /usr/lib/apt/methods directory.

    cp /usr/lib/apt/methods/http /mount-point/usr/lib/apt/methods  # Mount-point the path to the directory where installed Ubuntu is mounted.
    
  • After the http binary file was successfully copied, reboot your installed OS. Now it will works.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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