I'm running Ubuntu 16.04.3 LTS and accidentally uninstalled
python2 and everything that depends on it. Edit: According to
/var/log/apt/history.log, 326 modules were removed: pastebin.com (sorted alphabetically).
python2 now but apparently a lot of things are still broken. Most urgently is obviously getting a functioning mouse back.
When I boot my computer, I arrive at my normal desktop. Keyboard and mouse pointer work just fine, but the mouse buttons only work in the launcher -- not on the desktop and not in any launched apps.
I can use the mouse to launch a terminal, then type
unity --replace &into a terminal (as advised in older posts). Having done that, the mouse now works inside the terminal window but not on the window frame nor anywhere else!
I can Ctrl+Alt+F2 and run
unity --replace &from there. That appears to end the command I had running in the previous step, and when I go back to Ctrl+Alt+F7 then the mouse is working normally - but Unity's top menu bar (including the clock and system/power button) is blank.
It's a Logitech wireless mouse (M705) and I have put in a pair of fully charged batteries just to be sure and rule out the hardware.
--> What am I missing, and how do I restore my mouse clicks to normal operation without the