You need rootsh installed to get this working. In X-Terminal please try Code: sudo gainroot dpkg --configure -a This might repair the package management, but you will, may be, use that command for a couple of times to get rid of the error.
sudo gainroot dpkg --configure -a