Stuck in login loop on ubuntu, works on xubuntu












1















I was stuck in a login loop on ubuntu 18.04 and tried a lot of the answers from other questions to no avail. Like here and here regarding .xauthority, cleaning disk space etc.



Eventually I installed xubuntu and can log in through that. However when I try to login in via ubuntu again (through the dropdown on the login) it goes back to a loop. I then need to restart to even be able to login with xubuntu.



Any ideas how to get back to ubuntu instead of xubuntu? Or where to look for starting points?





EDIT: Unity actually works fine as well so I have swicthed to this










share|improve this question




















  • 3





    I'd start by looking at your ~/.xsession-errors file after an unsuccessful login attempt

    – steeldriver
    Jan 22 at 14:13











  • Not finding anything in there after attempted ubuntu login

    – KGee
    Jan 24 at 13:05
















1















I was stuck in a login loop on ubuntu 18.04 and tried a lot of the answers from other questions to no avail. Like here and here regarding .xauthority, cleaning disk space etc.



Eventually I installed xubuntu and can log in through that. However when I try to login in via ubuntu again (through the dropdown on the login) it goes back to a loop. I then need to restart to even be able to login with xubuntu.



Any ideas how to get back to ubuntu instead of xubuntu? Or where to look for starting points?





EDIT: Unity actually works fine as well so I have swicthed to this










share|improve this question




















  • 3





    I'd start by looking at your ~/.xsession-errors file after an unsuccessful login attempt

    – steeldriver
    Jan 22 at 14:13











  • Not finding anything in there after attempted ubuntu login

    – KGee
    Jan 24 at 13:05














1












1








1








I was stuck in a login loop on ubuntu 18.04 and tried a lot of the answers from other questions to no avail. Like here and here regarding .xauthority, cleaning disk space etc.



Eventually I installed xubuntu and can log in through that. However when I try to login in via ubuntu again (through the dropdown on the login) it goes back to a loop. I then need to restart to even be able to login with xubuntu.



Any ideas how to get back to ubuntu instead of xubuntu? Or where to look for starting points?





EDIT: Unity actually works fine as well so I have swicthed to this










share|improve this question
















I was stuck in a login loop on ubuntu 18.04 and tried a lot of the answers from other questions to no avail. Like here and here regarding .xauthority, cleaning disk space etc.



Eventually I installed xubuntu and can log in through that. However when I try to login in via ubuntu again (through the dropdown on the login) it goes back to a loop. I then need to restart to even be able to login with xubuntu.



Any ideas how to get back to ubuntu instead of xubuntu? Or where to look for starting points?





EDIT: Unity actually works fine as well so I have swicthed to this







18.04 xubuntu login login-screen






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 24 at 15:26







KGee

















asked Jan 22 at 13:46









KGeeKGee

1086




1086








  • 3





    I'd start by looking at your ~/.xsession-errors file after an unsuccessful login attempt

    – steeldriver
    Jan 22 at 14:13











  • Not finding anything in there after attempted ubuntu login

    – KGee
    Jan 24 at 13:05














  • 3





    I'd start by looking at your ~/.xsession-errors file after an unsuccessful login attempt

    – steeldriver
    Jan 22 at 14:13











  • Not finding anything in there after attempted ubuntu login

    – KGee
    Jan 24 at 13:05








3




3





I'd start by looking at your ~/.xsession-errors file after an unsuccessful login attempt

– steeldriver
Jan 22 at 14:13





I'd start by looking at your ~/.xsession-errors file after an unsuccessful login attempt

– steeldriver
Jan 22 at 14:13













Not finding anything in there after attempted ubuntu login

– KGee
Jan 24 at 13:05





Not finding anything in there after attempted ubuntu login

– KGee
Jan 24 at 13:05










1 Answer
1






active

oldest

votes


















1














Is it possible you've installed a display manager that isn't compatible with your graphics drivers? I've read that 18.04/18.10 has been causing a lot of trouble in regards to booting up/entering desktop, although more specifically for Nvidia graphics cards. You could try entering recovery mode to change the default display manager there, or if you're using Nvidia trying different Nouveau settings in GRUB (nouveau.modeset=0 or nomodeset).





In reply to your comment: the steps to take for a graphics problem is in the latter half. I actually just ran into the same exact issue as you after installing and subsequently uninstalling sddm. Unfortunately I didn't document the solution/process well enough to know what fixed it, so this is a shotgun approach.



Try these to fix the login issue:



Preface: my desktop environment is Plasma/KDE. Trying Gnome or Gnome with Wayland would kick me out too. When I tried KDE, it showed an error saying it couldn't write to, I believe .Xauthority or .ICEauthority, in my home folder. Here's what I tried:





  • At the login screen, open TTY with ctrl + alt + F6. (Once done with it you can leave with ctrl + alt + F1). For viewing/editing text in console I prefer using sudo nano datfile.





    • sudo apt install ubuntu-desktop. I think it's possible that sddm overwrote/edited essential files to desktop management. You should try



      sudo apt install ubuntu-desktop -f -y --reinstall --fix-missing



      as ubuntu-desktop is an essential package for your distro and it wouldn't install a package already there. Afterwards, run `



    • ubuntu-desktop isn't an essential package for my distro, but it might've helped. You can also try installing kubuntu-desktop as an alternative.


    • Take control of files related to desktop management with chown. Specifically .Xauthority and .ICEauthority in your home folder. You can try sudo chown username:username file.





I suggest taking a look at the manuals related to your issue: man startx, man xterm, man chown. You can try taking ownership of files man startx mention. If possible, posting your xsession_errors log located in your home folder may help.



These are the steps to take if it's a graphics drivers issue:



try these in the order they're in to see if it's solved.




  • Type in sudo nano /etc/default/grub to begin editing GRUB.

  • Look for the line that says quiet splash. Add nouveau.modeset=0 to the end of that, within the quotes. Press ctrl + O to write it out, then enter to save it. Ctrl + X to exit, sudo upgrade-grub to really save it. Reboot.

  • Open TTY and run `sudo apt remove nvidia* --purge -f -y". Reboot.

  • Add the proprietary gfx PPA with:



sudo add-apt-repository ppa:graphics-drivers/ppa



sudo apt-get update




In terminal, run ubuntu-drivers devices and it should spit out the apt packages that you can try installing, such as nvidia-driver-390. Install nvidia-settings as well, then reboot.






share|improve this answer


























  • I think you may be correct, I am using an integrated Intel graphics controller. Do you know how to check if there are any incompatibilities? Sorry I am fairly new to this...

    – KGee
    Jan 24 at 12:44











  • You could try reading your /var/log/syslog for anything odd. I edited the original answer with some solutions you can try.

    – avisitoritseems
    Feb 14 at 8:07











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1111966%2fstuck-in-login-loop-on-ubuntu-works-on-xubuntu%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Is it possible you've installed a display manager that isn't compatible with your graphics drivers? I've read that 18.04/18.10 has been causing a lot of trouble in regards to booting up/entering desktop, although more specifically for Nvidia graphics cards. You could try entering recovery mode to change the default display manager there, or if you're using Nvidia trying different Nouveau settings in GRUB (nouveau.modeset=0 or nomodeset).





In reply to your comment: the steps to take for a graphics problem is in the latter half. I actually just ran into the same exact issue as you after installing and subsequently uninstalling sddm. Unfortunately I didn't document the solution/process well enough to know what fixed it, so this is a shotgun approach.



Try these to fix the login issue:



Preface: my desktop environment is Plasma/KDE. Trying Gnome or Gnome with Wayland would kick me out too. When I tried KDE, it showed an error saying it couldn't write to, I believe .Xauthority or .ICEauthority, in my home folder. Here's what I tried:





  • At the login screen, open TTY with ctrl + alt + F6. (Once done with it you can leave with ctrl + alt + F1). For viewing/editing text in console I prefer using sudo nano datfile.





    • sudo apt install ubuntu-desktop. I think it's possible that sddm overwrote/edited essential files to desktop management. You should try



      sudo apt install ubuntu-desktop -f -y --reinstall --fix-missing



      as ubuntu-desktop is an essential package for your distro and it wouldn't install a package already there. Afterwards, run `



    • ubuntu-desktop isn't an essential package for my distro, but it might've helped. You can also try installing kubuntu-desktop as an alternative.


    • Take control of files related to desktop management with chown. Specifically .Xauthority and .ICEauthority in your home folder. You can try sudo chown username:username file.





I suggest taking a look at the manuals related to your issue: man startx, man xterm, man chown. You can try taking ownership of files man startx mention. If possible, posting your xsession_errors log located in your home folder may help.



These are the steps to take if it's a graphics drivers issue:



try these in the order they're in to see if it's solved.




  • Type in sudo nano /etc/default/grub to begin editing GRUB.

  • Look for the line that says quiet splash. Add nouveau.modeset=0 to the end of that, within the quotes. Press ctrl + O to write it out, then enter to save it. Ctrl + X to exit, sudo upgrade-grub to really save it. Reboot.

  • Open TTY and run `sudo apt remove nvidia* --purge -f -y". Reboot.

  • Add the proprietary gfx PPA with:



sudo add-apt-repository ppa:graphics-drivers/ppa



sudo apt-get update




In terminal, run ubuntu-drivers devices and it should spit out the apt packages that you can try installing, such as nvidia-driver-390. Install nvidia-settings as well, then reboot.






share|improve this answer


























  • I think you may be correct, I am using an integrated Intel graphics controller. Do you know how to check if there are any incompatibilities? Sorry I am fairly new to this...

    – KGee
    Jan 24 at 12:44











  • You could try reading your /var/log/syslog for anything odd. I edited the original answer with some solutions you can try.

    – avisitoritseems
    Feb 14 at 8:07
















1














Is it possible you've installed a display manager that isn't compatible with your graphics drivers? I've read that 18.04/18.10 has been causing a lot of trouble in regards to booting up/entering desktop, although more specifically for Nvidia graphics cards. You could try entering recovery mode to change the default display manager there, or if you're using Nvidia trying different Nouveau settings in GRUB (nouveau.modeset=0 or nomodeset).





In reply to your comment: the steps to take for a graphics problem is in the latter half. I actually just ran into the same exact issue as you after installing and subsequently uninstalling sddm. Unfortunately I didn't document the solution/process well enough to know what fixed it, so this is a shotgun approach.



Try these to fix the login issue:



Preface: my desktop environment is Plasma/KDE. Trying Gnome or Gnome with Wayland would kick me out too. When I tried KDE, it showed an error saying it couldn't write to, I believe .Xauthority or .ICEauthority, in my home folder. Here's what I tried:





  • At the login screen, open TTY with ctrl + alt + F6. (Once done with it you can leave with ctrl + alt + F1). For viewing/editing text in console I prefer using sudo nano datfile.





    • sudo apt install ubuntu-desktop. I think it's possible that sddm overwrote/edited essential files to desktop management. You should try



      sudo apt install ubuntu-desktop -f -y --reinstall --fix-missing



      as ubuntu-desktop is an essential package for your distro and it wouldn't install a package already there. Afterwards, run `



    • ubuntu-desktop isn't an essential package for my distro, but it might've helped. You can also try installing kubuntu-desktop as an alternative.


    • Take control of files related to desktop management with chown. Specifically .Xauthority and .ICEauthority in your home folder. You can try sudo chown username:username file.





I suggest taking a look at the manuals related to your issue: man startx, man xterm, man chown. You can try taking ownership of files man startx mention. If possible, posting your xsession_errors log located in your home folder may help.



These are the steps to take if it's a graphics drivers issue:



try these in the order they're in to see if it's solved.




  • Type in sudo nano /etc/default/grub to begin editing GRUB.

  • Look for the line that says quiet splash. Add nouveau.modeset=0 to the end of that, within the quotes. Press ctrl + O to write it out, then enter to save it. Ctrl + X to exit, sudo upgrade-grub to really save it. Reboot.

  • Open TTY and run `sudo apt remove nvidia* --purge -f -y". Reboot.

  • Add the proprietary gfx PPA with:



sudo add-apt-repository ppa:graphics-drivers/ppa



sudo apt-get update




In terminal, run ubuntu-drivers devices and it should spit out the apt packages that you can try installing, such as nvidia-driver-390. Install nvidia-settings as well, then reboot.






share|improve this answer


























  • I think you may be correct, I am using an integrated Intel graphics controller. Do you know how to check if there are any incompatibilities? Sorry I am fairly new to this...

    – KGee
    Jan 24 at 12:44











  • You could try reading your /var/log/syslog for anything odd. I edited the original answer with some solutions you can try.

    – avisitoritseems
    Feb 14 at 8:07














1












1








1







Is it possible you've installed a display manager that isn't compatible with your graphics drivers? I've read that 18.04/18.10 has been causing a lot of trouble in regards to booting up/entering desktop, although more specifically for Nvidia graphics cards. You could try entering recovery mode to change the default display manager there, or if you're using Nvidia trying different Nouveau settings in GRUB (nouveau.modeset=0 or nomodeset).





In reply to your comment: the steps to take for a graphics problem is in the latter half. I actually just ran into the same exact issue as you after installing and subsequently uninstalling sddm. Unfortunately I didn't document the solution/process well enough to know what fixed it, so this is a shotgun approach.



Try these to fix the login issue:



Preface: my desktop environment is Plasma/KDE. Trying Gnome or Gnome with Wayland would kick me out too. When I tried KDE, it showed an error saying it couldn't write to, I believe .Xauthority or .ICEauthority, in my home folder. Here's what I tried:





  • At the login screen, open TTY with ctrl + alt + F6. (Once done with it you can leave with ctrl + alt + F1). For viewing/editing text in console I prefer using sudo nano datfile.





    • sudo apt install ubuntu-desktop. I think it's possible that sddm overwrote/edited essential files to desktop management. You should try



      sudo apt install ubuntu-desktop -f -y --reinstall --fix-missing



      as ubuntu-desktop is an essential package for your distro and it wouldn't install a package already there. Afterwards, run `



    • ubuntu-desktop isn't an essential package for my distro, but it might've helped. You can also try installing kubuntu-desktop as an alternative.


    • Take control of files related to desktop management with chown. Specifically .Xauthority and .ICEauthority in your home folder. You can try sudo chown username:username file.





I suggest taking a look at the manuals related to your issue: man startx, man xterm, man chown. You can try taking ownership of files man startx mention. If possible, posting your xsession_errors log located in your home folder may help.



These are the steps to take if it's a graphics drivers issue:



try these in the order they're in to see if it's solved.




  • Type in sudo nano /etc/default/grub to begin editing GRUB.

  • Look for the line that says quiet splash. Add nouveau.modeset=0 to the end of that, within the quotes. Press ctrl + O to write it out, then enter to save it. Ctrl + X to exit, sudo upgrade-grub to really save it. Reboot.

  • Open TTY and run `sudo apt remove nvidia* --purge -f -y". Reboot.

  • Add the proprietary gfx PPA with:



sudo add-apt-repository ppa:graphics-drivers/ppa



sudo apt-get update




In terminal, run ubuntu-drivers devices and it should spit out the apt packages that you can try installing, such as nvidia-driver-390. Install nvidia-settings as well, then reboot.






share|improve this answer















Is it possible you've installed a display manager that isn't compatible with your graphics drivers? I've read that 18.04/18.10 has been causing a lot of trouble in regards to booting up/entering desktop, although more specifically for Nvidia graphics cards. You could try entering recovery mode to change the default display manager there, or if you're using Nvidia trying different Nouveau settings in GRUB (nouveau.modeset=0 or nomodeset).





In reply to your comment: the steps to take for a graphics problem is in the latter half. I actually just ran into the same exact issue as you after installing and subsequently uninstalling sddm. Unfortunately I didn't document the solution/process well enough to know what fixed it, so this is a shotgun approach.



Try these to fix the login issue:



Preface: my desktop environment is Plasma/KDE. Trying Gnome or Gnome with Wayland would kick me out too. When I tried KDE, it showed an error saying it couldn't write to, I believe .Xauthority or .ICEauthority, in my home folder. Here's what I tried:





  • At the login screen, open TTY with ctrl + alt + F6. (Once done with it you can leave with ctrl + alt + F1). For viewing/editing text in console I prefer using sudo nano datfile.





    • sudo apt install ubuntu-desktop. I think it's possible that sddm overwrote/edited essential files to desktop management. You should try



      sudo apt install ubuntu-desktop -f -y --reinstall --fix-missing



      as ubuntu-desktop is an essential package for your distro and it wouldn't install a package already there. Afterwards, run `



    • ubuntu-desktop isn't an essential package for my distro, but it might've helped. You can also try installing kubuntu-desktop as an alternative.


    • Take control of files related to desktop management with chown. Specifically .Xauthority and .ICEauthority in your home folder. You can try sudo chown username:username file.





I suggest taking a look at the manuals related to your issue: man startx, man xterm, man chown. You can try taking ownership of files man startx mention. If possible, posting your xsession_errors log located in your home folder may help.



These are the steps to take if it's a graphics drivers issue:



try these in the order they're in to see if it's solved.




  • Type in sudo nano /etc/default/grub to begin editing GRUB.

  • Look for the line that says quiet splash. Add nouveau.modeset=0 to the end of that, within the quotes. Press ctrl + O to write it out, then enter to save it. Ctrl + X to exit, sudo upgrade-grub to really save it. Reboot.

  • Open TTY and run `sudo apt remove nvidia* --purge -f -y". Reboot.

  • Add the proprietary gfx PPA with:



sudo add-apt-repository ppa:graphics-drivers/ppa



sudo apt-get update




In terminal, run ubuntu-drivers devices and it should spit out the apt packages that you can try installing, such as nvidia-driver-390. Install nvidia-settings as well, then reboot.







share|improve this answer














share|improve this answer



share|improve this answer








edited Feb 14 at 8:05

























answered Jan 22 at 14:11









avisitoritseemsavisitoritseems

10110




10110













  • I think you may be correct, I am using an integrated Intel graphics controller. Do you know how to check if there are any incompatibilities? Sorry I am fairly new to this...

    – KGee
    Jan 24 at 12:44











  • You could try reading your /var/log/syslog for anything odd. I edited the original answer with some solutions you can try.

    – avisitoritseems
    Feb 14 at 8:07



















  • I think you may be correct, I am using an integrated Intel graphics controller. Do you know how to check if there are any incompatibilities? Sorry I am fairly new to this...

    – KGee
    Jan 24 at 12:44











  • You could try reading your /var/log/syslog for anything odd. I edited the original answer with some solutions you can try.

    – avisitoritseems
    Feb 14 at 8:07

















I think you may be correct, I am using an integrated Intel graphics controller. Do you know how to check if there are any incompatibilities? Sorry I am fairly new to this...

– KGee
Jan 24 at 12:44





I think you may be correct, I am using an integrated Intel graphics controller. Do you know how to check if there are any incompatibilities? Sorry I am fairly new to this...

– KGee
Jan 24 at 12:44













You could try reading your /var/log/syslog for anything odd. I edited the original answer with some solutions you can try.

– avisitoritseems
Feb 14 at 8:07





You could try reading your /var/log/syslog for anything odd. I edited the original answer with some solutions you can try.

– avisitoritseems
Feb 14 at 8:07


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1111966%2fstuck-in-login-loop-on-ubuntu-works-on-xubuntu%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Can I use Tabulator js library in my java Spring + Thymeleaf project?