当我运行“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,但没有任何效果。
答案1
您可以尝试以下操作:
sudo aptitude install --fix-missing
sudo aptitude update
如果这不起作用,请尝试安装 apt:
sudo aptitude install apt
sudo apt install --fix-missing
sudo apt update