14

I am using Ubuntu 21.10. I tried to transfer files from my Android phone (Redmi Note 4) to my laptop via USB cable by enabling the file transfer option on the phone. Ubuntu detects my phone, but when I tried to open files in my phone on the laptop, it shows:

Unhandled error message: The name :1.103 was not provided by any .service files

It doesn't open the contents on my phone. Please help.

matigo
  • 24,752
  • 7
  • 50
  • 79
K D
  • 141

8 Answers8

17

I just had almost exactly this same problem with Ubuntu 20.04 and an Umidigi Android phone. I've never had trouble connecting my phone to the same computer under Windows 10, so I surmised that there was no problem on the phone's end. I was also able to switch the phone's connection to PTP and have it work in Ubuntu, but of course the phone would only transfer photos in that mode.

After digging around I found that Ubuntu doesn't include MTP support by default, which is needed to do general file transfers with Android. I opened a terminal and typed:

sudo apt-get install gmtp

and after I shut down and restarted the machine, I was able to connect my phone and browse its files as I expected.

Hawkwind
  • 187
5

On many Android devices, you'll need to drop down the Notifications and select the USB connection, then tell it you want to enable storage or something like that. For security reasons Android defaults to Charging mode when you plug into a computer. Once you've done this, you should see a notification in Ubuntu that a new removable media device has been connected.

Douglas K
  • 66
  • 3
1

After editing /etc/udev/../rules/files setting my phone IDs (thru lsusb) I managed to workaround this only by selecting at the phone (when asked) to use it to "Transfer Images" not "USB transfer files", and that made the trick, any filetype I'm allowed to write/move/copy/paste from Nautilus...

1

I have the same problem, on Debian with LXQT.

The certificate of the connecting device (a PC) has been validated since I can issue adb commands.

I don't have a solution to the problem, but a workaround.


Workaround

If you have developer mode enabled and adb enabled, after connecting the cable, you can transfer files with (these commands are run on the PC):

# from PC to Android
adb push <file> /sdcard/Download/
adb push * /sdcard/Download/

from Android to the PC

adb pull /sdcard/Download/<file>

Rub
  • 181
1

I had the same issue with my new android smartphone in Ubuntu 22.04.3, however I had no problem with my previous smartphone.

Running the command nautilus -q as suggested in this other issue solved it for me. So it seems like some issue with nautilus affecting some devices, requiring it to be restarted.

Just sharing as it might help others with the same issue who might arrive into this question and also this is a simpler solution than the alternatives here provided.

sigmate
  • 11
1

On my Android device, in Settings, I searched for USB and I selected Default USB Configuration. It had No data transfer. I selected File transfer and ... boom! Immediately identified by my Ubuntu 24.

0

I solved my problems with transferring files from Android by plugging a thumb drive into my phone.

-1

On an Android Pixel 2 and Ubuntu 18.04.1, to allow file transfer via a USB cable from the phone to the computer, on the phone, go to Settings > 'Connected devices' > 'USB' > select 'File Transfer'. This worked immediately for me: the phone showed up in Device Notifier and allowed me to download photos with Gwenview. And it also allowed me to delete the photos on the phone from the computer after I had downloaded them.