可能重复:
如何使用 PPA 修复 404 错误?
我跟着boost-最新网页。
我使用 ubuntu 11.04(natty)。
我添加存储库成功:
sam@sam:~$ sudo add-apt-repository ppa:boost-latest/ppa
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80/ --recv D9CFF117BD794DCE7C080E310CFB84AE029DB5C7
gpg: requesting key 029DB5C7 from hkp server keyserver.ubuntu.com
gpg: key 029DB5C7: "Launchpad boost-latest" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
sam@sam:~$
但是当我 apt-get update 时,它显示错误:
sam@sam:/etc/apt/sources.list.d$ sudo apt-get update
Ign http://packages.ros.org natty InRelease
Ign http://tw.archive.ubuntu.com natty InRelease
Ign http://tw.archive.ubuntu.com natty-updates InRelease
Hit http://tw.archive.ubuntu.com natty Release.gpg
Hit http://tw.archive.ubuntu.com natty-updates Release.gpg
Hit http://tw.archive.ubuntu.com natty Release
Hit http://tw.archive.ubuntu.com natty-updates Release
Ign http://linux.dropbox.com natty InRelease
Hit http://tw.archive.ubuntu.com natty/main Sources
Hit http://tw.archive.ubuntu.com natty/restricted Sources
Hit http://tw.archive.ubuntu.com natty/universe Sources
Hit http://tw.archive.ubuntu.com natty/multiverse Sources
Hit http://tw.archive.ubuntu.com natty/main amd64 Packages
Hit http://tw.archive.ubuntu.com natty/restricted amd64 Packages
Hit http://tw.archive.ubuntu.com natty/universe amd64 Packages
Hit http://tw.archive.ubuntu.com natty/multiverse amd64 Packages
Ign http://tw.archive.ubuntu.com natty/main TranslationIndex
Ign http://tw.archive.ubuntu.com natty/multiverse TranslationIndex
Ign http://tw.archive.ubuntu.com natty/restricted TranslationIndex
Ign http://tw.archive.ubuntu.com natty/universe TranslationIndex
Hit http://tw.archive.ubuntu.com natty-updates/main Sources
Hit http://tw.archive.ubuntu.com natty-updates/restricted Sources
Hit http://tw.archive.ubuntu.com natty-updates/universe Sources
Hit http://tw.archive.ubuntu.com natty-updates/multiverse Sources
Hit http://tw.archive.ubuntu.com natty-updates/main amd64 Packages
Hit http://tw.archive.ubuntu.com natty-updates/restricted amd64 Packages
Hit http://tw.archive.ubuntu.com natty-updates/universe amd64 Packages
Hit http://tw.archive.ubuntu.com natty-updates/multiverse amd64 Packages
Ign http://tw.archive.ubuntu.com natty-updates/main TranslationIndex
Ign http://tw.archive.ubuntu.com natty-updates/multiverse TranslationIndex
Ign http://tw.archive.ubuntu.com natty-updates/restricted TranslationIndex
Ign http://tw.archive.ubuntu.com natty-updates/universe TranslationIndex
Hit http://packages.ros.org natty Release.gpg
Ign http://tw.archive.ubuntu.com natty/main Translation-en
Ign http://tw.archive.ubuntu.com natty/multiverse Translation-en
Ign http://tw.archive.ubuntu.com natty/restricted Translation-en
Ign http://tw.archive.ubuntu.com natty/universe Translation-en
Ign http://tw.archive.ubuntu.com natty-updates/main Translation-en
Ign http://tw.archive.ubuntu.com natty-updates/multiverse Translation-en
Ign http://tw.archive.ubuntu.com natty-updates/restricted Translation-en
Ign http://tw.archive.ubuntu.com natty-updates/universe Translation-en
Hit http://linux.dropbox.com natty Release.gpg
Hit http://packages.ros.org natty Release
Ign http://extras.ubuntu.com natty InRelease
Ign http://ppa.launchpad.net natty InRelease
Ign http://ppa.launchpad.net natty InRelease
Ign http://ppa.launchpad.net natty InRelease
Hit http://packages.ros.org natty/main amd64 Packages
Hit http://linux.dropbox.com natty Release
Ign http://packages.ros.org natty/main TranslationIndex
Hit http://extras.ubuntu.com natty Release.gpg
Ign http://security.ubuntu.com natty-security InRelease
Ign http://ppa.launchpad.net natty InRelease
Ign http://ppa.launchpad.net natty InRelease
Ign http://ppa.launchpad.net natty InRelease
Ign http://ppa.launchpad.net natty Release.gpg
Hit http://ppa.launchpad.net natty Release.gpg
Hit http://linux.dropbox.com natty/main amd64 Packages
Ign http://linux.dropbox.com natty/main TranslationIndex
Hit http://extras.ubuntu.com natty Release
Hit http://security.ubuntu.com natty-security Release.gpg
Hit http://ppa.launchpad.net natty Release.gpg
Hit http://ppa.launchpad.net natty Release.gpg
Hit http://ppa.launchpad.net natty Release.gpg
Hit http://security.ubuntu.com natty-security Release
Hit http://extras.ubuntu.com natty/main Sources
Hit http://ppa.launchpad.net natty Release.gpg
Ign http://ppa.launchpad.net natty Release
Ign http://packages.ros.org natty/main Translation-en
Hit http://extras.ubuntu.com natty/main amd64 Packages
Ign http://extras.ubuntu.com natty/main TranslationIndex
Hit http://security.ubuntu.com natty-security/main Sources
Hit http://ppa.launchpad.net natty Release
Hit http://ppa.launchpad.net natty Release
Hit http://ppa.launchpad.net natty Release
Ign http://linux.dropbox.com natty/main Translation-en
Hit http://security.ubuntu.com natty-security/restricted Sources
Hit http://security.ubuntu.com natty-security/universe Sources
Hit http://security.ubuntu.com natty-security/multiverse Sources
Hit http://security.ubuntu.com natty-security/main amd64 Packages
Hit http://security.ubuntu.com natty-security/restricted amd64 Packages
Hit http://security.ubuntu.com natty-security/universe amd64 Packages
Hit http://security.ubuntu.com natty-security/multiverse amd64 Packages
Ign http://security.ubuntu.com natty-security/main TranslationIndex
Ign http://security.ubuntu.com natty-security/multiverse TranslationIndex
Ign http://security.ubuntu.com natty-security/restricted TranslationIndex
Hit http://ppa.launchpad.net natty Release
Hit http://ppa.launchpad.net natty Release
Ign http://security.ubuntu.com natty-security/universe TranslationIndex
Ign http://ppa.launchpad.net natty/main TranslationIndex
Hit http://ppa.launchpad.net natty/main Sources
Hit http://ppa.launchpad.net natty/main amd64 Packages
Ign http://ppa.launchpad.net natty/main TranslationIndex
Hit http://ppa.launchpad.net natty/main Sources
Hit http://ppa.launchpad.net natty/main amd64 Packages
Ign http://ppa.launchpad.net natty/main TranslationIndex
Hit http://ppa.launchpad.net natty/main Sources
Hit http://ppa.launchpad.net natty/main amd64 Packages
Ign http://ppa.launchpad.net natty/main TranslationIndex
Hit http://ppa.launchpad.net natty/main Sources
Hit http://ppa.launchpad.net natty/main amd64 Packages
Ign http://ppa.launchpad.net natty/main TranslationIndex
Hit http://ppa.launchpad.net natty/main Sources
Hit http://ppa.launchpad.net natty/main amd64 Packages
Ign http://ppa.launchpad.net natty/main TranslationIndex
Ign http://extras.ubuntu.com natty/main Translation-en
Err http://ppa.launchpad.net natty/main Sources
404 Not Found
Err http://ppa.launchpad.net natty/main amd64 Packages
404 Not Found
Ign http://security.ubuntu.com natty-security/main Translation-en
Ign http://ppa.launchpad.net natty/main Translation-en
Ign http://security.ubuntu.com natty-security/multiverse Translation-en
Ign http://ppa.launchpad.net natty/main Translation-en
Ign http://ppa.launchpad.net natty/main Translation-en
Ign http://ppa.launchpad.net natty/main Translation-en
Ign http://ppa.launchpad.net natty/main Translation-en
Ign http://security.ubuntu.com natty-security/restricted Translation-en
Ign http://security.ubuntu.com natty-security/universe Translation-en
Ign http://ppa.launchpad.net natty/main Translation-en
W: Failed to fetch http://ppa.launchpad.net/boost-latest/ppa/ubuntu/dists/natty/main/source/Sources 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/boost-latest/ppa/ubuntu/dists/natty/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
sam@sam:/etc/apt/sources.list.d$
我的更新来源图片:
我的 /etc/apt/sources.list.d 目录:
sam@sam:/etc/apt/sources.list.d$ ls
boost-latest-ppa-natty.list openrave-release-natty.list.save
bumblebee-stable-natty.list ros-latest.list
bumblebee-stable-natty.list.save ros-latest.list.save
dropbox.list tim-klingt-ppa-natty.list
dropbox.list.save tim-klingt-ppa-natty.list.save
gummi-gummi-natty.list v-launchpad-jochen-sprickerhof-de-pcl-natty.list
gummi-gummi-natty.list.save v-launchpad-jochen-sprickerhof-de-pcl-natty.list.save
openrave-release-natty.list
sam@sam:/etc/apt/sources.list.d$
我的 sources.list:
sam@sam:/etc/apt$ cat sources.list
# deb cdrom:[Ubuntu 11.04 _Natty Narwhal_ - Release amd64 (20110427.1)]/ natty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://tw.archive.ubuntu.com/ubuntu/ natty main restricted
deb-src http://tw.archive.ubuntu.com/ubuntu/ natty main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://tw.archive.ubuntu.com/ubuntu/ natty-updates main restricted
deb-src http://tw.archive.ubuntu.com/ubuntu/ natty-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://tw.archive.ubuntu.com/ubuntu/ natty universe
deb-src http://tw.archive.ubuntu.com/ubuntu/ natty universe
deb http://tw.archive.ubuntu.com/ubuntu/ natty-updates universe
deb-src http://tw.archive.ubuntu.com/ubuntu/ natty-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://tw.archive.ubuntu.com/ubuntu/ natty multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu/ natty multiverse
deb http://tw.archive.ubuntu.com/ubuntu/ natty-updates multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu/ natty-updates multiverse
## Uncomment the following two lines to add software from the 'backports'
## repository.
## 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://tw.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
# deb-src http://tw.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu natty-security main restricted
deb-src http://security.ubuntu.com/ubuntu natty-security main restricted
deb http://security.ubuntu.com/ubuntu natty-security universe
deb-src http://security.ubuntu.com/ubuntu natty-security universe
deb http://security.ubuntu.com/ubuntu natty-security multiverse
deb-src http://security.ubuntu.com/ubuntu natty-security 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 natty partner
# deb-src http://archive.canonical.com/ubuntu natty partner
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu natty main
deb-src http://extras.ubuntu.com/ubuntu natty main
sam@sam:/etc/apt$
如何解决?
谢谢〜
答案1
该 PPA 似乎已过时,自 2010 年以来没有更新过。预计会出现 404 错误,因为PPA 提供软件包的最新 Ubuntu 是 10.10 Maverick。
请考虑使用官方存储库中提供的 Boost 库。如果您需要较新的版本,您可以尝试查找另一个 ppa 或从源代码构建,或者升级您的 Ubuntu。