Comment 2 for bug 998390

Revision history for this message
Savino Johner (1-kon) wrote :

Update/Solution:

After submitting this bug report in the middle of a "do-release-upgrade" the upgrade process continued.
I then removed the /var/lock directory, ran apt-get install -f and the initscripts post install script completed without errors.
After this i proceeded to run apt-get update && apt-get upgrade, which resulted in upgrading more packages, but ultimately failing with:

Setting up rsyslog (5.8.6-1ubuntu8) ...
runlevel:/var/run/utmp: No such file or directory
[... lots of more errors due to dependencies ...]

I created /var/run/utmp, chmodded it to 664, changed group to utmp and then the error became:

"Failed to connect to socket /com/ubuntu/upstart: Connection refused"

Seems like upstart's init requires to be PID 1 and I was still using the rescue busybox shell (which therefore had PID 1)

I rebooted but still ahci was missing because the new kernel (3.2.0-24-virtual) hasn't been installed yet.

So I booted the rescue CD once again, ran apt-get install linux-virtual, it updated the kernel and the initial ramdisk and failed again with the previous errors. But then I was able to boot the new kernel and ahci.ko and the root disk were found.
PID 1 was init and upstart worked again, apt-get install -f installed the remaining packages and completed successfully.