adb 安装失败
打开Terminal终端:Ctrl + Alt + T
按顺序执行以下三条命令:
sudo add-apt-repository ppa:nilarrimogard/webupd8
sudo apt-get update
sudo apt-get install android-tools-adb android-tools-fastboot
安装过程如果出现需要安装其他的组件,就按照提示安装即可。
安装后,将手机设置成USB调试模式,通过数据线接至pc机。
执行如下命令测试adb的安装是否成功:
adb devices
如下是我安装的过程:
wangjie@wangjie-A8Se:~$ sudo add-apt-repository ppa:nilarimogard/webupd8
[sudo] password for wangjie: //输入密码获取root权限
You are about to add the following PPA to your system:
The main Web Upd8 PPA maintained by: http://www.webupd8.org/
To add this PPA, simply paste this in a terminal:
sudo add-apt-repository ppa:nilarimogard/webupd8
Packages in this PPA: audacious, autotrash, awn-applet-radio, awn-applet-wm, bluetile, calise, cmus, defrag, dockbarx, dockbarx-themes-extra, dropbox-share, ekiga, exaile, fatrat, gimp, gimp-plugin-registry, gnome-globalmenu, gnome-subtitles, gnome-window-applets, grsync, grive, gthumb, indicator-shutter, launchpad-getkeys, mc (Midnight Commander), mdm (Mint Display Manager), minitunes, minitube, musique, mintmenu, n2n, notifyosdconfig, nautilus-columns, newsbeuter, pinta, powertop, ppa-purge, rosa-media-player, fixed pulseaudio-equalizer, specto, subtitleeditor, switcher, syncwall, talika, terminator, turpial, umplayer, unity-reboot, update-java, watchvideo, youtube-dl, xournal and zaz. Almost all packages are updated to their latest version.
For other (specialized) PPAs we maintain, see: https://launchpad.net/~webupd8team
More info: https://launchpad.net/~nilarimogard/+archive/webupd8
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmpE3hfDE/secring.gpg' created
gpg: keyring `/tmp/tmpE3hfDE/pubring.gpg' created
gpg: requesting key 4C9D234C from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpE3hfDE/trustdb.gpg: trustdb created
gpg: key 4C9D234C: public key "Launchpad webupd8" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
wangjie@wangjie-A8Se:~$ sudo apt-get update
Hit http://mirrors.163.com precise Release.gpg
Get:1 http://mirrors.163.com precise-updates Release.gpg [198 B]
Get:2 http://mirrors.163.com precise-backports Release.gpg [198 B]
Get:3 http://mirrors.163.com precise-security Release.gpg [198 B]
Hit http://mirrors.163.com precise Release
Get:4 http://mirrors.163.com precise-updates Release [49.6 kB]
Get:5 http://mirrors.163.com precise-backports Release [49.6 kB]
Hit http://archive.canonical.com precise Release.gpg
Get:6 http://ppa.launchpad.net precise Release.gpg [316 B]
Get:7 http://mirrors.163.com precise-security Release [49.6 kB]
Hit http://archive.canonical.com precise Release
Get:8 http://ppa.launchpad.net precise Release [11.9 kB]
Hit http://mirrors.163.com precise/main Sources
Hit http://mirrors.163.com precise/restricted Sources
Hit http://mirrors.163.com precise/universe Sources
Hit http://mirrors.163.com precise/multiverse Sources
Hit http://mirrors.163.com precise/main i386 Packages
Hit http://mirrors.163.com precise/restricted i386 Packages
Hit http://mirrors.163.com precise/universe i386 Packages
Hit http://mirrors.163.com precise/multiverse i386 Packages
Hit http://mirrors.163.com precise/main TranslationIndex
Hit http://mirrors.163.com precise/multiverse TranslationIndex
Hit http://mirrors.163.com precise/restricted TranslationIndex
Hit http://mirrors.163.com precise/universe TranslationIndex
Get:9 http://mirrors.163.com precise-updates/main Sources [374 kB]
Hit http://archive.canonical.com precise/partner i386 Packages
Get:10 http://mirrors.163.com precise-updates/restricted Sources [5,494 B]
Get:11 http://mirrors.163.com precise-updates/universe Sources [83.4 kB]
Ign http://archive.canonical.com precise/partner TranslationIndex
Get:12 http://mirrors.163.com precise-updates/multiverse Sources [4,746 B]
Get:13 http://mirrors.163.com precise-updates/main i386 Packages [603 kB]
Get:14 http://ppa.launchpad.net precise/main Sources [14.1 kB]
Get:15 http://mirrors.163.com precise-updates/restricted i386 Packages [10.1 kB]
Get:16 http://mirrors.163.com precise-updates/universe i386 Packages [194 kB]
Get:17 http://ppa.launchpad.net precise/main i386 Packages [22.8 kB]
Get:18 http://mirrors.163.com precise-updates/multiverse i386 Packages [10.4 kB]
Hit http://mirrors.163.com precise-updates/main TranslationIndex
Hit http://mirrors.163.com precise-updates/multiverse TranslationIndex
Hit http://mirrors.163.com precise-updates/restricted TranslationIndex
Hit http://mirrors.163.com precise-updates/universe TranslationIndex
Get:19 http://mirrors.163.com precise-backports/main Sources [2,422 B]
Get:20 http://mirrors.163.com precise-backports/restricted Sources [14 B]
Get:21 http://mirrors.163.com precise-backports/universe Sources [23.3 kB]
Get:22 http://mirrors.163.com precise-backports/multiverse Sources [2,669 B]
Get:23 http://mirrors.163.com precise-backports/main i386 Packages [1,941 B]
Get:24 http://mirrors.163.com precise-backports/restricted i386 Packages [14 B]
Get:25 http://mirrors.163.com precise-backports/universe i386 Packages [23.2 kB]
Get:26 http://mirrors.163.com precise-backports/multiverse i386 Packages [2,504 B]
Hit http://mirrors.163.com precise-backports/main TranslationIndex
Hit http://mirrors.163.com precise-backports/multiverse TranslationIndex
Hit http://mirrors.163.com precise-backports/restricted TranslationIndex
Hit http://mirrors.163.com precise-backports/universe TranslationIndex
Get:27 http://mirrors.163.com precise-security/main Sources [65.0 kB]
Ign http://ppa.launchpad.net precise/main TranslationIndex
Get:28 http://mirrors.163.com precise-security/restricted Sources [1,950 B]
Get:29 http://mirrors.163.com precise-security/universe Sources [24.0 kB]
Get:30 http://mirrors.163.com precise-security/multiverse Sources [1,380 B]
Get:31 http://mirrors.163.com precise-security/main i386 Packages [245 kB]
Get:32 http://mirrors.163.com precise-security/restricted i386 Packages [3,968 B]
Get:33 http://mirrors.163.com precise-security/universe i386 Packages [72.9 kB]
Get:34 http://mirrors.163.com precise-security/multiverse i386 Packages [2,369 B]
Hit http://mirrors.163.com precise-security/main TranslationIndex
Hit http://mirrors.163.com precise-security/multiverse TranslationIndex
Hit http://mirrors.163.com precise-security/restricted TranslationIndex
Hit http://mirrors.163.com precise-security/universe TranslationIndex
Hit http://mirrors.163.com precise/main Translation-en
Hit http://mirrors.163.com precise/multiverse Translation-en
Hit http://mirrors.163.com precise/restricted Translation-en
Hit http://mirrors.163.com precise/universe Translation-en
Hit http://mirrors.163.com precise-updates/main Translation-en
Hit http://mirrors.163.com precise-updates/multiverse Translation-en
Hit http://mirrors.163.com precise-updates/restricted Translation-en
Hit http://mirrors.163.com precise-updates/universe Translation-en
Hit http://mirrors.163.com precise-backports/main Translation-en
Hit http://mirrors.163.com precise-backports/multiverse Translation-en
Hit http://mirrors.163.com precise-backports/restricted Translation-en
Hit http://mirrors.163.com precise-backports/universe Translation-en
Hit http://mirrors.163.com precise-security/main Translation-en
Hit http://mirrors.163.com precise-security/multiverse Translation-en
Hit http://mirrors.163.com precise-security/restricted Translation-en
Hit http://mirrors.163.com precise-security/universe Translation-en
Ign http://archive.canonical.com precise/partner Translation-en_US
Ign http://archive.canonical.com precise/partner Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Fetched 1,956 kB in 6s (311 kB/s)
Reading package lists... Done
wangjie@wangjie-A8Se:~$ sudo apt-get install android-tools-adb android-tools-fastboot
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
perl : Depends: perl-modules (>= 5.14.2-6ubuntu2.3) but 5.14.2-6ubuntu2.2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
wangjie@wangjie-A8Se:~$ sudo apt-get install android-tools-adb android-tools-fastboot
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
perl : Depends: perl-modules (>= 5.14.2-6ubuntu2.3) but 5.14.2-6ubuntu2.2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). //缺少数据包
wangjie@wangjie-A8Se:~$ sudo apt-get -f install //根据提示安装缺少的数据包
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
linux-headers-3.5.0-23 linux-headers-3.5.0-23-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
perl-base perl-modules
Suggested packages:
libpod-plainer-perl
The following packages will be upgraded:
perl-base perl-modules
2 upgraded, 0 newly installed, 0 to remove and 69 not upgraded.
3 not fully installed or removed.
Need to get 0 B/4,860 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 199624 files and directories currently installed.)
Preparing to replace perl-base 5.14.2-6ubuntu2.2 (using .../perl-base_5.14.2-6ubuntu2.3_i386.deb) ...
Unpacking replacement perl-base ...
Processing triggers for man-db ...
Setting up perl-base (5.14.2-6ubuntu2.3) ...
(Reading database ... 199624 files and directories currently installed.)
Preparing to replace perl-modules 5.14.2-6ubuntu2.2 (using .../perl-modules_5.14.2-6ubuntu2.3_all.deb) ...
Unpacking replacement perl-modules ...
Setting up libperl5.14 (5.14.2-6ubuntu2.3) ...
Setting up perl-modules (5.14.2-6ubuntu2.3) ...
Setting up perl (5.14.2-6ubuntu2.3) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
wangjie@wangjie-A8Se:~$ sudo apt-get install android-tools-adb android-tools-fastboot
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-3.5.0-23 linux-headers-3.5.0-23-generic
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
android-tools-adb android-tools-fastboot
0 upgraded, 2 newly installed, 0 to remove and 69 not upgraded.
Need to get 128 kB of archives.
After this operation, 377 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu/ precise/main android-tools-adb i386 4.2.2+git20130218-0ubuntu2+1~webupd8~precise [74.4 kB]
Get:2 http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu/ precise/main android-tools-fastboot i386 4.2.2+git20130218-0ubuntu2+1~webupd8~precise [53.7 kB]
Fetched 128 kB in 2s (47.9 kB/s)
Selecting previously unselected package android-tools-adb.
(Reading database ... 199624 files and directories currently installed.)
Unpacking android-tools-adb (from .../android-tools-adb_4.2.2+git20130218-0ubuntu2+1~webupd8~precise_i386.deb) ...
Selecting previously unselected package android-tools-fastboot.
Unpacking android-tools-fastboot (from .../android-tools-fastboot_4.2.2+git20130218-0ubuntu2+1~webupd8~precise_i386.deb) ...
Processing triggers for man-db ...
Setting up android-tools-adb (4.2.2+git20130218-0ubuntu2+1~webupd8~precise) ...
Setting up android-tools-fastboot (4.2.2+git20130218-0ubuntu2+1~webupd8~precise) ...
wangjie@wangjie-A8Se:~$ adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
343172FA672300EC device
adb 安装失败的更多相关文章
- 手机驱动无法正常安装,出现adb interface失败
手机一直无法用usb连接上电脑,试了各种方法,总是提示安装驱动失败,或者找不到文件. 在网上找了各种方法,后来结果证明,是我自己手贱了,... 方法: Win7系统用户已经碰到几次在安装adb驱动时提 ...
- Android 编译Settings、Mms等模块,并Push到手机中安装失败
问题描述:在编译完Settings等相关模块后,并push到手机中安装失败(在手机中无法找到该应用),但是使用adb shell命令进入到手机中在System/app或者System/priv-app ...
- 删除Android自带软件方法及adb remount 失败解决方案
删除Android自带软件方法 1.在电脑上打开cmd,然后输入命令 adb remount adb shell su 2.接着就是Linux命令行模式了,输入 cd system/app 3然后输入 ...
- adb 安装apk 报错:Failure [INSTALL_FAILED_INVALID_URI]
今天在安装某apk的时候,发现报错 报错信息:Failure [INSTALL_FAILED_INVALID_URI] 于是找到了一个解决方式: cmd命令行下执行以下命令: 第一步.adb remo ...
- adb remount 失败:remount failed: Operation not permitted
adb remount 失败:remount failed: Operation not permitted 关于ADB的使用,这里再说明下:经常使用命令 adb shell - 登录设备sh ...
- 在flask服务里面执行adb 安装命令
今天讲的是我在flask服务里执行adb install 命令,被坑了一天 需求是我们的安卓打包机器和我们的自动化机器不是同一台,管理人也不一样,想让每次打包后能通知到我们的服务器,然后执行后续的操作 ...
- appium1.4+华为8.0执行自动化脚本,报启动session失败,原因是unicode_ime_apk\Uni codeIME-debug.apk在手机上已存在,再次安装失败,导致启动session失败,解决办法:换高版本的appium
最开始做Android自动化测试时,通过执行脚本发现报,已安装UnicodeIME-debug.apk,再次安装失败,当时觉得这个apk对我来说没用,就把D:\Program Files (x86)\ ...
- 华为Mate20 Adb驱动失败
今天拿到同事一台华为Mate20,准备装个包,结果发现adb一直 no devices,AndroidStudio当然也显示 no connected devices 开发者模式也打开了,USB调试也 ...
- 网络原因导致 npm 软件包 node-sass / gulp-sass 安装失败的处理办法
如果你正在构建一个基于 gulp 的前端自动化开发环境,那么极有可能会用到 gulp-sass ,由于网络原因你可能会安装失败,因为安装过程中部分细节会到亚马逊云服务器上获取文件.本文主要讨论在不变更 ...
随机推荐
- 农村的“无为教育” (FW)
农村的“无为教育” 发布时间:2009年11月5日 11时33分 “以孩子影响孩子”,准确地说,是以偏远乡村贫困家庭的进取孩子,影响城市有相当收入的“问题孩子”.有两点值得注意,一是农村孩子影响城市孩 ...
- 洛谷P2731 骑马修栅栏 Riding the Fences
P2731 骑马修栅栏 Riding the Fences• o 119通过o 468提交• 题目提供者该用户不存在• 标签USACO• 难度普及+/提高 提交 讨论 题解 最新讨论 • 数据有问题题 ...
- 洛谷P1268 树的重量
P1268 树的重量 85通过 141提交 题目提供者该用户不存在 标签树形结构 难度提高+/省选- 提交该题 讨论 题解 记录 最新讨论 有这种情况吗!!!! 题意似乎有问题 题目描述 树可以用来表 ...
- CSS长度单位
罗列了CSS中常用的长度单位及比较 单位 含义 em 相对于父元素的字体大小 ex 相对于小写字母"x"的高度 rem 相对于根元素字体大小 px 相对于屏幕分辨率而不是视窗大小: ...
- angular factory Services provider 自定义服务 工厂
转载于 作者:海底苍鹰地址:http://blog.51yip.com/jsjquery/1602.html 1.在app.js 中声明了模块的依赖 var phonecatApp = angular ...
- WWF3常用类 <第十一篇>
一.WorkflowRuntime类 System.Workflow.Runtime.WorkflowRuntime是工作流的运行引擎.WorkflowRuntime在宿主中以自己独立的线程运行,它可 ...
- BG雪碧图制作要求
使用软件 firework 保存png-8 然后参数如下图: 格式:PNG 8 调色板:最适合 深度:128 透明度:Alpha 透明度
- solr5.5教程-tomcat布署
tomcat和solr在各自官网下载,版本如下: tomcat版本:8.0.24 solr版本:5.5.0 1.solr解压后,目录结构如下: 2.tomcat的webapps里新建solr目录, 把 ...
- Git 中级用户的25个提示
我使用 Git 大约已经有18个月时间,自认为能很好地驾驭它了.但是当我们请到 GitHub 的 Scott Chacon 来到 LVS 公司(一个博彩/游戏软件供应商/开发商)做专场培训时,我在第一 ...
- RequireJS首次加载偶尔失败
现象:第一次加载JS文件,首次加载偶尔失败: 原因:require(['jquery', 'operamasks', 'zTree', 'jQueryCookie'],中前后引用同步加载: 解决方式: ...