-1

My problems in Aptitude: I keep getting this error

E: The method driver /usr/lib/apt/methods/http could not be found. W: Is the package apt-transport-http installed? And I can't update anything, if I'm installing I get this:

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.

or sometimes this with the log above:

E: Internal error: couldn't generate list of packages to download

And when I installed Aptitude just earlier, it uninstalled apt.

My problems with apt:

Sometimes, I can't use sudo apt-get update and sudo apt-get upgrade.

I forgot the rest because I can't do it again because Aptitude uninstalled it. PLEASE HELP ME!

CottonTheButton
  • 415
  • 1
  • 7
  • 15

1 Answers1

0

Reinstall apt package with one of the methods below:

  • method 1 (if aptitude is alive)

    sudo aptitude install apt
    
  • method 2 (if apt-get is alive)

    cd ~/Downloads
    apt-get download apt
    sudo dpkg -i apt*.deb
    
  • method 3 (using wget and dpkg)

    cd ~/Downloads
    wget http://mirrors.kernel.org/ubuntu/pool/main/a/apt/apt_1.6.1_amd64.deb
    sudo dpkg -i --force-all apt*.deb
    

Then use apt-get as before:

sudo apt-get update
sudo apt-get dist-upgrade
N0rbert
  • 103,263