Solution 1:

Run the following commands in terminal,

sudo apt-get clean
sudo apt-get -f install

If you still getting errors, try to update your kernel by running the below command.

sudo apt-get install linux-generic