PDA

View Full Version : [SOLVED] System crash during update.



karczyk
September 25th, 2011, 12:33 PM
Hey,
I'm new here. I'm having a hard time trying to fix my Ubuntu 11.04. Computer crashed while Update Manager was performing installations. Since then I can't update/install/uninstall anything because this error keeps coming up:


E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

After running 'sudo dpkg --configure -a' I get this:


: error: error opening configuration directory '/etc/dpkg/e functions
*
* Copyright (C) 2009 ST Microelectronics
* Rajeev Kumar<rajeev-dlh.kumar@st.com>
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* warranty of any kind, whether express or implied.
*/

#ifndef __MACH_SYSTEM_H
#define __MACH_SYSTEM_H

#include <plat/system.h>

#endif /* __MACH_SYSTEM_H */
.cfg.d': Za długa nazwa pliku


I've been looking for a solution all over the internet but nothing works. Hope you guys will be able to help me.

dino99
September 25th, 2011, 12:49 PM
from a terminal:

sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove

sudo apt-get update
sudo apt-get install -f
sudo dpkg-reconfigure -phigh -a

if that still fail:
reboot in recovery mode (hold "shift" key down at bios end process to get the grub menu, and select the 2d line: recovery mode)
then select "repair packages"

karczyk
September 25th, 2011, 02:45 PM
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove
sudo apt-get install -f

Those 4 commands return:


E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

sudo apt-get update

Update is performed but at the end message "E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem." shows up. (same thing happens with selecting "repair packages" in recovery mode.

sudo dpkg-reconfigure -phigh -a

Returns the same message as 'sudo dpkg --configure -a'.

karczyk
October 1st, 2011, 12:50 PM
I'm still not able to fix this problem. Any other ideas how to solve this?

mörgæs
October 1st, 2011, 01:02 PM
You have already received a good idea: Boot into recovery mode as Dino suggested.

karczyk
October 1st, 2011, 02:56 PM
I got it fixed. Thanks for the help.

I followed the steps under "What to do if the dpkg command is broken" on this website: http://www.debianhelp.co.uk/debianproblem.htm
Worked like a charm.