Ubuntu boots on terminal only, how do I recover the GUI desktop?
Solution 1
Try this. Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:
sudo apt-get install --reinstall ubuntu-desktop
Solution 2
Follow below instructions:
sudo dpkg --configure -a
sudo apt-get install --reinstall ubuntu-desktop
- restart your computer and go to desktop
Solution 3
when I encounter this on my machine I simply delete the /etc/X11/xorg.conf and restart the system. BUT - I always make backups! :)
Solution 4
What display manager did you have before? Go to protected mode as root with Ctrl + Alt + F1 Then try reinstalling the following packages:
apt-get install --reinstall xorg-xserver*
apt-get install --reinstall gdm
apt-get install --reinstall unity
In case you have a different display manager than gdm, type kdm
or lightdm
.
I once had that too - regarding nvidia-drivers ...
Solution 5
There was posted in Ubuntu-forum this here to solve the problem after
"Stopping userspace bootsplash" appears like in your boot-log:
With the proprietary drivers installed they did the following:
Ctrl + Alt + F1 (To open up a terminal) and after login:
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove
sudo dpkg-reconfigure -phigh -a
reboot
Entered Grub recovery mode and selected "repair damaged packages"
reboot
Hold Shift to get to grub menu hit E to enter temporary changes into grub place 'vmalloc=192MB' next to quiet splash
F10
And problem now solved ?!
They then made the change permanent by editing the /etc/default/grub
to include:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash vmalloc=192MB"
Maybe this solves your problem ? Let me know !
Related videos on Youtube
Admin
Updated on September 18, 2022Comments
-
Admin over 1 year
Where is my Ubuntu desktop? Its booting and going always default to terminal screen, if i press Ctrl+Alt+F7 still in terminal Ctrl+Alt+F1 still in terminal.
No GUI, how do I recover it?
EDIT:
sun@e700gent:/etc/X11$ sudo apt-get install --reinstall ubuntu-desktop [sudo] password for sun: Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libcdio-paranoia1 packagekit-backend-aptcc gdebi-core libxrandr-ltsq2 linux-headers-3.5.0-23-generic linux-headers-3.5.0-23 libcdio-cdda1 libllvm3.1 Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 209 not upgraded. Need to get 0 B/4,016 B of archives. After this operation, 0 B of additional disk space will be used. (Reading database ... 230006 files and directories currently installed.) Preparing to replace ubuntu-desktop 1.267.1 (using .../ubuntu-desktop_1.267.1_amd64.deb) ... Unpacking replacement ubuntu-desktop ... Setting up ubuntu-desktop (1.267.1) ... sun@e700gent:~$ unity --reset WARNING: no DISPLAY variable set, setting it to :0 (process:2541): GConf-WARNING **: Client failed to connect to the D-BUS daemon: //bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed. WARNING: environment is incorrect: No D-BUS daemon running Did you just try to reset in a tty? unity-panel-service: no process found compiz (core) - Fatal: Couldn't open display :0 sun@e700gent:~$ sudo startx [sudo] password for sun: X.Org X Server 1.11.3 Release Date: 2011-12-16 X Protocol Version 11, Revision 0 Build Operating System: Linux 2.6.42-37-generic x86_64 Ubuntu Current Operating System: Linux e700gent 3.5.0-36-generic #57~precise1-Ubuntu SMP Thu Jun 20 18:21:09 UTC 2013 x86_64 Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.5.0-36-generic.efi.signed root=UUID=68af0547-17ed-4a85-8369-244d57223f91 ro quiet splash vt.handoff=7 Build Date: 11 April 2013 01:05:39PM xorg-server 2:1.11.4-0ubuntu10.13 (For technical support please see http://www.ubuntu.com/support) Current version of pixman: 0.24.4 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Tue Jul 16 17:37:57 2013 (==) Using system config directory "/usr/share/X11/xorg.conf.d" Fatal server error: no screens found Please consult the The X.Org Foundation support at http://wiki.x.org for help. Please also check the log file at "/var/log/Xorg.0.log" for additional information. ddxSigGiveUp: Closing log Server terminated with error (1). Closing log file.
EDIT:
It seems like solving this problem is like rocket science, its unfixed. Instead of wasting time debugging it, i finally re-install the ubuntu.
-
Mitch almost 11 yearsTry
sudo startx
what happens? -
Admin almost 11 years@Mitch: FAILS (no luck)
-
soulsource almost 11 yearsPlease post the contents of /var/log/Xorg.0.log to pastebin and link it. Without having any clue what could be wrong, you could try to move /etc/X11/xorg.conf and all files in /etc/X11/xorg.conf.d to a backup directory.
-
Admin almost 11 years@soulsource: here plz find: paste.ubuntu.com/5881280
-
soulsource almost 11 yearsThis is strange. It seems that the Intel graphics card driver does not find, or more probable, cannot use your graphics chip. What happened before your system stopped working? Is the hardware detection at least correct, meaning, is it an Intel graphics chip?
-
Admin almost 11 years@soulsource: yes its working perfect when i 1st install and when i use LiveCD, but suddently now it does not work at all when i run from Disk. but when i use liveCD it works
-
soulsource almost 11 yearsSince it seemed to be an issue with the intel driver, you could try to purge and reinstall it:
sudo apt-get purge xserver-xorg-video-intel
andsudo apt-get install xserver-xorg-video-intel
, but I'm not too optimistic that this will help. Be careful when purging - I have no clue which other packages might depend on it... Another possible cause would be that you might have updated this package to xserver-xorg-video-intel-lts-quantal - in that case, you can try to remove xserver-xorg-video-intel-lts-quantal and install xserver-xorg-video-intel again. -
Admin almost 11 years@soulsource: just did it, but no luck still same, it boots to terminal without having any GUI at all.
-
soulsource almost 11 yearsOk,I have to confess, I have no clue what else could be the cause.
-
-
Tianyu Liu almost 11 yearsDont had any xorg.conf file even.
-
Admin almost 11 yearsI have SSH access and CTRL+ALT+F1 terminal access only. There i have done also reinstall of ubuntu-desktop. After reboot still same.
-
dschinn1001 almost 11 years@YumYumYum - what display manager did you have before ?! go to protected mode as root then do try reinstall of different packages:
-
Rodislav Moldovan almost 11 yearshm.. you can try this :: sudo dpkg-reconfigure xserver-xorg but please be carefull, or try to see what youtube is showing on this topic.
-
Admin almost 11 yearsFAILED - not working, still boots in the terminal screen, no desktop.
-
dschinn1001 almost 11 years@YumYumYum - you still did not tell, what window-manager you used ? It was unity ? What happens if you install gnome ? or KDE ?
-
Admin almost 11 yearsUnity, default Ubuntu desktop.
-
dschinn1001 almost 11 years@YumYumYum - have you seen my 2nd answer ?! getting closer to solution ?
-
dschinn1001 almost 11 years@YumYumYum - you have settled the rest after reboot ?
-
dschinn1001 almost 11 yearsno - it is the grub repair modus - when pressing shift - not reaching this ? "recovery mode" ? - well, but thats already much ! now supergrub-CD would help ?!
-
Admin almost 11 yearsStep 1: clean/autoclean/all done Step 2: changed the grub settings Step 3: update-grub / update-grub2 is applied. but still i have same problem booting in to terminal no GUI.
-
dschinn1001 almost 11 yearshave you read that after 2nd reboot ? read the lines slowly. press 'shift' to get to grub menu and hit 'e' (for edit) - read above.
-
Admin almost 11 yearsYES - those are done, basically if you do it after login permanently its same. /etc/default/grub is same by hitting shift/e.
-
dschinn1001 almost 11 yearsDon't know how to proceed - could be something quite different and banal: a) you ask this guy here - he solved it: ubuntuforums.org/showthread.php?t=2147113 b) it is banal and only a wrong spell-checking about directories ? like here: askubuntu.com/questions/65852/cannot-login-to-my-user-account/… - more I have not found out ... soon bedtime here.
-
Admin almost 11 yearsi removed the ~/.Xauthority file but still not fixed (From your second link).
-
dschinn1001 almost 11 years
-
Tianyu Liu almost 11 yearsTried did not solved, wired
-
Brian over 10 yearsI just built a new computer, took the hard disk from my laptop, put it in my new desktop, but couldn't get X working with the new hardware. Deleted the xorg.conf and immediately everything worked perfectly! Thanks!
-
bits over 7 years@YumYumYum how do I go back to UI after CTRL+ALT+F1 ?
-
Radu Craciun almost 7 yearsworked for me just by making clean, autoclean, autoremove and reboot. Thanks!
-
hal over 6 yearsI've opened terminal with Alt+F2 when my ubuntu stops during the boot. Hope this helps someone.
-
mredig almost 6 yearsthis worked for me between running the command on
xorg
andgdm3
(ubuntu 18) -
oscar1919 about 5 yearsworks also with lubuntu-desktop :)
-
Philippe Paré over 4 yearsworks also with gdm3 (gnome)
-
Hristo Atanasov over 4 yearsI hit
esc
key during boot to enter into recovery mode and login via terminal. Some useful info here wikihow.tech/Recover-Ubuntu -
LeandroLuk over 4 yearsTHIS SAVE ME!!!! xD
-
clickMe over 4 yearsI logged out of the i3 window manager and my gui crahsed. I hade the same issues as described in this questions. reinstalling i3 resolved them.
-
Prashant Zombade over 2 yearsIt worked like a charm. You saved my day. I had uninstalled python for some reason. After re