Ubuntu 7.10, apt-get and build-essential
If you find yourself doing this under Ubuntu 7.10 “Gutsy Gibbon”:
chris@karnak:~$ sudo apt-get install build-essential
there’s a good chance it will fail with this error:
Failed to fetch cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/pool/main/g/gcc-4.1/g++-4.1_4.1.2-16ubuntu2_i386.deb Hash Sum mismatch
If so, open up your sources file:
chris@karnak:~$ sudo nano /etc/apt/sources.list
and comment out the line that references the CD-ROM (its probably the first one):
deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted
Rebuild your repositories:
chris@karnak:~$ sudo apt-get dist-upgrade
and then try re-running the build-essential command. It ought to work now.
chris on January 8th 2008 in /dev/random
