linux-image-generic: dependency problems - leaving unconfigured
10.04 won't finish any updates. dpkg --audit yields the following, How can I fix this?? Thanks
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
linux-
linux-generic Complete Generic Linux kernel
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
linux-
linux-
linux-
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Can you give the output of:
uname -a; dpkg -l | grep linux-image-2
Thanks
Revision history for this message
|
#2 |
Linux jeff-desktop 2.6.32-32-generic #62-Ubuntu SMP Wed Apr 20 21:54:21 UTC 2011 i686 GNU/Linux
rc linux-image-
rc linux-image-
rc linux-image-
rc linux-image-
rc linux-image-
ii linux-image-
ii linux-image-
iF linux-image-
iF linux-image-
iF linux-image-
Revision history for this message
|
#3 |
ok lets clean this lot up. Run:
sudo dpkg -P linux-image-
You should now just have:
ii linux-image-
iF linux-image-
iF linux-image-
iF linux-image-
Then retry the upgrade.
Revision history for this message
|
#4 |
I get this grub error
jeff@jeff-
[sudo] password for jeff:
(Reading database ... 241916 files and directories currently installed.)
Removing linux-image-
Purging configuration files for linux-image-
Running postrm hook script /usr/sbin/
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
Found Microsoft Windows XP Professional on /dev/sdb2
/etc/grub.
User postrm hook script [/usr/sbin/
Removing linux-image-
Purging configuration files for linux-image-
Running postrm hook script /usr/sbin/
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
Found Microsoft Windows XP Professional on /dev/sdb2
/etc/grub.
User postrm hook script [/usr/sbin/
Revision history for this message
|
#5 |
I get this grub error
jeff@jeff-
linux-image-
[sudo] password for jeff:
(Reading database ... 241916 files and directories currently installed.)
Removing linux-image-
Purging configuration files for linux-image-
Running postrm hook script /usr/sbin/
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
Found Microsoft Windows XP Professional on /dev/sdb2
/etc/grub.
(expecting "done")
User postrm hook script [/usr/sbin/
Removing linux-image-
Purging configuration files for linux-image-
Running postrm hook script /usr/sbin/
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
Found Microsoft Windows XP Professional on /dev/sdb2
/etc/grub.
(expecting "done")
User postrm hook script [/usr/sbin/
-----Original Message-----
From: actionparsnip <email address hidden>
Reply-to: <email address hidden>
To: <email address hidden>
Subject: Re: [Question #185234]: linux-image-
problems - leaving unconfigured
Date: Thu, 19 Jan 2012 22:15:45 -0000
Your question #185234 on update-manager in Ubuntu changed:
https:/
Status: Open => Answered
actionparsnip proposed the following answer:
ok lets clean this lot up. Run:
sudo dpkg -P linux-image-
linux-image-
get --purge remove linux-image-
You should now just have:
ii linux-image-
iF linux-image-
iF linux-image-
iF linux-image-
Then retry the upgrade.
Revision history for this message
|
#6 |
ok, run:
gedit /etc/grub.
What is output?
Revision history for this message
|
#7 |
OK, saw the images were actually removed and continued as you suggested,
getting the following
jeff@jeff-
linux-image-
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
sdparm
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
linux-
0 upgraded, 0 newly installed, 1 to remove and 24 not upgraded.
5 not fully installed or removed.
After this operation, 90.3MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 241916 files and directories currently installed.)
Removing linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
2.6.31-23-generic /boot/vmlinuz-
Uninstalling: virtualbox-ose 3.1.6 (2.6.31-23-generic) (i686)
-------- Uninstall Beginning --------
Module: virtualbox-ose
Version: 3.1.6
Kernel: 2.6.31-23-generic (i686)
-------
Status: Before uninstall, this module version was ACTIVE on this kernel.
vboxdrv.ko:
- Uninstallation
- Deleting from: /lib/modules/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module
version.
vboxnetadp.ko:
- Uninstallation
- Deleting from: /lib/modules/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module
version.
vboxnetflt.ko:
- Uninstallation
- Deleting from: /lib/modules/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module
version.
depmod.......
DKMS: uninstall Completed.
Running postrm hook script /usr/sbin/
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
Found Microsoft Windows XP Professional on /dev/sdb2
/etc/grub.
(expecting "done")
User postrm hook script [/usr/sbin/
Purging configuration files for linux-image-
Running postrm hook script /usr/sbin/
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
Found Microsoft Windows XP Professional on /dev/sdb2
/etc/grub.
(expecting "done")
User postrm hook script [/usr/sbin/
Setting up linux-image-
Running depmod.
update-initramfs: Generating /boot/initrd.
Running postinst hook script /usr/sbin/
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
Found Microsoft Windows XP Professional on /dev/sdb2
/etc/grub.
(expecting "done")
User postinst hook script [/usr/sbin/
dpkg: error processing linux-image-
subprocess installed post-installation script returned error exit
status 2
Setting up linux-image-
Running depmod.
update-initramfs: Generating /boot/initrd.
Running postinst hook script /usr/sbin/
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
Found Microsoft Windows XP Professional on /dev/sdb2
/etc/grub.
(expecting "done")
User postinst hook script [/usr/sbin/
dpkg: error processing linux-image-
subprocess installed post-installation script returned error exit
status 2
Setting up linux-image-
Running depmod.
update-initramfs: Generating /boot/initrd.
Running postinst hook script /usr/sbin/
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
Found Microsoft Windows XP Professional on /dev/sdb2
/etc/grub.
(expecting "done")
User postinst hook script [/usr/sbin/
dpkg: error processing linux-image-
subprocess installed post-installation script returned error exit
status 2
dpkg: dependency problems prevent configuration of linux-image-
linux-
Package linux-image-
dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 2.6.32.36.42); however:
Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
report written because MaxReports is reached already
Errors were encountered while processing:
linux-
linux-
linux-
linux-
linux-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
-----Original Message-----
From: actionparsnip <email address hidden>
Reply-to: <email address hidden>
To: <email address hidden>
Subject: Re: [Question #185234]: linux-image-
problems - leaving unconfigured
Date: Thu, 19 Jan 2012 22:15:45 -0000
Your question #185234 on update-manager in Ubuntu changed:
https:/
Status: Open => Answered
actionparsnip proposed the following answer:
ok lets clean this lot up. Run:
sudo dpkg -P linux-image-
linux-image-
get --purge remove linux-image-
You should now just have:
ii linux-image-
iF linux-image-
iF linux-image-
iF linux-image-
Then retry the upgrade.
Revision history for this message
|
#8 |
Yes, I get what you suggest
jeff@jeff-
Linux jeff-desktop 2.6.32-32-generic #62-Ubuntu SMP Wed Apr 20 21:54:21
UTC 2011 i686 GNU/Linux
rc linux-image-
Linux kernel image for version 2.6.31 on x86
ii linux-image-
Linux kernel image for version 2.6.32 on x86
iF linux-image-
Linux kernel image for version 2.6.32 on x86
iF linux-image-
Linux kernel image for version 2.6.32 on x86
iF linux-image-
Linux kernel image for version 2.6.32 on x86
jeff@jeff-
what now, reboot then update??
Thanks
-----Original Message-----
From: actionparsnip <email address hidden>
Reply-to: <email address hidden>
To: <email address hidden>
Subject: Re: [Question #185234]: linux-image-
problems - leaving unconfigured
Date: Thu, 19 Jan 2012 22:15:45 -0000
Your question #185234 on update-manager in Ubuntu changed:
https:/
Status: Open => Answered
actionparsnip proposed the following answer:
ok lets clean this lot up. Run:
sudo dpkg -P linux-image-
linux-image-
get --purge remove linux-image-
You should now just have:
ii linux-image-
iF linux-image-
iF linux-image-
iF linux-image-
Then retry the upgrade.
Revision history for this message
|
#9 |
ok, run:
gedit /etc/grub.
What is output?
Revision history for this message
|
#10 |
The update failed with the same message of a subprocess failure,
watching the messages it was grub related.
I have a 2nd disk which can boot with XP as a primary if I swap the disk
cables, otherwise I can select from grub. I had to make a change to a
grub config to get this to work, but afterward updates seemed to work.
When I run the command it opens grub.d in gedit and puts me to this
location, where the disk swap lines are located
EOF
save_
prepare_
case ${LONGNAME} in
# drivemap -s (hd0) \${root}
Windows\ Vista*|Windows\ 7*)
;;
*)
cat << EOF
set root=(hd1,2)
drivemap (hd0) (hd1)
drivemap (hd1) (hd0)
EOF
;;
esac
cat <<EOF
chainloader (hd1,2)+1
}
EOF
;;
-----Original Message-----
From: actionparsnip <email address hidden>
Reply-to: <email address hidden>
To: <email address hidden>
Subject: Re: [Question #185234]: linux-image-
problems - leaving unconfigured
Date: Thu, 19 Jan 2012 22:31:24 -0000
Your question #185234 on update-manager in Ubuntu changed:
https:/
Status: Open => Needs information
actionparsnip requested more information:
ok, run:
gedit /etc/grub.
What is output?
Revision history for this message
|
#11 |
It's a big of a bigger file than that. Can you paste the WHOLE file
Thanks
Revision history for this message
|
#12 |
I believe I changed this section of grub.cfg back when I updated from
9.10 to 10.04
### BEGIN /etc/grub.
menuentry "Microsoft Windows XP Professional (on /dev/sdb2)" {
insmod ntfs
set root=(hd1,2)
drivemap -s (hd0) (hd1)
chainloader (hd1,2)+1
}
### END /etc/grub.
THanks for all the help
-----Original Message-----
From: actionparsnip <email address hidden>
Reply-to: <email address hidden>
To: <email address hidden>
Subject: Re: [Question #185234]: linux-image-
problems - leaving unconfigured
Date: Thu, 19 Jan 2012 22:50:46 -0000
Your question #185234 on update-manager in Ubuntu changed:
https:/
Status: Open => Needs information
actionparsnip requested more information:
ok, run:
gedit /etc/grub.
What is output?
Revision history for this message
|
#13 |
#! /bin/sh -e
# grub-mkconfig helper script.
# Copyright (C) 2006,2007,2008,2009 Free Software Foundation, Inc.
#
# GRUB is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# GRUB is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GRUB. If not, see <http://
prefix=/usr
exec_prefix=
libdir=
. ${libdir}
found_other_os=
adjust_timeout () {
if [ "x${found_
if [ "x${GRUB_
if [ "x${GRUB_
verbose=
else
verbose=" --verbose"
fi
if [ "x${GRUB_
cat <<EOF
if [ \${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep$verbose --interruptible 3 ; then
set timeout=0
fi
fi
fi
EOF
else
cat << EOF
if [ \${timeout} != -1 ]; then
if sleep$verbose --interruptible ${GRUB_
set timeout=0
fi
fi
EOF
fi
fi
fi
}
if [ "x${GRUB_
adjust_timeout
exit 0
fi
if [ -z "`which os-prober 2> /dev/null`" -o -z "`which linux-boot-prober
2> /dev/null`" ] ; then
# missing os-prober and/or linux-boot-prober
adjust_timeout
exit 0
fi
OSPROBED=
if [ -z "${OSPROBED}" ] ; then
# empty os-prober output, nothing doing
adjust_timeout
exit 0
fi
for OS in ${OSPROBED} ; do
DEVICE="`echo ${OS} | cut -d ':' -f 1`"
LONGNAME="`echo ${OS} | cut -d ':' -f 2 | tr '^' ' '`"
LABEL="`echo ${OS} | cut -d ':' -f 3 | tr '^' ' '`"
BOOT="`echo ${OS} | cut -d ':' -f 4`"
if [ -z "${LONGNAME}" ] ; then
LONGNAME=
fi
echo "Found ${LONGNAME} on ${DEVICE}" >&2
found_other_os=1
case ${BOOT} in
chain)
cat << EOF
menuentry "${LONGNAME} (on ${DEVICE})" {
EOF
save_
prepare_
case ${LONGNAME} in
# drivemap -s (hd0) \${root}
Windows\ Vista*|Windows\ 7*)
;;
*)
cat << EOF
set root=(hd1,2)
drivemap (hd0) (hd1)
drivemap (hd1) (hd0)
EOF
;;
esac
cat <<EOF
chainloader (hd1,2)+1
}
EOF
;;
linux)
LINUXPROB
'^' | paste -s -d ' '`"
for LINUX in ${LINUXPROBED} ; do
if [ -z "${LLABEL}" ] ; then
fi
if [ "${LROOT}" != "${LBOOT}" ]; then
fi
cat << EOF
menuentry "${LLABEL} (on ${DEVICE})" {
EOF
save_default_entry | sed -e "s/^/\t/"
prepare_
cat << EOF
linux ${LKERNEL} ${LPARAMS}
EOF
if [ -n "${LINITRD}" ] ; then
cat << EOF
initrd ${LINITRD}
EOF
fi
cat << EOF
}
EOF
done
;;
macosx)
OSXUUID=
2> /dev/null`"
cat << EOF
menuentry "${LONGNAME} (on ${DEVICE})" {
EOF
save_default_entry | sed -e "s/^/\t/"
prepare_
cat << EOF
insmod vbe
do_resume=0
if [ /var/vm/sleepimage -nt10 / ]; then
if xnu_resume /var/vm/sleepimage; then
fi
fi
if [ \$do_resume == 0 ]; then
xnu_uuid ${OSXUUID} uuid
if [ -f /Extra/DSDT.aml ]; then
acpi -e /Extra/DSDT.aml
fi
if [ /System/
-nt /System/
else
fi
if [ -f /Extra/
fi
if [ -d /Extra/Extensions ]; then
fi
if [ -f /Extra/devtree.txt ]; then
fi
if [ -f /Extra/splash.jpg ]; then
fi
if [ -f /Extra/splash.png ]; then
fi
if [ -f /Extra/splash.tga ]; then
fi
fi
}
EOF
;;
hurd|*)
echo " ${LONGNAME} is not yet supported by grub-mkconfig." >&2
;;
esac
done
adjust_timeout
-----Original Message-----
From: actionparsnip <email address hidden>
Reply-to: <email address hidden>
To: <email address hidden>
Subject: Re: [Question #185234]: linux-image-
problems - leaving unconfigured
Date: Thu, 19 Jan 2012 23:10:58 -0000
Your question #185234 on update-manager in Ubuntu changed:
https:/
Status: Open => Needs information
actionparsnip requested more information:
It's a big of a bigger file than that. Can you paste the WHOLE file
Thanks
Revision history for this message
|
#14 |
Can you give the output of:
ls /etc/grub.d/
Thanks
Revision history for this message
|
#15 |
00_header 10_linux 30_os-prober 30_os-prober.
30_os-prober_
05_debian_theme 20_memtest86+ 30_os-prober~
30_os-prober_
-----Original Message-----
From: actionparsnip <email address hidden>
Reply-to: <email address hidden>
To: <email address hidden>
Subject: Re: [Question #185234]: linux-image-
problems - leaving unconfigured
Date: Thu, 19 Jan 2012 23:25:42 -0000
ls /etc/grub.d/
Revision history for this message
|
#16 |
Why do you have so many os-prober files?
Revision history for this message
|
#17 |
Not sure, teh *.old are ones I copied. I believe the change I made was
to the 30-os_prober script to reflect the disk image swap for booting
into XP.
Which ones are needed, just 30-os_prober? I can move the other into a
folder and run the grub refresh config command, does this sound useful?
-----Original Message-----
From: actionparsnip <email address hidden>
Reply-to: <email address hidden>
To: <email address hidden>
Subject: Re: [Question #185234]: linux-image-
problems - leaving unconfigured
Date: Thu, 19 Jan 2012 23:41:00 -0000
Your question #185234 on update-manager in Ubuntu changed:
https:/
Status: Open => Needs information
actionparsnip requested more information:
Why do you have so many os-prober files?
Revision history for this message
|
#18 |
Try:
sudo mv /etc/grub.
Is it cleaner?
Revision history for this message
|
#19 |
After moving all the other 30 files to a new folder I get the following
from grub-update, which I expect has fixed the issue, as this was the
sequence that seemed to cause the problem??
Thanks again for all your help
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
Found Microsoft Windows XP Professional on /dev/sdb2
done
-----Original Message-----
From: actionparsnip <email address hidden>
Reply-to: <email address hidden>
To: <email address hidden>
Subject: Re: [Question #185234]: linux-image-
problems - leaving unconfigured
Date: Fri, 20 Jan 2012 05:41:05 -0000
sudo update-grub
Revision history for this message
|
#20 |
can you now boot to the newest kernel?
Revision history for this message
|
#21 |
Yes, all the updates have cleared and I've removed one older image that didn't install completely with Ubuntu Tweak.
Thanks again for the help and pointing me in the proper direction!
---- actionparsnip <email address hidden> wrote:
> Your question #185234 on update-manager in Ubuntu changed:
> https:/
>
> Status: Open => Needs information
>
> actionparsnip requested more information:
> can you now boot to the newest kernel?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https:/
>
> You received this question notification because you asked the question.
Revision history for this message
|
#22 |
Plese mark as solved if the question is answered. Thanks
Can you help with this problem?
Provide an answer of your own, or ask JG for more information if necessary.