在 Ubuntu 上启动 Eclipse 的权限被拒绝
我刚刚在 ubuntu 11.10 计算机上安装了 Indigo (Eclipse),并在尝试从终端启动 Eclipse 时收到权限被拒绝错误。
ls -l /usr/lib/ | grep eclipse
我
drwxr-sr-x 9 root ben 4096 2011-10-13 12:10 eclipse_indigo
尝试 sudo chmod 755 eclipse_indigo 却无济于事。 任何其他建议将不胜感激。
strace /usr/lib/eclipse_indigo
产量
execve("/usr/lib/eclipse_indigo/", ["/usr/lib/eclipse_indigo/"], [/* 74 vars */]) = -1 EACCES (Permission denied)
dup(2) = 3
fcntl(3, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fcabfef8000
lseek(3, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
write(3, "strace: exec: Permission denied\n", 32strace: exec: Permission denied
) = 32
close(3) = 0
munmap(0x7fcabfef8000, 4096) = 0
exit_group(1) = ?
I just installed Indigo (Eclipse) on my ubuntu 11.10 machine and received a permission denied error when attempting to start Eclipse from the terminal.
ls -l /usr/lib/ | grep eclipse
yields
drwxr-sr-x 9 root ben 4096 2011-10-13 12:10 eclipse_indigo
I tried to sudo chmod 755 eclipse_indigo
to no avail.
Any other suggestions would be greatly appreciated.
strace /usr/lib/eclipse_indigo
yields
execve("/usr/lib/eclipse_indigo/", ["/usr/lib/eclipse_indigo/"], [/* 74 vars */]) = -1 EACCES (Permission denied)
dup(2) = 3
fcntl(3, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fcabfef8000
lseek(3, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
write(3, "strace: exec: Permission denied\n", 32strace: exec: Permission denied
) = 32
close(3) = 0
munmap(0x7fcabfef8000, 4096) = 0
exit_group(1) = ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
最好从 http://www.eclipse.org/downloads/?osType=linux" rel="nofollow">http:/ 提取 tar.gz 文件 /www.eclipse.org/downloads/?osType=linux 在你的主目录并从那里使用它...
我做了同样的...只需等到你需要安装它的插件。即使您设法启动它,您也会遇到其他问题,因此提取存档并避免一些令人头疼的问题......
It's better if you just extract the tar.gz file from http://www.eclipse.org/downloads/?osType=linux in your home directory and use it from there...
I did the same... just wait till you need to install plugins for it. Even if you manage to start it you'll have other issues, so extract the archive and save yourself from some headaches...
为什么不使用您的用户而不是 root 来安装?
Why not to install using your user instead of root?
尝试使用 sudo chown ben:ben eclipse_indigo 将自己设置为所有者和组所有者。我认为您的问题与 eclipse_indigo 的组 perms 字段中的
rs
有关,除非这是一个拼写错误。Try
sudo chown ben:ben eclipse_indigo
to set yourself as the owner as well as the group-owner. I think your problem is related to thatr-s
in the group perms field of eclipse_indigo, unless that's a typo.我在 Linux 机器上遇到了类似的问题,其中 eclipse 以 root 身份解压并由普通用户启动。
请小心,不要以 root 身份启动 eclipse,因为它会初始化安装中所谓的配置目录。
您可能会发现我对该问题的回答很有用(包括修复它的步骤):
无法打开 Eclipse(配置区域..错误)
I had a similar problem on a linux machine, where eclipse was unpacked as root and started by a regular user.
Be careful, not to start eclipse as root, as it does an initialization of the so-called confguration directory inside your installation.
You may find my answer to that question useful (includes steps to fix it up):
Unable to open Eclipse (configuration area .. error)