Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 30th March 2009, 04:19
guthrie guthrie is offline
Junior Member
 
Join Date: Mar 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default debian upgrade broken.. apt-get stuck

I am trying to upgrade my Debian system to current stable release.
I tried a simple (simplistic?!) apt-get upgrade, but apparently my system was out of date enough that it failed to do a two release upgrade.
So I found:
http://www.howtoforge.com/how-to-upg...o-debian-lenny

and tried to do that, but it is also failing. I reverted wo what I think is a stable etch install, but can't get the next step to stable (==lenny) to work.

All details below, any hints appreciated!

Right now: /etc/version = 4.0, uname-a -> kernel is 2.6.3
==================================================
alpha:/usr/X11R6/bin# apt-get update
...
Fetched 3B in 0s (3B/s)
Reading package lists... Done

alpha:/usr/X11R6/bin# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
The following packages have been kept back:
...
349 upgraded, 0 newly installed, 0 to remove and 128 not upgraded.
Need to get 0B/166MB of archives.
After unpacking 60.8MB of additional disk space will be used.
Do you want to continue [Y/n]?
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 57982 files and directories currently installed.)
Preparing to replace libc6 2.3.6.ds1-13etch9+b1 (using .../archives/libc6_2.7-18_i386.deb) ...
Checking for services that may need to be restarted...
Checking init scripts...
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.

The installation of a 2.6 kernel _could_ ask you to install a new libc
first, this is NOT a bug, and should *NOT* be reported. In that case,
please add etch sources to your /etc/apt/sources.list and run:
apt-get install -t etch linux-image-2.6
Then reboot into this new kernel, and proceed with your upgrade
dpkg: error processing /var/cache/apt/archives/libc6_2.7-18_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.7-18_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

alpha:/usr/X11R6/bin# apt-get install -t etch linux-image-2.6
Reading package lists... Done
Building dependency tree... Done
Package linux-image-2.6 is a virtual package provided by:
linux-image-2.6.26-1-xen-686 2.6.26-13lenny2
linux-image-2.6.26-1-vserver-686-bigmem 2.6.26-13lenny2
linux-image-2.6.26-1-vserver-686 2.6.26-13lenny2
linux-image-2.6.26-1-openvz-686 2.6.26-13lenny2
linux-image-2.6.26-1-amd64 2.6.26-13lenny2
linux-image-2.6.26-1-686-bigmem 2.6.26-13lenny2
linux-image-2.6.26-1-686 2.6.26-13lenny2
linux-image-2.6.26-1-486 2.6.26-13lenny2
You should explicitly select one to install.
E: Package linux-image-2.6 has no installation candidate

alpha:/usr/X11R6/bin# apt-get install -f linux-image-2.6.26-1-486 2.6.26-13lenny2
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package 2.6.26-13lenny2

alpha:/usr/X11R6/bin# apt-get install -f linux-image-2.6.26-1-486
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
initramfs-tools libc6 libselinux1 libvolume-id0 udev
Suggested packages:
locales glibc-doc libc6-i686 linux-doc-2.6.26
Recommended packages:
busybox busybox-initramfs
The following NEW packages will be installed:
initramfs-tools libvolume-id0 linux-image-2.6.26-1-486 udev
The following packages will be upgraded:
libc6 libselinux1
2 upgraded, 4 newly installed, 0 to remove and 475 not upgraded.
Need to get 20.6MB/25.1MB of archives.
After unpacking 60.6MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://ftp.us.debian.org stable/main libvolume-id0 0.125-7 [76.1kB]
Get:2 http://security.debian.org stable/updates/main linux-image-2.6.26-1-486 2.6.26-13lenny2 [20.2MB]
Get:3 http://ftp.us.debian.org stable/main udev 0.125-7 [253kB]
Get:4 http://ftp.us.debian.org stable/main initramfs-tools 0.92o [75.3kB]
Fetched 20.6MB in 54s (378kB/s)
Preconfiguring packages ...
(Reading database ... 57982 files and directories currently installed.)
Preparing to replace libc6 2.3.6.ds1-13etch9+b1 (using .../archives/libc6_2.7-18_i386.deb) ...
Checking for services that may need to be restarted...
Checking init scripts...
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.

The installation of a 2.6 kernel _could_ ask you to install a new libc
first, this is NOT a bug, and should *NOT* be reported. In that case,
please add etch sources to your /etc/apt/sources.list and run:
apt-get install -t etch linux-image-2.6
Then reboot into this new kernel, and proceed with your upgrade
dpkg: error processing /var/cache/apt/archives/libc6_2.7-18_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.7-18_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

alpha:/usr/bin# cat /etc/*version*
4.0
alpha:/usr/bin# uname -a
Linux alpha 2.6.3-1-386 #2 Tue Feb 24 20:20:23 EST 2004 i686 GNU/Linux


/var/log/dpkg.log:: (many of these!)
2009-03-29 08:27:34 upgrade libc6 2.3.6.ds1-13etch9+b1 2.7-18
2009-03-29 08:27:34 status half-configured libc6 2.3.6.ds1-13etch9+b1
2009-03-29 08:27:34 status unpacked libc6 2.3.6.ds1-13etch9+b1
2009-03-29 08:27:34 status half-installed libc6 2.3.6.ds1-13etch9+b1
2009-03-29 08:27:41 status unpacked libc6 2.3.6.ds1-13etch9+b1
2009-03-29 08:27:43 status installed libc6 2.3.6.ds1-13etch9+b1
Reply With Quote
Sponsored Links
  #2  
Old 30th March 2009, 14:06
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,726 Times in 2,565 Posts
Default

Quote:
Originally Posted by guthrie View Post
So I found:
http://www.howtoforge.com/how-to-upg...o-debian-lenny

and tried to do that, but it is also failing.
Where exactly are you having problems?

Where did you get that ancient kernel 2.6.3 from? The Etch kernel is 2.6.18.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 30th March 2009, 14:56
guthrie guthrie is offline
Junior Member
 
Join Date: Mar 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default apt-upgrade failing..

Well,
1) the problem is that dist-upgrade fails. and more specifically even if I just convert apt sources to stable (from etch), apt-fails - can't upgrade, or even do anything - it is in a stuck state.

Errors all shown above - main thing seems to be a lack of ability to get libc6.
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.7-18_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

/var/log/dpkg.log:: (many of these!)
2009-03-29 08:27:34 upgrade libc6 2.3.6.ds1-13etch9+b1 2.7-18
2009-03-29 08:27:34 status half-configured libc6 2.3.6.ds1-13etch9+b1
2009-03-29 08:27:34 status unpacked libc6 2.3.6.ds1-13etch9+b1
2009-03-29 08:27:34 status half-installed libc6 2.3.6.ds1-13etch9+b1
2009-03-29 08:27:41 status unpacked libc6 2.3.6.ds1-13etch9+b1
2009-03-29 08:27:43 status installed libc6 2.3.6.ds1-13etch9+b1

2) Where'd I get the old kernel? Hmm, from apt! :-)
I hadn't upgraded this system in awhile, it was stable, and just running along.

If my kernel is old, why does apt-update not want to update it?

Last edited by guthrie; 30th March 2009 at 14:59.
Reply With Quote
  #4  
Old 31st March 2009, 04:29
guthrie guthrie is offline
Junior Member
 
Join Date: Mar 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

I think I got it all (almost) solved.
Basically I manually had apt install a newer etch kernel, and then apt could take it from there.

Ref:
http://www.linuxquestions.org/questi...=1#post3493165
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting On PXE And On A Customized Debian System sebastienp HOWTO-Related Questions 7 30th July 2009 21:13
Howto upgrade from Debian 4 (Etch) to Debian 5 (Lenny) Hans Tips/Tricks/Mods 2 1st December 2008 23:40
Please help me whit bind9 astra2000 Server Operation 12 10th October 2007 02:43
Bind Failed christoph2k HOWTO-Related Questions 4 28th April 2007 00:57
e-mail problem!!! Debian 3.1 maroonworks Installation/Configuration 18 6th December 2005 14:42


All times are GMT +2. The time now is 09:16.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.