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

Re: apt question revisitted



Am 03. Jul, 2001 schwäzte Paul Mackinney so:

> Disclaimer: Post from blatant newbie.
>
> I tried der.hans' advice to add the two lines to /etc/apt/sources.list for
> woody (these exactly match the woody page on www.debian.org, BTW)
>
> > deb http://http.us.debian.org/debian testing main contrib non-free
> > deb http://non-us.debian.org/debian-non-US testing/non-US main
>
> contrib non-free
>
> and then per his suggestion, did the following:
>
> > Do an "apt-get update", then an "apt-get install apt"...
>
> This seems to have failed. See below for what appeared in my terminal,
> suggestions as to how to proceed very much appreciated--I'd like to either
> revert to how things were before, or finish this installation without
> totally bonking the system.
>
> Side topic: My motivation for upgrading from potato is that I need to
> learn java, would prefer to do it on Linux. I'm having trouble installing
> a java SDK that supports the examples in O'Reilly's Nutshell book I'm

What version does the Nutshell book presume? Should be listed somewhere at
the front of the book.

> also having the usual trouble getting java applets to run on potato's
> version of Mozilla. I downloaded mozilla 0.9.2, but it won't run because
> it can't find the shared library: 'libc6++.so.u.think.u.can.run.linux'. I
> downloaded the Sun Java SDK, javac won't run either, basically says the
> same thing. I *think* I know that this error means that the program is
> looking for a symbolic link to the libc shared library, can someone
> confirm this and/or explain how to resolve these issues?

Have you tried the Blackdown JDK debs?

ftp://ftp.tux.org/pub/java/debian/dists/

Haven't used them myself, but they seemed to get good reviews on this list
over the last couple of weeks. I will probably be installing them for work
Thu instead of going with the tarball from Sun.

> Apt error output from terminal:

Comments below by the errors.

> dog:~# apt-get install apt
> Reading Package Lists... Done
> Building Dependency Tree... Done
> The following extra packages will be installed:
> binutils cpp cpp-2.95 g++ g++-2.95 gcc gcc-2.95 gobjc gobjc-2.95 libc6
> libc6-dev libdb2 libdb2-util libstdc++2.10-dev libstdc++2.10-glibc2.2
> locales
> The following NEW packages will be installed:
> cpp-2.95 g++-2.95 gcc-2.95 gobjc-2.95 libstdc++2.10-glibc2.2
> 12 packages upgraded, 5 newly installed, 0 to remove and 313 not
> upgraded.
> Need to get 14.0MB of archives. After unpacking 3267kB will be used.
> Do you want to continue? [Y/n]
> Get:1 http://http.us.debian.org testing/main libdb2 2:2.7.7-8 [273kB]
> Get:2 http://http.us.debian.org testing/main libc6 2.2.3-5 [3206kB]
> Get:3 http://http.us.debian.org testing/main libstdc++2.10-glibc2.2
> 1:2.95.4-0.010424 [126kB]
> Get:4 http://http.us.debian.org testing/main apt 0.5.3 [591kB]
> Get:5 http://http.us.debian.org testing/main binutils 2.11.90.0.7-2
> [1198kB]
> Get:6 http://http.us.debian.org testing/main cpp 1:2.95.3-7 [2526B]
> Get:7 http://http.us.debian.org testing/main cpp-2.95
> 1:2.95.4-0.010424 [114kB]
> Get:8 http://http.us.debian.org testing/main g++ 1:2.95.3-7 [1256B]
> Get:9 http://http.us.debian.org testing/main g++-2.95
> 1:2.95.4-0.010424 [1018kB]Get:10 http://http.us.debian.org
> testing/main gcc 1:2.95.3-7 [3276B]
> Get:11 http://http.us.debian.org testing/main gcc-2.95
> 1:2.95.4-0.010424 [940kB]Get:12 http://http.us.debian.org testing/main
> libstdc++2.10-dev 1:2.95.4-0.010424 [299kB]
> Get:13 http://http.us.debian.org testing/main libc6-dev 2.2.3-5
> [2292kB]
> Get:14 http://http.us.debian.org testing/main locales 2.2.3-5 [2949kB]
> Get:15 http://http.us.debian.org testing/main gobjc 1:2.95.3-7 [1082B]
> Get:16 http://http.us.debian.org testing/main gobjc-2.95
> 1:2.95.4-0.010424 [850kB]
> Get:17 http://http.us.debian.org testing/main libdb2-util 2:2.7.7-8
> [107kB]
> Fetched 14.0MB in 43s (320kB/s)
> (Reading database ... 41000 files and directories currently
> installed.)
> Preparing to replace libdb2-util 2:2.4.14-2.7.7.1.c (using
> .../libdb2-util_2%3a2.7.7-8_i386.deb) ...
> Unpacking replacement libdb2-util ...
> Preparing to replace libdb2 2:2.4.14-2.7.7.1.c (using
> .../libdb2_2%3a2.7.7-8_i386.deb) ...
> Unpacking replacement libdb2 ...
> Replacing files in old package libc6 ...
> Preparing to replace locales 2.1.3-18 (using
> .../locales_2.2.3-5_all.deb) ...
> Unpacking replacement locales ...
> Preparing to replace cpp 1:2.95.2-13 (using
> .../cpp_1%3a2.95.3-7_i386.deb) ...
> Unpacking replacement cpp ...
> Selecting previously deselected package cpp-2.95.
> Unpacking cpp-2.95 (from .../cpp-2.95_1%3a2.95.4-0.010424_i386.deb)
> ...
> Selecting previously deselected package gobjc-2.95.
> Unpacking gobjc-2.95 (from
> .../gobjc-2.95_1%3a2.95.4-0.010424_i386.deb) ...
> Preparing to replace gobjc 1:2.95.2-13 (using
> .../gobjc_1%3a2.95.3-7_i386.deb) ...
> Unpacking replacement gobjc ...
> Preparing to replace gcc 1:2.95.2-13 (using
> .../gcc_1%3a2.95.3-7_i386.deb) ...
> Removing old gcc doc directory.
> Unpacking replacement gcc ...
> Preparing to replace binutils 2.9.5.0.37-1 (using
> .../binutils_2.11.90.0.7-2_i386.deb) ...
> Unpacking replacement binutils ...
> Selecting previously deselected package gcc-2.95.
> Unpacking gcc-2.95 (from .../gcc-2.95_1%3a2.95.4-0.010424_i386.deb)
> ...
> Preparing to replace g++ 1:2.95.2-13 (using
> .../g++_1%3a2.95.3-7_i386.deb) ...
> Unpacking replacement g++ ...
> Selecting previously deselected package g++-2.95.
> Unpacking g++-2.95 (from .../g++-2.95_1%3a2.95.4-0.010424_i386.deb)
> ...
> Preparing to replace libstdc++2.10-dev 1:2.95.2-13 (using
> .../libstdc++2.10-dev_1%3a2.95.4-0.010424_i386.deb) ...
> perl: /lib/libc.so.6: version `GLIBC_2.2' not found (required by
> /lib/libdb.so.3)
> dpkg: warning - old pre-removal script returned error exit status 1
> dpkg - trying script from the new package instead ...
> perl: /lib/libc.so.6: version `GLIBC_2.2' not found (required by
> /lib/libdb.so.3)
> dpkg: error processing

This isn't good, but I don't know what the problem is either :(.

> /var/cache/apt/archives/libstdc++2.10-dev_1%3a2.95.4-0.010424_i386.deb
> (--unpack):
> subprocess new pre-removal script returned error exit status 1
> dpkg: regarding .../libc6-dev_2.2.3-5_i386.deb containing libc6-dev:
> libc6-dev conflicts with libstdc++2.10-dev (<< 1:2.95.2-15)

OK, this one's because the other didn't get installed.

Try

echo "libstdc++2.10-dev hold" | dpkg --set-selections
echo "libc6-dev hold" | dpkg --set-selections

That will put both of those packages on hold. This might break other stuff
if they require those packages at newer revisions than what you have
installed. Hopefully nothing does :).

If this works, the rest of the system can be dist-upgraded, then you
can try installing those packages manually, e.g. "apt-get install
libstdc++2.10-dev".

I often find that somehow skipping the problem package, then doing another
dist-upgrade fixes the problem. Also try "dpkg --configure -a" which will go
configure installed packages that haven't had the auto-config stuff worked
on them. That happens when apt-get installs/upgrades break.

Also, in general, make sure you're mirrors are current. Using the ones you
list above you should be in good shape, though, so in this instance you're
fine.

> libstdc++2.10-dev (version 1:2.95.2-13) is installed.
> dpkg: error processing
> /var/cache/apt/archives/libc6-dev_2.2.3-5_i386.deb (--unpack):
> conflicting packages - not installing libc6-dev
> Preparing to replace libc6 2.1.3-18 (using .../libc6_2.2.3-5_i386.deb)
> ...
> Unpacking replacement libc6 ...
> Replacing files in old package ldso ...
> Replacing files in old package netbase ...
> Errors were encountered while processing:
> /var/cache/apt/archives/libstdc++2.10-dev_1%3a2.95.4-0.010424_i386.deb
> /var/cache/apt/archives/libc6-dev_2.2.3-5_i386.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> dog:~#

BTW, for those who might know...

Does apt-get generally stop after two dpkg errors? That seems to be the
pattern I see. When overcoming one of the errors, but not the other apt-get
will continue until it runs into a 3rd error ( which is, at that point, the
2nd error in the run ).

ciao,

der.hans
-- 
# der.hans@LuftHans.com home.pages.de/~lufthans/ www.DevelopOnline.com
#  Science is magic explained. - der.hans



Reply to: