Desktop login looping after attempt to install Guest Additions 5.2.1 in Linux 16.04 LTS
Posted: 22. Nov 2017, 08:17
Had an issue with desktop login looping and errors about upstart after failed attempt to install guest additions version 5.2.1.
To fix I first uninstalled the guest additions by mounting the guest additions cdrom from command prompt after selecting Devices->Insert Guest Additions CD image...
Then press: ctl-alt-f1
Log In
Command: sudo mount /dev/cdrom /media/cdrom
Command: cd /media/cdrom
Command: sudo su
Command: cd
Command: cd /media/cdrom
Command: ./VBoxLinuxAdditions.run uninstall
Command: exit
I still couldn't login to desktop but was getting less errors on command prompt login.
Then I eventually found that the original install of Guest Additions had broken some targets by looking at system log. I tried a bunch of things but only this seemed to work.
Command: sudo apt-get remove at-spi2-core
Command: sudo apt-get install at-spi2-core
This allowed me to login by fixing targets but had also removed familiar packages like nautilus file manager. So I reinstalled Ubuntu Desktop to see if it would re-add the missing packages.
Command: sudo apt-get install ubuntu-desktop
This seemed to fix things for me. I tried a bunch of other fixes like looking for incorrect file permissions that plague other login loop issues but all my permissions were correct and nothing I did would keep me logged into the desktop. Anyway if someone reads this and knows why the Guest Additions are screwing up like this it would be nice to know. I would like to be able to use the bidirectional clipboard feature and installing the software made me panic when I could no longer get to my servers desktop to code.
Thanks.
To fix I first uninstalled the guest additions by mounting the guest additions cdrom from command prompt after selecting Devices->Insert Guest Additions CD image...
Then press: ctl-alt-f1
Log In
Command: sudo mount /dev/cdrom /media/cdrom
Command: cd /media/cdrom
Command: sudo su
Command: cd
Command: cd /media/cdrom
Command: ./VBoxLinuxAdditions.run uninstall
Command: exit
I still couldn't login to desktop but was getting less errors on command prompt login.
Then I eventually found that the original install of Guest Additions had broken some targets by looking at system log. I tried a bunch of things but only this seemed to work.
Command: sudo apt-get remove at-spi2-core
Command: sudo apt-get install at-spi2-core
This allowed me to login by fixing targets but had also removed familiar packages like nautilus file manager. So I reinstalled Ubuntu Desktop to see if it would re-add the missing packages.
Command: sudo apt-get install ubuntu-desktop
This seemed to fix things for me. I tried a bunch of other fixes like looking for incorrect file permissions that plague other login loop issues but all my permissions were correct and nothing I did would keep me logged into the desktop. Anyway if someone reads this and knows why the Guest Additions are screwing up like this it would be nice to know. I would like to be able to use the bidirectional clipboard feature and installing the software made me panic when I could no longer get to my servers desktop to code.
Thanks.