MTP 不工作显示:/usr/lib/gvfs/gvfsd-mtp(没有此文件或目录)

MTP 不工作显示:/usr/lib/gvfs/gvfsd-mtp(没有此文件或目录)

打开笔记本电脑并连接设备后,它就被检测到并显示了该设备,但是当我尝试打开它时,出现了以下消息

"/usr/lib/gvfs/gvfsd-mtp" (No such file or directory)

由于一些工作,我必须关机,但是当我重新启动笔记本电脑时,该设备并没有出现在鹦鹉螺上。

该设备是运行 Android 6.0.1 的三星 j2,我尝试过不同的电缆,甚至尝试过另一部手机,但结果相同,什么也没有显示。

注意:我是 ubuntu 的完全新手,一周前才安装它,所以请稍微描述一下。

编辑:

命令:

ls -l /usr/lib/gvfs/

输出:

total 472 -rwxr-xr-x 1 root root 31912 May 18 2016 gvfsd -rwxr-xr-x 1 root root 31872 May 18 2016 gvfsd-burn -rwxr-xr-x 1 root root 40528 May 18 2016 gvfsd-computer -rwxr-xr-x 1 root root 36384 May 18 2016 gvfsd-fuse -rwxr-xr-x 1 root root 44216 May 18 2016 gvfsd-localtest -rwxr-xr-x 1 root root 77680 May 18 2016 gvfsd-metadata -rwxr-xr-x 1 root root 48752 May 18 2016 gvfsd-trash -rwxr-xr-x 1 root root 166200 May 18 2016 gvfs-udisks2-volume-monitor

编辑2:命令:sudo apt-get install gvfs-backends

输出:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
gvfs-backends : Depends: libsmbclient (>= 2:4.0.3+dfsg1) but it is not 
going to be installed
             Depends: gvfs (= 1.28.1-1ubuntu1) but 1.28.2-
1ubuntu1~16.04.1 is to be installed
             Depends: gvfs-daemons (= 1.28.1-1ubuntu1)
             Depends: gvfs-libs (= 1.28.1-1ubuntu1) but 1.28.2-
1ubuntu1~16.04.1 is to be installed
             Depends: gvfs-common (= 1.28.1-1ubuntu1) but 1.28.2-
1ubuntu1~16.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.

答案1

对于使用 mtpfs、jmtpfs、go-mtpfs 或任何其他依赖 libmtp 的库的用户,请尝试Android 文件传输

它不依赖于 libmtp,因此没有固有的错误,是我在 github 上见过的最新的 mtp 库(截至 2018 年 5 月),也可以与 FUSE 一起使用,尽管我个人建议使用它自己的基于 Qt 的 GUI 以避免可能出现的 FUSE 后端交互错误。

只需确保您不要使用 Linux 发行版提供的任何默认机制打开 MTP 设备,例如在设备连接通知弹出时单击“打开”!

github:https://github.com/whoozle/android-file-transfer-linux

购电协议(PPA):https://launchpad.net/~samoilov-lex/+archive/ubuntu/aftl-stable

阅读有关 Linux 上的 MTP 的信息:https://wiki.archlinux.org/index.php/MTP

PS:我只是这个应用程序的用户。

答案2

您需要从安装 gvfs 包https://packages.ubuntu.com/xenial/gvfs

安装包时,请断开手机连接。

相关内容