相关疑难解决方法(0)

如何在使用 PPA 或更新我的软件包列表时修复 404 错误?

PPA 似乎一直处于离线状态。每当我使用时sudo apt-get update,都会显示此错误:

W: Failed to fetch http://ppa.launchpad.net/ 404  Not Found
Run Code Online (Sandbox Code Playgroud)

如何修复这些错误?

apt ppa repository

300
推荐指数
4
解决办法
64万
查看次数

如何将 Ubuntu Server 中的镜像从区域更改为主?

我设置了一个 Lucid Server (10.04),我想将镜像从美国(或任何其他国家/地区)更改为主 Ubuntu 镜像。

例如,我在 sources.list 中的两个第一个条目是:

deb http://us.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid main restricted
Run Code Online (Sandbox Code Playgroud)

在桌面环境中,我会像这样选择主镜像:

软件来源

但是我如何从终端执行此操作,因为我没有安装图形环境!

server command-line software-sources apt-mirror

106
推荐指数
3
解决办法
30万
查看次数

如何摆脱 apt 中的 arm64

W: Invalid 'Date' entry in Release file /var/lib/apt/lists/_var_cuda-repo-8-0-local_Release
N: Skipping acquire of configured file 'non-free/binary-arm64/Packages' as repository 'http://repository.spotify.com stable InRelease' doesn't support architecture 'arm64'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/main/binary-arm64/Packages  404  Not Found [IP: 91.189.88.161 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-arm64/Packages  404  Not Found [IP: 91.189.88.161 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-arm64/Packages  404  Not Found [IP: 91.189.88.161 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-security/main/binary-arm64/Packages  404  Not Found [IP: 91.189.88.161 80]
E: Some index files failed to download. They have been ignored, or …
Run Code Online (Sandbox Code Playgroud)

apt nvidia 16.04

14
推荐指数
2
解决办法
2万
查看次数

16.04 升级:无法获取空文件不能是有效档案

从 15.10 升级到 16.04 后,我收到以下错误apt-get update

Reading package lists... Done
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/restricted/source/Sources  Empty files can't be valid archives
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/universe/source/Sources  Empty files can't be valid archives
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/multiverse/source/Sources  Empty files can't be valid archives
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/restricted/binary-amd64/Packages  Empty files can't be valid archives
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/restricted/binary-i386/Packages  Empty files can't be valid archives
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/restricted/i18n/Translation-en  Empty files can't be valid archives
E: Failed …
Run Code Online (Sandbox Code Playgroud)

upgrade apt 16.04

3
推荐指数
3
解决办法
3万
查看次数