Can't log in to Ubuntu 12.04

Asked by Mszaryna

I was adding new workspace and switch to a new workspace, then I had no idea how to switch back to the first workspace I'm using. There's no panel on top of it, just a plain desktop. CTRL+ALT+RIGHT / LEFT won't work as well. I try to shutdown and log in again, but it keeps give me the log in screen though I'm giving the correct password. I even can't log in as guest either.

I did press CTRL + ALT + F1, login with username and password, but it seems that's the only thing I can do.
I try to run some other commands but it gave me the message 'the command could not be located because '/path/name' is not included in the PATH environment variable'

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu ubuntu-meta Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Mszaryna (mszaryna) said :
#1

After typing in password , this message displays on screen :
Stopping System V runlevel compatibilty

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#2

Hi ,

Follow this fix

1. When you are in login screen press Ctrl+alt+F2 to revert in Console Mode and login there.

2. Give this command first:

sudo service lightdm stop

3. then give this command:

sudo chown username:username ~/.Xauthority

Where username replace it with your actual username.

4. Then give this command to revert back to Login Screen

sudo service lightdm start

and try to login .

Thanks

Revision history for this message
Mszaryna (mszaryna) said :
#3

I tried the steps, still didn't work :(

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#4

Can you login from Guest account ?

If yes , then login and open a terminal

give the results of

ls -la /home/username (username = your actual username from corrupted account)

Thanks

Revision history for this message
Mszaryna (mszaryna) said :
#5

I doesn't work for guest account either. I couldn't log in till now.

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#6

On 09/15/2012 09:36 AM, Mszaryna wrote:
>
> Mszaryna gave more information on the question:
> I doesn't work for guest account either. I couldn't log in till now.
>

This is bad.

Do you remember if you encrypted your /home directory ?

Usually problems with login caused by wrong permissions on .Xauthority
file (is a hidden file so the dot at front of the word)

But as you said you tried that and not succeed.

Maybe a graphics card driver issue ? But no , if it was such problem ,
then probably you would not have even a Login Screen.

Weird problem . I expected that you could login from Guest account.

You can try to create a new user and see what happens.

Follow these steps from Console Mode.

1. sudo service lightdm stop

2. sudo useradd "username" <= this command will create a new user.

3. sudo usermod "username" -g sudo <= this command will make the user
administrator.

4. sudo service lightdm start

and try to login from the new user.

Where "username" replace it with the username you prefer.

Thanks

Revision history for this message
Mszaryna (mszaryna) said :
#7

I just did fresh install few days ago (10.10 ---> 12.04) and never encrypt the folder since then.

Everything goes just well, and it started goes wrong after I added one more workspace,

and then I switch to that new workspace.

Then, the desktop panel is gone, and I can't switch back to the first workspace, so I try reboot and log in, but fail.

Yeah, I added new account, still fail to log in :(

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#8

On 09/15/2012 10:21 AM, Mszaryna wrote:
> I just did fresh install few days ago (10.10 ---> 12.04) and never
> encrypt the folder since then.
>
> Everything goes just well, and it started goes wrong after I added one
> more workspace,
>
> and then I switch to that new workspace.
>
> Then, the desktop panel is gone, and I can't switch back to the first
> workspace, so I try reboot and log in, but fail.
>
> Yeah, I added new account, still fail to log in :(
>

Ok ,

lets try this command

from Console mode.. it will be get some time , 5-10 minutes , so be
patient.

1. sudo service lightdm stop <= I am not sure for this command , if the
2nd command not work then skip this command and execute the 2nd direct.

2. unity --reset

When about 10 minutes passed you can stop the command with Ctrl+C .

Then reboot.

Thanks

Revision history for this message
Mszaryna (mszaryna) said :
#9

This is what I got:

(log in as root)

1. service lightdm stop

It display this : lightdm stop/waiting

2. unity --reset

 It display this :

WARNING: no DISPLAY variable set, setting it to :0
(process:2048):GConf-WARNING **:Client failed to connect to the D-BUS daemon:
//bin/dbus-launch terminated abnormally with the following error:Autolaunch error: X11 initialization failed.

WARNING: environment is incorrect: No D-BUS daemon running

Did you just try to reset in a tty?
unity-panel-service : no process found
compiz(core) - Fatal: Couldn't open display :0

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#10

Can you give the output of:

lsb_release -a; echo $PATH

Thanks

Revision history for this message
Mszaryna (mszaryna) said :
#11

Output:
No LSB modules are available.
Distributor ID : Ubuntu
Description : Ubuntu 12.04 LTS
Release : 12.04
Codename : precise
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#12

here is my $PATH
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

Which is a LOT longer than yours.

Try
export PATH="/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
sudo service lightdm stop
sudo service lightdm start

HTH

Revision history for this message
Mszaryna (mszaryna) said :
#13

Still failed to log in :(
Anyway thanks for the fast reply, really appreciate the help :)
If I just format it, would it be okay perhaps?

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#14

On 09/15/2012 02:15 PM, Mszaryna wrote:
> Question #208637 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/208637
>
> Status: Answered => Open
>
> Mszaryna is still having a problem:
> Still failed to log in :(
> Anyway thanks for the fast reply, really appreciate the help :)
> If I just format it, would it be okay perhaps?
>

Yes , but your data ?
If you don't have any important data , then just re-install. After all ,
re-installing Ubuntu is about.. what?
15 minutes top.

Thanks

Can you help with this problem?

Provide an answer of your own, or ask Mszaryna for more information if necessary.

To post a message you must log in.