Re: problem with aptitude upgrade or dist-upgrade



I demand that rRB may or may not have written...

Darren Salt wrote:
...
...
Preparing to replace libc6 2.3.6.ds1-13 (using .../
libc6_2.6.1-1+b1_i386.deb) ...
WARNING: POSIX threads library NPTL requires kernel version
2.6.8 or later. If you use a kernel 2.4, please upgrade it
before installing glibc.
[snip]
E: Sub-process /usr/bin/dpkg returned an error code (1)

i added etch sources and tried to switch to a new kernel, but again it
says i have to solve my unmet dependencies....

Given the presence of libc6 2.3.6.ds1-13 (or 2.3.6.ds1-13etch2, which is
what you should have if you're running etch), it's safe to upgrade your
kernel to 2.6.18 and to use that.

Does your boot loader (lilo? grub?) know about the newer kernel?

I think yes, usually on debian a new kernel will be added as first in the
grub boot list.

Just checking... :-)

I also wanted do *force* installation of the newer libc6, but as for now no
way, cause it bombs out in one of the preinst or prerm scripts.

This still looks like "install a newer kernel; reboot, selecting the
newly-installed kernel; upgrade libc6" to me.

Is there a way to install ignoring this pre* scripts?

Ignoring the preinst script is a bad idea.

You *really* want to make sure that you're using the newer kernel ("uname -r"
will report the version number) and to try to complete the installation
normally.

If you still have problems, you can try this (but if it breaks, you get to
keep both pieces):

Edit /var/lib/dpkg/info/libc6.preinst: look for
exit_check () {

exit 1
}

and remove (or comment out) that "exit 1". Then either "dpkg --configure -a"
or "aptitude install" should work.

--
| Darren Salt | linux or ds at | nr. Ashington, | Toon
| RISC OS, Linux | youmustbejoking,demon,co,uk | Northumberland | Army
| + Buy less and make it last longer. INDUSTRY CAUSES GLOBAL WARMING.

You hate mail.
.



Relevant Pages

  • RE: FC3->FC4 upgrade hangs whilst installing kernel-smp package
    ... FC3->FC4 upgrade hangs whilst installing kernel-smp package ... Colin> and the redundant FC3 kernel from disk. ... I was ALMOST able to complete the install. ...
    (Fedora)
  • Debian Etch-->Lenny upgrade, stuck in a loop
    ... I finally decided that I'd upgrade to Lenny. ... The installation of a 2.6 kernel _could_ ask you to install a new libc ... which tells me to be more specific, giving me list of matching packages. ...
    (uk.comp.os.linux)
  • Re: mysql-server 64 bit on a 32 bit lenny
    ... i need to install mysql-server-5.1 amd64 on it. ... This system is already running l 64 bit kernel. ... install a Squeeze chroot on your Lenny system. ... He didn't say he couldn't upgrade to 64-bit. ...
    (Debian-User)
  • Re: Preupgrade fc14 to fc15 failed, kernel is not installed
    ... So at least most fc15 packages have installed. ... Let's find out if the proper kernel got installed. ... And then we'll try and figure out how to install ... essentially finish the upgrade by updating all of the remaining ...
    (Fedora)
  • Re: Help! Upgrade from fbsd 5.4 to 8.x
    ... do a good backup to at least two media and then install the new version. ... As the problem became obvious while rebooting into the new kernel, you whould be able to switch back to your old kernel and then move back to 7. ... mysql databases, mailing lists, and a dozen hand rolled applications. ... I'd love if I coudl do an upgrade, ...
    (freebsd-questions)