LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 02-13-2011, 05:54 PM   #1
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
Squeeze upgrade causes kernel mess


Finally ran the upgrade from lenny to squeeze and ran into a few issues. I have to admit this is the first dist-upgrade I've ever had go this badly (kernel issues, xorg issues, mysql transition problems, mythtv... Yikes!).

Anyway, the first problem I'm trying to fix is getting dpkg to like the new squeeze kernel. Here's the errors
Code:
                                      Errors were encountered while processing:
 linux-image-2.6.32-5-686
 mysql-server-5.1
 linux-image-2.6-686
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up linux-image-2.6.32-5-686 (2.6.32-30) ...
Running depmod.
Running update-initramfs.
Illegal option -m
Usage: /usr/sbin/update-initramfs [OPTION]...

Options:
 -k [version]   Specify kernel version or 'all'
 -c             Create a new initramfs
 -u             Update an existing initramfs
 -d             Remove an existing initramfs
 -t             Take over a custom initramfs with this one
 -b             Set alternate boot directory
 -v             Be verbose
 -h             This message

update-initramfs failed to create initrd image.
Failed to create initrd image.
dpkg: error processing linux-image-2.6.32-5-686 (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-2.6-686:
 linux-image-2.6-686 depends on linux-image-2.6.32-5-686; however:
  Package linux-image-2.6.32-5-686 is not configured yet.
dpkg: error processing linux-image-2.6-686 (--configure):
 dependency problems - leaving unconfigured
Setting up mysql-server-5.1 (5.1.49-3) ...
Stopping MySQL database server: mysqld.
Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.1 (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 linux-image-2.6.32-5-686
 linux-image-2.6-686
 mysql-server-5.1
                                         
Current status: 17520 new [-2].
Now, I manually ran update-initramfs with the proper options and generated an acceptable initramfs. So I can boot into the kernel just fine. But apt-get is all mangled and spits errors at me. It appears there's an invalid switch problem in the install script (at least that's how I interpret the error, especially since I could build the initramfs manually). Any ideas on how to fix this?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 02-13-2011, 10:30 PM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,620

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
Maybe you can use aptitude to get apt-get dependencies
Try "aptitude update"
 
Old 02-14-2011, 07:18 AM   #3
cynwulf
Senior Member
 
Registered: Apr 2005
Distribution: OpenBSD, FreeBSD
Posts: 1,298

Rep: Reputation: Disabled
Did you read the release notes?

The usual procedure for Lenny -> Squeeze is:

1) change sources
2) upgrade kernel, apt, dpkg and aptitude
3) reboot into new kernel
4) upgrade using "apt-get dist-upgrade" (now the recommended upgrade method)
5) fiddle with dependencies purging troublesome or obsolete packages and doing "aptitude -f install" along the way until done.

Again... release notes.
 
Old 02-14-2011, 11:00 AM   #4
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Original Poster
Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by Caravel View Post
Did you read the release notes?

The usual procedure for Lenny -> Squeeze is:

1) change sources
2) upgrade kernel, apt, dpkg and aptitude
3) reboot into new kernel
4) upgrade using "apt-get dist-upgrade" (now the recommended upgrade method)
5) fiddle with dependencies purging troublesome or obsolete packages and doing "aptitude -f install" along the way until done.

Again... release notes.
Yes, I read the release notes and followed them. That's why I'm asking the question. I had not thought to run aptitude because in the past I was told not to mix the two tools. I used aptitude for lenny, but obviously moved to apt-get for the dist-upgrade and figured I'd stick with it. I'll try seeing if aptitude can resolve the problem.

My concern is the error message, which seems to hint at an invalid switch being passed to initramfs. I can't imagine Debian releasing the default kernel with an error like that in the install script...
 
Old 02-14-2011, 10:05 PM   #5
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Original Poster
Rep: Reputation: 269Reputation: 269Reputation: 269
I tried using aptitude when I got home, still no dice. The error still remains the same for both aptitude and apt-get. I'm tempted to purge both and then reinstall. Does anyone know what happens if you purge a running kernel? I don't have a separate kernel and would hate to hose up my system.
 
Old 02-14-2011, 11:27 PM   #6
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,620

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
Before I would do anything else I'd probably backup whatever I have.
Are you using Aptitude GUI?
The Gui will show you all the keeps, upgrades in other words it'll make suggestions.
Gui version is also available thru consoles.
 
Old 02-15-2011, 10:40 AM   #7
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Original Poster
Rep: Reputation: 269Reputation: 269Reputation: 269
I haven't ever used the gui, but I'll check it out when I get home. I'm skeptical that it will do anything differently since it appears to be failing at the end of the install (i.e. the package is installing fine until the point where it needs to create the initramfs).
 
Old 02-15-2011, 10:52 AM   #8
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,176

Rep: Reputation: 54
Look at /etc/kernel-img.conf

Here is what mine looks like on Debian Squeeze:
Code:
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
do_bootloader = no
do_initrd = yes
link_in_boot = no
According to this: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=528176, older versions of Debian had a line using cramfs that resulted in a similar error to what you see. If you delete that line, you may be able to re-install the kernel image through apt or aptitude.
 
3 members found this post helpful.
Old 02-15-2011, 12:15 PM   #9
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,620

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
To use aptitude just open console and enter command "aptitude"
 
0 members found this post helpful.
Old 02-15-2011, 10:34 PM   #10
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Original Poster
Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by m_yates View Post
Look at /etc/kernel-img.conf

Here is what mine looks like on Debian Squeeze:
Code:
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
do_bootloader = no
do_initrd = yes
link_in_boot = no
According to this: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=528176, older versions of Debian had a line using cramfs that resulted in a similar error to what you see. If you delete that line, you may be able to re-install the kernel image through apt or aptitude.
Thanks! That was it. This particular install has been dist-upgraded over the years from Woody (3.0) on up. It's even been transplanted from hardware to hardware (and transferred drives using dd) a few times and I've never had to reinstall. So that line about cramfs was still in my kernel-img.conf file.

I guess I need to work on my google skills some more...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Squeeze upgrade dellthinker Debian 3 08-10-2010 01:44 PM
upgrade: Lenny to Squeeze? DeadlySin3 Debian 11 08-02-2010 03:39 AM
dist-upgrade from etch to testing mess kpachopoulos Debian 2 04-06-2008 11:30 AM
Why does upgrade of x11 and alsa on slack mess stuff up? servnov Linux - General 7 11-05-2004 04:19 PM
Will Dropline Gnome mess up if i upgrade? nivek7 Slackware 11 04-21-2004 10:36 PM


All times are GMT -5. The time now is 05:43 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration