Não é possível executar a atualização do Aptitude: O driver do método / usr / lib / apt / methods / http não foi encontrado

1

Quando executo a "atualização do sudo aptitude", recebo a seguinte saída:

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.

E quando eu executo "ls -la / usr / lib / apt / métodos / http" eu recebo esta saída:

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

Como faço para corrigir isso? Eu tentei instalar o apt-transport-https que foi recomendado e não fez nada.

    
por gdhughes5 10.05.2018 / 21:18

1 resposta

0

Você pode tentar isso:

sudo aptitude install --fix-missing
sudo aptitude update

se isso não funcionar, tente instalar o apt:

sudo aptitude install apt
sudo apt install --fix-missing
sudo apt update
    
por Joshua Besneatte 10.05.2018 / 21:46