Ubuntu frustrations

I'm installing an Ubuntu 10.04 server at work. Because of proxy and internet configurations I'm installing packages from the CD instead of using the online repo's. No problem, I've done this before on virtual test machines without internet connectivity, it worked flawlessly.

Only those machines were 8.04. Not 10.04.

First problem: apt-cdrom add. For some reason it insists that the cd-rom can be found on /dev/sr1. Why it ignores /dev/sr0, which is where the cd-rom actually lives, is beyond me. The solution to this one is to configure a mountpoint in /etc/fstab (to /mnt/cdrom or so), and use

apt-cdrom -d /mnt/cdrom add

If you're lucky, apt will mount the cd-rom in /media/apt. If not, try a few more times until it works. If it's going to ignore the mountpoint anyway, shouldn't I be able to just tell apt-cdrom what device to use instead of what mountpoint?

Of course, after commenting out the online repos in /etc/apt/sources.list and running apt-get update, installing packages still doesn't work. No sirree, that would be too easy.

Failed to fetch cdrom:[Ubuntu-Server 10.04.2 LTS _Lucid Lynx_ - Release amd64(20110211.1)]/pool/main/p/patchutils/patchutils_0.3.1-2build1_amd64.deb File not found

And so on and so forth... not a single file can be cound, even though they do exist under /media/apt/pool/main/blablablablabla. You know, the point where apt actually mounted the cd-rom while ignoring my mountpoint?

The solution turns out to be really simple:

ln -s /media/apt /cdrom

Yes, you need a /cdrom directory or symlink in which the files on the cd-rom can be found, because the configured mountpoint in /etc/fstab and the one apt chose all by itself aren't enough.

User-friendly distro my ass...
Issues 0 comments
This item is closed, it's not possible to add new comments to it or to vote on it