I'm getting the following errors while trying to install Samba on a ubuntu server 10.04 LTS instance:
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/s/samba/libwbclient0_3.4.7~dfsg-1ubuntu3.6_i386.deb 404 Not Found [IP: 91.189.88.31 80]
Is there any way to workaround this so I don't have to wait for the update servers to come back up? How do I prevent this in the future?
Edit: I found a very similar posting here on askubuntu: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/maverick/Release
But Lekensteyn's answer doesn't work (though it helped the author of the given question)... I still get the following (after switching repo's to in.archive.ubuntu.com):
root@orbital /home# apt-get install samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
samba: Depends: samba-common-bin but it is not going to be installed
Depends: libwbclient0 (= 2:3.4.7~dfsg-1ubuntu3.4) but it is not going to be installed
Depends: libtalloc2 (>= 2.0.0) but it is not installable
Depends: update-inetd but it is not installable
E: Broken packages
If all else fails, how will I know when the repository is available again?
You need to run
apt-get update
to make sure that your package lists are up to date prior to installing packages.In the case of samba, the current version is
2:3.4.7~dfsg-1ubuntu3.7
.Software Sources lets you select "Download from" which allows you to change the repository source. Perhaps a different choice will work for you. If you select "other", you'll find there are a lot to pick from even in the US. A button labelled "Select Best Server" will optimize your selection for performance.