Ошибка libmtp could not get file from device

I am attempting to transfer files from my OnePlus X Android phone to my fairly fresh Ubuntu 16.10 installation. After the phone is mounted (and I can see file, navigate the filesystem etc.), when I attempt to transfer files from the phone to the Ubuntu system, I am presented with the following error message:

libmtp error:  Could not get file from device.

What might be going wrong here? I have previously installed libmtpserver-dev and mtp-server.

muru's user avatar

muru

192k52 gold badges468 silver badges719 bronze badges

asked Feb 2, 2017 at 12:52

d3pd's user avatar

5

  1. Install this dependency to build libmtp

    sudo apt-get install libusb-dev --install-suggests

  2. Get the libmtp here libmtp Latest Download

  3. Extract the file using a file explorer program [or via the terminal]

    tar xvf libmtp-1.1.1.tar.gz

  4. cd into the new directory you just extracted
  5. Configure (MAKE SURE YOU’RE ARE IN THE /libmtp-*/ DIR)

    ./configure --prefix=/usr
    make

  6. Install (AGAIN, MAKE SURE YOU’RE IN THE /libmtp-*/ DIR)

    sudo make install

  7. Copy rules to /etc/udev/rules.d/ (you might wanna double check the rules.d/ dir to see if coping over the new set of rules is necessary … it probably is)

    sudo cp 69-libmtp.rules /etc/udev/rules.d

  8. Install the gMTP GUI Util

    sudo apt-get install gmtp --install-suggests

  9. Open/Run the gmtp program from the menu or term and enjoy!

NOTE: If you have issues you might need to disconnect the device. Or restart. Or update things… sudo apt-get update and/or sudo apt-get upgrade

Hope this helps, if so vote up. If more help is needed hit me up and I’ll do what I can.

answered Feb 24, 2017 at 20:49

Rockin4Life33's user avatar

7

I faced a problem because the filename has a Diamond character in the filename. Removing it the transfer worked. It seems the transfer had problem with filename containing unicode chars.

answered Feb 4, 2022 at 14:27

Sergio Abreu's user avatar

@Anovative’s answer is what worked for me.

New LG G6 would not mount properly on Ubuntu 14.04.5. It half-worked; I could navigate the file structure in my phone. Retrieving files didn’t work though.

Error details were often:

libmtp error: call to ptp_mtp_getobjectpropssupported() failed

or

libmtp error:  Could not get file from device

Downloaded libmtp-1.1.14, compiled, installed the shared library, had to move things around a bit so the new .so was pointed at, now everything works just fine.

answered Nov 13, 2017 at 21:29

studog's user avatar

studogstudog

1911 silver badge5 bronze badges

I wanted to transfer photos, and had to switch usb connection mode from file to photo on my phone (Android 10).

tinlyx's user avatar

tinlyx

3,1026 gold badges34 silver badges53 bronze badges

answered Sep 26, 2020 at 16:17

Daniel's user avatar

According to ArchWiki:

It seems that it is caused by file with name like
20180915_180351(0).jpg. Samsung phones for example like to create
files with such names.

answered Feb 21, 2022 at 9:18

giammi56's user avatar


0

1

Собственно, пытаюсь копировать файлы с фунтреннего накопителя ведроида на стационарник. В ведроиде выбираю режим подключения «transfer files». В gvfs (thunar/pcmanfm) сабж монируется, и даже что-то копирует. Но работает эта связка крайне ненадёжно, особенно на больши=х файлах соединение постоянно отваливается с libmtp error: Could not get file from device.

Собственно, это в линаксе какая-то особо кривая библиотека для работы с телефонами или это ведроид кривой, или обе причины? И есть ли какие-то альтернативные способы оттуда файлы доставать, кроме ручного копирования их на внешнюю sdd?

I am attempting to transfer files from my OnePlus X Android phone to my fairly fresh Ubuntu 16.10 installation. After the phone is mounted (and I can see file, navigate the filesystem etc.), when I attempt to transfer files from the phone to the Ubuntu system, I am presented with the following error message:

libmtp error:  Could not get file from device.

What might be going wrong here? I have previously installed libmtpserver-dev and mtp-server.

muru's user avatar

muru

188k50 gold badges459 silver badges709 bronze badges

asked Feb 2, 2017 at 12:52

d3pd's user avatar

5

  1. Install this dependency to build libmtp

    sudo apt-get install libusb-dev --install-suggests

  2. Get the libmtp here libmtp Latest Download

  3. Extract the file using a file explorer program [or via the terminal]

    tar xvf libmtp-1.1.1.tar.gz

  4. cd into the new directory you just extracted
  5. Configure (MAKE SURE YOU’RE ARE IN THE /libmtp-*/ DIR)

    ./configure --prefix=/usr
    make

  6. Install (AGAIN, MAKE SURE YOU’RE IN THE /libmtp-*/ DIR)

    sudo make install

  7. Copy rules to /etc/udev/rules.d/ (you might wanna double check the rules.d/ dir to see if coping over the new set of rules is necessary … it probably is)

    sudo cp 69-libmtp.rules /etc/udev/rules.d

  8. Install the gMTP GUI Util

    sudo apt-get install gmtp --install-suggests

  9. Open/Run the gmtp program from the menu or term and enjoy!

NOTE: If you have issues you might need to disconnect the device. Or restart. Or update things… sudo apt-get update and/or sudo apt-get upgrade

Hope this helps, if so vote up. If more help is needed hit me up and I’ll do what I can.

answered Feb 24, 2017 at 20:49

Rockin4Life33's user avatar

7

@Anovative’s answer is what worked for me.

New LG G6 would not mount properly on Ubuntu 14.04.5. It half-worked; I could navigate the file structure in my phone. Retrieving files didn’t work though.

Error details were often:

libmtp error: call to ptp_mtp_getobjectpropssupported() failed

or

libmtp error:  Could not get file from device

Downloaded libmtp-1.1.14, compiled, installed the shared library, had to move things around a bit so the new .so was pointed at, now everything works just fine.

answered Nov 13, 2017 at 21:29

studog's user avatar

studogstudog

1911 silver badge5 bronze badges

I wanted to transfer photos, and had to switch usb connection mode from file to photo on my phone (Android 10).

tinlyx's user avatar

tinlyx

3,0545 gold badges33 silver badges53 bronze badges

answered Sep 26, 2020 at 16:17

Daniel's user avatar

I faced a problem because the filename has a Diamond character in the filename. Removing it the transfer worked. It seems the transfer had problem with filename containing unicode chars.

answered Feb 4, 2022 at 14:27

Sergio Abreu's user avatar

According to ArchWiki:

It seems that it is caused by file with name like
20180915_180351(0).jpg. Samsung phones for example like to create
files with such names.

answered Feb 21, 2022 at 9:18

giammi56's user avatar

  1. According to apt I have the latest version of libmtp on my Ubuntu 17.10 system

    When my tablet is plugged in and mounted:

    mtp-detect
    libmtp version: 1.1.13

    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 1, dev 12
    Attempting to connect device(s)
    ignoring libusb_claim_interface() = -6PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
    LIBMTP libusb: Attempt to reset device
    ignoring libusb_claim_interface() = -6LIBMTP PANIC: failed to open session on second attempt
    Unable to open raw device 0
    OK.

    If I try to unmount the device I get that one or more applications are keeping the interface busy. If I tell it to unmount anyway I get backend is currently unmounting.

    How do I copy files from my Android tablet to Linux?

    Following advice from other threads I tried installing sshdroid on my tablet and connecting to the server from FileZilla:

    Status: Connecting to 192.168.1.3:2222…
    Status: Connection established, waiting for welcome message…
    Response: SSH-2.0-dropbear_0.53.1
    Error: Cannot establish FTP connection to an SFTP server. Please select proper protocol.
    Error: Critical error: Could not connect to server

    Also the protocol requires a password. What is the password? My tablet is only protected by a pin.

    I have now tried to reverse the direction and run an FTP client on the Android tablet to access the FTP server on the Linux machine. I entered the same options into the Android FTP client that I use on my laptop on the same network but the request fails when I use the name of the server. I only succeed if I identify the server by its IP address rather than its name on the local network and use plain FTP.

    Last edited by 7-webmaster; February 22nd, 2018 at 12:07 AM.



Я пытаюсь перенести файлы с телефона Android OnePlus X на мою довольно свежую версию Ubuntu 16.10. После подключения телефона (и просмотра файла, навигации по файловой системе и т. Д.) При попытке передачи файлов с телефона в систему Ubuntu появляется следующее сообщение об ошибке:

libmtp error:  Could not get file from device.

Что может быть не так? Я ранее установил libmtpserver-devи mtp-server.






Ответы:


  1. Установите эту зависимость для построения libmtp

    sudo apt-get install libusb-dev --install-suggests

  2. Получить libmtpздесь последние загрузки libmtp

  3. Извлеките файл, используя программу для просмотра файлов [или через терминал]

    tar xvf libmtp-1.1.1.tar.gz

  4. cd в новый каталог, который вы только что извлекли
  5. Настроить (УБЕДИТЕСЬ, ЧТО ВЫ НАХОДИТСЯ В /libmtp-*/DIR)

    ./configure --prefix=/usr
    make

  6. Установить (СНОВА, УБЕДИТЕСЬ, ЧТО ВЫ В ДИРЕКТОРЕ /libmtp-*/)

    sudo make install

  7. Скопируйте правила в /etc/udev/rules.d/(вы можете дважды проверить rules.d/каталог, чтобы увидеть, нужно ли копировать новый набор правил … это возможно)

    sudo cp 69-libmtp.rules /etc/udev/rules.d

  8. Установите gMTP GUI Util

    sudo apt-get install gmtp --install-suggests

  9. Откройте / запустите программу gmtp из меню или термина и наслаждайтесь!

ПРИМЕЧАНИЕ. При возникновении проблем может потребоваться отключить устройство. Или перезагрузите. Или обновить вещи … sudo apt-get updateи / илиsudo apt-get upgrade

Надеюсь, это поможет, если так, проголосуйте. Если понадобится дополнительная помощь, ударите меня, и я сделаю все, что смогу.







Ответ @ Anovative — это то, что сработало для меня.

Новый LG G6 не будет правильно монтироваться на Ubuntu 14.04.5. Это наполовину сработало; Я мог бы перемещаться по файловой структуре в моем телефоне. Получение файлов не сработало.

Детали ошибок часто были:

libmtp error: call to ptp_mtp_getobjectpropssupported() failed

или

libmtp error:  Could not get file from device

Скачанный libmtp-1.1.14, скомпилированный, установивший разделяемую библиотеку, должен был немного переделать, так что на новый .so указали, теперь все работает просто отлично.

Я пытаюсь передать файлы от своего телефона на базе Android OnePlus X до моей довольно новой установки Ubuntu 16.10. После того, как телефон смонтирован (и я вижу файл, перемещаюсь по файловой системе и т.д.), когда я пытаюсь передать файлы от телефона до системы Ubuntu, мне дарят следующее сообщение об ошибке:

libmtp error:  Could not get file from device.

Что могло бы идти не так, как надо здесь? Я ранее установил libmtpserver-dev и mtp-server.

задан
2 February 2017 в 17:59

поделиться

3 ответа

  1. Установите эту зависимость для создания libmtp

    sudo apt-get install libusb-dev --install-suggests

  2. Доберитесь libmtp здесь libmtp Последняя Загрузка

  3. Извлеките файл с помощью программы файлового менеджера [или через терминал]

    tar xvf libmtp-1.1.1.tar.gz

  4. cd в новый каталог Вы просто извлекли
  5. Настройте (УДОСТОВЕРЬТЕСЬ, что ВЫ, НАХОДЯТСЯ В /libmtp-*/ DIR)

    ./configure --prefix=/usr make

  6. Установка (СНОВА, УДОСТОВЕРЬТЕСЬ, что ВЫ НАХОДИТЕСЬ В /libmtp-*/ DIR)

    sudo make install

  7. Копия управляет к /etc/udev/rules.d/ (Вы могли бы хотеть проверить дважды rules.d/ dir, чтобы видеть, необходимо ли привыкание по новому подшипнику… это, вероятно),

    sudo cp 69-libmtp.rules /etc/udev/rules.d

  8. Установите gMTP GUI Util

    sudo apt-get install gmtp --install-suggests

  9. Откройтесь/Выполните gmtp программу из меню или назовите и наслаждайтесь!

Примечание: Если у Вас есть проблемы, Вы, возможно, должны были бы отключить устройство. Или перезапуск. Или вещи обновления… sudo apt-get update и/или sudo apt-get upgrade

Надежда это помогает, раз так голосование. Если больше помощи необходимо, подбрасывает меня ударом, и я сделаю то, что я могу.

ответ дан Rockin4Life33
23 November 2019 в 04:09

поделиться

Ответ @Anovative — то, что работало на меня.

Новый LG G6 не смонтировался бы правильно на Ubuntu 14.04.5. Это полуработало; я мог переместиться по файловой структуре в своем телефоне. Получение файлов не работало все же.

Детали ошибки часто были:

libmtp error: call to ptp_mtp_getobjectpropssupported() failed

или

libmtp error:  Could not get file from device

Загруженный libmtp-1.1.14, скомпилированный, установил общую библиотеку, должен был переместить вещи немного, таким образом, на новый .so указали, теперь все работает просто великолепно.

ответ дан studog
23 November 2019 в 04:09

поделиться

Я хотел передать фотографии, и мне пришлось переключить режим подключения USB с файла на фотографию на моем телефоне (Android 10).

ответ дан Community
26 September 2020 в 16:17

поделиться

Другие вопросы по тегам:

Похожие вопросы:

Yes, but I am not entirely sure how to correctly reproduce this bug.

  • Attaching the unlocked phone to my PC, I am not able to browse the files on the phone (The phone appears in nautilus but the «eject» icon is missing and it appears to not be «mounted).
  • When I then lock the screen and unlock it again, I can browse the internal storage and the usd card and copy files. This however, does not work always.
  • When I attach a locked phone, the «eject» button appears in nautilus and when I unlock the phone, I can only browse the internal storage.
  • When I play around wildly with locking and unlocking and attaching and removing the phone, I can reach a state where I cannot access any storage on the phone. This might be related to the segfaults that I see in dmesg | tail on Ubuntu 17.10:
[31500.381142] usb 1-1: usbfs: process 27028 (pool) did not claim interface 0 before use [31500.499879] usb 1-1: reset high-speed USB device number 40 using xhci_hcd [31500.640932] usb 1-1: usbfs: process 27028 (pool) did not claim interface 0 before use [31500.759665] usb 1-1: reset high-speed USB device number 40 using xhci_hcd [31500.900365] usb 1-1: usbfs: process 27028 (pool) did not claim interface 0 before use [31501.019966] usb 1-1: reset high-speed USB device number 40 using xhci_hcd [31501.279691] usb 1-1: reset high-speed USB device number 40 using xhci_hcd [31501.421247] usb 1-1: usbfs: process 27012 (pool) did not claim interface 0 before use [31670.365297] usb 1-1: reset high-speed USB device number 40 using xhci_hcd [31674.486497] usb 1-1: USB disconnect, device number 40 [31681.777129] usb 1-1: new high-speed USB device number 41 using xhci_hcd [31681.917636] usb 1-1: New USB device found, idVendor=2a47, idProduct=2008 [31681.917642] usb 1-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4 [31681.917646] usb 1-1: Product: Aquaris_E4.5 [31681.917650] usb 1-1: Manufacturer: BQ [31681.917653] usb 1-1: SerialNumber: JU00XXXX [31683.901372] usb 1-1: usbfs: process 27316 (pool) did not claim interface 0 before use [31684.021295] usb 1-1: reset high-speed USB device number 41 using xhci_hcd [31684.162371] usb 1-1: usbfs: process 27316 (pool) did not claim interface 0 before use [31684.281407] usb 1-1: reset high-speed USB device number 41 using xhci_hcd [31684.422299] usb 1-1: usbfs: process 27316 (pool) did not claim interface 0 before use [31684.541128] usb 1-1: reset high-speed USB device number 41 using xhci_hcd [31684.682192] usb 1-1: usbfs: process 27309 (pool) did not claim interface 0 before use [31684.682340] usb 1-1: usbfs: process 27316 (pool) did not claim interface 0 before use [31684.801467] usb 1-1: reset high-speed USB device number 41 using xhci_hcd [31853.478534] usb 1-1: reset high-speed USB device number 41 using xhci_hcd [31858.458725] usb 1-1: USB disconnect, device number 41 [31861.894144] usb 1-1: new high-speed USB device number 42 using xhci_hcd [31862.035077] usb 1-1: New USB device found, idVendor=2a47, idProduct=2008 [31862.035083] usb 1-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4 [31862.035087] usb 1-1: Product: Aquaris_E4.5 [31862.035091] usb 1-1: Manufacturer: BQ [31862.035094] usb 1-1: SerialNumber: JU00XXXX [31863.369027] usb 1-1: usbfs: process 27514 (pool) did not claim interface 0 before use [31863.546642] usb 1-1: reset high-speed USB device number 42 using xhci_hcd [31863.687582] usb 1-1: usbfs: process 27514 (pool) did not claim interface 0 before use [31863.806649] usb 1-1: reset high-speed USB device number 42 using xhci_hcd [31863.947717] usb 1-1: usbfs: process 27514 (pool) did not claim interface 0 before use [31864.066544] usb 1-1: reset high-speed USB device number 42 using xhci_hcd [31864.207341] usb 1-1: usbfs: process 27505 (pool) did not claim interface 0 before use [31864.326420] usb 1-1: reset high-speed USB device number 42 using xhci_hcd [31864.467281] usb 1-1: usbfs: process 27505 (pool) did not claim interface 0 before use [31888.925098] usb 1-1: USB disconnect, device number 42 [31888.941770] gvfsd-mtp[27510]: segfault at 18 ip 00007fccaed6c5a9 sp 00007ffcd5e55e70 error 4 in libgvfsdaemon.so[7fccaed60000+24000] [31892.393704] usb 1-1: new high-speed USB device number 43 using xhci_hcd [31892.534290] usb 1-1: New USB device found, idVendor=2a47, idProduct=2008 [31892.534296] usb 1-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4 [31892.534301] usb 1-1: Product: Aquaris_E4.5 [31892.534305] usb 1-1: Manufacturer: BQ [31892.534308] usb 1-1: SerialNumber: JU00XXXX [32016.488992] usb 1-1: USB disconnect, device number 43 [32035.467261] usb 1-1: new high-speed USB device number 44 using xhci_hcd [32035.607953] usb 1-1: New USB device found, idVendor=2a47, idProduct=2008 [32035.607958] usb 1-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4 [32035.607962] usb 1-1: Product: Aquaris_E4.5 [32035.607965] usb 1-1: Manufacturer: BQ [32035.607969] usb 1-1: SerialNumber: JU00XXXX [32041.606763] usb 1-1: usbfs: process 27729 (pool) did not claim interface 0 before use [32041.783426] usb 1-1: reset high-speed USB device number 44 using xhci_hcd [32041.924531] usb 1-1: usbfs: process 27729 (pool) did not claim interface 0 before use [32042.047368] usb 1-1: reset high-speed USB device number 44 using xhci_hcd [32042.188419] usb 1-1: usbfs: process 27729 (pool) did not claim interface 0 before use [32042.307311] usb 1-1: reset high-speed USB device number 44 using xhci_hcd [32042.567492] usb 1-1: reset high-speed USB device number 44 using xhci_hcd [32042.708813] usb 1-1: usbfs: process 27708 (pool) did not claim interface 0 before use [32045.388636] usb 1-1: USB disconnect, device number 44 [32045.395847] gvfsd-mtp[27725]: segfault at 18 ip 00007efd944ec5a9 sp 00007ffd9b397330 error 4 in libgvfsdaemon.so[7efd944e0000+24000] [32049.019112] usb 1-1: new high-speed USB device number 45 using xhci_hcd [32049.159867] usb 1-1: New USB device found, idVendor=2a47, idProduct=2008 [32049.159873] usb 1-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4 [32049.159877] usb 1-1: Product: Aquaris_E4.5 [32049.159881] usb 1-1: Manufacturer: BQ [32049.159884] usb 1-1: SerialNumber: JU00XXXX [32053.583924] usb 1-1: usbfs: process 27757 (pool) did not claim interface 0 before use [32053.703170] usb 1-1: reset high-speed USB device number 45 using xhci_hcd [32053.844070] usb 1-1: usbfs: process 27757 (pool) did not claim interface 0 before use [32053.963148] usb 1-1: reset high-speed USB device number 45 using xhci_hcd [32054.223369] usb 1-1: reset high-speed USB device number 45 using xhci_hcd [32054.363998] usb 1-1: usbfs: process 27749 (pool) did not claim interface 0 before use [32054.364156] usb 1-1: usbfs: process 27757 (pool) did not claim interface 0 before use [32054.483212] usb 1-1: reset high-speed USB device number 45 using xhci_hcd [32056.740018] usb 1-1: USB disconnect, device number 45 [32056.748308] gvfsd-mtp[27745]: segfault at 18 ip 00007f8de0b675a9 sp 00007ffebc2269f0 error 4 in libgvfsdaemon.so[7f8de0b5b000+24000] [32060.478832] usb 1-1: new high-speed USB device number 46 using xhci_hcd [32060.619430] usb 1-1: New USB device found, idVendor=2a47, idProduct=2008 [32060.619436] usb 1-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4 [32060.619440] usb 1-1: Product: Aquaris_E4.5 [32060.619443] usb 1-1: Manufacturer: BQ [32060.619446] usb 1-1: SerialNumber: JU00XXXX [32069.680975] usb 1-1: usbfs: process 27793 (pool) did not claim interface 0 before use [32069.799042] usb 1-1: reset high-speed USB device number 46 using xhci_hcd [32069.940046] usb 1-1: usbfs: process 27793 (pool) did not claim interface 0 before use [32070.058905] usb 1-1: reset high-speed USB device number 46 using xhci_hcd [32070.199728] usb 1-1: usbfs: process 27793 (pool) did not claim interface 0 before use [32070.318953] usb 1-1: reset high-speed USB device number 46 using xhci_hcd [32070.579048] usb 1-1: reset high-speed USB device number 46 using xhci_hcd [32070.720264] usb 1-1: usbfs: process 27784 (pool) did not claim interface 0 before use [32402.700846] usb 1-1: reset high-speed USB device number 46 using xhci_hcd [32415.906604] usb 1-1: USB disconnect, device number 46 [32419.756300] usb 1-1: new high-speed USB device number 47 using xhci_hcd [32419.897129] usb 1-1: New USB device found, idVendor=2a47, idProduct=2008 [32419.897153] usb 1-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4 [32419.897158] usb 1-1: Product: Aquaris_E4.5 [32419.897162] usb 1-1: Manufacturer: BQ [32419.897166] usb 1-1: SerialNumber: JU00XXXX [32422.886323] usb 1-1: usbfs: process 28055 (pool) did not claim interface 0 before use [32423.004510] usb 1-1: reset high-speed USB device number 47 using xhci_hcd [32423.145263] usb 1-1: usbfs: process 28055 (pool) did not claim interface 0 before use [32423.264606] usb 1-1: reset high-speed USB device number 47 using xhci_hcd [32423.524466] usb 1-1: reset high-speed USB device number 47 using xhci_hcd [32423.665353] usb 1-1: usbfs: process 28046 (pool) did not claim interface 0 before use [32423.665568] usb 1-1: usbfs: process 28055 (pool) did not claim interface 0 before use [32423.784478] usb 1-1: reset high-speed USB device number 47 using xhci_hcd [32432.541776] usb 1-1: usbfs: process 28066 (pool) did not claim interface 0 before use [32432.660440] usb 1-1: reset high-speed USB device number 47 using xhci_hcd [32432.801632] usb 1-1: usbfs: process 28066 (pool) did not claim interface 0 before use [32432.920451] usb 1-1: reset high-speed USB device number 47 using xhci_hcd [32434.272866] usb 1-1: USB disconnect, device number 47 [32434.293241] gvfsd-mtp[28062]: segfault at 18 ip 00007f72798715a9 sp 00007fff54fa26b0 error 4 in libgvfsdaemon.so[7f7279865000+24000] [32439.739845] usb 1-1: new high-speed USB device number 48 using xhci_hcd [32439.880644] usb 1-1: New USB device found, idVendor=2a47, idProduct=2008 [32439.880650] usb 1-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4 [32439.880654] usb 1-1: Product: Aquaris_E4.5 [32439.880657] usb 1-1: Manufacturer: BQ [32439.880660] usb 1-1: SerialNumber: JU00XXXX [32525.262387] usb 1-1: reset high-speed USB device number 48 using xhci_hcd [32526.944768] usb 1-1: USB disconnect, device number 48 [32566.837479] usb 1-1: new high-speed USB device number 49 using xhci_hcd [32566.978311] usb 1-1: New USB device found, idVendor=2a47, idProduct=2008 [32566.978317] usb 1-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4 [32566.978321] usb 1-1: Product: Aquaris_E4.5 [32566.978324] usb 1-1: Manufacturer: BQ [32566.978328] usb 1-1: SerialNumber: JU00XXXX [32568.797503] usb 1-1: usbfs: process 28232 (pool) did not claim interface 0 before use [32568.917723] usb 1-1: reset high-speed USB device number 49 using xhci_hcd [32569.058653] usb 1-1: usbfs: process 28232 (pool) did not claim interface 0 before use [32569.177826] usb 1-1: reset high-speed USB device number 49 using xhci_hcd [32569.318477] usb 1-1: usbfs: process 28232 (pool) did not claim interface 0 before use [32569.437595] usb 1-1: reset high-speed USB device number 49 using xhci_hcd [32569.578110] usb 1-1: usbfs: process 28223 (pool) did not claim interface 0 before use [32569.697792] usb 1-1: reset high-speed USB device number 49 using xhci_hcd [32569.838501] usb 1-1: usbfs: process 28223 (pool) did not claim interface 0 before use 

hello,

before opening a bug on the ubuntu package, I’d like to investigate the probleme the source.

When I connect a Motorola XT1524, it’s correctly recognized, but file transfer behaves erratically.

Sometimes files are transferred from the device to the PC, most of the times not.

I only receive this error:

libmtp error: Could not get file from device

Is there a way to see more detail so I can provide more debug log?

Ubuntu 18.04 ships with libmtp 1.1.13. I’ve also manually compiled libmtp 1.1.15 and with both version I have the same errors on mtp-connect and mpt-detect (not sure if related):

$ /usr/local/bin/mtp-detect
libmtp version: 1.1.15

Listing raw device(s)
Device 0 (VID=22b8 and PID=002e) is a Motorola XT1524 (MTP).
Found 1 device(s):
Motorola: XT1524 (MTP) (22b8:002e) @ bus 1, dev 7
Attempting to connect device(s)
ignoring libusb_claim_interface() = -6PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
ignoring libusb_claim_interface() = -6LIBMTP PANIC: failed to open session on second attempt
Unable to open raw device 0
OK.

$ /usr/local/bin/mtp-connect
libmtp version: 1.1.15

Device 0 (VID=22b8 and PID=002e) is a Motorola XT1524 (MTP).
ignoring libusb_claim_interface() = -6PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
ignoring libusb_claim_interface() = -6LIBMTP PANIC: failed to open session on second attempt
No devices.

Is there a way I can provide more feedback? What can it be the problem?

thanks

When trying to transfer my project data back to my Ubuntu 20.x I get the error "libmtp-Fehler: Could not get file from device".
I already tried several things, like this and others that I get from a Google search.

Is there any hint from your side towards this problem? I use QField 2.0.15 at the moment.

Kadir Şahbaz's user avatar

Kadir Şahbaz

63.5k49 gold badges189 silver badges302 bronze badges

asked Apr 20, 2022 at 19:58

rusch's user avatar

Are you using the QField private folder? that might be related, but I’m not sure.

Due to new google policies we, unfortunately, had to remove some storage access functionalities and use the QField private folder. This folder is only available to QField. the next QField version will have even better import/export functionality.

you can find many more details here: https://www.opengis.ch/qfield-storage

answered Apr 22, 2022 at 21:12

mbernasocchi's user avatar

2

3

I am trying to copy image file to backup it on my desktop which is linux mint (17.3 or Rosa) installed. I am using Infinix X510 phone with the newest version of android 6. At the beginning it was OK. But, at the end i get the message

“libmtp error: Could not get file from device”

I tried the solution as found by Googling here https://askubuntu.com/questions/879029/libmtp-error-could-not-get-file-from-device-on-attempting-to-transfer-files

But, it wasn’t working for me. Is there a way to solve this matter? I need file to support my company job which supplying cosmetics.

  • android
  • linux-mint
  • mtp

edited Jun 7, 2018 at 23:17

Zoro's user avatar

Zoro

4205 silver badges16 bronze badges

asked May 19, 2017 at 9:53

Perusahaan Maklon Kosmetik's user avatar

Perusahaan Maklon KosmetikPerusahaan Maklon Kosmetik

311 silver badge3 bronze badges

Add a comment
 | 

3 Answers

Sorted by:

Reset to default

0

Try compressing the file to a compressed format(tar,zip).Copy the file and then decompress it.

answered Nov 22, 2017 at 20:38

Zeeshan Adnan's user avatar

Zeeshan AdnanZeeshan Adnan

7596 silver badges10 bronze badges

Add a comment
 | 

0

Changing the filename was the solution for me e.g: file.mkv to file.zip

answered Nov 23, 2020 at 14:37

RaulS's user avatar

RaulSRaulS

11 bronze badge

Add a comment
 | 

0

Try to rename file, make sure file name not contain (-) (:) etc. Just rename it to alphabet

answered Mar 23, 2022 at 6:44

Sasmita's user avatar

SasmitaSasmita

1371 silver badge12 bronze badges

Add a comment
 | 

Your Answer

Sign up or log in

Sign up using Google

Sign up using Facebook

Sign up using Email and Password

Post as a guest

Name

Email

Required, but never shown

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you’re looking for? Browse other questions tagged

  • android
  • linux-mint
  • mtp

or ask your own question.

  1. Install this dependency to build libmtp

    sudo apt-get install libusb-dev --install-suggests

  2. Get the libmtp here libmtp Latest Download

  3. Extract the file using a file explorer program [or via the terminal]

    tar xvf libmtp-1.1.1.tar.gz

  4. cd into the new directory you just extracted
  5. Configure (MAKE SURE YOU’RE ARE IN THE /libmtp-*/ DIR)

    ./configure --prefix=/usr
    make

  6. Install (AGAIN, MAKE SURE YOU’RE IN THE /libmtp-*/ DIR)

    sudo make install

  7. Copy rules to /etc/udev/rules.d/ (you might wanna double check the rules.d/ dir to see if coping over the new set of rules is necessary … it probably is)

    sudo cp 69-libmtp.rules /etc/udev/rules.d

  8. Install the gMTP GUI Util

    sudo apt-get install gmtp --install-suggests

  9. Open/Run the gmtp program from the menu or term and enjoy!

NOTE: If you have issues you might need to disconnect the device. Or restart. Or update things… sudo apt-get update and/or sudo apt-get upgrade

Hope this helps, if so vote up. If more help is needed hit me up and I’ll do what I can.

Related videos on Youtube

copy file từ box đang chạy sang box lỗi android rockchip dump file img từ file box cho dòng ROCKCHIP

18 : 54

copy file từ box đang chạy sang box lỗi android rockchip dump file img từ file box cho dòng ROCKCHIP

Android: Fix error Loading Devices || Android Kotlin

00 : 55

Android: Fix error Loading Devices || Android Kotlin

Tip: app identityV trên pc mở ko đc và cách sửa lỗi ở dưới mô tả (lỗi 0xc000007b)

00 : 33

Tip: app identityV trên pc mở ko đc và cách sửa lỗi ở dưới mô tả (lỗi 0xc000007b)

Hướng dẫn add SecureCRT và MobaXterm vào PnetLab

06 : 51

Hướng dẫn add SecureCRT và MobaXterm vào PnetLab

SỬA LỖI: "your device is corrupt, it cant be trust and will not boot" trên ĐT NOKIA

09 : 43

SỬA LỖI: «your device is corrupt, it cant be trust and will not boot» trên ĐT NOKIA

Hướng dẫn sửa lỗi “Could Not Open File /var/lib/dpkg/status” trong Cydia trực tiếp trên điện thoại

04 : 42

Hướng dẫn sửa lỗi “Could Not Open File /var/lib/dpkg/status” trong Cydia trực tiếp trên điện thoại

Lỗi file VCRUNTIME140.dll khi mở Office

03 : 30

Lỗi file VCRUNTIME140.dll khi mở Office

how to solve mtp error on ubuntu linux

06 : 55

how to solve mtp error on ubuntu linux

Error building Ionic app Failed to execute aapt (CordovaLibprocessDebugResources) - Android

01 : 42

Error building Ionic app Failed to execute aapt (CordovaLibprocessDebugResources) — Android

Comments

  • I am attempting to transfer files from my OnePlus X Android phone to my fairly fresh Ubuntu 16.10 installation. After the phone is mounted (and I can see file, navigate the filesystem etc.), when I attempt to transfer files from the phone to the Ubuntu system, I am presented with the following error message:

    libmtp error:  Could not get file from device.
    

    What might be going wrong here? I have previously installed libmtpserver-dev and mtp-server.

    • Wich version of libtmp do you have?

    • @M.Becerra Hey, I have libmtpserver-dev version 0.0.4+16.04.20160413-0ubuntu4 and mtp-server version 0.0.4+16.04.20160413-0ubuntu4.

    • Interestingly, I got the same message when my local HDD was out of space. Misleading error message, but when I made some space all files copied without problems (Ubuntu 16.04.2)

    • I ran into this issue when transferring a large amount of photos from a phone before retiring it. One quick workaround I came up with was to first first put the files in an archive on the phone. For this I used the app ES File Explorer. I used zip as format but with compression set to store. Then I just transferred that archive instead.

    • use a usb port without a hub

  • I’m on Ubuntu 16.04 and can confirm this works! thanks!

  • I tried this on my oneplus 3T Ubuntu 16.10 but gmpt says no device connected. When I do connect my oneplus 3T the CD mounts however but I cannot access the internal storage via file manager or gmtp. Thanks

  • @user894199 That sounds odd. Sorry, I wish I had some insight to help you out but I’m not sure what to do in your case.

  • On 16.04, have similar problem to Clox’s. While transferring files with Nautilus, the transfer gets interrupted randomly with the error message in this topic. Steps from Anovative here worked for installing gmtp and might have helped Nautilus stay connected long enough to transfer some 1GB and larger files, which I could not do before following these steps. The gmtp program also got successfully installed, but cannot connect to the phone. When I click the connect button, Nautilus seems to take over and connect instead, and gmtp errors with «Detect: No available Storage found on device?»

  • In fresh Ubuntu, got this ‘no acceptable C compiler’ (gcc was not installed), so did this before building libmtp -> ‘sudo apt-get install build-essential’.

  • Hi @Anovative, when I give ‘make’ command, I’m getting this after some time: ‘Makefile:506: recipe for target ‘mtp-connect’ failed’. I keep getting this everytime, any ideas why this may happen?

  • @AbuRuqaiyah, sorry for the really late response. I didn’t notice the comment. I’m not sure what is going wrong — I’ve also seen this happen for target 'smtp-connect'. I don’t have a good answer for you except to ensure that everything is up-to-date, especially the build-essential tools and any dependencies. It’s also possible that downloading and compiling the latests libmtp might help. If all else fails, and I hate to suggest this, you can try running this as admin sudo; I really don’t like nor encourage running w/elevated permissions unless it’s really necessary. Good luck!

Recents

Related

Понравилась статья? Поделить с друзьями:
  • Ошибка lexus is 250 check vsc
  • Ошибка levenberg sea of thieves
  • Ошибка length 1 index 1
  • Ошибка lei на стиральной машине samsung как исправить ошибку
  • Ошибка lei в стиральной машинке самсунг