我正在尝试运行adb并获得此输出(运行"adb服务器"(:
ADB server didn't ACK
Full server startup log: /tmp/adb.1000.log
Server had pid: 7913
--- adb starting (pid 7913) ---
adb I 11-30 22:28:51 7913 7913 main.cpp:57] Android Debug Bridge version 1.0.39
adb I 11-30 22:28:51 7913 7913 main.cpp:57] Version 1:8.1.0+r23-8
adb I 11-30 22:28:51 7913 7913 main.cpp:57] Installed as /usr/lib/android-sdk/platform-tools/adb
adb I 11-30 22:28:51 7913 7913 main.cpp:57]
adb I 11-30 22:28:51 7913 7913 adb_auth_host.cpp:416] adb_auth_init...
adb I 11-30 22:28:51 7913 7913 adb_auth_host.cpp:174] read_key_file '/home/tristan/.android/adbkey'...
munmap_chunk(): invalid pointer
* could not start server *
"/tmp/adb.1000.log"的内容:
--- adb starting (pid 7930) ---
adb I 11-30 22:30:00 7930 7930 main.cpp:57] Android Debug Bridge version 1.0.39
adb I 11-30 22:30:00 7930 7930 main.cpp:57] Version 1:8.1.0+r23-8
adb I 11-30 22:30:00 7930 7930 main.cpp:57] Installed as /usr/lib/android-sdk/platform-tools/adb
adb I 11-30 22:30:00 7930 7930 main.cpp:57]
adb I 11-30 22:30:00 7930 7930 adb_auth_host.cpp:416] adb_auth_init...
adb I 11-30 22:30:00 7930 7930 adb_auth_host.cpp:174] read_key_file '/home/tristan/.android/adbkey'...
munmap_chunk(): invalid pointer
在提交之前,我设法解决了这个问题。我在这里为其他遇到它的人提供解决方案。问题在于Debian Android Tools Maintainers。
我的快速修复:从buster重新安装程序包。
- 删除当前版本的adb和其他android工具:
sudo apt purge adb android*
- 将/etc/apt/sources.list中的"bullseye"替换为"buster">
- 更新apt:
sudo apt update
- 安装adb:
sudo apt install adb
- 将/etc/apt/sources.list设置回"bullseye",然后再次运行
sudo apt update
N.B.这会让一些Debian用户掉头发(请参阅"不要做FrankenDebian"(。这个解决方案是粗略的,而且是暂时的。请确保将sources.list设置回您正在使用的版本(在我的情况下是牛眼(,并在修复后立即更新adb。
该漏洞已经由另外两个用户提交:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=975707
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=976007
我的快速(和肮脏(修复:
- 从谷歌下载最新的adb版本
- 仅从存档OVER/usr/lib/android-sdk/platform-tools/adb复制adb文件