2

I'm trying to install a .deb package in Natty using gdebi package installer:

gdebi package installer

But when I click "Install", the following error message comes up:

Error message

Also, when I try to install anything from the Software Center, nothing happens. I'm guessing this is related to the above error.

Could someone please help me out with this?

EDIT: My home folder does not have a .Xauthority file.

Jorge Castro
  • 73,717

2 Answers2

5

Please check the permission, user name and user group of .Xauthority

ls -la ~/.Xauthority

It needs to be owned by you and the permissions should be -rw-------
To alter name and group:

sudo chown youruser:youruser ~/.Xauthority

To alter persmission to -rw-------
chmod u+rw ~/.Xauthority

(Replace youruser by your username.)

If this is the cause: Did you install anything prior to this package or issue sudo commands? There are some things in the past that I saw messing up the permission for this file. Notably things like samba, sudo ssh.

Fabby
  • 35,017
Rinzwind
  • 309,379
0

Here is what I found by simple Googling,

First make sure that users .Xauthority file is present in their home directory and make sure it has the correct permissions. running ls -l /home/username/.Xauthority should result in this output:

-rw------- 1 username username 319 2008-08-22 19:35 .Xauthority

If it doesn't look like that, you may have to change the ownership and permissions manually: sudo chmod 600 /home/username/.Xauthority sudo chown username:username /home/user/.Xauthority Be sure to change all instances of username to the correct username.

Credits eightmillion

puneet
  • 1,302