I am using the graphics-drivers ppa. I got an update dialogue today which stated that I can update my nvidia driver to 367.18 (~gpu16.04.6). I started the update just like every time, but it failed with
Failed to get unit file state for var-lib-snapd-lib-gl.mount
After rebooting, my graphics driver was broken and I was forced to go into recovery mode.
As usually when my Nvidia driver breaks, I just uninstall it with
sudo apt purge nvidia* to reinstall it clean afterwards.
Doing this in recovery mode uninstalled all except the nvidia-opencl-icd-367 package which failed with the error above.
Trying to manually uninstall this package ends with these errors:
Update @20160605 - Solution:
Following Videonauth's answer below solves the issue. Please go through all the steps and make sure to reboot after removing everything of NVIDIA via sudo apt purge nvidia* succeeded without issues and after reinstalling the driver via sudo apt install nvidia-367.
This shall get your driver working again.
If this does not help, try to manually remove all old xorg configs sudo rm /etc/X11/xorg.conf* && sudo rm /etc/X11/xorg.conf and reinstall the driver again sudo apt install nvidia-367 --reinstall.
If this still does not let you log back in (Typical error: Logins screen --> password has been entered, enter pressed --> goes back to login screen) try completely removing your Nvidia driver again from by switching into text console from the logscreen with Ctrl+Alt+F1, login with you account name and password, donwload the appropriate driver for your graphics card from here within console, stop lightdm:
sudo service lightdm
Install Nvidia's binary driver using sudo ./NVIDIA-VERSION...
and reboot system:
sudo reboot now
System:
Ubuntu 16.04 64bit
Linux 4.4.0-22

