[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Re: Re: Reg: Error in apt-get install in libstdc++ package



Dear Greg,

I am not getting your point "How can it say the existing package is the latest if no such package exists to begin with?".

Do you mean there is no such package like libstdc++? Actually Debian say's 'libstdc++6 is already the newest version' but it has some more confusing statements like 

The following packages have unmet dependencies:
 libstdc++6-4.6-dbg : Conflicts: libstdc++6-4.4-dbg but 4.4.7-2 is to be installed
 libstdc++6-4.6-doc : Conflicts: libstdc++6-4.4-doc but 4.4.7-2 is to be installed
 libstdc++6-4.7-dbg : Conflicts: libstdc++6-4.4-dbg but 4.4.7-2 is to be installed
                      Conflicts: libstdc++6-4.6-dbg but 4.6.3-14 is to be installed
 libstdc++6-4.7-doc : Conflicts: libstdc++6-4.4-doc but 4.4.7-2 is to be installed
                      Conflicts: libstdc++6-4.6-doc but 4.6.3-14 is to be installed
E: Unable to correct problems, you have held broken packages.

I have copied the messages of apt-get below for more understanding.

I have just ran the commands on a fresh install of Debian 7 (Wheezy) 64-bit system. 


root@debian:/home/user# apt-get install libstdc++
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libstdc++6-4.4-doc' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.7-pic' for regex 'libstdc+'
Note, selecting 'libstdc++5' for regex 'libstdc+'
Note, selecting 'libstdc++6' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.1-dbg' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.1-doc' for regex 'libstdc+'
Note, selecting 'libstdc++2.9-dev' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.4-pic' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.5-dbg' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.5-doc' for regex 'libstdc+'
Note, selecting 'libstdc++-dev' for regex 'libstdc+'
Note, selecting 'libstdc++2.10-dev' for regex 'libstdc+'
Note, selecting 'libstdc++2.9-glibc2.1-dev' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.2-dbg' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.2-doc' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.6-dbg' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.6-dev' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.6-doc' for regex 'libstdc+'
Note, selecting 'libstdc++5-dbg' for regex 'libstdc+'
Note, selecting 'libstdc++5-doc' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.3-dbg' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.3-dev' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.3-doc' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.6-pic' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.0-dbg' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.0-doc' for regex 'libstdc+'
Note, selecting 'libstdc++2.8-dev' for regex 'libstdc+'
Note, selecting 'libstdc++5-3.3-dbg' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.7-dbg' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.7-dev' for regex 'libstdc+'
Note, selecting 'libstdc++5-3.3-doc' for regex 'libstdc+'
Note, selecting 'libstdc++3.0-dev' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.7-doc' for regex 'libstdc+'
Note, selecting 'libstdc++6-dbg' for regex 'libstdc+'
Note, selecting 'libstdc++6-doc' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.4-dbg' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.4-dev' for regex 'libstdc+'
libstdc++6 is already the newest version.
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:
 libstdc++6-4.6-dbg : Conflicts: libstdc++6-4.4-dbg but 4.4.7-2 is to be installed
 libstdc++6-4.6-doc : Conflicts: libstdc++6-4.4-doc but 4.4.7-2 is to be installed
 libstdc++6-4.7-dbg : Conflicts: libstdc++6-4.4-dbg but 4.4.7-2 is to be installed
                      Conflicts: libstdc++6-4.6-dbg but 4.6.3-14 is to be installed
 libstdc++6-4.7-doc : Conflicts: libstdc++6-4.4-doc but 4.4.7-2 is to be installed
                      Conflicts: libstdc++6-4.6-doc but 4.6.3-14 is to be installed
E: Unable to correct problems, you have held broken packages.

Thanks and Regards,
Balamurugan R
On 09/07/2013 04:37 AM, Gregory Nowak wrote:
On Thu, Sep 05, 2013 at 07:37:03PM +0530, Balamurugan wrote:
I tried 'apt-get update' but didn't tried 'apt-get dist-upgrade'. I
have simply installed the Debian 7.0(Wheezy), imported the debian
repositories near to india and just ran the below:

apt-get update
apt-get install libstdc++

It had libstdc++6 installed already. I expected either it would
update to the latest libstdc++ else say the existing package itself
is latest but unfortunately it gave the mentioned error.
How can it say the existing package is the latest if no such package
exists to begin with?

I have another machine which has CentOS 6.4. In that I ran 'yum
install libstdc++' and it said the existing package is the latest.
CentOS and debian are two different distributions which do various
things differently.

Hence I felt something is wrong in my Debian 7.0 (Wheezy).
No, nothing wrong unless you're seeing a specific problem related to
the standard c++ library.

Doesn't the command 'apt-get dist-upgrade' will do Debian version
upgrade (distribution) or will it upgrade libstdc++?

It will do both if there is a newer version of the standard c++
library. The apt-get man page explains all this.

Sorry for too many confusions in my mail. I am new in using the
debian package maintenance system.
No problem, we were all new at this at one time.

Greg




Reply to: