尝试在Ubuntu 12.10 x86_64上运行adb时遇到以下问题:
[2013-02-19 20:56:04 - adb] Unexpected exception 'Cannot run program "/home/user/adt-bundle-linux-x86_64/sdk/platform-tools/adb": error=2,No such file or directory' while attempting to get adb version from '/home/user/adt-bundle-linux-x86_64/sdk/platform-tools/adb'
我找到adb,尝试chmod x adb,它只是不工作.我也尝试过chmod x platform-tools /
和chmod x tools /.之后我试过./adb
我已经熬夜了,他们在谈论ia32包. Ubuntu无法找到该包,也不能找到ia32多个arch.
系统是Ubuntu 12.10 64,我下载了adt-bundle-linux-x86_64.zip包,只需解压缩.
我究竟做错了什么 ?谢谢!
在Debian 7上,我碰到了同样的问题.
原文链接:https://www.f2er.com/ubuntu/349121.html诊断:
edb@lapelidb:~/today$ldd /opt/adt-bundle-linux-x86_64-20130729/sdk/platform-tools/adb not a dynamic executable edb@lapelidb:~/today$file /opt/adt-bundle-linux-x86_64-20130729/sdk/platform-tools/adb /opt/adt-bundle-linux-x86_64-20130729/sdk/platform-tools/adb: ELF 32-bit LSB executable,Intel 80386,version 1 (SYSV),dynamically linked (uses shared libs),for GNU/Linux 2.6.8,not stripped
edb@lapelidb:~/today$sudo dpkg --add-architecture i386 edb@lapelidb:~/today$sudo apt-get update edb@lapelidb:~/today$sudo apt-get install libc6:i386 libstdc++6:i386
Et voila:
edb@lapelidb:~/today$ldd /opt/adt-bundle-linux-x86_64-20130729/sdk/platform-tools/adb linux-gate.so.1 => (0xf772a000) librt.so.1 => /lib/i386-linux-gnu/i686/cmov/librt.so.1 (0xf770a000) libdl.so.2 => /lib/i386-linux-gnu/i686/cmov/libdl.so.2 (0xf77edb@lapelidb:~/today$ldd /opt/adt-bundle-linux-x86_64-20130729/sdk/platform-tools/adb not a dynamic executable edb@lapelidb:~/today$file /opt/adt-bundle-linux-x86_64-20130729/sdk/platform-tools/adb /opt/adt-bundle-linux-x86_64-20130729/sdk/platform-tools/adb: ELF 32-bit LSB executable,not stripped) libpthread.so.0 => /lib/i386-linux-gnu/i686/cmov/libpthread.so.0 (0xf76ec000) libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf7600000) libm.so.6 => /lib/i386-linux-gnu/i686/cmov/libm.so.6 (0xf75da000) libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf75bd000) libc.so.6 => /lib/i386-linux-gnu/i686/cmov/libc.so.6 (0xf745a000) /lib/ld-linux.so.2 (0xf772b000)edb@lapelidb:~/today$ldd /opt/adt-bundle-linux-x86_64-20130729/sdk/platform-tools/adb not a dynamic executable edb@lapelidb:~/today$file /opt/adt-bundle-linux-x86_64-20130729/sdk/platform-tools/adb /opt/adt-bundle-linux-x86_64-20130729/sdk/platform-tools/adb: ELF 32-bit LSB executable,not stripped