Programming Rambling

mrzard's ramblings in the wild

Failed to Connect to Socket /com/ubuntu/upstart ? Upstart Jobs Cannot Be Run on Chroot

| Comments

Thanks to http://www.ashang.org/2010/10/unable-to-connect-to-upstart.html I was finally able to upgrade my system while chrooted.

Being on chroot will cause some packages to fail when they are upgrading. Giving us an error message like this one:

start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
dpkg: error processing procps (–configure):

You can workaround this limitation by running these commands

$dpkg-divert –local –rename –add /sbin/initctl
Adding ‘local diversion of /sbin/initctl to /sbin/initctl.distrib’
$ln -s /bin/true /sbin/initctl

Then you can run the upgrade, or do a dpkg –configure -a to upgrade the packages that were previously failing.

Comments