1

I'm relatively new to Linux but have been running an Ubuntu web server problem free for about a year now, however after running sudo apt-get update && sudo apt-get upgrade it complained about being unable to upgrade due to a package. It suggested me to run the same command with the -f flag, so I did. It didn't help, and it still complained about a broken package.

I restarted shut down the computer using sudo shutdown -r now and restarted and now it is unable to boot successfully. It gets stuck at a black screen that says:

initctl: Event failed
Stopping set console keymap
Stopping configure virtual network devices

enter image description here

karel
  • 122,292
  • 133
  • 301
  • 332
Anka
  • 11

1 Answers1

0

Try deleting the lock file i.e

rm /var/lib/dpkg/lock

and then run

dpkg-reconfigure -a

(sudo shouldn't be necessary since you are logged in to single user mode)


If you can't run that, then it's a mount issue / your dive is likely mounted as read-only try:

mount -o rw,remount / 
dpkg-reconfigure -a

Use aptitude instead of apt-get updates (and for future installs) as it keeps a much better log of which packages were installed as dependencies, and will provide you with a lot more options if you run into packages that have problems.

aptitude update && aptitude upgrade
virtualxtc
  • 3,324