Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to fetch a specific repository to install a php version but I keep getting 404 NOT FOUND.

chef recipe code:

apt_repository "dotdeb-php54" do
  uri ""
  distribution "squeeze"
  components ["php5/5.4.8"]
  key ""

Trying to fetch :

But get the following error :

Err squeeze/php5/5.4.8 amd64 Packages
  404  Not Found
Hit precise-security/main Translation-en
Hit precise-security/multiverse Translation-en
Hit precise-security/restricted Translation-en
Err squeeze/php5/5.4.8 i386 Packages
  404  Not Found
Hit precise-security/universe Translation-en
Ign squeeze/php5/5.4.8 Translation-en
STDERR: W: Failed to fetch  404  Not Found

but the following works:

apt_repository "dotdeb-php54" do
  uri ""
  distribution "squeeze-php54"
  components ["all"]
  key ""
share|improve this question

The issue is not with Chef. Check the URL you are using and try to run the command apt-get manually and then update your recipe. The 404 means the file was not found and this error code is returned by the dotdeb webservers.

I tried opening the URL in my browser and it doesn't exist.

share|improve this answer
Sameer but this works: I also updated my question. – slik Dec 13 '12 at 5:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.