ubuntu系统adb shell报错 ADB server didn‘t ACK

ubuntu下连接设备首次使用adb shell报错ADB server didn't ACK

* daemon not running; starting now at tcp:5037

ADB server didn't ACK

Full server startup log: /tmp/adb.1000.log

Server had pid: 28462

--- adb starting (pid 28462) ---

12-05 17:04:56.524 28462 28462 I adb : main.cpp:63 Android Debug Bridge version 1.0.41

12-05 17:04:56.524 28462 28462 I adb : main.cpp:63 Version 35.0.2-12147458

12-05 17:04:56.524 28462 28462 I adb : main.cpp:63 Installed as /home/boe/Android/Sdk/platform-tools/adb

12-05 17:04:56.524 28462 28462 I adb : main.cpp:63 Running on Linux 5.15.0-130-generic (x86_64)

12-05 17:04:56.524 28462 28462 I adb : main.cpp:63

12-05 17:04:56.524 28462 28462 I adb : auth.cpp:416 adb_auth_init...

12-05 17:04:56.525 28462 28469 E adb : usb_libusb.cpp:944 failed to register inotify watch on '/dev/bus/usb/001/', falling back to sleep: No space left on device

12-05 17:04:56.525 28462 28472 E adb : usb_libusb.cpp:944 failed to register inotify watch on '/dev/bus/usb/001/', falling back to sleep: No space left on device

12-05 17:04:56.525 28462 28471 E adb : usb_libusb.cpp:944 failed to register inotify watch on '/dev/bus/usb/001/', falling back to sleep: No space left on device

12-05 17:04:56.525 28462 28470 E adb : usb_libusb.cpp:944 failed to register inotify watch on '/dev/bus/usb/002/', falling back to sleep: No space left on device

12-05 17:04:56.525 28462 28462 I adb : auth.cpp:152 loaded new key from '/home/xxx/.android/adbkey' with fingerprint 8A10C87F6919EFEA71188EDB8A6A0BFC23820566D328CA1EDF8F845A53BA9FF9

12-05 17:04:56.525 28462 28462 I adb : auth.cpp:391 adb_auth_inotify_init...

12-05 17:04:56.525 28462 28462 I adb : udp_socket.cpp:170 AdbUdpSocket fd=17

12-05 17:04:56.525 28462 28462 I adb : udp_socket.cpp:170 AdbUdpSocket fd=18

12-05 17:04:56.525 28462 28462 I adb : udp_socket.cpp:274 SetMulticastOutboundInterface for index=2

12-05 17:04:56.525 28462 28462 I adb : udp_socket.cpp:533 bind endpoint=0.0.0.0:5353

12-05 17:04:56.525 28462 28462 I adb : udp_socket.cpp:274 SetMulticastOutboundInterface for index=2

12-05 17:04:56.525 28462 28462 I adb : udp_socket.cpp:558 bind endpoint=[0000:0000:0000:0000:0000:0000:0000:0000]:5353 scope_id=0

12-05 17:04:56.525 28462 28462 I adb : udp_socket.cpp:170 AdbUdpSocket fd=19

12-05 17:04:56.525 28462 28462 I adb : udp_socket.cpp:170 AdbUdpSocket fd=20

12-05 17:04:56.525 28462 28462 I adb : udp_socket.cpp:274 SetMulticastOutboundInterface for index=10

12-05 17:04:56.525 28462 28462 I adb : udp_socket.cpp:533 bind endpoint=0.0.0.0:5353

12-05 17:04:56.525 28462 28462 I adb : udp_socket.cpp:274 SetMulticastOutboundInterface for index=10

12-05 17:04:56.525 28462 28462 I adb : udp_socket.cpp:558 bind endpoint=[0000:0000:0000:0000:0000:0000:0000:0000]:5353 scope_id=0

12-05 17:04:57.525 28462 28462 E adb : usb_libusb.cpp:598 failed to open device: Access denied (insufficient permissions)

12-05 17:04:57.525 28462 28462 I adb : transport.cpp:1153 0: connection terminated: failed to open device: Access denied (insufficient permissions)

* failed to start daemon

adb: cannot connect to daemon

这个错误表明 ADB 无法启动守护进程(adb daemon),主要原因是 USB 设备访问权限不足(Access denied (insufficient permissions))。

解决方法:使用正常可以adb调试的机器,将路径/usr/lib/udev/rules.d/51-android.rules拷贝至异常机器的/usr/lib/udev/rules.d/路径下。然后执行adb shell

可以正常识别到设备,问题解决!!

相关推荐
工程师老罗17 分钟前
如何在Android工程中配置NDK版本
android
wdfk_prog2 小时前
[Linux]学习笔记系列 -- [drivers][input]input
linux·笔记·学习
盟接之桥2 小时前
盟接之桥说制造:引流品 × 利润品,全球电商平台高效产品组合策略(供讨论)
大数据·linux·服务器·网络·人工智能·制造
忆~遂愿2 小时前
ops-cv 算子库深度解析:面向视觉任务的硬件优化与数据布局(NCHW/NHWC)策略
java·大数据·linux·人工智能
湘-枫叶情缘2 小时前
1990:种下那棵不落叶的树-第6集 圆明园的对话
linux·系统架构
Fcy6483 小时前
Linux下 进程(一)(冯诺依曼体系、操作系统、进程基本概念与基本操作)
linux·运维·服务器·进程
袁袁袁袁满3 小时前
Linux怎么查看最新下载的文件
linux·运维·服务器
Libraeking4 小时前
破壁行动:在旧项目中丝滑嵌入 Compose(混合开发实战)
android·经验分享·android jetpack
代码游侠4 小时前
学习笔记——设备树基础
linux·运维·开发语言·单片机·算法
Gary Studio4 小时前
rk芯片驱动编写
linux·学习