apt failing http

Asked by davinci

root@beast:/home/davinci# apt-get update
E: The method driver /usr/lib/apt/methods/cdrom 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/cdrom could not be found.
root@beast:/home/davinci#

for no reason it wont load anything off the 6.10 cd or the internet

I do have internet up and running ,able to surf no problems
cant seem to install anything either with the graphical manager nor the text based way

HEEEELLLLLPPPPP!!!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
davinci
Solved:
Last query:
Last reply:
Revision history for this message
Craig Huffstetler (xq) said :
#1

I think you have the old apt.conf file, Go ahead and download the latest apt-get/apt file directly on the web (browser, since you have access) or wget and install it in /etc/apt and then try the command.

And/or make sure to check you have the current version of apt installed and let us know.

Revision history for this message
Craig Huffstetler (xq) said :
#2

Also, just to let you know -- the CURRENT version of apt is 0.6.46.5unbutu10 for ubuntu which should be installed. If it isn't -- then it needs to be :)

The command is simply:
apt-get --help

Read the first line for your version. :)

Example:
root@tiny:/home/xq/# apt-get --help
apt 0.6.46.4ubuntu10 for linux i386 compiled on March 14 2007 17:17:17

Revision history for this message
davinci (davincinewfie) said :
#3

davinci@beast:~$ apt-get --help
apt 0.6.45ubuntu14 for linux i386 compiled on Sep 27 2006 23:43:26

........................................

if/when I find the apt.deb file (I take it to be thats what you mean) just install it over whats therte.... dpkg -i apt.deb, or do I uninstall apt first?

Revision history for this message
Ralph Janke (txwikinger) said :
#4

Are you behind a firewall and need to use a webproxy, you need to configure this in your apt configuration file (/etc/apt/apt.conf)

Add the following lin ein to /etc/apt/apt.conf

Acquire::http::Proxy "http://<host>:<port>/";

<host> must be replaced with your host's ip address, and <port> with the portnumber of the http proxy.

I hope this helps

Revision history for this message
davinci (davincinewfie) said :
#5

I have no problems downloading anythign from a web site but I cannot apt-get anything

I am having no problems accessing anything on the internet, no rpoxy problems

from xq's advice I need to download the latest apt-get/apt file however I am puzzled as to where to get that

Revision history for this message
Ralph Janke (txwikinger) said :
#6

Do you have a proxy ?

Revision history for this message
davinci (davincinewfie) said :
#7

no I dont use a proxy

just through my router then onto the internet

do you know where I can download the apt-file ??

Revision history for this message
Ralph Janke (txwikinger) said :
#8

The apt package should be on the Live/Installation CD.

Another possibility is this directory.

http://gb.archive.ubuntu.com/ubuntu/pool/main/a/apt/

Choose the correct apt-version for your release 0.6.45 for edgy 6.10:

http://gb.archive.ubuntu.com/ubuntu/pool/main/a/apt/apt_0.6.45ubuntu14.2_i386.deb

would be right for i386 platform (you can find your platform with 'uname -a'

I hope this helps

Revision history for this message
Best davinci (davincinewfie) said :
#9

I followed the link you gave .... many thanks
it worked.... just in case others had the same problem

wget http://gb.archive.ubuntu.com/ubuntu/pool/main/a/apt/apt_0.6.45ubuntu14.2_i386.deb

then as root dpkg -i apt_0.6.45ubuntu14.2_i386.deb

the output should be.....
(Reading database ... 121691 files and directories currently installed.)
Preparing to replace apt 0.6.45ubuntu14 (using apt_0.6.45ubuntu14.2_i386.deb) ...
Unpacking replacement apt ...
Setting up apt (0.6.45ubuntu14.2) ...

many many many many many many many thanks for all the help