EDIT
What I tried
To solve problem #2 below
Logging into VT2 and running
$ startx -- :0
(or :1
) gives me
...
EE) Please also check the log file at "/home/user1/.local/share/xorg/Xorg.1.log" for additional...
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
and
$ cat /home/user1/.local/share/xorg/Xorg.1.log
...
[ 10263.352] (II) Loading /lib/x86_64-linux-gnu/nvidia/xorg/libglxserver_nvidia.so
[ 10263.357] (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
[ 10263.357] compiled for 1.6.99.901, module version = 1.0.0
[ 10263.357] Module class: X.Org Server Extension
[ 10263.357] (II) NVIDIA GLX Module 470.57.02 Tue Jul 13 16:10:58 UTC 2021
[ 10263.357] (EE)
[ 10263.357] (EE) Backtrace:
[ 10263.357] (EE) 0: /usr/lib/xorg/Xorg (OsLookupColor+0x13c) [0x55f4e294e60c]
[ 10263.357] (EE) 1: /lib/x86_64-linux-gnu/libpthread.so.0 (funlockfile+0x60) [0x7f9b646623c0]
[ 10263.357] (EE) 2: ? (?+0x0) [0x0]
[ 10263.357] (EE)
[ 10263.357] (EE) Segmentation fault at address 0x0
[ 10263.357] (EE)
Fatal server error:
[ 10263.357] (EE) Caught signal 11 (Segmentation fault). Server aborting
The problem(s)
Since just now, I booted (I will number this boot (-1
)) and I cannot log into a Gnome session. I have Ubuntu 20.04.3 LTS.
The problem: Entering my password, flashes the screen as it would do in a normal login to display my desktop, but instead it brings me back to the login screen.
Login fails with any of the two users (see below), so I guess it is not something related to any of the users, that I could solve by logging in in a console and mv ~/.config ~/.config-old
+ rebooting.
This is a timeline of what happened
(A) (B) (C) (D) (E)
work (-2) some login ok VT1 failed login VT1
normally tinkering both users both users
(F) (G) (H)
install (-1) failed login VT1 + No X VT2
libnvidia-gl-470 both users
and I will describe it next.
I was working normally
(A)
, rebooted(B) = (-2)
, and still working normally. I had only useruser1
that I used for everything.At
(C)
I created userguest
a couple of days ago, to test something about login screens (and the failure may be related to this). I was logged into a gnome session withuser1
in virtual terminal VT2 (Ctrl+Alt+F2) and I could work normally. I could log in normally with both users in VT1 (Ctrl+Alt+F1) as well. I was testing killing the sessions in VT1 withkillall -3 gnome-shell
and related commands, but still did not see any problem(D)
.At some point
(E)
I started seeing in VT1 the problem #1 above. I do not know what I did in between(D)
and(E)
, perhaps some of the commands tested generated the problem.(F)
Manually installedsudo apt install libnvidia-470-gl
. As far as I remember, the problem appeared before this.After sleeping the PC and resuming, it was frozen, so I cold booted it
(G) = (-1)
. I slept / hibernated / resumed the PC a few times before, in between(E)
and(G)
.Now
(H)
VT1 has problem #1, and VT2 only gives me a console, not an X session (problem #2).
So I have two terribly combined problems.
I mean to solve both.
Solving #2 could at least make it much easier working to solve #1, within an X session in the same PC that I have the problem.
Further possibly relevant info:
- Up until boot
(-1)
, VT2 was shown on startup, and this is my experience with all Ubuntu's I installed since a few years ago, probably all after the change of layout of X sessions / consoles). Now (the failing) VT1 is shown on startup.
Related
- Ubuntu gets stuck in a login loop
- Can't log to my Ubuntu session after power failure
- Can't log in to desktop
- https://www.linux.org/threads/ubuntu-wont-let-me-sign-in.26728/
- https://ubuntuforums.org/showthread.php?t=185555
- https://unix.stackexchange.com/questions/85383/how-to-start-a-second-x-session
/
and/home
.ls /usr/bin/*session
and update your question with the outpur. Then typesudo systemctl set-default graphical.target
and reboot.