apt update error: The repository 'http://us.archive.ubuntu.com/ubuntu saucy Release' does not have a Release file
Asked Answered
H

3

9

I run "sudo apt -y update" on my Ubuntu 16.04 server, but I got the following error:

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

What could the reason be? How can I fix this problem? Thank you!

Hellraiser answered 6/11, 2017 at 13:25 Comment(0)
H
19

Thanks @Videonauth in AskUbuntu. I solved the problem with the help of his answer. This is the commands I used:

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
Hellraiser answered 6/11, 2017 at 14:54 Comment(2)
WARNING TO ALL: Backup a copy of your /etc/apt/sources.list BEFORE you execute this command. It will destroy whatever was in that file previously.Apriorism
This didn't work for me because the sources.list literally only has the cdrom image of the original installation. The solution above by @Fithe_Xanki does apply.Whidah
E
5

I execute the command 'sudo apt update' on Ubuntu 18.04 and have the same error. With these experimental packages, the rolling release build may still fail, as it depends on the current configuration of your computer.

  • Go to : 'Software & Updates' > 'Other Software' and disable symbol of adding to the list ppa repositories.

  • Then run these commands; the last one restarts the computer:

     sudo rm -vf /var/lib/apt/lists/*
     sudo apt clean
     sudo apt update
     sudo reboot 0
    
Enucleate answered 14/7, 2020 at 20:52 Comment(2)
So many roundabout approaches posted throughout the site. This is the only one that made sense. Remove the corrupted data and rebuild itWhidah
For me disabling the errant repo in software updates > other the os then showed a message about being out of date. after this finished the issue had gone when i ran sudo apt update. no reboot needed and no removal of the apt list.Thereinto
A
3

For anyone that might still face the same issue, the solution above did not work for me. In my case, the root directory partition was full (100% used up), I used

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

to check what was using up the disk space. In my case, there was a backup of mysql data folder in the root directory taking up about 3.7GB out of the 9.1GB space. All I did was to delete the mysql folder. But be careful of what you delete.

Agamogenesis answered 24/4, 2020 at 2:56 Comment(1)
Had a similar issue inside my docker container where repo rerification was not possible due to missing disk space. It does not tell you disk is full...Unclassical

© 2022 - 2024 — McMap. All rights reserved.