apt-get update could not resolve 'security.debian.org'

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
sambale
Posts: 1
Joined: 2014-11-06 23:23

apt-get update could not resolve 'security.debian.org'

#1 Post by sambale »

Hi everyone,

I am a beginner using debian linux on beaglebone board.
I am trying to update using this command
apt-get update
But I am getting the following error

Could anyone please help me this this? It's a bit urgent :-/

Thanks in advance!

Code: Select all

root@beaglebone:~# apt-get install ntp
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ntp is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'ntp' has no installation candidate
root@beaglebone:~# apt-get update
Err http://security.debian.org wheezy/updates Release.gpg
  Could not resolve 'security.debian.org'
Err http://ftp.debian.org wheezy Release.gpg
  Could not resolve 'ftp.debian.org'
Err http://ftp.debian.org wheezy-updates Release.gpg
  Could not resolve 'ftp.debian.org'
Reading package lists... Done
W: Failed to fetch http://ftp.debian.org/debian/dists/wheezy/Release.gpg  Could not resolve 'ftp.debian.org'

W: Failed to fetch http://security.debian.org/dists/wheezy/updates/Release.gpg  Could not resolve 'security.debian.org'

W: Failed to fetch http://ftp.debian.org/debian/dists/wheezy-updates/Release.gpg  Could not resolve 'ftp.debian.org'

W: Some index files failed to download. They have been ignored, or old ones used instead.

User avatar
cra1g321
Posts: 241
Joined: 2011-01-20 23:03

Re: apt-get update could not resolve 'security.debian.org'

#2 Post by cra1g321 »

post your /etc/apt/sources.list file in code brackets

User avatar
buzzin
Posts: 121
Joined: 2013-12-31 09:42

Re: apt-get update could not resolve 'security.debian.org'

#3 Post by buzzin »

It's not security alone.
The output you posted shows that none of the names can be resolved.
Is DNS working on this machine at all?
does 'host www.google.com' give a correct answer?
and does ping 8.8.8.8 work?

If the first command I gave fails, but the second one works: DNS resolving isn't set up correctly. Please add 'nameserver 8.8.8.8' to the /etc/resolv.conf file and try again.
If both don't work: you don't have a proper internet connection, please figure out if you network is working at all...
Last edited by buzzin on 2014-11-07 13:04, edited 1 time in total.
Sysadmin/KDE user

reinob
Posts: 1217
Joined: 2014-06-30 11:42
Has thanked: 112 times
Been thanked: 52 times

Re: apt-get update could not resolve 'security.debian.org'

#4 Post by reinob »

buzzin wrote:It's not security alone.
The output you posted shows that none of the names can be resolved.
Is DNS working on this machine at all?
does 'host http://www.google.com' give a correct answer?
and does ping 8.8.8.8 work?

If the first command I gave fails, but the second one works: DNS resolving isn't set up correctly. Please add 'nameserver 8.8.8.8' to the /etc/resolv.conf file and try again.
If both don't work: you don't have a proper internet connection, please figure out if you network is working at all...
Correction: "host www.google.com". Drop the "http://" which has nothing to do with DNS.

Please kindly post the contents of /etc/resolv.conf. If it only says "127.0.0.1" please explain how you have configured the network (have you installed dnsmasq?, are you using DHCP?)

User avatar
buzzin
Posts: 121
Joined: 2013-12-31 09:42

Re: apt-get update could not resolve 'security.debian.org'

#5 Post by buzzin »

reinob wrote: Correction: "host http://www.google.com". Drop the "http://" which has nothing to do with DNS.
:oops: oops, that crept in, isn't the first time and probably won't be the last :roll:
(I know it's wrong, don't worry :) )
Sysadmin/KDE user

Post Reply