因此,我试图在三星和我的Debian9/KDE机器之间共享文件,使用MTP而不是。
问题是我一直在:
mtp协议的进程意外死亡。
当试图复制文件时。
它还经常说
没有找到仓库。也许你需要解锁你的设备?
经过一段时间的尝试后,我可以查看海豚手机的一些内容:只要手机上的对话框要求,我就按下“允许”键,同时尝试在海豚中打开它,从而正确地检测到它是三星Galaxy S5。
我曾经可以成功地复制一堆图片。
我已经试过sudo apt-get install --reinstall libmtp-common了。syslog有如下内容:
usb 1-5: usbfs: process 7907 (mtp.so) did not claim interface 0 before use
usb 1-5: reset high-speed USB device number 35 using xhci_hcd
usb 1-5: usbfs: process 7909 (mtp.so) did not claim interface 0 before use
colord-sane: io/hpmud/pp.c 627: unable to read device-id ret=-1
usb 1-5: USB disconnect, device number 35
usb 1-5: new high-speed USB device number 36 using xhci_hcd
usb 1-5: usbfs: process 7930 (mtp.so) did not claim interface 0 before use
usb 1-5: usbfs: process 7930 (mtp.so) did not claim interface 0 before use
usb 1-5: usbfs: process 7930 (mtp.so) did not claim interface 0 before use发布于 2017-09-02 15:59:50
安装jmtpfs包
apt install jmtpfs按以下方式编辑/etc/fuse.conf
# Allow non-root users to specify the allow_other or allow_root mount options.
user_allow_other创建一个udev规则。使用lsusb或mtp-detect获取设备的ID
nano /etc/udev/rules.d/51-android.rules行如下:
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", MODE="0666", OWNER="[username]"将04e8和6860替换为您的,然后运行:
udevadm control --reload重新连接设备,打开终端并运行:
mkdir ~/mtp
jmtpfs ~/mtp
ls ~/mtp样本输出:
Card Phone若要卸载设备,请使用以下命令:
fusermount -u ~/mtp此外,您还可以使用go-mtpfs工具:
将MTP装置安装在熔断器上
mkdir ~/mtp
go-mtpfs ~/mtp安装设备的图形化工具:gmtp:
基于MTP设备的简单文件传输程序
sudo apt install gmtp
gmtp使用KDE平台访问应用程序的MTP设备
https://unix.stackexchange.com/questions/389952
复制相似问题