Ubuntu – Unable to sudo apt-get install ubuntu-desktop –reinstall

17.04package-management

I installed some packages, to see a list of the installed packages see here. I walked away from my desk, locked the computer and returned to a black screen, before logging in.

I searched Google and found this telling ,me to restart a service, so I ran sudo service lightdm --full-restart it opened to my login screen, input my password, and logged into a black screen with a Komodo icon on it and my mouse cursor. So I searched some more and found this and this. Tried both of those and nothing happened.

So I'm assuming that I'm going to have to reinstall the Ubuntu desktop, or run from a backup. Only issue I'm having when running sudo apt-get install ubuntu-desktop --reinstall is a bunch of unable to correct problems, you have held broken packages:

The following packages have unmet dependencies:
  ubuntu-desktop : Depends: software-center but it is not going to be installed
                   Depends: ubuntu-sso-client but it is not going to be installed
                   Depends: unity but it is not going to be installed
                   Recommends: bluez-alsa but it is not going to be installed
                   Recommends: empathy but it is not going to be installed
                   Recommends: firefox but it is not going to be installed
                   Recommends: gnome-disk-utility but it is not going to be installed
                   Recommends: gnome-orca but it is not going to be installed
                   Recommends: landscape-client-ui-install but it is not going to be installed
                   Recommends: pulse-audio-module-x11 but it is not going to be installed
                   Recommends: python3-aptdaemon.pkcompat but it is not going to be installed
                   Recommends: totem-mozilla but it is not going to be installed
                   Recommends: ttf-punjabi-fonts but it is not going to be installed
                   Recommends: vino but it is not going to be installed
E: Unable to correct problems, you have held broken packages

These all sound pretty important, and like they should probably be installed already, so my question is pretty simple, what in the heck am I suppose to do now? How can I fix this successfully?

Best Answer

  • First clear cache by sudo apt-get autoremove && sudo apt-get clear cache and then type sudo apt-get update && sudo apt-get upgrade. I think this will definitely gonna work.

  • Related Question