1

I am unable to login on Ubuntu 18.04 gnome desktop. I can login with Ctrl+Alt+F2 or F3.

  • First tried

    sudo apt-get update    
    sudo apt-get dist-upgrade
    
  • Then I deleted ~/.local

  • Then I reinstalled Ubuntu desktop and session as suggested in Login problem on 18.04 but there was no .Xauthority in my home directory.

  • Also renamed .config

Nothing helped.

Kulfy
  • 17,696
Thopras
  • 11
  • 3
  • Check you have some space in your $HOME (home directory), as temporary work files are created by the GUI, if there is insufficient space the login attempt fails & you are logged out (without message). Login via tty will work (as you describe, allowing you to check you have enough free space in $HOME) – guiverc Dec 19 '18 at 12:32
  • @guverc: /usr/bin/du -sh /home tells me 3,6G. – Thopras Dec 19 '18 at 12:42
  • So, that means there's login loop in GUI mode. Right? Have you rebooted the system after installation? Try using another desktop environment if listed by clicking on gear icon in login screen. – Kulfy Dec 19 '18 at 13:09
  • I also tried to login with wayland but currently I don't have this option. I think it disappeared after deleting .local or after renaming .config. I rebooted several times. This is not a fresh installation. – Thopras Dec 19 '18 at 13:31
  • Do you have more than one keyboard layout installed? There might be a little icon in the upper right corner which let's you select your keyboard layout. – unutbu Dec 19 '18 at 13:32
  • Sometimes it happens that it switches but I don't see the keyboard icon on the login screen. As far as I know I have only one language (german) installed. – Thopras Dec 19 '18 at 13:40
  • Try sudo apt install --reinstall ubuntu-desktop gnome-shell again. – Kulfy Dec 19 '18 at 13:47
  • I had a login loop a couple of days back, and also could not find the .Xauthority file. I fixed it by booting to a live USB, and running fsck on my disks - it turns out I had some corrupted inodes on my disk. – Charles Green Dec 19 '18 at 14:10
  • @Kulfy: Unfortunately reinstalling desktop didn't help either. – Thopras Dec 19 '18 at 14:53
  • I downloaded SUSE Leap 15 (gnome) and created a live system.

    After booting the suse life system from usb stick (EFI bios) there is the following error: "Oh no! Soemthing has gone wrong. A problem has occurred and the system cant't recover. Please log out and try again."

    After clicking on logout the login screen is shown with the "Live-CD User". Clicking on it leads me to the same login loop without showing a password field yeahh happy looping :-)

    – Thopras Dec 21 '18 at 10:00
  • Then try what Charles Green mentioned. – Kulfy Dec 21 '18 at 20:37
  • Kulfy, thank you for the suggestion. I ran fsck. No message. Then I installed lightdm but unsurprisingly still have the problem. – Thopras Dec 22 '18 at 14:53

0 Answers0