Ubuntu 16.04 unity desktop environment doesn't load after fresh install

101,152

Solution 1

I solved the problem following these steps:

  1. Activated the proprietary Nvidia graphics driver instead of the nouveau open-source one.
  2. Unfortunately this made my Ubuntu fail to boot, so I had to follow these steps to get it to work: https://askubuntu.com/a/391608/281857
  3. At this point Ubuntu was booting but there was still no launcher, top bar, etc. However I could right-click on the desktop to open a Terminal, and ran Fix 5 detailed by this answer: https://askubuntu.com/a/481620/281857

Solution 2

Usually the answer to this is by resetting dconf entries for unity:

dconf reset -f /org/compiz/
setsid compiz

This seems to be due to bug #1569357 on launchpad. Usually they also give a few remediations for the bug in the launchpad entry, and it only seems to happen with sddm (the simple desktop display manager) - it does not happen with lightdm.

Using dconf reset -f /org/compiz/ did not work with me (sudo or no sudo). setsid compiz also didn't.

I also found that if you have logged in and have no launched and no panel, a quick way to make them start if you have a command line is:

nohup /usr/bin/unity > /dev/null 2>&1 &
nohup /usr/lib/x86_64-linux-gnu/unity/unity-panel-service > /dev/null 2>&1 &

This is just for the session you are in though. It won't make the launched and panel start the next time you log in.

Solution 3

Use these command to fix the issue :

sudo dpkg --configure -a  
sudo apt-get update  
sudo apt-get upgrade -y  

And reboot the machine..You will get desktop back

Solution 4

Unfortunately I do not have the reputation to comment, but Patola's solution worked for me with one slight change:

dconf reset -f /org/compiz/
setsid compiz

should be

dconf reset -f /org/compiz/
setsid compiz --replace
Share:
101,152

Related videos on Youtube

Illidanek
Author by

Illidanek

It is well enough that people of the nation do not understand our banking and money system, for if they did, I believe there would be a revolution before tomorrow morning - Henry Ford Send me some BTC with Lightning! https://dropbit.me/@illidanek

Updated on September 18, 2022

Comments

  • Illidanek
    Illidanek over 1 year

    After doing a fresh install of Ubuntu 16.04, I log in, but the unity desktop environment does not load. All I get is the desktop background, and occasionally an information window about an error with compiz shows up.

    I had this before also with the final Beta, and could not find a solution.

    When I try to restart unity from the Ctrl + Alt + F1 console, with:

    DISPLAY=:0 unity
    

    I get:

    compiz (core) - Info: Loading plugin: core
    ... many more instructions here
    compiz (core) - Info: Unity is not supported by your hardware. Enabling software rendering instead (slow). 
    ... many more instructions again
    compiz (core) - Info: Starting plugin: switcher
    Illegal instruction (core dumped)
    

    I have the Nvidia gtx980 graphics card, and according to Ubuntu, the (open-source) Nvidia driver has been installed correctly, so, imo, Unity should be fully supported, but for some reason when Ubuntu tries to start Unity, it fails with the only information being Illegal instruction.

    Please advise on any way I can fix this or debug it

    • Illidanek
      Illidanek about 8 years
      How exactly and where?
    • JanC
      JanC about 8 years
      That sounds like Compiz/Unity needs a graphics feature that is not or incorrectly supported by your graphics card or the driver. Did you try installing the closed source driver?
    • Illidanek
      Illidanek about 8 years
      @JanC Ok so I have actually overcome this, I have managed to install the closed source Nvidia driver, and now, when starting unity I get .... compiz (core) - Info: Unity is fully supported by your hardware. then further down: Compiz (opengl) - Info: GLX_EXT_buffer_age is supported Segmentation fault (core dumped) Any idea why it's now failing at the openGL stage?
    • JanC
      JanC about 8 years
      I have no idea, but most likely you want to report a bug at this point...
    • Admin
      Admin about 8 years
      Fix #5 on askubuntu.com/a/481620/281857 worked for me too! Thanks!
  • Manny265
    Manny265 about 8 years
    have not been able to find a fix and the fixes in the post do not help. any other pointers? im running it in virtual box
  • Illidanek
    Illidanek about 8 years
    @Manny264 I recommend starting your own question. You can there explain what exactly is the problem and what you have tried so far.
  • Manny265
    Manny265 about 8 years
    didnt realise this was so specific to nvdia gx card. I dd find a solution on this question: askubuntu.com/questions/17381/…
  • Zanna
    Zanna almost 8 years
    You can suggest an edit to the post if you do not have enough reputation to comment.
  • zs2020
    zs2020 almost 8 years
    This works for me!!!
  • Jonathan Richards
    Jonathan Richards almost 8 years
    It seems like I have to do this every time I reboot. Has anyone found a more permanent solution?
  • Jonathan Richards
    Jonathan Richards over 7 years
    Version 16.04.1 seems to have fixed the problem permanently. I didn't identify the exact bugfix, but the changelog (wiki.ubuntu.com/XenialXerus/ReleaseNotes/ChangeSummary/16.0‌​4.1) has a number of unity fixes.