Advertising

Author Topic: Cant boot to GUI  (Read 666 times)

Offline Irets

  • Newbie
  • *
  • Posts: 16
Cant boot to GUI
« on: November 02, 2018, 02:44:00 pm »
Hi,
I have SparkyLinux 5 x86_64 "rolling" installed with the latest sparky kernel, and after the latest upgrade, I cant boot into GUI at all.
I just boots into CLI but after a longer wait than usual, if I was booting to my desktop.
I had the lxqt-desktop installed with openbox as my window manager.
I'm stuck at CLI and dont know how to get back to my desktop.
Here are some screenshots I took with my phone, so the quality is a bit blurry.
There seems to be a problem with openbox and/or Xserver
I also have Nvidia's proprietary driver installed.
Typing "echo $DISPLAY" doesn't print out anything.
I can provide you more info about my system/problem by replying to you.
This is really urgent because I cant use the machine for basic tasks currently at all.


Examples of the problem:
https://i.imgur.com/ipXRWBx.jpg
https://i.imgur.com/Wy6NBem.jpg
https://i.imgur.com/eADABwq.jpg
Pictures from .xsession-errors
https://i.imgur.com/Hja1ENS.jpg
https://i.imgur.com/0SQTN6j.jpg
« Last Edit: November 02, 2018, 09:27:01 pm by Irets »

Offline paxmark1

  • Sr. Member
  • ****
  • Posts: 457
Re: Cant boot to GUI
« Reply #1 on: November 02, 2018, 10:49:17 pm »
First try Ctl-Alt-F7 to see if you get X back,  probably not.  Ctl-Alt F1 will get you back to vt1 (virtual terminal 1)

I had a stuck apt full-upgrade on an xorg - binary.  Can't remember what it was.

If you do command line, "dpkg --configure -a" is pretty safe, if errors messages appear, please copy via Ctl-Shift-C from terminal and post errors (if possible).

There has been a change in "su" awhile back (sbin versus bin blah blah blah) 

If you are in command line - then as root try "su - root" instead of "su root"  That is what made my stuck upgrade progress.  "dpkg --configure -a" did not solve my problem this time.  relogging in as "su - root" worked for me.  If not wait for someone else to post methods that use Aptus or synaptic. 

There has been some writing about the su - root change, but it is hard to follow.  One recent post of unstable debian users helped me a little in understanding it better, but I am still not sure about the "why's"   



Don't make a FrankenDebian

Offline hedon

  • Newbie
  • *
  • Posts: 31
Re: Cant boot to GUI
« Reply #2 on: November 02, 2018, 11:38:54 pm »
WHat happens if you start the desktop manager from the CLI?  At the prompt type

Code: [Select]
sddmor perhaps
Code: [Select]
lightdm
Do either of those invoke your GUI login manager?

Offline Irets

  • Newbie
  • *
  • Posts: 16
Re: Cant boot to GUI
« Reply #3 on: November 03, 2018, 12:17:35 am »
Hi and thank you for your replies.

I tried the CTRL-ALT-F7 button combo but nothing happens.
I also tried doing "sudo dpkg --configure -a", but I don't think it did anything.
It finished the command as soon as I hit enter and nothing appeared on screen about the command actually being run, which is weird.
I've read that other people have had that same issue too, when they've gotten stuck at the CLI.
I still did a few test commands with dpkg to see if it was working with other commands, like reading the --version and --help.
It worked just fine.

I managed to get in as root by typing "su - root" and did the following commands:
sudo apt-get update
sudo apt-get upgrade
sudo dpkg --configure -a
lightdm
sddm
sudo lightdm
sudo sddm

It behaved exactly like it would have if I would have instead done "su root", and repeated those same commands.

Also now that I start thinking, I think that the last update freed like ~200mb of disk space, is that normal?
One possibility is that it might have deleted something but failed to bring back the updated version of it?
Like some random individual files that could cause a problem of this sorts?
Atleast the core system is stable and working, so I dont think any important system files are missing.

Typing in sddm or lightdm just says "unknown command".

« Last Edit: November 03, 2018, 12:26:14 am by Irets »

Offline paxmark1

  • Sr. Member
  • ****
  • Posts: 457
Re: Cant boot to GUI
« Reply #4 on: November 03, 2018, 04:10:15 pm »
Note:  You should not need to use "sudo" when logged in as root.  "sudo" is used when you are in a normal terminal and you want root permissions when logged in as a normal user.   

When "dpkg --configure -a"  gives no response, that means it could not find any partially configured packages.  That is a good response. 

"Other people had that same issue too."         Where - what irc or forum?  When, was it in the last few days?  What OS if different than Debian (Sparky)  What DE if different than lxqt?   

Do you have any holds on packages?  Either via pinning or apt-mark hold?  (If you do not know you probably do not.)

My short glitch with xorg was in i386 Atom sparky been rolling for a couple of years in lxqt. 

I just did apt full-upgrade in my Virtual amd64 sparky lxqt to try to replicate.  No luck replicating. 

Is your xorg-server version 2:1.20.3-1  or   2:1.20.2-1   ?           

Is your xorg 1:7.7+19      ?

edit   To investigate whether it is sddm or lightdm  and if active I would use something like

systemctl status lightdm

and
systemctl status sddm.     One or the other should come up during the boot process.  My guess is that it is lightdm.  A little green square and a green "active (running) will indicate if it is working.
« Last Edit: November 03, 2018, 05:23:55 pm by paxmark1 »
Don't make a FrankenDebian

Offline Irets

  • Newbie
  • *
  • Posts: 16
Re: Cant boot to GUI
« Reply #5 on: November 03, 2018, 05:00:40 pm »
I was browsing links from google search results when I was googling about my problem, before I posted on this forum.
They told the original poster to do "dpkg --configure -a", and for some it gave no response. (cant remember which site this was on and what configuration he had)
Then the original poster replied to someone and asked for a "fix" for why there was no response, so I thought it was a problem and I didn't do any more research on the reasons why he didn't get any reply.
Thanks for clearing that out, I thought there was a some kind of an "issue" with dpkg too.
Didn't know it was a good thing that it doesn't give any reply.

About the xorg-server and xorg, how can I check their versions?
I typed "xorg" and hit tab to see available commands and there were none.
I also tried some variations of it, like "Xorg", "X-org" and such.

I dont think that I have any packets on "hold", because I don't know what it even means or does.
I'm not super experienced user and this CLI stuff is still a bit new to me, as i'm used to doing most things through a GUI.

edit:
Here are the results from
systemctl status lightdm
systemctl status sddm
https://i.imgur.com/e7lkfEO.jpg
The little square is red.
« Last Edit: November 03, 2018, 05:35:34 pm by Irets »

Offline Irets

  • Newbie
  • *
  • Posts: 16
Re: Cant boot to GUI
« Reply #6 on: November 04, 2018, 01:53:09 am »
After browsing Arch forums, I got the idea to try starting lightdm manually by using "sudo systemctl start lightdm", but with no success.
https://i.imgur.com/MDsXpXg.jpg
Contents of "sudo journalctl -xe":
https://i.imgur.com/SjDOJqQ.jpg
There doesn't seem to be much useful information.

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1927
    • SparkyLinux
Re: Cant boot to GUI
« Reply #7 on: November 04, 2018, 09:38:28 pm »
Do you have active internet connetction at cli?
Test via:
Code: [Select]
sudo ping -c 1 google.comIf yes, try to install different login manager, I suggest slim:
Code: [Select]
sudo apt update
sudo apt install slim
Then choose slim as default and restart:
Code: [Select]
sudo reboot
Nothing is easy as it looks.
Danielle Steel

Offline Irets

  • Newbie
  • *
  • Posts: 16
Re: Cant boot to GUI
« Reply #8 on: November 04, 2018, 09:47:55 pm »
I browsed the internet through lynx so I should have connection.
When I install slim, do I get to keep my lxqt desktop and my programs?
When slim is installed, how can I choose it as default?

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1927
    • SparkyLinux
Re: Cant boot to GUI
« Reply #9 on: November 04, 2018, 11:52:52 pm »
If you have internet connection, simply install slim as I posted befor.
During installation proces, you will be asked what session manager you want to use as default, so choose slim, then reboot.
If everything ok, the system will display slim instead of lightdm, which lets you log in to your desktop.
Just try.
Nothing is easy as it looks.
Danielle Steel

Offline Irets

  • Newbie
  • *
  • Posts: 16
Re: Cant boot to GUI
« Reply #10 on: November 05, 2018, 12:21:53 am »
I got slim installed and set it as default login manager but unfortunately I still get booted to CLI.
The only difference is that now it says "A start job is running for Network manager Wait Online (seconds / no limit) when booting.
After that the CLI shows up.

Here's the output of "systemctl status slim"
https://i.imgur.com/DjbFSq4.jpg
It shows the same small red square on the top left of the screen, just like with lightdm when I ran that same command previously in this thread.

edit:
If I try to run slim manually by typing "sudo slim" It prints the following error:
Code: [Select]
/usr/bin/X11/xauth:   file /var/run/slim.auth does not exist
« Last Edit: November 05, 2018, 07:39:06 am by Irets »

Offline Irets

  • Newbie
  • *
  • Posts: 16
Re: Cant boot to GUI
« Reply #11 on: November 05, 2018, 04:14:18 pm »
I did "systemctl status slim" again and this time it has more text.
https://i.imgur.com/LeqkWBi.jpg
Also I checked if the file really was missing, but its not.
https://i.imgur.com/al5xP8v.jpg

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1927
    • SparkyLinux
Re: Cant boot to GUI
« Reply #12 on: November 05, 2018, 08:23:21 pm »
The first screenshot says that it can not find /usr/bin/X so try to reinstall it:
Code: [Select]
sudo apt update
sudo apt install --reinstall xorg xserver-xorg xserver-xorg-core
or install it back if not installed:
Code: [Select]
sudo apt update
sudo apt install xorg xserver-xorg xserver-xorg-core
then reboot.
« Last Edit: November 05, 2018, 10:30:51 pm by pavroo »
Nothing is easy as it looks.
Danielle Steel

Offline Irets

  • Newbie
  • *
  • Posts: 16
Re: Cant boot to GUI
« Reply #13 on: November 05, 2018, 10:51:33 pm »
After doing
Code: [Select]
sudo apt update
sudo apt install --reinstall xorg
I rebooted but the CLI still shows up.
Here's what the CLI login looks like after it has finished booting.
https://i.imgur.com/l4IdZoL.jpg
You can see the login field at the top left between the letters.
I used neofetch to clear the screen the screen of text after logging in.
Using "clear" brings back the text and then I have to clear it again with some terminal program which outputs empty lines, like neofetch or just by typing "ls" a couple of times.

Using "sudo lightdm" brings me to an empty CLI but with a higher pixel density and with no input or output.
I can go back and return to it using CTRL+ALT+F7 - F1 buttons.
Here's what came up on the regular CLI when I returned to it.
https://i.imgur.com/sd9B3zm.jpg
Here's what shows up when I type "sudo slim"
I had to take multiple pictures so I'll post them in the same order as the text goes.
(1)
https://i.imgur.com/L3gxPWf.jpg
(2)
https://i.imgur.com/dIZOQxn.jpg
Contents of Xorg.0.log
(1)
https://i.imgur.com/zClGn2w.jpg
(2)
https://i.imgur.com/VxMLBJL.jpg
(3)
https://i.imgur.com/zZ1WhY6.jpg
« Last Edit: November 05, 2018, 10:55:23 pm by Irets »

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1927
    • SparkyLinux
Re: Cant boot to GUI
« Reply #14 on: November 05, 2018, 11:18:32 pm »
I have edited my last post, there are 3 packages to be reinstalled.
Nothing is easy as it looks.
Danielle Steel