Archive for the Linux Category

Advanced Packaging Tool forces the usage of CD-ROM sources and quits…. help!

Posted in Linux with tags , , , on December 13, 2008 by vinaychilakamarri

When I started using a headless Debian, my only weapon to install the needed packages was ‘apt’. But I was hit on the head, when it was forcing me to install sources from CD-ROM, instead of looking for sources from the internet. Picture this scenario:

vinay@darkbox:~$ sudo apt-get install blah-app


After printing some packages that need to be updated



[b]Media change: please insert the disc labeled
‘xxxxxxxxxxxx_xxxxxxxxxx_ -xxxxxxxxx(xxxxxxxx)’
in the drive ‘/cdrom/’ and press enter
Media change: please insert the disc labeled
‘xxxxxxxxxxxx_xxxxxxxxxx_ -xxxxxxxxx(xxxxxxxx)’
in the drive ‘/cdrom/’ and press enter

** The xxxxxxxxxxxx_xxxxxxxxxx_ -xxxxxxxxx(xxxxxxxx) can be anything depending on your distro.

A solution for this is to comment out the source list that points to the CD-ROM on the apt sources. So I did this:

vi /etc/apt/sources.list and comment the line that reads something similar to this:

deb cdrom:[ xxxxxxxxxxxx_xxxxxxxxxx_ -xxxxxxxxx(xxxxxxxx) ]/ hoary main restricted

This will restrict the apt tool from looking back to CD-ROM for the sources and quit. There may be some other approaches for this problem. It would be helpful if anyone who reads this thread discuss those approaches here.

Good Luck!


Installing Gnome for a headless CentOS Image for VirtualBox

Posted in Linux with tags , , , , , on November 18, 2008 by vinaychilakamarri

Was searching for VDI Linux image files to plug them into my Virtual Box and was wanting to play around with CentOS image.

This place has a gorgeous collection of images. You can pick one from them too. But the latest distribution of CentOS comes with no GUI.So I wanted to have Gnome on my new CentOS baby. Luckily it had wget, yum for rescue. Here is what I did after booting up the image and logging in as root (don’t follow this before you read entire article):

yum groupinstall “X Window System” “GNOME Desktop Environment”

After downloading a bunch of packages, it complained about the absense of  a “” package that is needed by “nautilus-sendto” package. You would see something like this:

0002483: nautilus-sendto requires a non-existent

Fortunately, it’s a known bug:

The solution is to get an rpm package and install it with nodeps option. So here is what you need to do:


After downloading the package, install it as follows:

rpm -Uvh –nodeps nautilus-sendto-0.7-5.fc6.i386.rpm

Once this is done, type in this:

yum groupinstall “X Window System” “GNOME Desktop Environment”

That’s it. Your headless centOS is equipped with Gnome!