dpkg problem

Asked by Otom

tom@tom-desktop:~$ sudo dpkg --configure -a
Setting up linux-image-2.6.24-22-generic (2.6.24-22.45) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.24-22-generic
Running postinst hook script /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.24-22-generic
Found kernel: /boot/vmlinuz-2.6.24-21-generic
Found kernel: /boot/vmlinuz-2.6.24-19-generic
Found kernel: /boot/vmlinuz-2.6.24-18-generic
Found kernel: /boot/vmlinuz-2.6.24-17-generic
Found kernel: /boot/vmlinuz-2.6.24-16-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... /usr/sbin/update-grub: line 1413: /boot/grub/menu.lst: Operation not supported
User postinst hook script [/sbin/update-grub] exited with value 1
dpkg: error processing linux-image-2.6.24-22-generic (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-restricted-modules-2.6.24-22-generic:
 linux-restricted-modules-2.6.24-22-generic depends on linux-image-2.6.24-22-generic; however:
  Package linux-image-2.6.24-22-generic is not configured yet.
dpkg: error processing linux-restricted-modules-2.6.24-22-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-ubuntu-modules-2.6.24-22-generic:
 linux-ubuntu-modules-2.6.24-22-generic depends on linux-image-2.6.24-22-generic; however:
  Package linux-image-2.6.24-22-generic is not configured yet.
dpkg: error processing linux-ubuntu-modules-2.6.24-22-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-2.6.24-22-generic; however:
  Package linux-image-2.6.24-22-generic is not configured yet.
 linux-image-generic depends on linux-ubuntu-modules-2.6.24-22-generic; however:
  Package linux-ubuntu-modules-2.6.24-22-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-restricted-modules-generic:
 linux-restricted-modules-generic depends on linux-restricted-modules-2.6.24-22-generic; however:
  Package linux-restricted-modules-2.6.24-22-generic is not configured yet.
dpkg: error processing linux-restricted-modules-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 2.6.24.22.24); however:
  Package linux-image-generic is not configured yet.
 linux-generic depends on linux-restricted-modules-generic (= 2.6.24.22.24); however:
  Package linux-restricted-modules-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-restricted-modules:
 linux-restricted-modules depends on linux-restricted-modules-generic (= 2.6.24.22.24); however:
  Package linux-restricted-modules-generic is not configured yet.
dpkg: error processing linux-restricted-modules (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-2.6.24-22-generic
 linux-restricted-modules-2.6.24-22-generic
 linux-ubuntu-modules-2.6.24-22-generic
 linux-image-generic
 linux-restricted-modules-generic
 linux-generic
 linux-restricted-modules
tom@tom-desktop:~$

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Otom
Solved:
Last query:
Last reply:
Revision history for this message
Adam Buchbinder (adam-buchbinder) said :
#1

The problem seems to be that update-grub is failing. What happens if you run "sudo update-grub" by itself? You're running dpkg under sudo here, so if it fails that way as well, perhaps your /boot partition is mounted read-only, and that's why update-grub is failing to work? If running "sudo update-grub" by itself fails, could you paste in the output of "mount"?

Revision history for this message
Otom (tshelby000) said :
#2

tom@tom-desktop:~$ sudo update-grub
[sudo] password for tom:
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.24-22-generic
Found kernel: /boot/vmlinuz-2.6.24-21-generic
Found kernel: /boot/vmlinuz-2.6.24-19-generic
Found kernel: /boot/vmlinuz-2.6.24-18-generic
Found kernel: /boot/vmlinuz-2.6.24-17-generic
Found kernel: /boot/vmlinuz-2.6.24-16-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... /usr/sbin/update-grub: line 1413: /boot/grub/menu.lst: Operation not supported
tom@tom-desktop:~$

Revision history for this message
Adam Buchbinder (adam-buchbinder) said :
#3

Okay, so the problem is that update-grub is unable to write to /boot/grub/menu.lst. My first guess would be that your /boot partition is mounted read-only. Could you paste in the output of running "mount" in a terminal window to see all mounted partitions?

Revision history for this message
Otom (tshelby000) said :
#4

tom@tom-desktop:~$ sudo "mount"
[sudo] password for tom:
/host/ubuntu/disks/root.disk on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.24-21-generic/volatile type tmpfs (rw)
/host/ubuntu/disks/boot on /boot type none (rw,bind)
securityfs on /sys/kernel/security type securityfs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/tom/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=tom)
tom@tom-desktop:~$

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#5

Please copy and paste the output of

df -h

here

Thank you

Revision history for this message
Otom (tshelby000) said :
#6

tom@tom-desktop:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/host/ubuntu/disks/root.disk
                       27G 4.2G 22G 17% /
varrun 378M 116K 378M 1% /var/run
varlock 378M 0 378M 0% /var/lock
udev 378M 52K 378M 1% /dev
devshm 378M 12K 378M 1% /dev/shm
lrm 378M 39M 339M 11% /lib/modules/2.6.24-21-generic/volatile
gvfs-fuse-daemon 27G 4.2G 22G 17% /home/tom/.gvfs
tom@tom-desktop:~$

thanks Otom

Revision history for this message
Otom (tshelby000) said :
#7

libgnutls13 It will not let load it, then when I turn it off it says thisE: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
E: _cache->open() failed, please report.and I can't get synaptic package manager will not let me open it thanks O tom I think it has something to do with java

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#8

Can you copy and paste the content of your /boot/grub/menu.lst here from terminal type:

gedit /boot/grub/menu.lst

Thank you

Revision history for this message
Otom (tshelby000) said :
#9

# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=7C8C11ED8C11A2A6 loop=/ubuntu/disks/root.disk ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,0)/ubuntu/disks

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title Ubuntu 8.04.1, kernel 2.6.24-21-generic
root (hd1,0)/ubuntu/disks
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=7C8C11ED8C11A2A6 loop=/ubuntu/disks/root.disk ro quiet splash
initrd /boot/initrd.img-2.6.24-21-generic

title Ubuntu 8.04.1, kernel 2.6.24-21-generic (recovery mode)
root (hd1,0)/ubuntu/disks
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=7C8C11ED8C11A2A6 loop=/ubuntu/disks/root.disk ro single
initrd /boot/initrd.img-2.6.24-21-generic

title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd1,0)/ubuntu/disks
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=7C8C11ED8C11A2A6 loop=/ubuntu/disks/root.disk ro quiet splash
initrd /boot/initrd.img-2.6.24-19-generic

title Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
root (hd1,0)/ubuntu/disks
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=7C8C11ED8C11A2A6 loop=/ubuntu/disks/root.disk ro single
initrd /boot/initrd.img-2.6.24-19-generic

title Ubuntu 8.04.1, kernel 2.6.24-18-generic
root (hd1,0)/ubuntu/disks
kernel /boot/vmlinuz-2.6.24-18-generic root=UUID=7C8C11ED8C11A2A6 loop=/ubuntu/disks/root.disk ro quiet splash
initrd /boot/initrd.img-2.6.24-18-generic

title Ubuntu 8.04.1, kernel 2.6.24-18-generic (recovery mode)
root (hd1,0)/ubuntu/disks
kernel /boot/vmlinuz-2.6.24-18-generic root=UUID=7C8C11ED8C11A2A6 loop=/ubuntu/disks/root.disk ro single
initrd /boot/initrd.img-2.6.24-18-generic

title Ubuntu 8.04.1, kernel 2.6.24-17-generic
root (hd1,0)/ubuntu/disks
kernel /boot/vmlinuz-2.6.24-17-generic root=UUID=7C8C11ED8C11A2A6 loop=/ubuntu/disks/root.disk ro quiet splash
initrd /boot/initrd.img-2.6.24-17-generic

title Ubuntu 8.04.1, kernel 2.6.24-17-generic (recovery mode)
root (hd1,0)/ubuntu/disks
kernel /boot/vmlinuz-2.6.24-17-generic root=UUID=7C8C11ED8C11A2A6 loop=/ubuntu/disks/root.disk ro single
initrd /boot/initrd.img-2.6.24-17-generic

title Ubuntu 8.04.1, kernel 2.6.24-16-generic
root (hd1,0)/ubuntu/disks
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=7C8C11ED8C11A2A6 loop=/ubuntu/disks/root.disk ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic

title Ubuntu 8.04.1, kernel 2.6.24-16-generic (recovery mode)
root (hd1,0)/ubuntu/disks
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=7C8C11ED8C11A2A6 loop=/ubuntu/disks/root.disk ro single
initrd /boot/initrd.img-2.6.24-16-generic

title Ubuntu 8.04.1, memtest86+
root (hd1,0)/ubuntu/disks
kernel /boot/memtest86+.bin

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title Microsoft Windows XP Home Edition
root (hd0,1)
savedefault
chainloader +1
here you go .thanks Marcobra Otom

Revision history for this message
Otom (tshelby000) said :
#10

I thought it got fixed I went to down load updates but it took both updates then it went back to the original statement. you must manually do it so how do you do it Daaaaaaaaaaaa I not liux intelligent heehee any help would like to get it fixed GBU all for what help you have down Otom

Revision history for this message
Otom (tshelby000) said :
#11

I hit `escand went to a restore point and I got dpkg working so far knock on wood heehee you might call restore something else but it before you get into ubuntu I guess maybe its fixed thanks for what you did I hope its fixed cause I like ubuntu thanks guys and girls O tom