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

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

相关推荐
2501_915921436 小时前
iOS App 电耗管理 通过系统电池记录、Xcode Instruments 与克魔(KeyMob)组合使用
android·ios·小程序·https·uni-app·iphone·webview
物理与数学7 小时前
linux 内存分布
linux·linux内核
东城绝神7 小时前
《Linux运维总结:基于ARM64+X86_64架构使用docker-compose一键离线部署MySQL8.0.43 NDB Cluster容器版集群》
linux·运维·mysql·架构·高可用·ndb cluster
June bug7 小时前
【配环境】安卓项目开发环境
android
creator_Li7 小时前
即时通讯项目--(1)环境搭建
linux·运维·ubuntu
Mr'liu8 小时前
MongoDB 7.0 副本集高可用部署
linux·mongodb
文静小土豆9 小时前
Rocky Linux 二进制 安装K8S-1.35.0高可用集群
linux·运维·kubernetes
2501_944526429 小时前
Flutter for OpenHarmony 万能游戏库App实战 - 蜘蛛纸牌游戏实现
android·java·python·flutter·游戏
暮云星影9 小时前
二、linux系统 应用开发:整体Pipeline流程
linux·arm开发
csj5010 小时前
安卓基础之《(18)—内容提供者(4)在应用之间共享文件》
android