Когда я запускаю «sudo aptitude 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.
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.
И когда я запускаю «ls -la / usr / lib / apt / Methods / http», я получаю этот вывод :
ls: cannot access '/usr/lib/apt/methods/http': No such file or directory
Как это исправить? Я попытался установить apt-transport-https, что было рекомендовано, но ничего не получилось.
Можно попробовать это:
sudo aptitude install --fix-missing
sudo aptitude update
если это не работает, попытайтесь установить склонный:
sudo aptitude install apt
sudo apt install --fix-missing
sudo apt update