Home > Azure, Linux > Windows Azure IaaS: Ubuntu apt-get update is not running “404 Not Found”

Windows Azure IaaS: Ubuntu apt-get update is not running “404 Not Found”

After provisioing a new VM in Windows Azure with Ubuntu Server 12.10 and while trying to install Apache on it running

apt-get install apache2 mysql-server php5 php5-mysql libapache2-mod-auth-mysql libapache2-mod-php5 php5-xsl php5-gd php-pear

I get an error, So I tried to get some packages installed via apt-get and still see that some files are misconfigured and not able to find packages in http://azure.archive.ubuntu.com

# apt-get install lamp-server

Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
  lamp-server
0 upgraded, 1 newly installed, 0 to remove and 20 not upgraded.
Need to get 28.2 kB of archives.
After this operation, 147 kB of additional disk space will be used.
Err http://azure.archive.ubuntu.com/ubuntu/ quantal/main lamp-server

403  Forbidden
Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/w/lamp-server 403  Forbidden
E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?
root@Admin:~# apt-get update
Ign http://azure.archive.ubuntu.com quantal InRelease
Ign http://security.ubuntu.com quantal-security InRelease
Ign http://azure.archive.ubuntu.com quantal-updates InRelease
Hit http://security.ubuntu.com quantal-security Release.gpg
Ign http://azure.archive.ubuntu.com quantal Release.gpg
Hit http://security.ubuntu.com quantal-security Release
Ign http://azure.archive.ubuntu.com quantal-updates Release.gpg
Ign http://azure.archive.ubuntu.com quantal Release
Hit http://security.ubuntu.com quantal-security/main Sources
Hit http://security.ubuntu.com quantal-security/universe Sources
Ign http://azure.archive.ubuntu.com quantal-updates Release
Ign http://azure.archive.ubuntu.com quantal/main Sources/DiffIndex
Hit http://security.ubuntu.com quantal-security/main amd64 Packages
Hit http://security.ubuntu.com quantal-security/universe amd64 Packages
Ign http://azure.archive.ubuntu.com quantal/universe Sources/DiffIndex
Ign http://azure.archive.ubuntu.com quantal/main amd64 Packages/DiffIndex
Hit http://security.ubuntu.com quantal-security/main Translation-en
Ign http://azure.archive.ubuntu.com quantal/universe amd64 Packages/DiffIndex
Hit http://security.ubuntu.com quantal-security/universe Translation-en
Hit http://azure.archive.ubuntu.com quantal/main Translation-en
Hit http://azure.archive.ubuntu.com quantal/universe Translation-en
Ign http://azure.archive.ubuntu.com quantal-updates/main Sources/DiffIndex
Ign http://azure.archive.ubuntu.com quantal-updates/universe Sources/DiffIndex
Ign http://azure.archive.ubuntu.com quantal-updates/main amd64 Packages/DiffIndex
Ign http://azure.archive.ubuntu.com quantal-updates/universe amd64 Packages/DiffIndex
Hit http://azure.archive.ubuntu.com quantal-updates/main Translation-en
Ign http://security.ubuntu.com quantal-security/main Translation-en_US
Ign http://security.ubuntu.com quantal-security/universe Translation-en_US
Hit http://azure.archive.ubuntu.com quantal-updates/universe Translation-en
Ign http://azure.archive.ubuntu.com quantal/main Translation-en_US
Ign http://azure.archive.ubuntu.com quantal/universe Translation-en_US
Ign http://azure.archive.ubuntu.com quantal-updates/main Translation-en_US
Ign http://azure.archive.ubuntu.com quantal-updates/universe Translation-en_US
Err http://azure.archive.ubuntu.com quantal/main Sources
  404  Not Found
Err http://azure.archive.ubuntu.com quantal/universe Sources
  404  Not Found
Err http://azure.archive.ubuntu.com quantal/main amd64 Packages
  404  Not Found
Err http://azure.archive.ubuntu.com quantal/universe amd64 Packages
  404  Not Found
Err http://azure.archive.ubuntu.com quantal-updates/main Sources
  404  Not Found
Err http://azure.archive.ubuntu.com quantal-updates/universe Sources
  404  Not Found
Err http://azure.archive.ubuntu.com quantal-updates/main amd64 Packages
  404  Not Found
Err http://azure.archive.ubuntu.com quantal-updates/universe amd64 Packages
  404  Not Found
W: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/dists/quantal/main/source/Sources  404  Not Found
W: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/dists/quantal/universe/source/Sources  404  Not Found
W: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/dists/quantal/main/binary-amd64/Packages  404  Not Found
W: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/dists/quantal/universe/binary-amd64/Packages  404  Not Found
W: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/dists/quantal-updates/main/source/Sources  404  Not Found
W: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/dists/quantal-updates/universe/source/Sources  404  Not Found
W: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/dists/quantal-updates/main/binary-amd64/Packages  404  Not Found
W: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/dists/quantal-updates/universe/binary-amd64/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

 

Solution:

Edit edit /etc/apt/sources.list and add those Universe and Multiverse repositories

 

deb http://archive.ubuntu.com/ubuntu quantal universe multiverse
deb-src http://archive.ubuntu.com/ubuntu quantal universe multiverse

deb http://us.archive.ubuntu.com/ubuntu/ quantal universe
deb-src http://us.archive.ubuntu.com/ubuntu/ quantal universe
deb http://us.archive.ubuntu.com/ubuntu/ quantal-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ quantal-updates universe

deb http://us.archive.ubuntu.com/ubuntu/ quantal multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ quantal multiverse
deb http://us.archive.ubuntu.com/ubuntu/ quantal-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ quantal-updates multiverse

deb http://security.ubuntu.com/ubuntu quantal-security universe
deb-src http://security.ubuntu.com/ubuntu quantal-security universe
deb http://security.ubuntu.com/ubuntu quantal-security multiverse
deb-src http://security.ubuntu.com/ubuntu quantal-security multiverse
Advertisements
Categories: Azure, Linux Tags:
  1. February 15, 2013 at 8:12 am

    Thanks!!!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: