I am trying to install VM tools in Debian linux which is having trouble finding the gcc binaries. I am trying to install the binaries, as shown in selected answer on this page:
installing vmware tools: location of GCC binary?
However, in these commands:
sudo aptitude install gcc-4.7 make linux-headers-`uname -r` -y
sudo apt-get install build-essential
sudo apt-get install gcc-4.7 linux-headers-`uname -r`
the system is asking me to insert the Official amd64 binary in the CDROM and then press enter. My debian in running on a VM over windows. Not sure where to get this thing and fix this problem. Please advise.
Debian uses apt
to install packages. (apt-get
or aptitude
are front-ends to the apt
systems).
whenever you ask the system to install a given package, it will first need the actual package files. now apt
can fetch the requested packages from a number of different places, including read-only media (like CDROMs or DVDs) or the internet (via http or ftp).
these "places" can be configured in the /etc/apt/sources.list
file.
if you have installed Debian from the set of CDROMs, then your sources.list
will tell apt, that it can get package files from the cdrom-drive. obviously you need to have the correct CDROM inserted in your drive.
on a virtual machine, you will find that you can use ISO-images of the files and tell your virtualization software (vmware
) to make a given ISO available to the client.
however, the usual way is to add an "internet ressource" to sources.list
, so you don't need to juggle with CDROM (images) and you will always get any bugfixes. obviously your machine will need to be online for this to work.
add an official online debian repository to your sources. the following uses http://http.debian.net
which should automatically use a mirror that is physically close to your machine:
echo "deb http://http.debian.net/debian $(lsb_release -c | awk '{print $2}') main" | sudo tee -a /etc/apt/sources.list
then update the cache
sudo aptitude update
and install the required package(s)
sudo aptitude install build-essential