Install ubuntu-desktop dependencies problem

20,966

Type these commands:

  1. sudo apt-get autoclean
  2. sudo apt-get clean
  3. sudo dpkg --configure -a
  4. sudo apt-get update

If it doesn't solve the issue, type sudo apt-get dist-upgrade as the 5th step from the above. I hope it can rectify the issue.

Share:
20,966

Related videos on Youtube

0xC0DEGURU
Author by

0xC0DEGURU

9:13, Personal note: When I was a little kid my mother told me not to stare into the sun. So once when I was six I did. The doctors didn't know if my eyes would ever heal. I was terrified, alone in that darkness. Slowly, daylight crept in through the bandages, and I could see. But something else had changed inside of me. That day I had my first headache.

Updated on September 18, 2022

Comments

  • 0xC0DEGURU
    0xC0DEGURU over 1 year

    I have added this repository ppa:gurqn/systray-trusty to my Ubuntu 14.04.

    After this I performed an apt-get update and apt-get upgrade. But soon after I decided to remove installed packages from this repository via the Ubuntu Software Center.

    One of the packages seems to be a patch in the ubuntu-desktop package and that's probably how I uninstalled ubuntu-desktop.

    I'm a newbie in Ubuntu and all my conclusions are deduced from the forums I visited today trying to fix my problem. So, it seems that I have uninstalled my ubuntu-desktop package, after which I performed apt-get auto-remove (please, don't ask me why). This seems to be the final action which made me loose the Desktop GUI on Ubuntu.

    After that, I have performed apt-get update, apt-get upgrade, apt-get update --fix-missing, apt-get install ubuntu-desktop, apt-get install unity under safemode.

    The Guest Session Account had its Desktop GUI back to normal, but this is not the case with my personal Ubuntu account. It still has no Desktop GUI.

    I decided to remove the ppa:gurqn/systray-trusty repository because it seems to provide some of the dependencies and to reinstall ubuntu-desktop and unity packages but during installation I have some issues with dependencies:

    sudo apt-get install -f --reinstall ubuntu-desktop unity
    
    Reading package lists...
    Building dependency tree...
    Reading state information...
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
    
    The following packages have unmet dependencies:
     unity : Depends: libunity-core-6.0-9 (= 7.2.3+14.04.20140826-0ubuntu1) but it is not going to be installed
         Recommends: unity-lens-applications but it is not going to be installed
    
    E: Unable to correct problems, you have held broken packages
    

    Any help will be appreciated. Thank you!

    • RPiAwesomeness
      RPiAwesomeness over 9 years
      Have you tried running sudo apt-get install -f --reinstall ubuntu-desktop, unity?
    • 0xC0DEGURU
      0xC0DEGURU over 9 years
      sudo apt-get install -f --reinstall ubuntu-desktop says: ubuntu-desktop: Depends: unity, but it's not going to be installed E: Unable to correct problems, you have held broken packages
    • RPiAwesomeness
      RPiAwesomeness over 9 years
      My bad, run that command again, but without the comma. That messed it up. Sorry.
    • 0xC0DEGURU
      0xC0DEGURU over 9 years
      Yes, I noticed that extra comma. NP :)
    • RPiAwesomeness
      RPiAwesomeness over 9 years
      Any change in the output of the command?
    • 0xC0DEGURU
      0xC0DEGURU over 9 years
      No, APT still complains about the same dependencies. I just added the output of apt-get install in my question.
    • Sergiy Kolodyazhnyy
      Sergiy Kolodyazhnyy over 8 years
      What's apt-cache policy libunity-core-6.0-9 saying ?
  • 0xC0DEGURU
    0xC0DEGURU over 9 years
    I did run all of the steps and didn't encountered any errors but still have the same issue. After I rebooted, I tried to run again apt-get install ubuntu-desktop and APT reports the same error message.
  • Wolverine
    Wolverine over 9 years
    You will have to remove the package libunity-core-6.0-9 and proceed with the command.
  • 0xC0DEGURU
    0xC0DEGURU over 9 years
    Ok, I removed unity-services pakage which alowed me to reinstall ubuntu-desktop and unity succesfuly, but I have still the same issue: I see only icons on my desctop and a mouse coursor. The mouse context menu also works.
  • Wolverine
    Wolverine over 9 years
    Reboot the system and check once.