Test this:
Switch On your PC.
Wait until the BIOS has finished loading.
Press and hold the Shift key, which will bring up the Grub menu.
Select the line which starts with: Advanced options
.
Select the line ending with: Recovery mode
, something like:
Ubuntu GNU/Linux, with Linux 3.16.0-21-generic (recovery mode)
Press Return.
Your PC should display a submenu with a number of options.
Select in this order:
fsck
network
root
Ubuntu wil boot in a terminal.
Run it:
mount -o remount,rw /
mount --all
dpkg --configure -a
apt-get -f install
apt-get update
apt-get dist-upgrade
apt-get install --reinstall ubuntu-desktop
apt-get clean
apt-get autoremove
reboot
Edited for explanations:
Why fsck?
Because sudo apt-get purge wine
, it is not able to damage the system as reported, and it is possible there has been a failure to file system.
Why apt-get dist-upgrade?
Because sudo apt-get update
, not install new packages, only updates that are already installed. And sudo apt-get dist-upgrade
updates that are already installed and also installed new packages required to resolve dependencies.
*
to match packages (wine*
matches way, way more than people think). See Why does apt removes unwanted packages when giving * as suffix?. For solutions, see How to fix Ubuntu after accidentally uninstalling many packages? – Eliah Kagan Oct 20 '14 at 01:18