It seems that some packages on my Ubuntu (Ubuntu 10.04.4 LTS, lucid) are broken, preventing me from installing any new packages. I have gone through similar questions in this site, but all proves useless. The following are some commands I tried along with the outputs:
'sudo apt-get install -f' OR 'sudo apt-get --fix-broken install':
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 44 not upgraded.
6 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up gcalctool (5.30.0.is.5.28.2-0ubuntu3) ...
dpkg: error processing gcalctool (--configure):
subprocess installed post-installation script returned error exit status 245
Setting up shared-mime-info (0.71-1ubuntu2) ...
Segmentation fault
dpkg: error processing shared-mime-info (--configure):
subprocess installed post-installation script returned error exit status 139
Setting up update-manager (1:0.134.12.1) ...
dpkg: error processing update-manager (--configure):
subprocess installed post-installation script returned error exit status 245
Setting up vino (2.28.2-0ubuntu2.2) ...
dpkg: error processing vino (--configure):
subprocess installed post-installation script returned error exit status 245
No apport report written because MaxReports is reached already
Setting up libgweather-common (2.30.0-0ubuntu1.1) ...
dpkg: error processing libgweather-common (--configure):
subprocess installed post-installation script returned error exit status 245
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of libgweather1:
libgweather1 depends on libgweather-common (>= 2.24.0); however:
Package libgweather-common is not configured yet.
dpkg: error processing libgweather1 (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Processing triggers for menu ...
Errors were encountered while processing:
gcalctool
shared-mime-info
update-manager
vino
libgweather-common
libgweather1
E: Sub-process /usr/bin/dpkg returned an error code (1)
* 'sudo dkpg --configure -a':
Setting up shared-mime-info (0.71-1ubuntu2) ...
Segmentation fault
dpkg: error processing shared-mime-info (--configure):
subprocess installed post-installation script returned error exit status 139
Setting up gcalctool (5.30.0.is.5.28.2-0ubuntu3) ...
dpkg: error processing gcalctool (--configure):
subprocess installed post-installation script returned error exit status 245
Setting up libgweather-common (2.30.0-0ubuntu1.1) ...
dpkg: error processing libgweather-common (--configure):
subprocess installed post-installation script returned error exit status 245
Setting up vino (2.28.2-0ubuntu2.2) ...
dpkg: error processing vino (--configure):
subprocess installed post-installation script returned error exit status 245
Setting up update-manager (1:0.134.12.1) ...
dpkg: error processing update-manager (--configure):
subprocess installed post-installation script returned error exit status 245
dpkg: dependency problems prevent configuration of libgweather1:
libgweather1 depends on libgweather-common (>= 2.24.0); however:
Package libgweather-common is not configured yet.
dpkg: error processing libgweather1 (--configure):
dependency problems - leaving unconfigured
Processing triggers for menu ...
Errors were encountered while processing:
shared-mime-info
gcalctool
libgweather-common
vino
update-manager
libgweather1
Hope somebody could help me out, thanks in advance!
[EDIT]: I finally solved the problem by re-installing the system. In fact, I do not need to re-install, but just re-pair the system with all the data kept intact.