MTP [Android] support on any GNU / Linux distribution.

If you got this far, it's because you want to add support for the multimedia data transfer protocol MTP (Multimedia Transfer Protocol) of our Android.

The question is very simple. Just add (depending on the distro you have; deb or rpm) a series of lines of code (using sudo for newbies) to install the packages and then restart so that it recognizes the internal memory of the cell phone.

MTP support in Debian / Ubuntu / Mint and derivatives "deb"

I clarify that first try the last of the 3 steps. It may be that your distro already has the programs in the repository. If you get an error then start from here.

First:

sudo add-apt-repository ppa:langdalepl/gvfs-mtp

Second:

sudo apt-get update & dist-upgrade

Finally:

sudo apt-get install mtp-tools mtpfs

MTP support in Red Hat / Fedora / CentOS / Suse and "rpm" derivatives:

Put (clarify that they have to have the RPMFusion repos)

sudo yum install gvfs-mtp kio_mtp libmtp simple-mtpfs

The files are lightweight, so you can download them with the peace of mind that they are very light. As I said before; reboot and that's it. They will already have mtp support on their beloved and beloved Linux.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Jorge said

    It's good, once I activated it and everything is fine, although it would be perfect if MTP were not so slow in GNU / Linux.

  2.   Gabriel said

    This tip is very useful 😉

  3.   tabris said

    The same kio-mtp is far from working well with all android phones

  4.   Manual of the Source said

    I add, for Arch Linux is

    # pacman -S libmtp gvfs-mtp

    And if I remember correctly, you have to restart the session to apply the changes.

    1.    Shyancore said

      Thank you very much for contributing giving more useful information 🙂

    2.    paul honorato said

      Although Arch recognized my phone after installation, it was a bit clunky. I'll try it.

  5.   Surfer said

    very interesting, thanks for the tip, and by the way here in the blog I have not seen anyone mention the most famous phone of the moment (well really not so much anymore) the OnePlus One that comes with Cyanogenmod by default, I have already seen many reviews but no I would like to see one of the blog here

  6.   pabloncho said

    Many thanks!!!!

    It also works for windows phone 8.1 on a notebook with Ubuntu 14.04.
    It cost me a world to connect my cell phone with the notebook to move files, mainly music, with these steps later it was plug & play. 🙂

    Excellent work!!!

    Greetings from the south of Chile !!!!

  7.   Brian said

    The info is very much appreciated !!!!

  8.   Mr. Paquito said

    Greetings to all and all.

    Just a quick question:

    The mtp-tools and mtpfs packages are not already installed by default in Ubuntu 14.04?

    I thought they were.

    Thank you.

  9.   Carper said

    There is also the option of KDE Connect, an excellent application, not only is it file synchronization, you can also use your smartphone as a touchpad and multimedia control.
    regards

  10.   Avelino DeSousa said

    Hello, how can I activate MTP in Windows Phone 8.1 to use it in Linux? Although I want an Android and I don't have money to buy one, I'm looking for how to connect it in Linux, either Ubuntu, Fedora or OpenSUSE. a greeting.

    1.    Shyancore said

      It also recognizes the windows phone

  11.   Jose said

    For variety lovers: gmtp (http://gmtp.sourceforge.net).
    I use it with my Lumia 520 with wp8.1 and it allows me to work with internal memory (Phone) or external memory (SD).

  12.   orlando palm said

    Hello,
    Thanks for the input, I have followed the steps to enable MTP in Elementary OS Luna (based on ubuntu 12.04), but it doesn't work, my moto G doesn't show up in the file manager In Ubuntu 14.04 it works out-the-box
    Install the mtp-tools runtime and neither
    Any ideas
    Saludos y gracias

    1.    Shyancore said

      Did you notice that the Moto G was like MTP and not Mass Storage? It has happened to me haha

  13.   VaryHeavy said

    I clarify that the last command is valid for Red Hat and its substitutes, but not for OpenSUSE (nor for other "rpm" such as Mageia, OpenMandriva or PCLinuxOS), since the latter does not use Yum but Zypper, and neither does it use the RPMFusion repository. Instead, in OpenSUSE the requested packages will be found, if not in their official repositories, in one of the community repositories (probably "Filesystems" or "Packman"), and the command would be:

    sudo zipper install

  14.   jesusguy said

    # sudo add-apt-repository ppa: langdalepl / gvfs-mtp
    ...
    GPG: Requesting Key C07Bbec4 from HKP Server Keyserver.ubuntu.com
    gpg: key C07BBEC4: "Launchpad PPA for Philip Langdale" not changed
    gpg: Total number processed: 1
    gpg: unchanged: 1

    sudo apt-get update & dist-upgrade
    [1] 5904
    Bash: DIST-UPGRADE: Command Not Found
    ...
    E: Some index files failed to download. They have been ignored, or old ones used instead.

    # Dist-upgrade
    Bash: DIST-UPGRADE: Command Not Found

    s # sudo apt-get install mtp-tools mtpfs
    Reading package lists ... Done
    Building dependency tree
    Reading state information ... Done
    E: Unable to locate package mtpfs

  15.   jesusguy said

    In the end, I installed Pushbullet and Airdroid on Android and it serves me for what I want to do right now, which is, transfer a photo from the phone to the PC, without sending it to me by email. Although I still have the phone connected to the laptop because it is charging.

    I couldn't use MPT.

  16.   Erickisos said

    I don't know if it's me, but it seems to me that the second command line is wrong, and instead of "dist-upgrade" it would be just an apt-get upgrade, right? maybe it's my thing

  17.   aeneas_e said

    Great contribution this post!
    Be careful with the configuration of the cell phone. If USB debugging is active on Android or things like that, it won't show on your linux, even if you have the MTP packages.
    On my Xubuntu 14.04 the necessary packages were available.
    Regards,

  18.   Alfred said

    Well, it doesn't work for me in Mint 17.3. The following message comes out
    'This PPA does not support trusty'
    Cannot add the PPA: »This PPA does not support trusty».

  19.   Andres Anibal Nuñez Neck said

    I get this »sudo apt-get update & dist-upgrade
    [1] 4887
    dist-upgrade: order not found
    Obj: 1 http://linux.teamviewer.com/deb stable InRelease
    Obj: 2 http://archive.ubuntu.com/ubuntu Cosmic Inrelease
    Ign: 3 http://ppa.launchpad.net/langdalepl/gvfs-mtp/ubuntu Cosmic Inrelease
    Obj: 4 http://security.ubuntu.com/ubuntu Cosmic-Security Inrelease
    Obj: 5 http://archive.ubuntu.com/ubuntu Cosmic-Updates Inrelease
    Obj: 6 http://archive.ubuntu.com/ubuntu Cosmic-Backports Inrelease
    Ign: 7 http://ppa.launchpad.net/thefanclub/grive-tools/ubuntu Cosmic Inrelease
    Err: 8 http://ppa.launchpad.net/langdalepl/gvfs-mtp/ubuntu cosmic release
    404 Not Found [IP: 91.189.95.83 80]
    Err: 9 http://ppa.launchpad.net/thefanclub/grive-tools/ubuntu cosmic release
    404 Not Found [IP: 91.189.95.83 80]
    Reading package list ... Done
    E: The repository "http://ppa.launchpad.net/langdalepl/gvfs-mtp/ubuntu cosmic Release" does not have a Release file.
    N: You cannot update from a repository like this safely and therefore it is disabled by default.
    N: See the apt-secure (8) man page for details on creating repositories and configuring users.
    E: The repository "http://ppa.launchpad.net/thefanclub/grive-tools/ubuntu cosmic Release" does not have a Release file.
    N: You cannot update from a repository like this safely and therefore it is disabled by default.
    N: See the apt-secure (8) man page for details on creating repositories and configuring users.
    anibal @ anibal-pc: ~ $ gvfs-mtp kio_mtp libmtp simple-mtpfs
    gvfs-mtp: command not found
    [1] + Output 100 sudo apt-get update
    [1] + Output 100 sudo apt-get update
    anibal @ anibal-pc: ~ $
    »
    I don't know what to do next since it detects it but it tells me when I open the cell phone folder »The name: 1.84 was not provided by any .service files»
    i am new to lubuntu i have never used ubuntu

  20.   Edgardo said

    I have Ubuntu 20.04 and it didn't help me

    1.    Joaquin Manuel Crespo said

      Hello Edgardo, your post is 6 years old now, so when the posts are so old it is unlikely that the author (in this case, me) will respond to you. Today you safas because you caught me in good to try to remember such an old password haha.

      Remember to restart the session (since gvfs starts as a graphical environment service) and to configure on your phone to use the MTP protocol.