Welcome 微信登录

首页 / 操作系统 / Linux / Ubuntu 12.04上Android MTP连接

我的Ubuntu 12.04系统上一直都不能正常连接我的Galaxy Nexus 3手机,今天下定决心要解决这个问题。Google了一下,找到了解决的办法。首先要更新MTP的库,据说Ubuntu 13.10的MTP库已经很好用了,网上有可以直接提供好的源可以直接下载。sudo add-apt-repository ppa:langdalepl/gvfs-mtpEnter your user password and than you’ll be shown following text:You are about to add the following PPA to your system:
These builds of gvfs have my native mtp backend backported from gvfs master. Use this to easily access MTP based devices with Nautilus.
More info: https://launchpad.net/~langdalepl/+archive/gvfs-mtp
Press [ENTER] to continue or ctrl-c to cancel adding itHit the Enter Key. After this is done you need to type following command, which updates the package list:sudo apt-get updateAfter this was successful you need to upgrade the installed packages with:sudo apt-get upgrade然后就是发现这样还是不行,会弹出USB错误的提示,有人提示说要加Android在ubuntu中的连接规则。3. Configure 51-android.rules:
sudo gedit /etc/udev/rules.d/51-android.rules
paste the following at the end of the file (if the file does not exist then just paste):
#LG - Nexus 4
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666"
#Samsung - Nexus 7 & 10
SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666"Save and exit.
4. Make the file executable:
sudo chmod +x /etc/udev/rules.d/51-android.rules
5. Restart udev
sudo service udev restart更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2更多Android相关信息见Android 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=11Solaris搭建64位C语言开发环境Linux内置的审计跟踪工具 - last命令相关资讯      Ubuntu Android  Ubuntu Android MTP 
  • Ubuntu 14.04 设置Android开发环境  (04/29/2014 08:07:07)
  • 在Ubuntu下搭建Android的开发环境  (06/02/2013 15:00:48)
  • Ubuntu 12.04下搭建Android开发环  (06/02/2013 14:32:56)
  • Ubuntu 13.04下配置Android源代码  (06/21/2013 06:28:01)
  • 64位Ubuntu 11.10下Android开发环  (06/02/2013 14:42:49)
  • Ubuntu依靠出售授权盈利 将不兼容  (02/01/2013 06:52:16)
本文评论 查看全部评论 (0)
表情: 姓名: 字数