问题描述
我已经在我的Debian amd64 jessie构建上安装了Mono和Monodevelop,并且我只能使用提升的特权来运行monodevelop.
I've installed Mono and Monodevelop on my Debian amd64 jessie build, and I can only run monodevelop using elevated privilege.
从UI startesque菜单启动monodevelop不会导致任何事情发生.从shell启动monodevelop会导致以下错误:
Starting monodevelop from the UI startesque menu results in nothing appearing to happen. Starting monodevelop from a shell results in the following error:
使用 sudo monodevelop 从shell运行monodevelop运行得很好.我已经清除了所有(我的意思是所有)mono软件包并重新安装,但错误仍然存在.我正在安装的软件包来自此处.
Running monodevelop from a shell using sudo monodevelop runs absolutely fine. I've purged all (and I do mean all) the mono packages and re-installed but the error persists. The packages I'm installing are from the mono package repository as outlined here.
这似乎是一个权限问题,但是我一生都无法找出可能导致此问题的文件夹或文件.我花了最后两天的时间来弄清楚这个问题,但是却一无所获,所以如果有人有任何想法或曾经遇到过这个问题,我很想听听.
It would seem to be a permissions issue but I can't for the life of me work out what folder or file could be causing this. I've spent the last 2 days trying to figure this out and have got absolutely nowhere at all, so if anyone has any ideas or has come across this problem before, I'd love to hear about it.
谢谢,迈克
推荐答案
使用strace查找权限错误.通常,当一个程序只能以root用户身份运行时,这意味着某些文件是不可访问的,除非是root用户.
Look for permission errors with strace. Usually when a program can only be run as root it means that some files are unreachable, except when root.
strace monodevelop
我自己也遇到过同样的问题.我做到了
I had the same issue myself. I did
strace monodevelop > user.txt
sudo strace monodevelop > root.txt
diff user.txt root.txt > diff.txt
然后我搜索了有问题的文件.
And then I searched for the problematic files.
最后,这实际上并没有帮助我.我最终卸载并重新安装了mono,以及与此相关的所有内容.希望这两种解决方案都可以.
In the end this actually didn't help me. I eventually uninstalled, and reinstalled mono, and everything related to it. Hopefully either solution will help.
这篇关于Monodevelop-仅使用sudo运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!