The source of Ubuntu is actually to update a variety of software packages need to use the mirror site,
When you install the Linux image on the virtual machine will certainly encounter a variety of Linux software is not installed, when you install with Apt-get it will prompt invalid URLs, this time you need to update the source (of course, it may not be used), it doesn't matter.
The following steps may help you to solve the above problem (I tried a lot of URLs before)
1. Modify the update source
sudo gedit etc/apt/sources.list
2. Replace the update source, here to pay attention, I tried a lot of URLs are not, here paste a I tried to pass the URL
Http://packages.ubuntu.com/precise/i386/libstdc++5/download Of course you can also get other useful things through this website.
This is the address used in my sources list (Asia):
Deb Http://kr.archive.ubuntu.com/ubuntu Precise main universe
Of course, you can also replace the other addresses in the above URL Kr.archive.ubuntu.com/ubuntu
3. Save Exit and Execute
sudo apt-get update
If the URL is available it will prompt through.
How Ubuntu updates the source