I set up RaspBMC on my Pi. I had a broken repo, so I SSH'd into it and ran sudo apt-get update and sudo apt-get upgrade to fix it. From that, I get
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
So I run sudo dpkg --configure -a and it fails every time at Setting up rsyslog (5.8.11-3). Can someone see what's wrong from the output?
Here's my terminal:
pi@raspbmc:~$ sudo apt-get upgrade
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
pi@raspbmc:~$ sudo apt-get update
Get:1 http://archive.raspbian.org wheezy Release.gpg [490 B]
Get:2 http://archive.raspbian.org wheezy Release [14.4 kB]
Get:3 http://archive.raspbian.org wheezy/main armhf Packages [7412 kB]
Get:4 http://archive.raspbian.org wheezy/contrib armhf Packages [23.2 kB]
Get:5 http://archive.raspbian.org wheezy/non-free armhf Packages [48.0 kB]
Ign http://archive.raspbian.org wheezy/contrib Translation-en
Ign http://archive.raspbian.org wheezy/main Translation-en
Ign http://archive.raspbian.org wheezy/non-free Translation-en
Fetched 7498 kB in 2min 22s (52.7 kB/s)
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
pi@raspbmc:~$ sudo dpkg --configure -a
Setting up python-gi (3.2.2-2) ...
Setting up libisccfg82 (1:9.8.4.dfsg.P1-6+nmu2) ...
Setting up udev (175-7.2) ...
udev stop/waiting
udev start/running, process 2233
update-initramfs: deferring update (trigger activated)
insserv: Service udev has to be enabled to start service udev-mtab
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing udev (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up rsyslog (5.8.11-3) ...