系统相关
首页 > 系统相关> > 在Ubuntu 12.04.3 LTS 32位上安装支持MTP的设备

在Ubuntu 12.04.3 LTS 32位上安装支持MTP的设备

作者:互联网

我的目标是使用Ubuntu 12.04.3 LTS 32位在我的Samsung Galaxy Note 10.1(旧版本)上执行文件操作.当我插入设备并看到自己时,这不是开箱即用的.为了安装并让操作系统识别出设备,我在网上尝试了各种教程.我总结如下:

在Ubuntu上安装MTP Android的SD卡

http://www.mysolutions.it/mounting-your-mtp-androids-sd-card-on-ubuntu/?replytocom=5183#respond

我已按照描述完成了所有操作,但是当我运行“mtp-detect”命令时,会生成以下输出:

mtp-detect
Unable to open ~/.mtpz-data for reading, MTPZ disabled.libmtp version: 1.1.6

Listing raw device(s)
Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
   Found 1 device(s):
   Samsung: Galaxy models (MTP) (04e8:6860) @ bus 3, dev 2
Attempting to connect device(s)
PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
inep: usb_get_endpoint_status(): Invalid argument
outep: usb_get_endpoint_status(): Device or resource busy
usb_clear_halt() on IN endpoint: Device or resource busy
usb_clear_halt() on OUT endpoint: Device or resource busy
usb_clear_halt() on INTERRUPT endpoint: Device or resource busy
LIBMTP PANIC: failed to open session on second attempt
Unable to open raw device 0
OK.

添加Launchpad上提供的GVFS-mtp PPA

https://launchpad.net/~langdalepl/+archive/gvfs-mtp

这很有效,最初它在插入时自动安装了平板电脑.但是,我无法在平板电脑上执行文件操作,例如打开位于平板电脑内存中的文件(例如pdf),将文件复制到平板电脑的内存中到平板电脑记忆中的另一个地方;移动也一样.该解决方案在本文中描述:https://askubuntu.com/questions/87667/getting-mtp-enabled-devices-to-work-with-ubuntu/308366#308366

使用go-mtpfs

我按照以下网站上的说明尝试了这个:
http://www.webupd8.org/2012/12/how-to-mount-android-40-ubuntu-go-mtpfs.html

尝试安装设备的输出如下:

go-mtpfs /media/MyAndroid/
2014/04/21 19:43:24 compiled against libmtp 1.1.5
Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
2014/04/21 19:43:24 found device Samsung: Galaxy models (MTP) (04e8:6860) @ bus 3, dev 2
: 
PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
inep: usb_get_endpoint_status(): Invalid argument
outep: usb_get_endpoint_status(): Device or resource busy
usb_clear_halt() on IN endpoint: Device or resource busy
usb_clear_halt() on OUT endpoint: Device or resource busy
usb_clear_halt() on INTERRUPT endpoint: Device or resource busy
LIBMTP PANIC: failed to open session on second attempt
2014/04/21 19:44:00 rdev.open failed: open: open returned nil

我也想知道屏幕锁是否真的干扰了这些操作.请注意,我没有激活屏幕锁定,我得到了上述结果.我还添加了Nautilus的屏幕截图,显示设备在链接时被检测到但未自动安装.我怀疑其中一些选项可能会引起某种冲突,如果您可以提供正确安装我的设备并在平板电脑内以及平板电脑和笔记本电脑之间执行文件操作的帮助,我将非常感激.

提前致谢,

解决方法:

试试这个http://bernaerts.dyndns.org/linux/74-ubuntu/268-ubuntu-automount-any-mtp-device

本指南介绍了如何轻松配置Ubuntu计算机,以便在将其插入USB端口后立即以MTP模式直接访问Android设备文件系统.
本指南已完全重写为使用mtp-detect.它已经过谷歌Nexus 4和谷歌Nexus 7测试,但它应该可以与任何其他MTP设备(Android手机或平板电脑,MP4播放器……)一起使用.它已经在Ubuntu 12.04 LTS Amd64下完成,但它应该可以工作或很容易适应许多Linux风格.

标签:android,ubuntu,mount,mtp,32bit
来源: https://codeday.me/bug/20190810/1635071.html