文件存在时文件未找到错误?

时间:2015-09-06 21:10:35

标签: linux bash

我刚刚更新了android sdk,现在我在尝试运行adb时遇到“找不到文件”。

奇怪的是,文件就在那里。路径或文件中的任何位置都没有符号链接。

$ ltrace /home/gcb/Android/Sdk/platform-tools/adb
Can't execute `/home/gcb/Android/Sdk/platform-tools/adb': No such file or directory
failed to initialize process 30073: No such file or directory
couldn't open program '/home/gcb/Android/Sdk/platform-tools/adb': No such file or directory

$ pwd -P
/home/gcb/Android/Sdk/platform-tools
(here i check every single step with `ls -la` and confirm nothing is a symlink)

$ ls -lah adb
-rwxr-xr-x 1 gcb gcb 1.2M Sep  6 13:55 adb

$ file adb
adb: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=ef63f46b9ca4e04857d2cbdffad9615c8474a744, not stripped

$ ./adb 
bash: ./adb: No such file or directory

$ /home/gcb/Android/Sdk/platform-tools/adb (auto-completes fine with tab)
bash: /home/gcb/Android/Sdk/platform-tools/adb: No such file or directory

0 个答案:

没有答案