Ok. This is technology article.
If you try to install build-essential package in Debian without CD-rom, you are just stuck in several situation.
The reason that apt-get command cannot install the package is your source.list is old or wrong. So just editing the source list file(/etc/apt/source.list) will make you happy.