我正在尝试获取一个特定的存储库来安装一个php版本,但是一直没有找到404。
厨师食谱代码:
apt_repository "dotdeb-php54" do
uri "http://archives.dotdeb.org"
distribution "squeeze"
components ["php5/5.4.8"]
key "http://www.dotdeb.org/dotdeb.gpg"
end尝试获取:http://archives.dotdeb.org/dists/squeeze/php5/5.4.8
但是,得到以下错误:
Err http://archives.dotdeb.org squeeze/php5/5.4.8 amd64 Packages
404 Not Found
Hit http://security.ubuntu.com precise-security/main Translation-en
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Err http://archives.dotdeb.org squeeze/php5/5.4.8 i386 Packages
404 Not Found
Hit http://security.ubuntu.com precise-security/universe Translation-en
Ign http://archives.dotdeb.org squeeze/php5/5.4.8 Translation-en
STDERR: W: Failed to fetch http://archives.dotdeb.org/dists/squeeze/php5/5.4.8/binary-amd64/Packages 404 Not Found但以下工作:
apt_repository "dotdeb-php54" do
uri "http://packages.dotdeb.org"
distribution "squeeze-php54"
components ["all"]
key "http://www.dotdeb.org/dotdeb.gpg"
end发布于 2012-12-13 04:57:27
问题不在主厨身上。检查您正在使用的URL,并尝试手动运行命令apt-get,然后更新您的菜谱。404意味着文件没有找到,这个错误代码由dotdeb webserver返回。
我尝试在浏览器中打开URL,但它不存在。
https://serverfault.com/questions/457672
复制相似问题