Ubuntu 12 gdm install remove problem

17,675

Solution 1

I had the same problem and was able to fix it by making LightDM the default display manager:

echo /usr/sbin/lightdm > /etc/X11/default-display-manager

That command must be run as root (you can run sudo -s first). Or run this command instead:

echo /usr/sbin/lightdm | sudo tee /etc/X11/default-display-manager

Solution 2

First Way: Install LightDM

Ubuntu 12.04 uses LightDM as the default display manager. Assuming LightDM was working OK before you installed GDM, you should be able to fix this problem by making sure it's installed and properly configured.

Press Ctrl+Alt+F1 to get to a text-based virtual console where you can log in non-graphically. (Or you may already be at such a console.) Then run these commands. (If the first one fails, the others may still succeed.)

sudo apt-get update
sudo apt-get install lightdm
sudo dpkg-reconfigure lightdm

You may be given the opportunity to select your display manager. If you are, select LightDM.

Now either reboot (sudo reboot / Ctrl+Alt+Del) or run this command to start LightDM without rebooting:

sudo start lightdm

You should be able to log in.

Second Way: Install GDM

If that doesn't work, but GDM had worked when it had been installed, then just put back GDM and configure your system to use it. That is, do the steps described above, but for GDM. For your convenience, after going to the virtual console and logging in, these would be the commands:

sudo apt-get remove lightdm
sudo apt-get update
sudo apt-get install gdm
sudo start gdm

You'll notice that I've added a command at the beginning to remove lightdm (because it wasn't working anyway, and removing it guarantees it won't be run automatically instead of GDM). I've also not included a dpkg-reconfigure command for GDM. That's because you said you had removed gdm. So the apt-get install command will be doing a fresh installation of the package, which will automatically perform whatever configuration is necessary (including giving you a choice between display managers, if you have another one installed).

Share:
17,675

Related videos on Youtube

user83171
Author by

user83171

Updated on September 18, 2022

Comments

  • user83171
    user83171 almost 2 years

    I installed gdm. Then I removed it with:

    sudo apt-get remove gdm
    sudo apt-get purge gdm
    

    Now I can't pass Ubuntu logo at starup. How to enable lightdm back? Have tried

     sudo dpkg-reconfigure lightdm
    

    in curb but it not recognize command.

    • Eliah Kagan
      Eliah Kagan almost 12 years
      You said you tried sudo dpkg-reconfigure lightdm in curb. What's curb?
    • speter
      speter almost 12 years
      I've never tried, but are you able to log in to your tty shell from the startup screen by pressing [Ctrl]+[Alt]+[F2]?
  • Gufran
    Gufran over 11 years
    Just my 2 cent, Boot in recovery mode if no application is taking over the control from plymouth, in that case you'll see just a blank screen (No TTY).
  • josh
    josh over 6 years
    i get a "readonly file system" error