- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我在 Ubuntu 16.04 服务器上运行“sudo apt -y update”,但出现以下错误:
# apt -y update
Reading package lists... Done
E: The repository 'http://us.archive.ubuntu.com/ubuntu saucy Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://us.archive.ubuntu.com/ubuntu saucy-updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
root@yuyue-HP-Pro-3380-MT:/var/lib/apt# apt -y update
Get:1 http://cn.archive.ubuntu.com/ubuntu xenial InRelease [132 B]
Err:1 http://cn.archive.ubuntu.com/ubuntu xenial InRelease
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Get:2 http://cn.archive.ubuntu.com/ubuntu xenial-updates InRelease [132 B]
Err:2 http://cn.archive.ubuntu.com/ubuntu xenial-updates InRelease
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Get:3 http://cn.archive.ubuntu.com/ubuntu xenial-backports InRelease [132 B]
Err:3 http://cn.archive.ubuntu.com/ubuntu xenial-backports InRelease
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Ign:4 http://us.archive.ubuntu.com/ubuntu saucy InRelease
Hit:5 http://security.ubuntu.com/ubuntu xenial-security InRelease
Ign:6 http://us.archive.ubuntu.com/ubuntu saucy-updates InRelease
Err:7 http://us.archive.ubuntu.com/ubuntu saucy Release
404 Not Found [IP: 2001:67c:1562::16 80]
Err:8 http://us.archive.ubuntu.com/ubuntu saucy-updates Release
404 Not Found [IP: 2001:67c:1562::16 80]
Reading package lists... Done
E: The repository 'http://us.archive.ubuntu.com/ubuntu saucy Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://us.archive.ubuntu.com/ubuntu saucy-updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
可能是什么原因?我该如何解决这个问题?谢谢!
最佳答案
感谢 AskUbuntu 中的@Videonauth。我在 his answer 的帮助下解决了这个问题.这是我使用的命令:
sudo -i
cat > /etc/apt/sources.list << EOF
deb http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu xenial-proposed restricted main universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu xenial-proposed restricted main universe multiverse
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
EOF
sudo apt clean
sudo apt update
sudo apt dist-upgrade
关于ubuntu - 易于更新错误 : The repository 'http://us.archive.ubuntu.com/ubuntu saucy Release' does not have a Release file,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47138074/
我刚刚尝试通过 更新 Twisted ppa:twisted-dev/ppa 但是在运行 sudo apt-get update 时收到以下错误消息: W: Failed to fetch http:
我对 Maven 非常陌生,当我什至花了几个小时来更新我的 Maven 版本时,这令人沮丧。我需要升级它,因为 this插件和 eclipse 的插件需要 Maven 3.11+ 才能工作。 我通过简
我正在尝试在 Ubuntu Saucy 上安装 gsl gem 我安装了相关的gsl包 sudo apt-get install gsl-bin libgsl0-dev 但是安装 gem 失败了 In
我使用的是 Ubuntu 13.10 (saucy salamander),我希望 sudo apt-get install php5-mongo 足以安装 mongodb 数据库驱动程序。 虽然没有
我在 Ubuntu 16.04 服务器上运行“sudo apt -y update”,但出现以下错误: # apt -y update Reading packa
我是一名优秀的程序员,十分优秀!