FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 11-23-2010, 04:09 AM
Richard Gliebe
 
Default remove packages

Hi there,

is there a way to remove a package with a lot of dependencies?

I have to upgrade the package libc6-dev, but 'apt-get upgrade' says,
there is a dependency with package libc6 (should be libc6-2.7-18lenny6).

....
The following packages have unmet dependencies:
libc6-dev: Depends: libc6 (= 2.7-18lenny6) but 2.7-18 is installed
....

My problem is now, that someone have installed the package libc6 instead
of 2.7-18lenny6.

# dpkg -l | grep -i libc6
ii libc6 2.7-18 GNU C
Library: Shared libraries
pU libc6-dev 2.7-18lenny6 GNU C
Library: Development Libraries and Hea

now my question.
is there a way (without reinstalling the OS) to remove the package libc6
and install libc6-2.7-18lenny6.

many thanks
Richard

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-23-2010, 04:26 PM
NoOp
 
Default remove packages

On 11/22/2010 09:09 PM, Richard Gliebe wrote:
> Hi there,
>
> is there a way to remove a package with a lot of dependencies?
>
> I have to upgrade the package libc6-dev, but 'apt-get upgrade' says,
> there is a dependency with package libc6 (should be libc6-2.7-18lenny6).
>
> ....
> The following packages have unmet dependencies:
> libc6-dev: Depends: libc6 (= 2.7-18lenny6) but 2.7-18 is installed
> ....
>
> My problem is now, that someone have installed the package libc6 instead
> of 2.7-18lenny6.
>
> # dpkg -l | grep -i libc6
> ii libc6 2.7-18 GNU C
> Library: Shared libraries
> pU libc6-dev 2.7-18lenny6 GNU C
> Library: Development Libraries and Hea
>
> now my question.
> is there a way (without reinstalling the OS) to remove the package libc6
> and install libc6-2.7-18lenny6.

Any particular reason that you're attempting to install this:
http://packages.debian.org/lenny/libc6-dev
instead of this:
http://packages.ubuntu.com/lucid-updates/libc6-dev




--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-23-2010, 06:20 PM
Masao Kitamura
 
Default remove packages

> is there a way to remove a package with a lot of dependencies?
>
> I have to upgrade the package libc6-dev, but 'apt-get upgrade' says,
> there is a dependency with package libc6 (should be libc6-2.7-18lenny6).
>
> ....
> The following packages have unmet dependencies:
> * libc6-dev: Depends: libc6 (= 2.7-18lenny6) but 2.7-18 is installed
> ....
>
> My problem is now, that someone have installed the package libc6 instead
> of 2.7-18lenny6.
>
> # dpkg -l | grep -i libc6
> ii *libc6 * * * * * * * * * * * * * *2.7-18 * * * * * * * * * GNU C
> Library: Shared libraries
> pU *libc6-dev * * * * * * * * * * * *2.7-18lenny6 * * * * * * GNU C
> Library: Development Libraries and Hea
>
> now my question.
> is there a way (without reinstalling the OS) to remove the package libc6
> and install libc6-2.7-18lenny6.

Try:

apt-get remove --purge libc6

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-23-2010, 07:33 PM
C de-Avillez
 
Default remove packages

On 11/23/2010 01:20 PM, Masao Kitamura wrote:
>> now my question.
>> is there a way (without reinstalling the OS) to remove the package libc6
>> and install libc6-2.7-18lenny6.
>
> Try:
>
> apt-get remove --purge libc6

Not a good idea -- libc6 is required by pretty much everything, and
force-removing it will end up in an unusable system.

You could try:

1. download the lenny libc6 package you want;
2. 'sudo dpkg -i' it.

Just please be aware that mixing Debian and Ubuntu packages is not
always a good idea -- in libc6's case, probably a real bad one.

(in Maverick, 'apt-cache rdepends libc6' lists 14k packages... in
other words, a good portion of what we ship.)

Some of these packages may have a depends clause on the specific
version of the official libc6 -- it is safer to check *before* you
force the install:

sudo dpkg -i --dry-run <the lenny libc6>

and then analyse the output, and decide on a course of action.

Cheers,

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-24-2010, 08:58 AM
Richard Gliebe
 
Default remove packages

On 11/23/10 9:33 PM C de-Avillez wrote:

Hi,

> Not a good idea -- libc6 is required by pretty much everything, and
> force-removing it will end up in an unusable system.
>
> You could try:
>
> 1. download the lenny libc6 package you want;
> 2. 'sudo dpkg -i' it.
>
> Just please be aware that mixing Debian and Ubuntu packages is not
> always a good idea -- in libc6's case, probably a real bad one.
>
> (in Maverick, 'apt-cache rdepends libc6' lists 14k packages... in
> other words, a good portion of what we ship.)
>
> Some of these packages may have a depends clause on the specific
> version of the official libc6 -- it is safer to check *before* you
> force the install:
>
> sudo dpkg -i --dry-run <the lenny libc6>

--dry-run looks fine.

.....
dpkg -i --dry-run libc6-dev_2.7-18lenny6_i386.deb
(Reading database ... 25833 files and directories currently installed.)
Preparing to replace libc6-dev 2.7-18lenny6 (using
libc6-dev_2.7-18lenny6_i386.deb) ...
.....

so I tried it to install, but it failed.

.....
# dpkg -i libc6-dev_2.7-18lenny6_i386.deb
Selecting previously deselected package libc6-dev.
(Reading database ... 25833 files and directories currently installed.)
Preparing to replace libc6-dev 2.7-18lenny6 (using
libc6-dev_2.7-18lenny6_i386.deb) ...
Unpacking replacement libc6-dev ...
dpkg: dependency problems prevent configuration of libc6-dev:
libc6-dev depends on libc6 (= 2.7-18lenny6); however:
Version of libc6 on system is 2.7-18.
libc6-dev depends on linux-libc-dev; however:
Package linux-libc-dev is not configured yet.
dpkg: error processing libc6-dev (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db ...
Errors were encountered while processing:
libc6-dev
.....

also linux-libc-dev

.....
# apt-get install -s linux-libc-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-libc-dev is already the newest version.
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
libc6-dev: Depends: libc6 (= 2.7-18lenny6) but 2.7-18 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or
specify a solution)
.....

next step. trying to install libc6_2.7-18lenny6_i386.deb (downloaded
from http://packages.debian.org/lenny/i386/libc6)

It also failed.

.....
# dpkg -i libc6_2.7-18lenny6_i386.deb
(Reading database ... 25833 files and directories currently installed.)
Preparing to replace libc6 2.7-18 (using libc6_2.7-18lenny6_i386.deb)
...
A non-dpkg owned copy of the libc6-i686 package was found.
It is not safe to upgrade the C library in this situation;
please remove that copy of the C library and try again.
dpkg: error processing libc6_2.7-18lenny6_i386.deb (--install):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
libc6_2.7-18lenny6_i386.deb
.....

how on gods earth can I remove or replace this damned "libc6 2.7-18"
package?

more hints are very, very welcome.

many thanks
Richard

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-24-2010, 10:17 AM
Tom H
 
Default remove packages

On Wed, Nov 24, 2010 at 4:58 AM, Richard Gliebe <richard.gliebe@fhv.at> wrote:
> On 11/23/10 9:33 PM C de-Avillez wrote:


>> (in Maverick, 'apt-cache rdepends libc6' lists 14k packages... in
>> other words, a good portion of what we ship.)

Which makes using a Lenny libc6 weird (to say the least).


> # dpkg -i *libc6-dev_2.7-18lenny6_i386.deb
> ...
> *libc6-dev depends on linux-libc-dev; however:
> * Package linux-libc-dev is not configured yet.
> ...

> # dpkg -i libc6_2.7-18lenny6_i386.deb
> ...
> A non-dpkg owned copy of the libc6-i686 package was found.
> It is not safe to upgrade the C library in this situation;
> please remove that copy of the C library and try again.
> ...

You need to install "linux-libc-dev".

What's the output of
dpkg --audit
apt-cache show libc6
apt-cache show libc6-dev
apt-cache policy libc6
apt-cache policy libc6-dev

Are you running Hardy?

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-24-2010, 10:20 AM
Amal Shehu Amal
 
Default remove packages

On Tue, Nov 23, 2010 at 10:39 AM, Richard Gliebe <richard.gliebe@fhv.at> wrote:thanks
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-24-2010, 10:48 AM
Richard Gliebe
 
Default remove packages

On 11/24/10 12:17 PM Tom H wrote:
> You need to install "linux-libc-dev".

I installed it with 'dpkg --configure linux-libc-dev'

# dpkg -l |grep -i linux-libc-dev
ii linux-libc-dev 2.6.26-25lenny1 Linux
support headers for userspace developm

> What's the output of
> dpkg --audit
# dpkg --audit
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
libc6-dev GNU C Library: Development Libraries and Header Files

> apt-cache show libc6
# apt-cache show libc6
Package: libc6
Priority: required
Section: libs
Installed-Size: 10776
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Architecture: i386
Source: glibc
Version: 2.7-18lenny6
Provides: glibc-2.7-1
Depends: libgcc1
Suggests: locales, glibc-doc, libc6-i686
Conflicts: libterm-readline-gnu-perl (<< 1.15-2), tzdata (<< 2007k-1),
tzdata-etch
Filename: pool/updates/main/g/glibc/libc6_2.7-18lenny6_i386.deb
Size: 4566382
MD5sum: 728924c508553af78ea05b7c280c1a97
SHA1: abc704d61bd9863aa168cfe67d7cc052ee9f79ff
SHA256: bdde9baa6c9a1da71d071105f7d1d5b8ce1441ce36dba23711 fbbef781faa0fa
Description: GNU C Library: Shared libraries
Contains the standard libraries that are used by nearly all programs on
the system. This package includes shared versions of the standard C
library
and the standard math library, as well as many others.
Tag: devel::lang:c, devel::library, implemented-in::c, protocol::ipv6,
role::shared-lib, suite::gnu

Package: libc6
Priority: required
Section: libs
Installed-Size: 10756
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Architecture: i386
Source: glibc
Version: 2.7-18lenny4
Provides: glibc-2.7-1
Depends: libgcc1
Suggests: locales, glibc-doc, libc6-i686
Conflicts: libterm-readline-gnu-perl (<< 1.15-2), tzdata (<< 2007k-1),
tzdata-etch
Filename: pool/main/g/glibc/libc6_2.7-18lenny4_i386.deb
Size: 4550320
MD5sum: b601d6184daca73e71c069dbbec18e3b
SHA1: 6118300e676d176baeefd3128d0a677808b44c4f
SHA256: 282862aca2d7443d0c25cb3fb55b2f639c5d26e346629d7b6b 9bb01d995f8680
Description: GNU C Library: Shared libraries
Contains the standard libraries that are used by nearly all programs on
the system. This package includes shared versions of the standard C
library
and the standard math library, as well as many others.
Tag: devel::lang:c, devel::library, implemented-in::c, protocol::ipv6,
role::shared-lib, suite::gnu

Package: libc6
Status: install ok installed
Priority: required
Section: libs
Installed-Size: 10512
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Architecture: i386
Source: glibc
Version: 2.7-18
Provides: glibc-2.7-1
Depends: libgcc1
Suggests: locales, glibc-doc, libc6-i686
Conflicts: libterm-readline-gnu-perl (<< 1.15-2), tzdata (<< 2007k-1),
tzdata-etch
Conffiles:
/etc/init.d/glibc.sh ce55541f2b38719f6eba57abe9f23603
/etc/ld.so.conf.d/i486-linux-gnu.conf 36f09aeeab18f6af453d0a1db0a0942c
/etc/ld.so.conf.d/libc.conf d4d833fd095fb7b90e1bb4a547f16de6
/etc/gai.conf bdd4cc328b946a52cc1424ef3dfa9321
/etc/bindresvport.blacklist db84c47f31f8d5a334a4053d8368e902
Description: GNU C Library: Shared libraries
Contains the standard libraries that are used by nearly all programs on
the system. This package includes shared versions of the standard C
library
and the standard math library, as well as many others.

> apt-cache show libc6-dev
# apt-cache show libc6-dev
Package: libc6-dev
Priority: optional
Section: libdevel
Installed-Size: 13180
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Architecture: i386
Source: glibc
Version: 2.7-18lenny6
Replaces: man-db (<= 2.3.10-41), gettext (<= 0.10.26-1), ppp (<=
2.2.0f-24), libgdbmg1-dev (<= 1.7.3-24)
Provides: libc-dev
Depends: libc6 (= 2.7-18lenny6), linux-libc-dev
Recommends: gcc | c-compiler
Suggests: glibc-doc, manpages-dev
Conflicts: libstdc++2.10-dev (<< 1:2.95.2-15), gcc-2.95 (<< 1:2.95.3-9),
binutils (<< 2.17cvs20070426-1), libc-dev
Filename: pool/updates/main/g/glibc/libc6-dev_2.7-18lenny6_i386.deb
Size: 3386072
MD5sum: 25e9b2c60b89e48bff1f3822f6f4d659
SHA1: 1b3cb06868bf43ff2ea5173a4bff50cd598d909d
SHA256: e21bb38404b33d84f5bb6eb39f8e4a01e894adbfa603d0027e b64fed379bb282
Description: GNU C Library: Development Libraries and Header Files
Contains the symlinks, headers, and object files needed to compile
and link programs which use the standard C library.
Build-Essential: yes
Tag: devel::lang:c, devel::library, implemented-in::c, role::devel-lib,
suite::gnu

Package: libc6-dev
Priority: optional
Section: libdevel
Installed-Size: 13172
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Architecture: i386
Source: glibc
Version: 2.7-18lenny4
Replaces: man-db (<= 2.3.10-41), gettext (<= 0.10.26-1), ppp (<=
2.2.0f-24), libgdbmg1-dev (<= 1.7.3-24)
Provides: libc-dev
Depends: libc6 (= 2.7-18lenny4), linux-libc-dev
Recommends: gcc | c-compiler
Suggests: glibc-doc, manpages-dev
Conflicts: libstdc++2.10-dev (<< 1:2.95.2-15), gcc-2.95 (<< 1:2.95.3-9),
binutils (<< 2.17cvs20070426-1), libc-dev
Filename: pool/main/g/glibc/libc6-dev_2.7-18lenny4_i386.deb
Size: 3387248
MD5sum: 9cdb8401cead8afdd9f3e5da7bf673f8
SHA1: 01049f981a24dc0e5da8a3a1e57a8f2e91d7e57a
SHA256: 89c222ece39c417ee91f24d9f5619f58be330b111092379e4f 09b93bcbfe834b
Description: GNU C Library: Development Libraries and Header Files
Contains the symlinks, headers, and object files needed to compile
and link programs which use the standard C library.
Build-Essential: yes
Tag: devel::lang:c, devel::library, implemented-in::c, role::devel-lib,
suite::gnu

> apt-cache policy libc6
# apt-cache policy libc6
libc6:
Installed: 2.7-18
Candidate: 2.7-18lenny6
Version table:
2.7-18lenny6 0
500 http://security.debian.org lenny/updates/main Packages
2.7-18lenny4 0
500 http://ftp.at.debian.org lenny/main Packages
*** 2.7-18 0
100 /var/lib/dpkg/status

> apt-cache policy libc6-dev
# apt-cache policy libc6-dev
libc6-dev:
Installed: 2.7-18lenny6
Candidate: 2.7-18lenny6
Version table:
*** 2.7-18lenny6 0
500 http://security.debian.org lenny/updates/main Packages
100 /var/lib/dpkg/status
2.7-18lenny4 0
500 http://ftp.at.debian.org lenny/main Packages

>
> Are you running Hardy?
we are running:
# cat /etc/issue
Debian GNU/Linux 5.0
l

# cat /etc/motd
Linux sessions2 2.6.26-2-686 #1 SMP Wed Aug 19 06:06:52 UTC 2009 i686

many thanks
Richard

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-24-2010, 12:29 PM
Tom H
 
Default remove packages

On Wed, Nov 24, 2010 at 6:48 AM, Richard Gliebe <richard.gliebe@fhv.at> wrote:
> On 11/24/10 12:17 PM Tom H wrote:


>> You need to install "linux-libc-dev".
>
> I installed it with 'dpkg --configure linux-libc-dev'

Why not "apt-get install linux-libc-dev" or "aptitude install linux-libc-dev"?

Why are you using dpkg? Do you ever upgrade this box with "apt-get
upgrade"/"apt-get dist-upgrade"/"aptitude safe-upgrade"/"aptitude
full-upgrade"? Or do you upgrade packages piecemeal with dpkg?



> # dpkg --audit
> The following packages have been unpacked but not yet configured.
> They must be configured using dpkg --configure or the configure
> menu option in dselect for them to work:
> *libc6-dev

Have you tried "dpkg --configure libc6-dev"?



> # apt-cache show libc6
>
> Package: libc6
> Priority: required
> Version: 2.7-18lenny6
> Filename: pool/updates/main/g/glibc/libc6_2.7-18lenny6_i386.deb
>
> Package: libc6
> Status: install ok installed
> Version: 2.7-18
>
> # apt-cache show libc6-dev
>
> Package: libc6-dev
> Priority: optional
> Version: 2.7-18lenny6
> Filename: pool/updates/main/g/glibc/libc6-dev_2.7-18lenny6_i386.deb
>
> # apt-cache policy libc6
> libc6:
> * Installed: 2.7-18
> * Candidate: 2.7-18lenny6
>
> # apt-cache policy libc6-dev
> libc6-dev:
> * Installed: 2.7-18lenny6
> * Candidate: 2.7-18lenny6

Back to my earlier questions: Why not use apt-get/aptitude? libc6
(2.7-18) is no longer in the Lenny repos so there must have been
earlier opportunities to upgrade to 2.7-18lenny4 or 2.7-18lenny6 (this
must be the reason that you got the "non-dpkg owned" message).

You should be able to upgrade to the latest version of libc6 with
"apt-get install libc6"/"aptitude install libc6"/"apt-get install
--reinstall libc6"/"aptitude reinstall libc6".



>> Are you running Hardy?
>
> # cat /etc/issue
> Debian GNU/Linux 5.0
>
> # cat /etc/motd
> Linux sessions2 2.6.26-2-686 #1 SMP Wed Aug 19 06:06:52 UTC 2009 i686

OK. Didn't think that you'd be able to run Hardy with a Lenny libc.

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-24-2010, 12:58 PM
Richard Gliebe
 
Default remove packages

On 11/24/10 2:29 PM Tom H wrote:

Hi Tom,

this thing make me crazy.

>
> You should be able to upgrade to the latest version of libc6 with
> "apt-get install libc6"/"aptitude install libc6"/"apt-get install
> --reinstall libc6"/"aptitude reinstall libc6".

no change.
....
# apt-get update && apt-get install --reinstall libc6
.....
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
glibc-doc libc6-i686
The following packages will be upgraded:
libc6
1 upgraded, 0 newly installed, 0 to remove and 56 not upgraded.
1 not fully installed or removed.
Need to get 0B/4566kB of archives.
After this operation, 270kB of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 25833 files and directories currently installed.)
Preparing to replace libc6 2.7-18 (using
.../libc6_2.7-18lenny6_i386.deb) ...

A non-dpkg owned copy of the libc6-i686 package was found.
It is not safe to upgrade the C library in this situation;
please remove that copy of the C library and try again.
dpkg: error processing
/var/cache/apt/archives/libc6_2.7-18lenny6_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.7-18lenny6_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
.....

>>> Are you running Hardy?
>> # cat /etc/issue
>> Debian GNU/Linux 5.0
>>
>> # cat /etc/motd
>> Linux sessions2 2.6.26-2-686 #1 SMP Wed Aug 19 06:06:52 UTC 2009 i686
>
> OK. Didn't think that you'd be able to run Hardy with a Lenny libc.

What do you exactly meen?

here is my sources.list
....
#
# deb cdrom:[Debian GNU/Linux 5.0.3 _Lenny_ - Official i386 NETINST
Binary-1 20090906-12:06]/ lenny main

#deb cdrom:[Debian GNU/Linux 5.0.3 _Lenny_ - Official i386 NETINST
Binary-1 20090906-12:06]/ lenny main

deb http://ftp.at.debian.org/debian/ lenny main
deb-src http://ftp.at.debian.org/debian/ lenny main

deb http://security.debian.org/ lenny/updates main
deb-src http://security.debian.org/ lenny/updates main

deb http://volatile.debian.org/debian-volatile lenny/volatile main
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main

many thanks
Richard

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 04:11 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org