PDA

View Full Version : [SOLVED] c compiler problem



Vishnu.V
August 14th, 2008, 05:17 PM
i tried to install c compiler in ubuntu 6.06 by typing
sudo apt-get install gcc install build-essential in the terminal
the reselt was the following
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package install
vishnu@visnit:~$ sudo apt-get install gcc build-essential
Reading package lists... Done
Building dependency tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
build-essential: Depends: gcc (>= 4:4.1.1) but 4:4.0.3-1 is to be installed
Depends: g++ (>= 4:4.1.1) but it is not going to be installed Depends: dpkg-dev (>= 1.13.5) but it is not going to be installed
E: Broken packages

can you please help me in installing c compiler

thanks in advance

oldos2er
August 14th, 2008, 05:21 PM
Can you post the output of "cat /etc/apt/sources.list"?

Vishnu.V
August 15th, 2008, 06:16 AM
this is the ouput of at /etc/apt/sources.list
deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release amd64 (20071016)]/ gutsy main restricted
deb cdrom:[Ubuntu 6.06.1 _Dapper Drake_ - Release amd64 (20060806.1)]/ dapper main restricted
deb http://in.archive.ubuntu.com/ubuntu/ dapper main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ dapper main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://in.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ dapper-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
# deb http://in.archive.ubuntu.com/ubuntu/ dapper universe
# deb-src http://in.archive.ubuntu.com/ubuntu/ dapper universe

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://in.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
# deb-src http://in.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted
# deb http://security.ubuntu.com/ubuntu dapper-security universe
# deb-src http://security.ubuntu.com/ubuntu dapper-security universe


deb http://archive.czessi.net/ubuntu/ breezy main

oldos2er
August 15th, 2008, 06:58 PM
#deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release amd64 (20071016)]/ gutsy main restricted
#deb cdrom:[Ubuntu 6.06.1 _Dapper Drake_ - Release amd64 (20060806.1)]/ dapper main restricted
deb http://in.archive.ubuntu.com/ubuntu/ dapper main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ dapper main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://in.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ dapper-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://in.archive.ubuntu.com/ubuntu/ dapper universe
deb-src http://in.archive.ubuntu.com/ubuntu/ dapper universe

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://in.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
# deb-src http://in.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted
deb http://security.ubuntu.com/ubuntu dapper-security universe
deb-src http://security.ubuntu.com/ubuntu dapper-security universe


deb http://archive.czessi.net/ubuntu/ breezy main

_____

I've altered this file slightly, commenting out the CD-ROM lines, and uncommenting the universe repository. If you copy this file over your current menu.list (you'll need admin privileges to do so), then in a terminal run "sudo aptitude update", you should be able to install build-essential. If not, please post back.

Vishnu V
August 16th, 2008, 05:18 PM
My problem get solved


thanks