I have installed Ubuntu server 14.04 on virtual box along with putty and Winscp for ftp requirements.I need to install some packages in to that but if I write
sudo apt-get install openjdk-7-jre
... it gives "Unable to locate the package
".
However if I simply use:
sudo apt-get update
then also it returns error
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg Could not resolve 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
It seems there is some issue with sources.list file, I have already checked it with possibilities of errors but could not find any fix for that. Can anybody help me out of this. Thanks
nslookup security.ubuntu.com
and reach it usingping security.ubuntu.com
? – Byte Commander Mar 15 '16 at 08:16nslookup
output should contain several lines like this:Name: security.ubuntu.com
Address: 91.189.88.149
- doesn't it? – Byte Commander Mar 15 '16 at 10:44