LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-21-2009, 12:19 PM   #1
oncozerov
LQ Newbie
 
Registered: Jan 2009
Posts: 5

Rep: Reputation: 0
interrupted dpkg can't be fixed because of filesystem location issue?


Somehow (I don't know for sure) when I was installing GIMP & Inkscape (last time I install two prgrams at the same time) via apt-get something went wrong and I got a message reading something-swap(space-I-think)-something (I won't lie, I was in a hurry so I just hit enter without reading throughly, now when I try to make an apt-get upgrade I get this:
Code:
debian:/home/oncozerov# apt-get upgrade
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
Obviously I ran dpkg and this is what I get:
Code:
debian:/home/oncozerov# dpkg --configure -a
Setting up initramfs-tools (0.92o) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-2.6.26-1-686 (2.6.26-13) ...
Running depmod.
Running mkinitramfs-kpkg.
mkinitramfs-kpkg failed to create initrd image.
Failed to create initrd image.
dpkg: error processing linux-image-2.6.26-1-686 (--configure):
 subprocess post-installation script returned error exit status 9
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.26-1-686
mkinitramfs: missing sdb root /dev/sdb1 /sys entry
mkinitramfs: workaround is MODULES=most
mkinitramfs: Error please report the bug
update-initramfs: failed for /boot/initrd.img-2.6.26-1-686
dpkg: subprocess post-installation script returned error exit status 1
Now, I KNOW (sure everybody says the same thing) that the problem is the sdb/sdb1 part (which I have marked in red) because originally my machine didn't boot unless I hit 'e' during GRUB to alter the path (that's permanently modified now) otherwise I got a couldn't mount filesystem, my filesystem is in sda (a fact) but I think because I installed from an USB stick and I just have a few weeks playing with linux (I have Debian Lenny installed by the way) I probably did something wrong during the installation so I got that filesystem problem, I'm convinced that issue is totally related to this dpkg error and all I wish for is a pointer as of where is what I' suppoused to modify so that my machine will forever forget that sdb inexistant location.
I hope this goes here, and yes, I've tried reading about dpkg, and initramfs, mkinitramfs, pendriving linux, but still I can't find aomething that'll get my in the right direction.
I almost forgot, MODULES is already set to 'most'.
That's it, thank you.

Last edited by oncozerov; 01-21-2009 at 12:27 PM.
 
Old 01-21-2009, 12:54 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
dpkg is failing while trying to configure linux-image-2.6.26-1-686. Is this your current kernel or is it an old kernel package that you no longer use?

If you no longer use this kernel package then you could try deleting this package and then run configure again.

--------------------
Steve Stites
 
Old 01-22-2009, 10:31 AM   #3
oncozerov
LQ Newbie
 
Registered: Jan 2009
Posts: 5

Original Poster
Rep: Reputation: 0
If my current kernel is the one that I get when I 'uname -r' then I'm afraid it is my current kernel, I'll keep trying to fix this but any other idea will be welcomed, thank you anyway for your attention.
 
Old 01-22-2009, 12:26 PM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Not sure if this is what you want, but you might check your /boot/grub/device.map file. That's the file that tells grub which device to consider hd0, etc. If there's an hdb entry there you might try removing it.
 
Old 01-23-2009, 07:20 AM   #5
oncozerov
LQ Newbie
 
Registered: Jan 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Well, there was indeed a sdb reference in that file, I've changed it already but I still get the exact same response from the dpkg, I'm beggining to belive there will be endless references to this location, guess I'll just have to keep looking for them, if you know any other filesystem location related files please tell me, but thank you anyway I'm convinced this got me a little bit closer to solve my problem.

Last edited by oncozerov; 01-23-2009 at 07:21 AM.
 
Old 01-23-2009, 07:47 AM   #6
oncozerov
LQ Newbie
 
Registered: Jan 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Well people, for those of you interested, I've found what I've been looking for, my endless gratefulness to David the H. for it was using the file he suggested that I found the file I had to modify,

which was by the way /etc/fstab in case this is of any use to anyone,

well, that'll be it,

PROBLEM SOLVED.
 
  


Reply

Tags
dpkg, filesystems, initramfs, pendrive



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 'dpkg--configure-a' E: dpkg was interrupted error Mountain Man 77 Linux - Newbie 8 02-21-2015 10:59 PM
dpkg/apt-get/aptitude broke after I fixed corrupted filesystem kevinbenko Debian 4 10-08-2008 09:20 PM
E:dpkg was interrupted,you must manually run"dpkg --configure -a" to correct problem loplop4 Debian 5 09-29-2008 11:11 AM
Error dpkg was interrupted UbuntuLinux4Life Linux - Software 2 07-30-2008 09:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration