apt update error:存储库' http://us.archive.ubuntu.com/ubuntu saucy Release'没有发布文件

时间:2017-11-06 13:25:50

标签: ubuntu upgrade ubuntu-16.04 apt-get apt

我跑了" sudo apt -y update"在我的Ubuntu 16.04服务器上,但我收到以下错误:

# 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.

原因是什么?我该如何解决这个问题?谢谢!

3 个答案:

答案 0 :(得分:9)

感谢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

答案 1 :(得分:2)

我在Ubuntu 18.04上执行命令'sudo apt update',并出现相同的错误。 使用这些实验性软件包,滚动发布版本可能仍然会失败,因为它取决于计算机的当前配置。

  • 转到:“软件和更新”>“其他软件”,并禁用添加到列表ppa存储库的符号。

  • 然后运行以下命令并重新启动计算机:

    sudo rm -vf /var/lib/apt/lists/*

    sudo apt clean

    sudo apt update ; reboot

答案 2 :(得分:1)

对于可能仍然会遇到相同问题的任何人,上述解决方案均不适用于我。就我而言,根目录分区已满(已用完100%),我用

df -h
cd /
du -sch * --exclude=home

检查正在使用什么磁盘空间。就我而言,在根目录中有一个mysql数据文件夹的备份,占了9.1GB空间的约3.7GB。 我所做的就是删除mysql文件夹。但是请注意删除的内容。