Google Compute Engine Ubuntu 17.04 zesty不再拥有Release文件

cha*_*nio 15 apt google-compute-engine google-cloud-platform ubuntu-17.04

我刚刚使用Ubuntu 17.04创建了一个新的Google Cloud Compute Engine服务器作为启动盘:

Ubuntu 17.04
amd64 zesty image built on 2017-12-08
Run Code Online (Sandbox Code Playgroud)

在做任何其他事情之前,如果我尝试运行,sudo apt-get update我会收到以下错误:

Ign:1 http://europe-west1.gce.archive.ubuntu.com/ubuntu zesty InRelease
Ign:2 http://europe-west1.gce.archive.ubuntu.com/ubuntu zesty-updates 

InRelease
Ign:3 http://europe-west1.gce.archive.ubuntu.com/ubuntu zesty-backports InRelease
Ign:4 http://security.ubuntu.com/ubuntu zesty-security InRelease             
Err:5 http://europe-west1.gce.archive.ubuntu.com/ubuntu zesty Release        
  404  Not Found [IP: 35.195.241.40 80]
Err:6 http://europe-west1.gce.archive.ubuntu.com/ubuntu zesty-updates Release
  404  Not Found [IP: 35.195.241.40 80]
Err:7 http://europe-west1.gce.archive.ubuntu.com/ubuntu zesty-backports Release
  404  Not Found [IP: 35.195.241.40 80]
Err:8 http://security.ubuntu.com/ubuntu zesty-security Release               
  404  Not Found [IP: 91.189.88.161 80]
Hit:9 http://archive.canonical.com/ubuntu zesty InRelease                    
Reading package lists... Done                          
E: The repository 'http://europe-west1.gce.archive.ubuntu.com/ubuntu zesty Release' does no longer 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://europe-west1.gce.archive.ubuntu.com/ubuntu zesty-updates Release' does no longer 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://europe-west1.gce.archive.ubuntu.com/ubuntu zesty-backports Release' does no longer 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://security.ubuntu.com/ubuntu zesty-security Release' does no longer 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.
Run Code Online (Sandbox Code Playgroud)

查看http://europe-west1.gce.archive.ubuntu.com/ubuntu/我可以在不到一个小时前看到今天的更新.

这是Google的错误还是我做错了什么?

Den*_*mov 19

我确认"E:存储库' http://ru.archive.ubuntu.com/ubuntu zesty Release'不再有发布文件."

按照食谱中的海洛因提出的方法解决了https://smyl.es/how-to-fix-ubuntudebian-apt-get-404-not-found-package-repository-errors-saucy-raring-quantal-oneiric-natty /.

在您的服务器上运行以下命令,它将使用old-releases.ubuntu.com替换所有archive.ubuntu.com和security.ubuntu.com软件包存储库URL

sudo sed -i -e's/archive.ubuntu.com\| security.ubuntu.com/old-releases.ubuntu.com/g'/etc/apt/sources.list

不幸的是,如果你选择了一个国家镜(这样的sed命令将不会为你工作us.archive.ubuntu.com的更新.然后一个可以更新文件/etc/apt/sources.list改变像所有条目的字符串http://*.archive.ubuntu.com,并http://*.security.ubuntu.comhttp://old-releases.ubuntu.com手动在文本编辑器,

sudo nano /etc/apt/sources.list
Run Code Online (Sandbox Code Playgroud)

要么

sudo vi /etc/apt/sources.list
Run Code Online (Sandbox Code Playgroud)

例如,你http://europe-west1.gce.archive.ubuntu.com/ubuntu zesty InRelease成为了http://old-releases.ubuntu.com/ubuntu zesty InRelease等等.

这是我更新的文件/etc/apt/sources.list:

# deb cdrom:[Kubuntu 17.04 _Zesty Zapus_ - Release amd64 (20170412)]/ zesty main multiverse restricted universe

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://old-releases.ubuntu.com/ubuntu/ zesty main restricted
# deb-src http://old-releases.ubuntu.com/ubuntu/ zesty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://old-releases.ubuntu.com/ubuntu/ zesty-updates main restricted
# deb-src http://old-releases.ubuntu.com/ubuntu/ zesty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://old-releases.ubuntu.com/ubuntu/ zesty universe
# deb-src http://old-releases.ubuntu.com/ubuntu/ zesty universe
deb http://old-releases.ubuntu.com/ubuntu/ zesty-updates universe
# deb-src http://old-releases.ubuntu.com/ubuntu/ zesty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://old-releases.ubuntu.com/ubuntu/ zesty multiverse
# deb-src http://old-releases.ubuntu.com/ubuntu/ zesty multiverse
deb http://old-releases.ubuntu.com/ubuntu/ zesty-updates multiverse
# deb-src http://old-releases.ubuntu.com/ubuntu/ zesty-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://old-releases.ubuntu.com/ubuntu/ zesty-backports main restricted universe multiverse
# deb-src http://old-releases.ubuntu.com/ubuntu/ zesty-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu zesty partner
# deb-src http://archive.canonical.com/ubuntu zesty partner

deb http://old-releases.ubuntu.com/ubuntu zesty-security main restricted
# deb-src http://old-releases.ubuntu.com/ubuntu zesty-security main restricted
deb http://old-releases.ubuntu.com/ubuntu zesty-security universe
# deb-src http://old-releases.ubuntu.com/ubuntu zesty-security universe
deb http://old-releases.ubuntu.com/ubuntu zesty-security multiverse
# deb-src http://old-releases.ubuntu.com/ubuntu zesty-security multiverse
Run Code Online (Sandbox Code Playgroud)


小智 8

17.04现在已于2018年1月13日结束.您需要转到更新版本或使用长期稳定版本:https: //wiki.ubuntu.com/Releases

  • 我可以确认这个问题是由于@Jeremy提到的原因.我已经联系后端团队更新GCE Ubuntu 17.04图像. (2认同)
  • 按照丹尼斯的回答,你有解决方案,chapmanio.这应该不是谷歌云计算机引擎的问题,您应该能够编辑/etc/apt/sources.list文件,然后按照建议执行"sudo do-release-upgrade". (2认同)