ubuntu系统adb shell无法连接设备解决方法

daemon not running.starting it now on port 5037 最近使用adb,执行adb devices,出现错误:daemon not running.starting it now on port 5037 问题解决方法: 原因是5037端口被占用,查到哪个进程使用并关闭进程即可。 1. 开始->运行->cmd,调出命令窗口; 2. 输入命令:netstat -aon|findstr “5037”后回车, TCP 127.0.0.1... 阅读详情

1、问题描述:

alex@ubuntu:~$ adb shell
* daemon not running; starting now at tcp:5037
* daemon started successfully
error: insufficient permissions for device: user in plugdev group; are your udev rules wrong?
See [http://developer.android.com/tools/device.html] for more information

2、解决方法:

alex@ubuntu:/etc/udev/rules.d$ sudo touch 51-android.rules

然后写入:

SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0666"

3、测试验证:

无需重启系统,重新插拔一下设备即可。

alex@ubuntu:/etc/udev/rules.d$ adb shell
~ # 


4、参考文档:

adb shell 出现 insufficient permissions for device - 日光之下无新事 - 博客园

Ubuntu连接手机adb调试 Ubuntu adb 阅读详情

相关推荐

Ubuntu安装adb全攻略:从安装、配置到设备连接与故障排查

Android Debug Bridge(adb)是连接计算机与Android设备的核心调试工具,它基于客户端-服务器架构,通过命令行接口实现对设备的深度控制。在Linux系统中,adb的安装与配置涉及系统权限管理和软件包生态,其技术价值在于为移动应用开发、自动化测试和系统调试提供统一且强大的命令行界面。对于Ubuntu用户,adb的安装主要有apt包管理器、手动下载SDK Platform-Tools和Snap三种途径,每种方式在版本控制、更新机制和系统集成度上各有特点。实际应用中,开发者常需为USB设备

cuixie2370的博客 431

adb端口被占用 5037端口错误

adb端口被占用 5037端口

weixin_37259268的博客 5055

adb shell device not found解决

adb shell device not found解决 在Ubuntu16.04下连接设备后,显示:devicenotfound,解决方法如下: 先试试: adb kill-server adb start-server adb shell 不行的话按照下面操作。 1)首先进入用户目录 cd ~ ls -al 可以看到一个/.android目录。 cd .android 应该有一个adb_usb.ini文件,没有则创建之。 touch adb_usb.ini 2)用ls...

a1809032425的博客 3287

adb无响应 adb 执行命令卡等待无回调 “* daemon not running; starting now at tcp:5037” 命令无回调 无响应 adb无提示 查看端口占用并结束进程

adb无响应 adb 执行命令卡等待无回调 “* daemon not running; starting now at tcp:5037” 命令无回调 无响应 adb无提示 查看端口占用并结束进程 日常测试工作中经常使用adb命令,无论是工具封装或bat脚本均执行调用adb命令,但是有时好好的可用有时不行, could not read ok from ADB Server * failed to start daemon adb.exe: failed to check server v

Benjamin 优快云博客 3万+

树莓派国内镜像源一键配置指南

本文提供树莓派国内镜像源一键配置指南,解决默认国外源访问缓慢问题。通过自动检测系统版本并支持清华、阿里云、中科大等主流镜像站选择,大幅提升软件更新与安装速度。包含详细的手动配置方法和常见问题排查,帮助用户快速完成树莓派换源优化。

tequila的博客 1376

基于TL431与MOSFET的高效过压保护电路设计详解

本文详细解析了基于TL431与MOSFET的高效过压保护电路设计。通过TL431精准监测电压,驱动MOSFET作为主开关,实现快速可靠的电源保护。文章涵盖电路原理、参数计算、性能优化及实战调试要点,为电子设备提供了一套经典且成本低廉的过压保护解决方案。

weixin_29215391的博客 776

输入adb命令提示:List of devices attached * daemon not running; starting now at tcp:5037 * daemon started

1、输入adb命令提示:List of devices attached * daemon not running; starting now at tcp:5037 * daemon started successfull的解决方法如下: 1)查看错误提示是5037端口被占用 查看该端口的命令:netstat -ano | findstr "5037" 果不其然5037被占用,于是果断执行如下命令: taskkill -f -pid 5340 再次执行adb devi...

a123bc21的博客 1万+

5分钟搞定:用Ollama在MacBook上本地运行Qwen3大模型(附避坑指南)

本文详细介绍了如何在MacBook上使用Ollama快速部署和运行Qwen3大模型,包括安装步骤、性能优化技巧及常见问题解决方案。Ollama作为一款轻量级工具,特别适合M系列芯片的Mac用户,支持多种量化版本,显著降低资源消耗,提升推理速度。

sql99的博客 822

adb手机连接报5037错误:daemon not running; starting now at tcp:5037 daemon started successfully

被adb连接折腾了一晚,使用重装adb、删除5037端口等操作都不行,手机与电脑adb连接常见问题。

weixin_43509698的博客 6776

model_optimizer将pi05端到端延时进一步优化到68.13ms了

目前在保持灵活性和性能之间找到一个较好的平衡。vit, llm仍然使用onnx->trt_engine的路径,量化可以通过https://github.com/NVIDIA/Model-Optimizer.git支持。同时支持通过cutedsl手写算子进行进一步优化denoise因为步数多,kernel launch多,因此完全通过手写融合算子实现,将所有steps进行一次大的cuda graph capture.

happyAnger6的专栏 60

Transformer实战(32)——Transformer模型压缩

在本节中,我们学习了如何在硬件资源受限的情况下减轻运行大模型的负担。我们介绍了如何通过蒸馏、剪枝和量化从训练好的模型中提取高效模型。预训练轻量级的通用语言模型(如 DistilBERT) 可以在各种任务上进行微调,并表现出与非蒸馏模型相当的性能。随着数据量的不断增加,我们希望模型能够更快地运行,在这方面,高效 Transformer 起着至关重要的作用。

盼小辉丶的博客 2574

ubuntu下配置adb模块进入adb shell

1.安装adb工具 sudo apt-get install android-tools-adb 2.查找adb设备 讲设备连接电脑的usb,输入 lsusb

qq_43066145的博客 1763

MeloTTS 生成 RKNN 模型

摘要: 本方案基于RK3588平台,利用RKNN工具链实现高效语音合成(TTS)。采用MeloTTS开源模型,支持中英文混合语音生成。部署流程包括:1) 导出ONNX模型;2) 转换为RKNN格式;3) 在RK3588开发板运行。关键步骤包含环境配置(RKNN Toolkit2≥1.4.0)、模型转换(非量化处理)及音频处理实现。方案充分发挥RK3588的NPU加速能力,适用于边缘设备语音合成场景

J。 348

ubuntu 使用 adb shell

ubuntu 使用adb shell命令配置 想要在ubuntu下使用adb 命令识别新连接的手机设备需要先配置一下adb_usb.ini 文件 该文件在路径 ~/.android/ 目录下 ,若不存在创建该文件。adb_usb.ini 在文件里面输入插入手机的设备id信息,如:0x1782 这个1782就是设备的id, 获取设备id方法:在命令行 输入lsusb 就可以看到 SPREADTRUM\lei.li@leiliubtpc:~/.android$ lsusb Bus 001 ...

jacke121的专栏 2208

机器学习实战4-教育领域:学生成绩的可视化分析与成绩预测-详细分析

大家好,我是微学AI,今天给大家带来机器学习实战4-学生成绩的可视化分析与成绩预测,机器学习在教育中的应用具有很大的潜力,特别是在学生成绩的可视化分析与成绩预测方面。机器学习可以通过对学生的父母教育情况和学校表现等数据进行分析和挖掘,从而揭示潜在的学习模式和趋势。

微学AI的博客 7678

基于STM32设计的智能水产养殖系统(2025)_359

本设计提出并实现了一种基于STM32F103RCT6微控制器的智能水产养殖控制系统,针对传统水产养殖中人工依赖高、环境参数监测滞后、控制手段单一等问题,集成了TDS水质检测、水温检测、水位监测、自动喂食、自动充氧、换水控制与加热保温等功能。系统采用ESP8266模块实现WIFI联网,通过MQTT协议将关键数据上传至华为云物联网平台,支持Android手机APP和Windows上位机远程监测与控制。同时,系统具备本地LCD数据显示与蜂鸣器异常报警功能,支持本地按键控制操作。整套系统功能完善,响应灵敏,运行稳定

626

adb shell 小米手机_Ubuntu下adb连接小米手机

Ubuntu下adb连接小米手机在此表示感谢。一,环境Win7+VirsualBox4.3.2+Ubuntu12.04二,问题描述在Ubuntu下使用eclipse开发android项目的时候,想连接手机进行真机调试,三星5830可以直接被adb设备识别,并可以进行调试,小米手机识别不了有以下现象:1:eclipse设备一栏都是???2:运行adb device 显示:List of device...

weixin_39528289的博客 576

NTscan扫描工具

ntscan是一个扫描器,可以扫描没有密码和弱密码的共享,先到配置文件中填写猜测的用户名和密码,扫描过程中右侧出现的是扫描日志。

解决adb shell 找不到设备的问题

sudo adb shell zhang@zhang-desktop:~$ adb shell error: insufficient permissions for device sudo adb device zhang@zhang-desktop:~$ sudo adb devices List of devices attached ???????????? no per...

Android星空 2323

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

汉书HE8,好用的汇编代码编写工具

汉书HE8,好用的汇编代码编写工具早期编写汇编代码所用功能强大

linux adb 找不到设备,Ubuntu下adb找不到设备

在Ubuntu12.04下连接设备后,显示:device not found,解决方法如下:1)首先进入用户目录cd ~ls -al可以看到一个/.android目录。cd .android应该有一个adb_usb.ini文件,没有则创建之。touch adb_usb.ini2)用lsusb看连接设备的VID。先连接上设备,运行alex@X:~/.android$ lsusbBus 001 Dev...

weixin_29752191的博客 733

jdk-8u144-linux-x64.tar.gz.

该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包

软件工具:ubuntu adb shell无法识别设备

电脑安装了个双系统,不过ubuntu系统上还是遇到不少问题。我的ubuntu系统版本是Ubuntu 18.04.6 LTS。 这不,debug问题的时候,插入个调速设备,adb shell之间就识别不到。 ``` error: insufficient permissions for device: user in plugdev group; are your udev rules wrong? See [http://developer.android.com/tools/device.html] fo

2758

adb shell 无法启动 (insufficient permissions for device)

<br />环境:Ubuntu 10.10 LTS ,android SDK<br />关键字:insufficient permissions for device<br /><br />出现如下错误信息:<br />shily@hh-desktop:~$adb shell<br />error: insufficient permissions for device<br />shily@hh-desktop:~$ adb devices<br />List of devices attached <b

blair 2112

ubuntu 使用adb shell命令配置

想要在ubuntu下使用adb 命令识别新连接的手机设备需要先配置一下adb_usb.ini 文件 该文件在路径 ~/.android/ 目录下 ,若不存在创建该文件。adb_usb.ini 在文件里面输入插入手机的设备id信息,如:0x1782这个1782就是设备的id, 获取设备id方法:在命令行 输入lsusb 就可以看到 SPREADTRUM\lei.li@leiliub...

Robin7236的博客 564

adb命令大全(含高级用法,均已实际使用验证)

就这一篇,玩转adb。

hkj887tg的博客 1万+

Ubuntu adb shell 出现 insufficient permissions for device

出现如下错误信息: shily@hh-desktop:~$adb shell error: insufficient permissions for device shily@hh-desktop:~$ adb devices List of devices attached ???????????? no permissions// ====暂时解决办法==================...

hunter168_wang的专栏 388
上一篇: VSCODE ssh免密连接远端服务器
下一篇: 高通8155平台YOCTO CMAKE 编译问题解决方法
fight for survive
博客等级 码龄15年 25粉丝 33原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值