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