This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.
Date: Wed, 26 Dec 2001 12:29:33 -0800
From: Jeremy Zawodny <Jeremy@Zawodny.com>
To: svlug@svlug.org
Subject: [svlug] Debian "apt-get" all messed up somehow...
Many times, I've gone from stable --> testing quite successfully. I
simply updated my /etc/apt/sources.list and then:
apt-get update
apt-get dist-upgrade
and so on. But on this particular machine ("family"), I'm seeing some
problems and don't have a clue how to resolve the problem. The error
messages aren't very helpful. And I'm not sure how skip past the
problematic packages.
Anyway, here's what's happening:
--- snip ---
root@family:/usr/bin# apt-get dist-upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these.
Sorry, but the following packages have unmet dependencies:
binutils: Depends: libc6 (>= 2.2.4-4) but 2.1.3-19 is installed
cpp-2.95: Depends: libc6 (>= 2.2.4-2) but 2.1.3-19 is installed
g++-2.95: Depends: libc6 (>= 2.2.4-2) but 2.1.3-19 is installed
Depends: libstdc++2.10-dev (>= 1:2.95.4) but 1:2.95.2-13 is installed
gcc-2.95: Depends: libc6 (>= 2.2.4-2) but 2.1.3-19 is installed
libdb2: Depends: libc6 (>= 2.2.4-4) but 2.1.3-19 is installed
libfreetype6: Depends: libc6 (>= 2.2.4-4) but 2.1.3-19 is installed
libxaw6: Depends: libc6 (>= 2.2.4-2) but 2.1.3-19 is installed
Depends: xlibs (> 4.1.0) but it is not installed
locales: Depends: glibc-2.2.4-7
perl-modules: Depends: perl (>= 5.6.1-1) but it is not installed
tcl8.3: Depends: libc6 (>= 2.2.4-2) but 2.1.3-19 is installed
tk8.3: Depends: libc6 (>= 2.2.4-2) but 2.1.3-19 is installed
Depends: xlibs (> 4.1.0) but it is not installed
tktable: Depends: libc6 (>= 2.1.97) but 2.1.3-19 is installed
tktable-dev: Depends: tktable (= 2.5-2) but 2.6-3 is installed
xlib6g: Depends: xlibs but it is not installed
E: Unmet dependencies. Try using -f.
--- snip ---
So I try to do that:
--- snip ---
root@family:/usr/bin# apt-get -f dist-upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
Calculating Upgrade... Done
The following packages will be REMOVED:
gimp-python libmysqlclient6-dev libpgsql2 pnmtopng pyrite python-base
python-graphics python-history python-kjbuckets python-mxdatetime
python-mxstack python-mxtexttools python-mxtools python-newt python-pdb
python-pygresql python-rng python-xml python-zlib pythondoc sgmltools-2
sulfur task-python task-python-bundle task-sgml task-sgml-dev task-tcltk-dev
task-x-window-system-core tetex-lib tk8.2-dev xbase-clients xf86setup
xfonts-100dpi xfonts-75dpi xfonts-base xfonts-cjk xfonts-cyrillic
xfonts-scalable xlib6g-dev xmanpages xpm4g
The following NEW packages will be installed:
console-common courier-authdaemon courier-base debconf-utils defoma gconf
groff-base gs-common host html2text idle-python2.1 ifupdown ipchains klogd
libbonobo2 libbz2-1.0 libcap1 libcurl2 libdb3 libdbd-mysql-perl
libdigest-md5-perl libdns5 libdps1 libefs1 libexpat1 libgal18 libgc6
libgconf11 libgdk-pixbuf-gnome2 libgdk-pixbuf2 libgimpprint1 libgmp3
libhtml-tagset-perl libisc4 libkpathsea3 liblcms libldap2 liblwres1
libmagick5 libmysqlclient10 libnetpbm9 liboaf0 libpcre3 libpgsql2.1 libplot
libsasl7 libssl0.9.6 libstdc++2.10-glibc2.2 libttf2 libungif4g libwmf0.2-2
libxaw7 libxerces-java libxml-regexp-perl libxml2 mysql-common net-tools
netkit-inetd netkit-ping ntp-simple oaf octave2.0 perl proftpd-common python
python1.5-base python2.1 python2.1-dev python2.1-doc python2.1-elisp
python2.1-examples python2.1-gdbm python2.1-imaging python2.1-imaging-sane
python2.1-imaging-tk python2.1-mpz python2.1-tk tcl8.3-dev texinfo tk8.3-dev
wzip xlibs xlibs-dev xmhtml1 xserver-common-v3
The following packages have been kept back
debian-policy gnumeric python-gnome webalizer
296 packages upgraded, 85 newly installed, 41 to remove and 4 not upgraded.
17 packages not fully installed or removed.
Need to get 0B/137MB of archives. After unpacking 85.7MB will be used.
Do you want to continue? [Y/n] y
perl: /lib/libc.so.6: version `GLIBC_2.2' not found (required by /lib/libdb.so.3)
E: Write error - write (32 Broken pipe)
E: Failure running script /usr/sbin/dpkg-preconfigure --apt
--- snip ---
So now what?
I've tried "apt-get install", "apt-get -f install" and others.
Everything appears to be terribly hung up on the fact that I don't
have the proper version of libc6[-dev] installed. But how can I
convince it to do that.
I had hoped this would be a smooth transition so that I could drop a
new kernel on the system and get software RAID working when I visit
the colo tomorrow.
But Murphy apparently got wind of my plans. :-(
Thanks for any help...
===
Date: Wed, 26 Dec 2001 13:38:22 -0800
From: "Karsten M. Self" <kmself@ix.netcom.com>
To: svlug@svlug.org
Subject: Re: [svlug] Debian "apt-get" all messed up somehow...
--uXxzq0nDebZQVNAZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
on Wed, Dec 26, 2001 at 12:29:33PM -0800, Jeremy Zawodny (Jeremy@Zawodny.co=
m) wrote:
> Many times, I've gone from stable --> testing quite successfully. I
> simply updated my /etc/apt/sources.list and then:
>=20
> apt-get update
> apt-get dist-upgrade
>=20
> and so on. But on this particular machine ("family"), I'm seeing some
> problems and don't have a clue how to resolve the problem. The error
> messages aren't very helpful. And I'm not sure how skip past the
> problematic packages.
>=20
> Anyway, here's what's happening:
>=20
> --- snip ---
>=20
> root@family:/usr/bin# apt-get dist-upgrade
> Reading Package Lists... Done
> Building Dependency Tree... Done
> You might want to run `apt-get -f install' to correct these.
> Sorry, but the following packages have unmet dependencies:
> binutils: Depends: libc6 (>=3D 2.2.4-4) but 2.1.3-19 is installed
You've researched the libc issue?
What Debian distro? Potato, Woody, Sid, or other?
> cpp-2.95: Depends: libc6 (>=3D 2.2.4-2) but 2.1.3-19 is installed
> g++-2.95: Depends: libc6 (>=3D 2.2.4-2) but 2.1.3-19 is installed
> Depends: libstdc++2.10-dev (>=3D 1:2.95.4) but 1:2.95.2-13 is=
installed
> gcc-2.95: Depends: libc6 (>=3D 2.2.4-2) but 2.1.3-19 is installed
> libdb2: Depends: libc6 (>=3D 2.2.4-4) but 2.1.3-19 is installed
> libfreetype6: Depends: libc6 (>=3D 2.2.4-4) but 2.1.3-19 is installed
> libxaw6: Depends: libc6 (>=3D 2.2.4-2) but 2.1.3-19 is installed
> Depends: xlibs (> 4.1.0) but it is not installed
> locales: Depends: glibc-2.2.4-7
> perl-modules: Depends: perl (>=3D 5.6.1-1) but it is not installed
> tcl8.3: Depends: libc6 (>=3D 2.2.4-2) but 2.1.3-19 is installed
> tk8.3: Depends: libc6 (>=3D 2.2.4-2) but 2.1.3-19 is installed
> Depends: xlibs (> 4.1.0) but it is not installed
> tktable: Depends: libc6 (>=3D 2.1.97) but 2.1.3-19 is installed
> tktable-dev: Depends: tktable (=3D 2.5-2) but 2.6-3 is installed
> xlib6g: Depends: xlibs but it is not installed
> E: Unmet dependencies. Try using -f.
>=20
> --- snip ---
>=20
> So I try to do that:
>=20
> --- snip ---
>=20
> root@family:/usr/bin# apt-get -f dist-upgrade
> Reading Package Lists... Done
> Building Dependency Tree... Done
> Correcting dependencies... Done
> Calculating Upgrade... Done
> The following packages will be REMOVED:
> gimp-python libmysqlclient6-dev libpgsql2 pnmtopng pyrite python-base
> python-graphics python-history python-kjbuckets python-mxdatetime
> python-mxstack python-mxtexttools python-mxtools python-newt python-pdb
> python-pygresql python-rng python-xml python-zlib pythondoc sgmltools-2
> sulfur task-python task-python-bundle task-sgml task-sgml-dev task-tclt=
k-dev
> task-x-window-system-core tetex-lib tk8.2-dev xbase-clients xf86setup
> xfonts-100dpi xfonts-75dpi xfonts-base xfonts-cjk xfonts-cyrillic
> xfonts-scalable xlib6g-dev xmanpages xpm4g=20
Generate a file, format:
<package> hold
=2E..for packages listed above.
And:
$ dpkg --set-selections < file
=2E..which will prevent their removal. You'll want to reverse this
eventually by setting the packages to 'install', ***AFTER*** the libc
glitch is resolved. You can get the list of held packages later and
change this with:
$ dpgk --get-selections | grep ' hold' | sed -e '/ hold/ install/' |
dpkg --set-selections
> The following NEW packages will be installed:
> console-common courier-authdaemon courier-base debconf-utils defoma gco=
nf
<...>
> The following packages have been kept back
> debian-policy gnumeric python-gnome webalizer=20
> 296 packages upgraded, 85 newly installed, 41 to remove and 4 not upgrade=
d.
> 17 packages not fully installed or removed.
> Need to get 0B/137MB of archives. After unpacking 85.7MB will be used.
> Do you want to continue? [Y/n] y
> perl: /lib/libc.so.6: version `GLIBC_2.2' not found (required by /lib/lib=
db.so.3)
> E: Write error - write (32 Broken pipe)
> E: Failure running script /usr/sbin/dpkg-preconfigure --apt
>=20
> --- snip ---
>=20
> So now what?
>=20
> I've tried "apt-get install", "apt-get -f install" and others.
Meantime:
$ apt-get update
$ echo y | apt-get dist-upgrade
=2E..if it fails, iterate:
$ dpkg --configure -a; echo y | apt-get -f install
$ echo y | apt-get dist-upgrade
=2E..until things sort themselves out. Brute force, but seems to work
most of the time.
> Everything appears to be terribly hung up on the fact that I don't
> have the proper version of libc6[-dev] installed. But how can I
> convince it to do that.
This is somewhat disturbing, and I'd prolly research the issue more
(Debian lists, Google) before grabbing a larger hammer.
> But Murphy apparently got wind of my plans. :-(
Aye. When Murphy gets the wind, he gets it bad ;-)
Peace.
===