2

When I run the "sudo aptitude update" I get the following output:

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.
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.
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/InRelease: 
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease: 
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease: 
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease: 
W: Failed to fetch http://apt.galliumos.org/dists/xenon/InRelease: 
W: Failed to fetch http://download.mono-project.com/repo/ubuntu/dists/vs-xenial/InRelease: 
W: Failed to fetch http://ppa.launchpad.net/papirus/papirus/ubuntu/dists/xenial/InRelease: 
W: Failed to fetch http://packages.microsoft.com/repos/vscode/dists/stable/InRelease: 
E: Some index files failed to download. They have been ignored, or old ones used instead.

And when I run "ls -la /usr/lib/apt/methods/http" I get this output:

ls: cannot access '/usr/lib/apt/methods/http': No such file or directory

How do I fix this? I tried installing apt-transport-https which was recommended and it did nothing.

  • did you try "sudo apt install --fix-missing" or maybe "dpkg-reconfigure -a" – Joshua Besneatte May 10 '18 at 19:32
  • yeah but it returns "sudo: apt: command not found" – gdhughes5 May 10 '18 at 19:35
  • try apt-get or aptitude instead – Joshua Besneatte May 10 '18 at 19:35
0

You can try this:

sudo aptitude install --fix-missing
sudo aptitude update

if that doesn't work, try installing apt:

sudo aptitude install apt
sudo apt install --fix-missing
sudo apt update

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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