2013-01-07 59 views
6

我试图让一个Samsung Galaxy Tab2 7.0“通过MTP连接到Debian Wheezy box。https://askubuntu.com/questions/186681/getting-mtp-to-work-with-a-galaxy-tab-2-7-0的askubuntu页面详细说明了我的问题,但没有一个提示补救工作在Linux上安装三星Galaxy Tab 2 7.0与MTP

要重申,我安装MTP-工具和mtpfs MTP-检测率这样的:。

libmtp version: 1.1.3 

Listing raw device(s) 
Device 0 (VID=04e8 and PID=6860) is a Samsung GT P7310/P7510/N7000/I9070/I9100/I9300 Galaxy Tab 7.7/10.1/S2/S3/Nexus/Note/Y. 
    Found 1 device(s): 
    Samsung: GT P7310/P7510/N7000/I9070/I9100/I9300 Galaxy Tab 7.7/10.1/S2/S3/Nexus/Note/Y (04e8:6860) @ bus 1, dev 3 
Attempting to connect device(s) 
PTP_ERROR_IO: failed to open session, trying again after resetting USB interface 
LIBMTP libusb: Attempt to reset device 
LIBMTP PANIC: failed to open session on second attempt 
Unable to open raw device 0 
OK. 

我使用创建的/etc/udev/rules.d/51-android.rules文件价值04e8为供应商ID和6860为设备ID。我完成了前述的howto,并做到这一点:

mkdir foo 
mtpfs -o allow_other foo 

现在正在做“ls foo”摊位。检查foo上方的目录也会失速。我不能在没有执行“killall -9 mtpfs”的情况下返回命令行(类似于处理过时的sshfs坐骑)。然后我看到:

ls: cannot access foo: Transport endpoint is not connected 

尝试https://askubuntu.com/a/88630/27480并得到了相同的结果。

https://github.com/hanwen/go-mtpfs细末mtpfs也失败:从https://github.com/kiorky/jmtpfs.git

mkdir foo 
./go-mtpfs foo 
2013/01/07 02:39:33 compiled against libmtp 1.1.3 
Device 0 (VID=04e8 and PID=6860) is a Samsung GT P7310/P7510/N7000/I9070/I9100/I9300 Galaxy Tab 7.7/10.1/S2/S3/Nexus/Note/Y. 
2013/01/07 02:39:33 found device Samsung: GT P7310/P7510/N7000/I9070/I9100/I9300 Galaxy Tab 7.7/10.1/S2/S3/Nexus/Note/Y (04e8:6860) @ bus 1, dev 3 
: 
PTP_ERROR_IO: failed to open session, trying again after resetting USB interface 
LIBMTP libusb: Attempt to reset device 
LIBMTP PANIC: failed to open session on second attempt 
2013/01/07 02:41:33 rdev.open failed: open: open returned nil 

jmptfs也失败:

Device 0 (VID=04e8 and PID=6860) is a Samsung GT P7310/P7510/N7000/I9070/I9100/I9300 Galaxy Tab 7.7/10.1/S2/S3/Nexus/Note/Y. 
PTP_ERROR_IO: failed to open session, trying again after resetting USB interface 
LIBMTP libusb: Attempt to reset device 
LIBMTP PANIC: failed to open session on second attempt 
terminate called after throwing an instance of 'MtpErrorCantOpenDevice' 
    what(): Can't open device 
Aborted 
+4

我后来发现,升级到libmtp-1.1.5将使MTP安装工作。但是,mtpfs包仍然存在严重错误。它似乎因质量差而闻名。 Jmtpfs出色地工作。如果mtpfs的作者正在观看,请考虑删除程序的内容并从jmtpfs中提取代码。 – Frotz

+1

感谢您的更新。我遇到了同样的问题。我曾以某种方式在12.04的32位版本上工作,但是当我重新安装以更新到64位时,我遇到了和您一样的问题。出于某种原因,我的旧版本有1.1.5,但是新版本的版本是1.1.3。我得到了1.1.5,现在起作用了。 –

回答

0

试试这个在终端:

killall gvfs-gphoto2-volume-monitor 
killall gvfs-mtp-volume-monitor 

之后,重新连接电话。并使用mtp-detect或其他基于libmtp的程序。它应该工作。

这是我在这个Ubuntu的错误提出了一个解决办法: https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1314556