After update, two packages left half-configured: post-installation script returned error exit status 10
I did a fresh install, so the first update was large. Afterword, however, two packages were left broken. Re-configuring both results in the same exit code (10). I tried running the post-install script for rsyslog manually and it was 'ucf' that caused the error, but I can't figure out why or how to fix it. I also tried forcibly removing rsyslog, since it is required by ubuntu-minimal, and then reinstalling, but that didn't work; the package is still half-configured.
I tried manually running the post-install script for grub-pc, but it calls /usr/share/
I think this problem is bigger than it seems. How do I tackle it?
Below is a log of the PackageManagerT
pmouse@leeenux:~$ sudo fuser -vvv /var/lib/
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
pmouse@leeenux:~$ uname -a
Linux leeenux 2.6.32-29-generic #58-Ubuntu SMP Fri Feb 11 19:00:09 UTC 2011 i686 GNU/Linux
pmouse@leeenux:~$ sudo rm /var/lib/
pmouse@leeenux:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.bacup
pmouse@leeenux:~$ diff /var/lib/
pmouse@leeenux:~$ sudo cp /var/lib/
pmouse@leeenux:~$ sudo cp /var/lib/
pmouse@leeenux:~$ sudo rm -rf /var/lib/
pmouse@leeenux:~$ sudo rm -rf /var/lib/apt/lists
pmouse@leeenux:~$ sudo rm /var/cache/
pmouse@leeenux:~$ sudo mkdir /var/lib/apt/lists
pmouse@leeenux:~$ sudo mkdir /var/lib/
pmouse@leeenux:~$ LANG=C; sudo apt-get clean
pmouse@leeenux:~$ LANG=C; sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
pmouse@leeenux:~$ LANG=C; sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up rsyslog (4.2.0-2ubuntu8.1) ...
dpkg: error processing rsyslog (--configure):
subprocess installed post-installation script returned error exit status 10
Setting up grub-pc (1.98-1ubuntu10) ...
dpkg: error processing grub-pc (--configure):
subprocess installed post-installation script returned error exit status 10
Errors were encountered while processing:
rsyslog
grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)
pmouse@leeenux:~$ LANG=C; sudo apt-get update -o APT::Cache-
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Fetched 2195kB in 10s (207kB/s)
Reading package lists... Done
pmouse@leeenux:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
pmouse@leeenux:~$ sudo dpkg --clear-avail
pmouse@leeenux:~$ sudo dpkg --configure -a
Setting up grub-pc (1.98-1ubuntu10) ...
dpkg: error processing grub-pc (--configure):
subprocess installed post-installation script returned error exit status 10
Setting up rsyslog (4.2.0-2ubuntu8.1) ...
dpkg: error processing rsyslog (--configure):
subprocess installed post-installation script returned error exit status 10
Errors were encountered while processing:
grub-pc
rsyslog
pmouse@leeenux:~$ LANG=C; sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up rsyslog (4.2.0-2ubuntu8.1) ...
dpkg: error processing rsyslog (--configure):
subprocess installed post-installation script returned error exit status 10
Setting up grub-pc (1.98-1ubuntu10) ...
dpkg: error processing grub-pc (--configure):
subprocess installed post-installation script returned error exit status 10
Errors were encountered while processing:
rsyslog
grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)
pmouse@leeenux:~$ LANG=C; sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up rsyslog (4.2.0-2ubuntu8.1) ...
dpkg: error processing rsyslog (--configure):
subprocess installed post-installation script returned error exit status 10
Setting up grub-pc (1.98-1ubuntu10) ...
dpkg: error processing grub-pc (--configure):
subprocess installed post-installation script returned error exit status 10
Errors were encountered while processing:
rsyslog
grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)
pmouse@leeenux:~$ LANG=C; sudo apt-get update -o APT::Cache-
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up rsyslog (4.2.0-2ubuntu8.1) ...
dpkg: error processing rsyslog (--configure):
subprocess installed post-installation script returned error exit status 10
Setting up grub-pc (1.98-1ubuntu10) ...
dpkg: error processing grub-pc (--configure):
subprocess installed post-installation script returned error exit status 10
Errors were encountered while processing:
rsyslog
grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu apt Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Porcelain Mouse
- Solved:
- Last query:
- Last reply: