我正在使用 Ubuntu 15,并尝试获取 Ubuntu 16。我遇到了一些 404 错误sudo apt-get update
,因此我已经查看了类似这些的线程
404 无法获取包 https://stackoverflow.com/questions/30316812/ubuntu-apt-get-unable-to-fetch-packages
我通过编辑文件解决了错误/etc/apt/sources.list
,所以它看起来像
###### Ubuntu Main Repos
deb-src http://old-releases.ubuntu.com/ubuntu/ wily main restricted universe multiverse
###### Ubuntu Update Repos
deb http://old-releases.ubuntu.com/ubuntu/ wily-security main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ wily-updates main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ wily-security main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ wily-updates main restricted universe multiverse
###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu wily partner
deb-src http://archive.canonical.com/ubuntu wily partner
###### Ubuntu Extras Repo
#deb http://extras.ubuntu.com/ubuntu wily main
#deb-src http://extras.ubuntu.com/ubuntu wily main
但是,当我尝试时sudo do-release-upgrade
,我收到 404 错误,例如
...
Err http://old-releases.ubuntu.com wily-updates/restricted i386 Packages
404 Not Found
Err http://old-releases.ubuntu.com wily-updates/universe i386 Packages
404 Not Found
Err http://old-releases.ubuntu.com wily-updates/multiverse i386 Packages
404 Not Found
...
Error authenticating some packages
It was not possible to authenticate some packages. This may be a transient network problem. You may want to try again later. See below for a list of unauthenticated packages.
apt-xapian-index
libboost-graph-parallel1.58.0
libboost-mpi-python1.58.0
libboost-mpi1.58.0
virtualbox
virtualbox-qt
我该如何解决?
答案1
如果你查看 old-releases.ubuntu.com,你会发现 Wily 还没有出现。
http://old-releases.ubuntu.com/
您将需要从旧版本切换到archive.ubuntu.com。