49

After upgrading from 12.04 to 14.04 I could log in to my X session (albeit with really low graphics). While trying to fix the graphics, I managed to break the X session.

Now, after typing my password in the unity-greeter, the items disappear and I can only see the desktop background and the pointer. This happens for every user. I can still log in in tty's. How can I solve this?

Also, I cannot seem to be able to install nvidia-current as it tries to install nvidia-304 and it depends on old video-abi libraries. Is there a way to tell the package manager that nvidia-current should use a newer version?

LiveWireBT
  • 29,597
fabikw
  • 621

9 Answers9

47

This bug depends on several factors, including Video card and custom config files. For example, some users have solved the issue by doing one or several of the following "solutions" (Not all work for everyone, some users even need a combination depending on how the session was configured and hardware used):

Fix 1 - Compiz Problems (OpenGL module not loading, Unity plugin not loading)

sudo rm -fr ~/.cache/compizconfig-1
sudo rm -fr ~/.compiz

Fix 2 - Session not loading (Guest session loads fine)

sudo rm -fr ~/.Xauthority
sudo rm -fr ~/.config/autostart

Fix 3 - Session not loading (Guest not loading)

sudo apt-get install --reinstall ubuntu-desktop unity compizconfig-settings-manager upstart

Fix 4 - Launcher / Top Panel not loading (Nvidia cards)

sudo add-apt-repository ppa:xorg-edgers/ppa -y
sudo apt-get update
sudo apt-get install nvidia-340
sudo reboot

Fix 5 - Clearing Unity

dconf reset -f /org/compiz/
setsid unity

Fix 6 - Clearing the Cache

sudo rm -fr .cache/*

WARNING - This will clear the cache for all apps inside of the .cache folder.

For most of these cases, if the session opens and you still can not see the top panel or the launcher, try opening a terminal CTRL+ALT+T and typing ccsm (Assuming you already installed the compizconfig-settings-manager package) then enable the OpenGL plugin and the Unity Plugin. If the driver is working well, this should enable both panels in a couple of seconds. There are even some cases where the Unity plugin in the compiz config settings manager is simply not enabled.

Luis Alvarado
  • 216,643
31

This is what fixed my problem. Once you are booted up to the blank desktop... press CTRL + ALT + F1.

apt-get install --reinstall ubuntu-desktop
apt-get install unity
apt-get purge nvidia* bumblebee*
apt-get install nvidia-prime
shutdown -r now

When the computer came back, my login screen was in high-def resolution. I entered my password. WAIT for a minute, there is a startup delay and BAM desktop appeared and popups whre there, little slow on the start up.

bbullis
  • 505
6

I was using a custom theme with my older version(12.04) so i reset it to the default. first i tried switching to the Ambience(default) theme. you may try thst through right clicking and selecting " Change Desktop Background. through there you can get into some settings menus.

-or-

you can reset Compiz. You'll need to do it though outside of Unity. Log out, switch to a console (CTRL+ALT+F1) and then delete your Compiz settings and cache:

rm -r ~/.cache/compizconfig-1
rm -r ~/.compiz

Log out of the console, switch back to the GUI (CTRL+ALT+F7) and log in. Compiz should fall back on it's defaults, and you'll have your desktop back, minus any customization you may have done.

I rebooted and everything worked... better than it did. still a few issues but not related to this one. also this is my first answer post, be gentle.

Danatela
  • 13,384
6

OK, I managed to fix my problem following this procedure.

I booted Ubuntu in advanced settings and first repaired all destroyed/corrupted packages. I had a total of 700 MB of corrupted packages to be fixed from a crash during the 13.10->14.04 upgrade. Afterwards i booted into the root terminal.

I then went ahead to remove all proprietary drivers by

sudo apt-get purge nvidia* bumblebee*

And then went ahead to install the opensource 'nouveau'-drivers which in general are not recommended (performance wise), but since i don't need any extensive 3D graphics on my work computer and all other drivers failed to work for me, this was the only solution.

sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core xserver-xorg-video-nouveau

After trying to fix my issues in various ways i wanted to make sure that i didn't screw up the Unity and Ubuntu packages, so i reinstalled those

sudo apt-get install --reinstall ubuntu-desktop unity

I rebooted my computer and everything has worked ever since. I'm not sure if its my computer or the drivers, but i was not quite satisfied with the speed of Unity/Compiz, so i installed the Compiz Config Settings Manager and changed visual effects from "Good" to "Fast"

sudo apt-get install compizconfig-settings-manager
asgerbj
  • 569
6

If you gave up then you cannot confirm if this solution works for you or not. But I will post anyway in the hope that somebody else may benefit from it.

Short version:

Please, try renaming the directory /home/[user_name]/.config/dconf to /home/[user_name]/.config/dconf.original

Do it from a text terminal or if you can use gui (more of this latter) do it from a different session than the user session being fixed. Then login again as the affected user. Did the problem solve?

Long version:

My system has 4 users. Two users are members of the admin group and can use the sudo command. I upgraded from 13.10 to 14.04. After some time using 14.04 the second admin user started to have the same problem, from login at the greeter to a background image with a mouse pointer and nothing more, no menu bar at the top of the screen and no unity launcher to start programs, also CTRL+ALT+L didn't work anymore, to close the session go to another tty and use sudo restart lightdm was necessary.

The affected user can use Gnome 3 without problems, only Unity session was affected.

As all others users could login using Unity or Gnome 3, It was obvious that something got corrupted in the side of the affected user. I wanted to fix that session without having to delete the user and recreate It. So I renamed his .config directory in the hope that inside It a configuration file was causing all this. And It was exactly that. The next login attempt into a Unity session was OK (but all programs reseted to their defaults). If I put the original .config directory in place, problem reappeared. Then I started to work in the .config directory, first I renamed half of its subdirectories (there were about 40 subdirectories), and in the first attempt I'd hit the group that contains the culprit. Then I'd put in place half of that half, and problem reappeared. Then I renamed half of that last group and... I think you already know how this goes on.

Using this method I eventually hit the culprit. Rename dconf directory solved the problem.

.config/dconf contents (actually a single file) does not necessarily have to be corrupted. Maybe it is not corrupt (at the filesystem level, my filesystem is clean) but contains invalid data that ended there because of some bug in who knows which component of the system.

Also I noted in your case all users are affected, so this may not be the solution to your problem. But I think that It's possible that all users experience this at the same time and still may be caused by the same file (at each user .config directory).

3

I had the same problem!

I purged the fglrx

sudo apt-get purge fglrx-*

I also clear the compiz and cache

mkdir ~/backup
sudo mv ~/.compiz ~/backup
sudo mv ~/.cache ~/backup

after rebooting and logging in, wait a while. It eventually appeared.

2

Starting from June 3rd, 2014 I had this problem on several computers with Intel VGA and none of the proposed solutions has solved the problem.

After several days of researches and attempts I found to be caused by the package xserver-xorg-video-intel found in Xorg-edgers PPA.

To solve the problem, simply run these two commands:

sudo apt-get install ppa-purge
sudo ppa-purge ppa:xorg-edgers/ppa

and then reboot.

0

Something like:

sudo dpkg-reconfigure xserver-xorg

should reconfigure X.

Once you can login, you should just be able to download the driver directly from nVidia's site and install it that way.

lbaile200
  • 586
0

The problem is update gnome-session. After reboot run these two commands:

open command line CTRL+ALT+F1

Sign in

sudo apt-get update
sudo apt-get install gnome-session
reboot your system

The problem is solved

guntbert
  • 13,475
Nuno
  • 11