Unable to copy the user's Xauthorization file

Asked by Sabian Purnama on 2011-07-18

Help please..i can start my update manager but can't run the updating..
In synaptic manager, i evan can not start it. In the dialog box written:

Failed to run /usr/sbin/synaptic as user root.
Unable to copy the user's Xauthorization file

What can i do now?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gksu Edit question
Assignee:
No assignee Edit question
Solved by:
Sabian Purnama
Solved:
2011-10-20
Last query:
2011-10-20
Last reply:
2011-10-17

Please open a Terminal window (Ctrl+Alt+T or Applications > Accessories > Terminal) and run this command:

lsb_release -a; echo; df -h; echo; groups

Then select all the text in the Terminal (Edit > Select All), copy it to the clipboard (Edit > Copy), and paste it here.

Correction--please run this similar command instead:

lsb_release -a; echo; df -h; echo; groups; echo; ls -l ~/.X*

That will give more information relevant to this problem.

By the way, the best way to run this command is to copy it to the clipboard and paste it into the Terminal. That way, it's fast and easy and no typos are introduced.

Launchpad Janitor (janitor) said : #3

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.

Are you still experiencing this problem? If so, please provide the information I requested in post #2 (as numbered at https://answers.launchpad.net/ubuntu/+source/gksu/+question/165180), or explain whatever difficulties you're experiencing producing that information.

Sabian Purnama (s4b1an) said : #5

I'm having the same problem.. after typing
lsb_release -a; echo; df -h; echo; groups; echo; ls -l ~/.X*
i got:

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty

Sistem Berkas Besar Isi Sisa Isi%% Dipasang di
/dev/sda6 25G 5,6G 18G 24% /
none 421M 672K 421M 1% /dev
none 428M 18M 411M 5% /dev/shm
none 428M 236K 428M 1% /var/run
none 428M 0 428M 0% /var/lock
/dev/sda5 266G 201G 52G 80% /home
/dev/loop0 674M 674M 0 100% /media/cdrom

sabianpurnama adm dialout fax cdrom floppy tape dip video plugdev fuse lpadmin admin sambashare

ls: cannot access /home/sabianpurnama/.X*: no file or folder as such *i translate it from indonesian language

When you try to update in the Update Manager and you cannot, what does happen? Are there error messages?

How are you starting Synaptic?

Sabian Purnama (s4b1an) said : #7

I failed when trying to open synaptic manager:

Failed to run /usr/sbin/synaptic as user root.

Unable to copy the user's Xauthorization file.

When i try to upgrade to ubuntu 11.10 through update manager, it says:

Failed to run sh /media/cdrom/cdromupgrade as user root.

Unable to copy the user's Xauthorization file.

Sabian Purnama (s4b1an) said : #8

I start my synaptic through search application window in left desktop (unity)

Do you get the same error if you press Alt+F2 and run the command

gksu xclock

?

Sabian Purnama (s4b1an) said : #10

No, i can run gksu xclock

I can upgrade to ubuntu 11.10 too through Alt+F2 update-manager -d (not through the left window shortcut app in my desktop)

But why i can't do it through making the ISO as a drive?? it says if i run gksu "sh /media/cdrom/cdromupgrade"

Failed to run sh /media/cdrom/cdromupgrade as user root.
Unable to copy the user's Xauthorization file.

Sabian Purnama (s4b1an) said : #11

i've upgraded and the problem doesn't exist anymore :)