problem configuring dpkg

Asked by Evripidis

I didn't have upgraded my Ubuntu for a long time so today i started upgrading it. The first 2 upgrades were ok. During the last one, I left the laptop unattended and when I came back, it was shuted down. I tried to boot but it won't boot. I plugged a live usb in and tried:

sudo mkdir /media/fix
sudo mount /dev/sda5 /media/fix
sudo chroot /media/fix su

And then i tried apt-get update and upgrade but they said they couldn't finish due to too many errors in dpgk. So i tried:

sudo dpkg --configure -a

and after a while, i get this:

dpkg: too many errors, stopping
No apport report written because MaxReports is reached already
Errors were encountered while processing:
 friendly-recovery
 mono-gac
 mono-runtime
 libmono-system-configuration4.0-cil
 libmono-system4.0-cil
 libmono-system-security4.0-cil
 libmono-posix4.0-cil
 libmono-system-core4.0-cil
 libdbus1.0-cil
 libdbus-glib1.0-cil
 libglib2.0-cil
 libgconf2.0-cil
 libgdata1.7-cil
 libgkeyfile1.0-cil
 libmono-system-drawing4.0-cil
 libgtk2.0-cil
 libgtk-sharp-beans-cil
 libgudev1.0-cil
 libmono-sharpzip4.84-cil
 libmono-addins0.2-cil
 libmono-zeroconf1.0-cil
 libnotify0.4-cil
 libtaglib2.0-cil
 banshee
 banshee-extension-soundmenu
 libubuntuone1.0-cil
 banshee-extension-ubuntuonemusicstore
 bluez
 bluetooth
 bluez-alsa
 samba
 cups
 bluez-cups
 bluez-gstreamer
 bluez-utils
 cups-driver-gutenprint
 libmono-data-tds4.0-cil
 libmono-system-transactions4.0-cil
 libmono-system-enterpriseservices4.0-cil
 libmono-system-data4.0-cil
 libmono-sqlite4.0-cil
 libmono-system-web-applicationservices4.0-cil
 libmono-web4.0-cil
 libmono-system-web4.0-cil
 libmono-system-web-services4.0-cil
 libflickrnet2.2-cil
 libgnome-keyring1.0-cil
 libart2.0-cil
 libgnome-vfs2.0-cil
 libglade2.0-cil
 libgnome2.24-cil
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

How can I fix this?
Thanks for your time.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
Evripidis
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#2

When i need i always i use this procedure:

https://help.ubuntu.com/community/Grub2/Installing#ChRoot

Revision history for this message
Evripidis (ebourlas) said :
#3

thank you for your replies. Altho I didn't use them because I thought to boot a previous version of ubuntu from GRUB and it booted successfully so i repeated the upgrade to 12.04. I don't know why I didn't think of it earlier!

Thanks alot!