亚行不会在Ubuntu上运行64 - 命令未找到会在、未找到、命令、亚行不

2023-09-06 04:41:57 作者:今晚不熬夜

更新

做一些更多的实验后,我一定要彻底改写我的问题,因为我被愚弄了我的终端。它只是没有显示错误消息时,我发出的须藤./adb。

After doing some more experiments, I have to reformulate my question completely as I was fooled by my terminal. It just didn't showed the error message when I issued sudo ./adb.

如果我用cd命令进入ANDOID_SDK /平台tools目录并运行 ./亚行,我得到:

If I cd into the ANDOID_SDK/platform-tools directory and run ./adb, I get:

command not found: ./adb

下面的输出的ls -l亚行在同一目录下:

Here the output ls -l adb in the same directory:

-rwxrwxr-x 1 myuser myuser 159620 2011-12-20 19:30 adb

运行亚行给我:

./adb

同样的情况发生在像AAPT,AIDL,dexdump,等该目录中的所有其他二进制可执行文件。

The same happens for all other binary executable files in that directory like aapt, aidl, dexdump, etc.

我可以想像,这事做与我想在64位的Ubuntu上运行,但ELF头或类似的东西不被认可。然而,在机器人工具ANDOID_SDK /工具运行良好(除了没有下载新的软件包后执行ADB)。

I could just imagine that this has something to do with me trying to run it on a 64bit Ubuntu, but the ELF header or something similar not being recognised. However, the android tool in ANDOID_SDK/tools is running fine (besides failing to execute adb after downloading new packages).

真是奇怪了......

Really strange...

原题

我下载了最新的Andr​​oid SDK。如果我尝试运行ADB作为一个普通用户,我得到未找到命令。我必须运行它作为命令./adb和它的作品。这是为什么?如何解决?我在运行Ubuntu 64 11.10。

I downloaded the latest Android SDK. If I try running adb as an ordinary user, I get "command not found". I must run it as "sudo ./adb" and it works. Why is that and how do I fix it? I'm running Ubuntu 64 11.10.

我用在一些老的Ubuntu版本的SDK,并在那里,我可以运行它作为普通用户没有问题。任何想法?

I used the SDK on older Ubuntu versions and there, I could run it as ordinary user without problems. Any ideas?

推荐答案

我找到了解决办法。我再次调查,如果我真的得到了 IA32-库安装。在乍看之下,它看起来很好的天赋。然而,在第二眼我注意到,在 IA32-库包安装,但不是所有的依赖关系。我是不是能够解决与资质,而是我不得不删除 IA32-库与KDE包管理器并重新安装。现在,所有失踪88依赖性被安装了。 亚洲开发银行现在是工作的罚款。

I found the solution. I investigated again if I really got ia32-libs installed. On a first glance, it looked fine in aptitude. However, on a second glance I noticed that the ia32-libs package was installed, but not all dependencies. I was not able to resolve that with aptitude, but instead I had to remove ia32-libs with KDE package manager and install it again. Now, all missing 88 dependencies were installed, too. adb is now working fine.

我不是100%肯定,为什么性向这里失败了,但我怀疑它是从这种错误的痛苦在我安装的,太:https://bugs.launchpad.net/ubuntu/+source/aptitude/+bug/831768我也有天资的所有条目重复的条目。

I'm not 100% sure why aptitude failed here, but I suspect that it is suffering from this bug on my installation, too: https://bugs.launchpad.net/ubuntu/+source/aptitude/+bug/831768 I also have duplicate entries in aptitude for all entries.