1

I have uninstalled a previous version of virtualbox using sudo apt-get remove virtualbox and tried to install the latest version using the information from this page.

I did

wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -

and

sudo apt-get update

my /etc/apt/sources.list file contains:

deb http://download.virtualbox.org/virtualbox/debian trusty contrib

and the error I get after update is:

Err http://download.virtualbox.org trusty InRelease                            

Err http://download.virtualbox.org trusty Release.gpg      
  Unable to connect to download.virtualbox.org:http: [IP: 62.253.3.177 80]
Fetched 4,124 kB in 4min 0s (17.2 kB/s)
Reading package lists... Done
W: Failed to fetch http://download.virtualbox.org/virtualbox/debian/dists/trusty/InRelease  

W: Failed to fetch http://download.virtualbox.org/virtualbox/debian/dists/trusty/Release.gpg  Unable to connect to download.virtualbox.org:http: [IP: 62.253.3.177 80]

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

1 Answers1

1

It looks like you may have a problem with your DNS as download.virtualbox.org resolves to the addresses 23.63.99.67 or 23.63.99.89

This answer gives a lot of good advice on fixing your issue.

For a quick fix you could add the line:

dns-nameservers 192.168.1.254 8.8.8.8

To the main network interface in your /etc/network/interfaces file, after you've edited it, do changing eth0 to the correct interface name if necessary:

ifdown eth0 && ifup eth0

Once you've done this check that the name resolves to the correct addresses by using:

host download.virtualbox.org

If you see 23.63.99.67 and 23.63.99.89 then your update command should work properly.

Arronical
  • 20,241