unable to install nagios on ubuntu 11.04

Asked by laurent bouis

Hi,

I am having issues installing nagios on ubuntu 11.04 on an ec2 server.

I get 404s errors, see below, when i run 'sudo apt-get install -y nagios3' :

any clue? (I am new to ubuntu).
I read at https://forums.aws.amazon.com/thread.jspa?threadID=95616, that there were issues with the ubuntu repository server, but wasn't able to work around it, not sure if it's still the cause of this.

sudo apt-get install -y nagios3

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  bsd-mailx libnet-snmp-perl libperl5.10 libpq5 libradius1 libsensors4 libsnmp-base libsnmp15 libtalloc2 libwbclient0 nagios-images nagios-plugins nagios-plugins-basic
  nagios-plugins-standard nagios3-cgi nagios3-common nagios3-core postfix samba-common samba-common-bin smbclient snmp whois
Suggested packages:
  libcrypt-des-perl libdigest-hmac-perl libdigest-sha1-perl libio-socket-inet6-perl lm-sensors snmp-mibs-downloader nagios-nrpe-plugin procmail postfix-mysql postfix-pgsql
  postfix-ldap postfix-pcre sasl2-bin dovecot-common resolvconf postfix-cdb mail-reader cifs-utils
The following NEW packages will be installed:
  bsd-mailx libnet-snmp-perl libperl5.10 libpq5 libradius1 libsensors4 libsnmp-base libsnmp15 libtalloc2 libwbclient0 nagios-images nagios-plugins nagios-plugins-basic
  nagios-plugins-standard nagios3 nagios3-cgi nagios3-common nagios3-core postfix samba-common samba-common-bin smbclient snmp whois
0 upgraded, 24 newly installed, 0 to remove and 85 not upgraded.
Need to get 19.8 MB/28.3 MB of archives.
After this operation, 85.0 MB of additional disk space will be used.
Err http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ natty-updates/main libwbclient0 i386 2:3.5.8~dfsg-1ubuntu2.3
  404 Not Found [IP: 10.250.142.223 80]
Err http://security.ubuntu.com/ubuntu/ natty-security/main libwbclient0 i386 2:3.5.8~dfsg-1ubuntu2.3
  404 Not Found [IP: 91.189.92.184 80]
Err http://security.ubuntu.com/ubuntu/ natty-security/main samba-common all 2:3.5.8~dfsg-1ubuntu2.3
  404 Not Found [IP: 91.189.92.184 80]
Err http://security.ubuntu.com/ubuntu/ natty-security/main samba-common-bin i386 2:3.5.8~dfsg-1ubuntu2.3
  404 Not Found [IP: 91.189.92.184 80]
Err http://security.ubuntu.com/ubuntu/ natty-security/main smbclient i386 2:3.5.8~dfsg-1ubuntu2.3
  404 Not Found [IP: 91.189.92.184 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/s/samba/libwbclient0_3.5.8~dfsg-1ubuntu2.3_i386.deb 404 Not Found [IP: 91.189.92.184 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/s/samba/samba-common_3.5.8~dfsg-1ubuntu2.3_all.deb 404 Not Found [IP: 91.189.92.184 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/s/samba/samba-common-bin_3.5.8~dfsg-1ubuntu2.3_i386.deb 404 Not Found [IP: 91.189.92.184 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/s/samba/smbclient_3.5.8~dfsg-1ubuntu2.3_i386.deb 404 Not Found [IP: 91.189.92.184 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu nagios3 Edit question
Assignee:
No assignee Edit question
Solved by:
laurent bouis
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

If you run:

echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null

sudo apt-get udpate

Then retry, does it work ok?

Revision history for this message
laurent bouis (lbouis) said :
#2

yes that worked! Nagios basic installation is completed now.

thanks a lot!

Can you explain to me what the issue was?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Your DNS that you are using sucks, editing that file to use a different DNS to change the name to the right IP which is all the issue was. If you get the same issue later then use this guide:

https://developers.google.com/speed/public-dns/docs/using

The file is generated when you connect to the a network so manually changing it is only a temp fix. You need to edit network manager to tell it to use the Google DNS for the connection.

Revision history for this message
laurent bouis (lbouis) said :
#4

thanks a lot for the help of explation!