Drupal6 updates fail

Asked by arjuk1

Cannot run apt-get on Drupal6 appliance

I could only get the ubuntu updates to work by editing the sources.list file and changing it to deb http://gb.archive.ubuntu.com......etc
Turnkeylinux name resolves to
hosts command seems sensible
Any ideas?
partial screen dump follows:
root@drupal6:~# apt-get update
Hit http://gb.archive.ubuntu.com hardy-security Release.gpg
Hit http://gb.archive.ubuntu.com hardy Release.gpg
Hit http://gb.archive.ubuntu.com hardy-updates Release.gpg
Hit http://gb.archive.ubuntu.com hardy-security Release
Hit http://gb.archive.ubuntu.com hardy Release
Hit http://gb.archive.ubuntu.com hardy-updates Release
Hit http://gb.archive.ubuntu.com hardy-security/main Packages
Hit http://gb.archive.ubuntu.com hardy-security/universe Packages
Hit http://gb.archive.ubuntu.com hardy/main Packages
Hit http://gb.archive.ubuntu.com hardy/universe Packages
Hit http://gb.archive.ubuntu.com hardy-updates/main Packages
Hit http://gb.archive.ubuntu.com hardy-updates/universe Packages
Ign http://archive.turnkeylinux.org hardy-security Release.gpg
Ign http://archive.turnkeylinux.org hardy Release.gpg
Ign http://archive.turnkeylinux.org hardy-security Release
Ign http://archive.turnkeylinux.org hardy Release
Err http://archive.turnkeylinux.org hardy-security/main Packages
  404 Not Found
Err http://archive.turnkeylinux.org hardy-security/universe Packages
  404 Not Found
Err http://archive.turnkeylinux.org hardy/main Packages
  404 Not Found
Err http://archive.turnkeylinux.org hardy/universe Packages
  404 Not Found
W: Failed to fetch http://archive.turnkeylinux.org/ubuntu/dists/hardy-security/main/binary-i386/Packages.gz 404 Not Found

W: Failed to fetch http://archive.turnkeylinux.org/ubuntu/dists/hardy-security/universe/binary-i386/Packages.gz 404 Not Found

W: Failed to fetch http://archive.turnkeylinux.org/ubuntu/dists/hardy/main/binary-i386/Packages.gz 404 Not Found

W: Failed to fetch http://archive.turnkeylinux.org/ubuntu/dists/hardy/universe/binary-i386/Packages.gz 404 Not Found

E: Some index files failed to download, they have been ignored, or old ones used instead.

ANdy J

Question information

English Edit question
TurnKey Linux Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Revision history for this message
Alon Swartz (alonswartz) said :

I just checked that archive.turnkeylinux.org resolves correctly from several locations using different nameservers and everything seems fine.

I am going to venture and say that you have a DNS mis-configuration.
What nameservers are you using (ie. /etc/resolv.conf)?

Revision history for this message
arjuk1 (ajackson47) said :

Yep I can get turnkeylinux to resolve as well, it just fails with apt-get

I use internal Windows DNS server, however they go out into the real world for external name resolution
they have turnkeylinux.org in their caches at it point to the valid IP address

I can browse (in windows) to the archives.turnkeylinux.org ,so name resolution must be working

I can Ping archive.turnkeylinux.org from my Drupal server

resolve.conf has my two internal servers as name servers
however I've tried with public DNS and it still fails


Revision history for this message
Alon Swartz (alonswartz) said :

I reread your original post (skimmed it the first time), I was too quick to jump to conclusions, so lets start over...

Did you also get 404 errors for archive.ubuntu.com?

Just a wild guess, but do you have a proxy configured on your network?
If so, you need to tell apt to use it, for example:

    Acquire::http::Proxy "http://domain\username:password@proxy:port"

I added "domain" in the above example just incase authentication is done as part of windows domain.
I myself have never tried such a configuration, but it should work.

For more proxy configuration information:
  man apt.conf
  zless /usr/share/doc/apt/examples/configure-index.gz

Revision history for this message
arjuk1 (ajackson47) said :

Thanks very much for your help Alon
It was the proxy thing (although I don't use it on my other Ubuntu server ,however that is only using the gb.archives for ubuntu)

I actually put the following at the end of /etc/bash.bashrc (using Internal IP address of Firewall - and I didn't need the username:passoword bit)

export http_proxy=http://username:<email address hidden>:port/

Andy J

Revision history for this message
Alon Swartz (alonswartz) said :

Great to hear it!