LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 01-13-2009, 05:55 AM   #1
SimonT
Member
 
Registered: Oct 2004
Posts: 33

Rep: Reputation: 15
Can't update with apt-get


I am trying do a apt-get update on ubuntu-8.04-i386-minimal

but keep getting

Err http://archive.ubuntu.com hardy Release.gpg Could not resolve 'archive.ubuntu.com'

sources.list

Quote:
deb http://archive.ubuntu.com/ubuntu hardy main restricted universe
deb http://archive.ubuntu.com/ubuntu hardy-updates main restricted universe
deb http://archive.ubuntu.com/ubuntu hardy-security main restricted universe
 
Old 01-13-2009, 05:57 AM   #2
SkinnerC
Member
 
Registered: Dec 2007
Location: New England, USA
Distribution: Ubuntu 8.04 LTS, Slackware 12.2
Posts: 138
Blog Entries: 1

Rep: Reputation: 20
Are you connected to the internet?
 
Old 01-13-2009, 06:16 AM   #3
SimonT
Member
 
Registered: Oct 2004
Posts: 33

Original Poster
Rep: Reputation: 15
I would think so I am SSH in as its a remote box

Quote:
root@vps:/Temp# route -n
v.confKernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.0.2.1 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
0.0.0.0 192.0.2.1 0.0.0.0 UG 0 0 0 venet0
root@vps:/Temp#
root@vps:/Temp# cat /etc/resolv.conf
root@vps:/Temp#
root@vps:/Temp# ping www.yahoo.com
ping: unknown host www.yahoo.com
root@vps:/Temp# ping 209.131.36.158
PING 209.131.36.158 (209.131.36.158) 56(84) bytes of data.
64 bytes from 209.131.36.158: icmp_seq=1 ttl=57 time=158 ms
64 bytes from 209.131.36.158: icmp_seq=2 ttl=57 time=158 ms
64 bytes from 209.131.36.158: icmp_seq=3 ttl=57 time=158 ms
 
Old 01-13-2009, 06:19 AM   #4
junpa
Member
 
Registered: Aug 2008
Location: Northern Hemisphere
Distribution: Slackware, OpenVMS, fbsd
Posts: 50

Rep: Reputation: 16
seems like a dns issue.

what's in your /etc/resolv.conf file?
 
Old 01-13-2009, 06:23 AM   #5
SimonT
Member
 
Registered: Oct 2004
Posts: 33

Original Poster
Rep: Reputation: 15
Hi its empty I ran cat /etc/resolv.conf and it was empty
 
Old 01-13-2009, 06:30 AM   #6
SimonT
Member
 
Registered: Oct 2004
Posts: 33

Original Poster
Rep: Reputation: 15
Arrrr thats must be my problem will need to find my name servers thanks guys

One other noob question when I try and run a bash file I get script permission denied

root@vps:/Temp#helloworld.sh script permission denied
root@vps:/Temp#./helloworld.sh script permission denied
 
Old 01-13-2009, 06:57 AM   #7
junpa
Member
 
Registered: Aug 2008
Location: Northern Hemisphere
Distribution: Slackware, OpenVMS, fbsd
Posts: 50

Rep: Reputation: 16
you can use this ns ip temporarily:

Code:
cat "128.107.241.185" >> /etc/resolv.conf
helloworld.sh
======================
does it have the

#!/bin/sh

at the top of the file?
is it executable?

Code:
chmod 755 helloworld.sh
./helloworld.sh
or

Code:
sh helloworld.sh
 
Old 01-13-2009, 07:29 AM   #8
SimonT
Member
 
Registered: Oct 2004
Posts: 33

Original Poster
Rep: Reputation: 15
Thanks gosh its all coming back to me now sorry have not touched Linux in ages,
I did bash helloword.sh and it worked I found the

shebang?? line

#!/bin/sh

to be wrong :-) its all working now Thank you very much
 
  


Reply

Tags
apt-get, dns, resolve


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 08:38 AM
Is there knoppix-like distro, that we can: apt-get update; apt-get install programs ? frenchn00b Linux - Distributions 7 04-28-2008 03:06 PM
Howabout apt-get update ; apt-get upgrade -f -y --force-yes in the crontab every week frenchn00b Debian 1 04-05-2008 08:47 AM
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 01:28 PM
Does 'apt-get update' update the database used by 'apt-cache'? davidas Debian 5 04-20-2004 02:27 AM


All times are GMT -5. The time now is 08:51 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration