A friend tried to reinstall the graphics drivers on his Ubuntu 16.04 computer (upgraded from 14.04 some 3 or 4 months ago) and now is stuck in an endless login loop. I have spent nearly 1.5 hours trying most of the commands proposed in multiple of the answers in this one and a couple others to no avail.
Here is .xsession-errors
openConnection: connect: No such file or directory
cannot connect to brltty at :0
upstart: gnome-session (Unity) main process (2094) terminated with status 1
upstart: Disconnected from notified D-Bus bus
upstart: logrotate main process (1919) killed by TERM signal
upstart: update-notifier-crash (/var/crash/_sbin_upstart.104.crash) main process
(1983) killed by TERM signal
upstart: update-notifier-crash (/var/crash/_usr_lib_xorg_Xorg.0.crash) main proc
ess (1984) killed by TERM signal
upstart: bamfdaemon main process (2047) killed by TERM signal
upstart: hud main process (2061) killed by TERM signal
upstart: unity7 pre-start process (2065) terminated with status 143
upstart: indicator-bluetooth main process (2106) killed by TERM signal
upstart: indicator-power main process (2107) killed by TERM signal
upstart: indicator-datetime main process (2111) killed by TERM signal
upstart: indicator-sound main process (2116) killed by TERM signal
upstart: indicator-printers main process (2119) killed by TERM signal
upstart: indicator-session main process (2120) killed by TERM signal
upstart: indicator-application main process (2138) terminated with status 1
upstart: unity-panel-service main process (2098) killed by TERM signal
It is likely this may be an issue encountered by someone else before but, with so many other similar questions/answers, it has been hard to find something that would work.
At this point I think I would have spent less time if from the beginning I had re-installed the whole OS.
Graphics card: AMD Radeon HD 6350 512mb