After update I now have a dpkg problem

Asked by marshallwa

After updating, I now have this dpkg problem.

marshall@marshall-desktop:~$ sudo dpkg --configure -a
Password:
Setting up linux-image-2.6.15-28-386 (2.6.15-28.53) ...
/etc/mkinitramfs/initramfs.conf: line 14: /usr/share/icons/hicolor/icon-theme.ca che: Permission denied
/etc/mkinitramfs/initramfs.conf: line 15: /usr/share/icons/blueprint/icon-theme. cache: No such file or directory
/etc/mkinitramfs/initramfs.conf: line 16: /usr/share/icons/gnome/icon-theme.cach e: Permission denied

(gnome-panel:6531): GdkPixbuf-CRITICAL **: gdk_pixbuf_scale_simple: assertion `d est_width > 0' failed

(gnome-panel:6531): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to alloc ate widget with width -9 and height 24

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Felix Heinonen (fheinonen) said :
#1

Run "sudo apt-get -f install" before running "sudo dpkg --configure -a"

Revision history for this message
marshallwa (marshallwa2000) said :
#2

marshall@marshall-desktop:~$ sudo apt-get -f install
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
marshall@marshall-desktop:~$ sudo dpkg --configure -a
Setting up linux-image-2.6.15-28-386 (2.6.15-28.53) ...
/etc/mkinitramfs/initramfs.conf: line 14: /usr/share/icons/hicolor/icon-theme.cache: Permission denied
/etc/mkinitramfs/initramfs.conf: line 15: /usr/share/icons/blueprint/icon-theme.cache: No such file or directory
/etc/mkinitramfs/initramfs.conf: line 16: /usr/share/icons/gnome/icon-theme.cache: Permission denied

Then File Browser pops up.

Close file browser and these additional errors show.

(gnome-panel:24161): GdkPixbuf-CRITICAL **: gdk_pixbuf_scale_simple: assertion `dest_width > 0' failed

(gnome-panel:24161): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -9 and height 24

Revision history for this message
Someone (s4910321931-deactivatedaccount) said :
#3

Are you running Ubuntu 7.04 (feisty) or any other previous release?

Revision history for this message
Felix Heinonen (fheinonen) said :
#4

Dapper uses 2.6.15 kernel...

Revision history for this message
Someone (s4910321931-deactivatedaccount) said :
#5

1) Figure out what packages the complained directries belong to with "dpkg -S <directory>" where each icon-theme.cache file is placed, do not include the trailing slash when searching.
2) Remove the directories with "rm -rf <directory>"
3) Reinstall the packages from step 1 with "apt-get install --reinstall <package>"

Can you help with this problem?

Provide an answer of your own, or ask marshallwa for more information if necessary.

To post a message you must log in.