LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-15-2009, 11:19 PM   #1
shihao
Member
 
Registered: Aug 2009
Posts: 33

Rep: Reputation: 15
apt-get update


Hello,

After installing ubuntu server 8.10, I try to use apt-get update command.
Anyway, the system return me error message 'Failed to fetch http://security..' Could not resolve 'security.ubuntu.com'

"Some index files failed to download, they have ignored."

Any idea what's going on, and how to solve it?

Please help... Thanks in advance.
 
Old 09-16-2009, 02:27 AM   #2
Febi881
Member
 
Registered: Jun 2009
Location: India
Distribution: Fedora,Redhat
Posts: 111
Blog Entries: 1

Rep: Reputation: 17
Quote:
Originally Posted by shihao View Post
Hello,

After installing ubuntu server 8.10, I try to use apt-get update command.
Anyway, the system return me error message 'Failed to fetch [.....to solve it?

Please help... Thanks in advance.
Follow this link http://ubuntuforums.org/archive/index.php/t-237144.html
 
Old 09-17-2009, 01:56 AM   #3
shihao
Member
 
Registered: Aug 2009
Posts: 33

Original Poster
Rep: Reputation: 15
I followed this example as well. Instead of changing /etc/apt/sources.list I went through

System > Administration > Software Properties > (enter password) > Select Repository on left side > Choose Edit > Replace http:// with ftp:// > OK > Close > Reload.



Mmm... I unable to do this because my OS is Ubuntu Server. I dun have GUI


Thanks and Regards
Shi Hao
 
Old 09-17-2009, 02:05 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Anyway, the system return me error message 'Failed to fetch http://security..' Could not resolve 'security.ubuntu.com'
Do you get this error for every entry in your sources.list?
Could you post the exact errormessage and your sources.list
Does DNS works ok on the server?
eq can you ping www.google.com
 
Old 09-17-2009, 04:41 AM   #5
shihao
Member
 
Registered: Aug 2009
Posts: 33

Original Poster
Rep: Reputation: 15
Dear Repo,

I am able to ping www.google.com.

I get the error messages only I try run 'apt-get update'command.
The error messages is as below:
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...tion-en_US.bz2 Could not resolve "us.archive.ubuntu.com"

W: Some index files failed to download, they have been ignored, or old one used instead

W: You may want to run apt-get update to correct these problems.


Anyway how to know the DNS works fine or not?
 
Old 09-17-2009, 05:34 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Seems to me there is a problem with your DNS
I can resolve with no problem.
Quote:
cannabis:/home/repo# nslookup us.archive.ubuntu.com
Server: 10.0.0.44
Address: 10.0.0.44#53

Non-authoritative answer:
Name: us.archive.ubuntu.com
Address: 91.189.88.31
Name: us.archive.ubuntu.com
Address: 91.189.88.40
Name: us.archive.ubuntu.com
Address: 91.189.88.45
Name: us.archive.ubuntu.com
Address: 91.189.88.46
Name: us.archive.ubuntu.com
Address: 91.189.88.140

cannabis:/home/repo#
You can:
wait untill the DNS problem is resolved
or
use open DNS
Quote:
nameserver 208.67.220.220
nameserver 208.67.222.222
Ans see if the problem persist.
 
Old 09-19-2009, 12:00 AM   #7
shihao
Member
 
Registered: Aug 2009
Posts: 33

Original Poster
Rep: Reputation: 15
Dear Repo,

nslookup us archive.com
Got recursion not available from 202.87.216.8, trying next server
Got recursion not available from 202.87.216.198, trying next server

When I type name server 202.87.216.8
The message return command not found.

mm... What's going on, and how to solve ?
 
Old 09-19-2009, 03:22 AM   #8
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You need to put these name servers in /etc/resolv.conf
Disable the ones which are in it right now, or put these at the top
Code:
nameserver 208.67.220.220
nameserver 208.67.222.222
Then again
Code:
sudo apt-get update
Or if you just want to test the servers:

Code:
repo@cannabis:~$ nslookup
> server 202.87.216.8                    => your dns server
Default server: 202.87.216.8
Address: 202.87.216.8#53
> us.archive.ubuntu.com
Server:		202.87.216.8
Address:	202.87.216.8#53
Non-authoritative answer:
*** Can't find us.archive.ubuntu.com: No answer

> server 208.67.220.220                 => open dns
Default server: 208.67.220.220
Address: 208.67.220.220#53
> us.archive.ubuntu.com
Server:		208.67.220.220
Address:	208.67.220.220#53
Non-authoritative answer:
Name:	us.archive.ubuntu.com
Address: 91.189.88.45
Name:	us.archive.ubuntu.com
Address: 91.189.88.140
Name:	us.archive.ubuntu.com
Address: 91.189.88.31
Name:	us.archive.ubuntu.com
Address: 91.189.88.40
Name:	us.archive.ubuntu.com
Address: 91.189.88.46
> exit
repo@cannabis:~$

Last edited by repo; 09-19-2009 at 03:29 AM.
 
Old 10-01-2009, 05:01 AM   #9
shihao
Member
 
Registered: Aug 2009
Posts: 33

Original Poster
Rep: Reputation: 15
Dear Repo,

problem resolved. Thank you very much.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get update and apt-get install problem please solve it. regent_royal Linux - Newbie 11 06-26-2008 07:38 AM
Is there knoppix-like distro, that we can: apt-get update; apt-get install programs ? frenchn00b Linux - Distributions 7 04-28-2008 02:06 PM
Howabout apt-get update ; apt-get upgrade -f -y --force-yes in the crontab every week frenchn00b Debian 1 04-05-2008 07:47 AM
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 12:28 PM
Does 'apt-get update' update the database used by 'apt-cache'? davidas Debian 5 04-20-2004 01:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration