abc.archive.ubuntu.com not working on Zentyal or Ubuntu

abc.archive.ubuntu.com not working on Zentyal or Ubuntu is an error that almost every IT professional come across during his career. I have just finished installation of Zentyal (Ubuntu) and when I tries to Install Modules, it start giving me errors that your pk.archive.ubuntu.com is not working, I have faced this issue year before but didn't try to write it on my blog and now its here to help others, Well I have tries below command
sudo apt-get update

abc.archive.ubuntu.com not working on Zentyal or Ubuntu

Ign http://pk.archive.ubuntu.com precise Release.gpg and a large list of Ignore lists but there is a easy solution that I have done through terminal.

Solution:-

  1. Access your Zentyal or Ubuntu Server from Terminal, after username / password
  2. run this command nano /etc/apt/sources.list (you can also use vi or gedit)
  3. Now Replace all pk (in your scenario, you can change your tld with US)
  4. Press F3 to save file in nano editor
  5. Press Ctrl + X to exit and then again
  6. run again the command ; sudo apt-get update
Final List was something like as under, you can also copy and paste below list into your sources.list file.
# Ubuntu apt-get update not working for pk.archive.ubuntu.com
# Use us.archive.ubuntu.com sources to get it working
# Muhammad Rizwan Ahmad, http://rizwanranjha.com/author/rranjha/
# Skype : expertsols | Please Message the Reference
# http://rizwanranjha.com
deb http://us.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid main restricted
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid universe
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb http://security.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted
deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe
deb http://security.ubuntu.com/ubuntu lucid-security multiverse
deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse

No comments:

Post a Comment