LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Password Login Loop, 16.04.1 LTS Xenial Xerus (https://www.linuxquestions.org/questions/ubuntu-63/password-login-loop-16-04-1-lts-xenial-xerus-4175589294/)

A/S-H 09-12-2016 05:21 PM

Password Login Loop, 16.04.1 LTS Xenial Xerus
 
My PC is an HP Pavilion 15-p264-na, Which uses an AMD A10 processor and an ATI Radeon 7620G GPU (Please correct me if I'm wrong). I'm still a rookie when it comes to Linux, but here goes:

I have recently upgraded from Ubuntu 14.04 LTS, and the PC is triple boot with Windows 10 and Kali Linux as well, with GRUB used for booting. I have not been able to log in Ubuntu with my usual account, although I can still access the Guest account. I have trawled for solutions but purging and reinstalling lightdm with the ctrl + alt + f1 and other function keys did not work.

There are some solutions and suggestions for Nvidia users whose problems were traced back to their drivers but unfortunately I have found barely anything on ATI.

Also, I have tried the Xauthority solution posted at:http://www.linuxslaves.com/2016/05/3...ogin-loop.html

but unfortunately Ubuntu cannot find an Xauthority file to begin with when I tried this. Please could anybody suggest ideas as to work around this? I can post error logs and the like to help if you can tell me how to generate them.

TxLonghorn 09-13-2016 06:32 AM

Quote:

Originally Posted by A/S-H (Post 5604298)
unfortunately Ubuntu cannot find an Xauthority file to begin with

Please note that there is no file named Xauthority, however there is a file named .Xauthority
Did you miss your . ?

A/S-H 09-14-2016 11:28 AM

Sorry I didn't mention earlier, no, I haven't forgotten the '.' before Xauthority. But it seems the problem here is that when I execute ls -lah in the terminal there is no line that ends with .Xauthority when there is supposed to be.

Emerson 09-14-2016 11:31 AM

This file will be created when X starts.

A/S-H 09-15-2016 06:35 PM

Does this happen automatically or do I have to run a different command? Because if it happens automatically I have yet to see a .Xauthority file. If it requires another method would you know how I would do it?

Emerson 09-15-2016 06:41 PM

It happens automatically, since it starts with a dot it is hidden in normal view. When Xorg exits it cleans up.

A/S-H 09-16-2016 04:02 PM

Thank you. But if it has automatically created a .Xauthority file and this is not acknowledged in the ctrl+alt+f3 terminal then would you have an idea of what should I do next?

portaro 09-16-2016 05:01 PM

Never do this type of upgrades because system can crash without any easy solution.

Around web I search this problem and If I remember well in past I have a similar problem , I think that the problem can be present to you by the lightdm maybe if your kill and restart the lightdm the login can go →

sudo service lightdm stop
sudo service lightdm start
try login

Or maybe
rm ~/.Xauthority
sudo killall Xorg
sudo service lightdm restart

Allways certify that you in on the /home /user

Try also a text mode login to see if startx report other messages.

And take a look here about lightdm → http://askubuntu.com/questions/22350...n-a-login-loop
chown username:username .Xauthority

I hope you can solve this.

jefro 09-16-2016 09:21 PM

Any logs to see that might say what is failing? When you say you can't log in that makes me wonder if user and not gui issue.

Can try to su to your normal user from terminal.

A/S-H 09-24-2016 04:48 PM

Sorry I haven't updated you in a while, I've been fairly busy this week.

I apologise as I foolishly overlooked that I hadn't cd'd my way into /home/user/ prior to doing chown user:user .Xauthority, and now the terminal does not return the message saying that .Xauthority does not exist, which is probably a good sign (correct me if I'm wrong).

Unfortunately this hasn't solved the problem; after restarting, I still get the same black screen with the single line mentioning the sda6 partition before looping back to the login screen. I have purged lightdm and will reinstall and reconfigure it when I can get Ubuntu connected to the Internet with an Ethernet cable, which I will do soon. As for the error log mentioned by jefro:
.Would a .xsession-errors log be appropiate?
.If yes, what is the exact command to bring up the log in the ctrl+alt+f3 terminal?
.Being unable to login, I won't be able to copy and paste it here in Ubuntu. Should I post a photo on this thread if that is possible?
.If .xsession-errors is not the right log, then are there others you would like to see?

Also, I don't know if this would help in any way, but I've noticed that after choosing Ubuntu in the GRUB menu, the screen cuts to black and it takes a long time to reach the login screen, usually around or over 1 minute. Does this have anything to do with the looping screen?

Thanks everybody for your patience.

TxLonghorn 09-24-2016 11:41 PM

Quote:

Originally Posted by A/S-H (Post 5609656)
.If yes, what is the exact command to bring up the log in the ctrl+alt+f3 terminal?
.Being unable to login, I won't be able to copy and paste it here in Ubuntu. Should I post a photo on this thread if that is possible?

If you get your internet connection, install pastebinit
Code:

sudo apt-get install pastebinit
Then run the command
Code:

pastebinit /home/user1/.xsession-errors
Post the resulting url link here.
It might be easier to do that from the gui in the guest account. Does the guest account have sudo access, as well?
If so, run
Code:

sudo chown -R user1:user1 /home/user1/
If not, go to tty3 (ctrl+alt+f3) and log in as user1 and give the guest account sudo privileges.
Code:

sudo adduser guest sudo

A/S-H 09-29-2016 02:16 PM

I am very sorry for wasting your time and effort, but I have been unable to connect to the Internet even with an Ethernet cable. I have tried other methods to do this but to no avail. So I have decided to reinstall Ubuntu as I reckon this would be a faster solution. I greatly appreciate all of your help and patience, and once again very sorry.

portaro 10-01-2016 03:40 PM

Quote:

Originally Posted by A/S-H (Post 5611685)
I am very sorry for wasting your time and effort, but I have been unable to connect to the Internet even with an Ethernet cable. I have tried other methods to do this but to no avail. So I have decided to reinstall Ubuntu as I reckon this would be a faster solution. I greatly appreciate all of your help and patience, and once again very sorry.

:) No problem friend we not lost our time when we try to help other people with problems like this. Unfortunately we cant help you to solve your problem and you take the other way , simple reinstall its a good option and is not a problem and dont represent any waste of our time .

Thanks for you, to put here your problem because other people maybe can have same problem so any question like this and others or problem is welcome to here - because with any related problem the community know him and then other people know this content and maybe can help or not.

Cheers.You are allways welcome here . :)


All times are GMT -5. The time now is 04:11 AM.