Bug in build-essential. Dapper

Peter Garrett peter.garrett at optusnet.com.au
Tue Aug 1 11:40:00 UTC 2006


On Tue, 1 Aug 2006 08:33:31 +0100
Zizo <ulist at gs1.ubuntuforums.org> wrote:

> The following packages have unmet dependencies:
> build-essential: Depends: libc6-dev but it is not going to be installed
> or
> libc-dev
> Depends: g++ (>= 4:4.0) but it is not going to be installed
> E: Broken packages
> 
> 
> how to solve this? Any idea?

I think your /etc/apt/sources.list  is severely broken. "build-essential"
is in the main repository - if you can't install it and apt says it can't
find the dependencies, ,your list of available repositories is almost
certainly at fault. 

I suggest you visit:

http://www.ubuntulinux.nl/source-o-matic  , follow the instructions there
carefully, and make yourself a new sources.list. Be sure to choose your
version ( dapper, breezy etc) carefully. 

I suggest only choosing the "supported" and "community supported" packages
from that URL


Move your present sources.list out of the way - for example

sudo mv /etc/apt/sources.list /etc/apt/sources.list.old

then replace it with the new one you get from the URL I posted. Finally run

sudo apt-get update

After that you should be able to install build-essential , and more or less
anything else - assuming you haven't done anything dangerous like using
3rd party or Debian repositories.

You should get a list something like the one I have pasted below, except
that this one does not specify a country code ( you will probably want to
have that as a nearby mirror is preferable, but the vanilla file I pasted
below should also work fine)

############ copy the file between these lines ########

# Automatically generated sources.list
# http://www.ubuntulinux.nl/source-o-matic
#
# If you get errors about missing keys, lookup the key in this file
# and run these commands (replace KEY with the key number)
#
# gpg --keyserver subkeys.pgp.net --recv KEY
# gpg --export --armor KEY | sudo apt-key add -

# Ubuntu supported packages (packages, GPG key: 437D05B5)
deb http://archive.ubuntu.com/ubuntu dapper main restricted
deb http://archive.ubuntu.com/ubuntu dapper-updates main restricted
deb http://security.ubuntu.com/ubuntu dapper-security main restricted

# Ubuntu supported packages (sources, GPG key: 437D05B5)
deb-src http://archive.ubuntu.com/ubuntu dapper main restricted
deb-src http://archive.ubuntu.com/ubuntu dapper-updates main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted

# Ubuntu community supported packages (packages, GPG key: 437D05B5)
deb http://archive.ubuntu.com/ubuntu dapper universe multiverse
deb http://archive.ubuntu.com/ubuntu dapper-updates universe multiverse
deb http://security.ubuntu.com/ubuntu dapper-security universe multiverse

# Ubuntu community supported packages (sources, GPG key: 437D05B5)
deb-src http://archive.ubuntu.com/ubuntu dapper universe multiverse
deb-src http://archive.ubuntu.com/ubuntu dapper-updates universe multiverse
deb-src http://security.ubuntu.com/ubuntu dapper-security universe
multiverse

#################################################

Peter




More information about the ubuntu-users mailing list