I am trying to send some files from my HTC to my laptop having ubuntu 12.04 through a bluetooth; but while trying to send files i see the following error on my htc device:-

This transfer is forbidden by the target device

What does this error means, any permission issues? or something else. What settings do I need to make so that ubuntu can accept files easily.

I am able to send files from ubuntu to htc device via Bluetooth.

  • Please don't change your question midway. An answer about regular MTP file transfer came in before you've edited your question to change it to a Bluetooth question.
    – gertvdijk
    Feb 6 '13 at 11:02

This might be happening because by default ubuntu doesn't recieve files over bluetooth. One possible solution might be to enable recieving files over bluetooth. Open the personal file sharing preferences window.dash Then you'll see this window. Just check the 'Recieve files in Downloads folder over bluetooth' and you're good to go.

personal file sharing pref

For Ubuntu 18.04 and later:

File sharing can be changed in Settings -> Sharing, which is turned OFF by default.

Also you might need to reconnect after changing this.

Sharing Preferences

  • How do I do this from Unity in Ubuntu 18? The option seems to have moved to gnome only. Perhaps I'm missing a package
    – Jonathan
    Apr 8 '19 at 19:46

On the HTC device, go to Settings -> Connect to PC and look at Default connection type. If this is set to 'Charge only', you can either select 'Disk drive', or check the 'Ask me' box.

This should allow you to mount the drives on the HTC device.

  • The question is about bluetooth file transfer, not direct USB connection. Feb 6 '13 at 9:50
  • 1
    @JavierRivera This was answered before the question was edited to "Bluetooth"! See revision 2 for example. This was certainly not clear at the time this answer came in.
    – gertvdijk
    Feb 6 '13 at 10:58

gnome-bluetooth (3.2.2-0ubuntu5) now has a working bi-directory I think. I used blueman before, I also had this bug occur on my HTC G4 G7 G11. bug can be found at https://bugs.launchpad.net/bugs/872044, etc.

  • 1
    Welcome to AskUbuntu! You may want to add where you got your information from as citing an up to date source of information is quite recommended for such answers.
    – Oyibo
    Feb 6 '13 at 10:45

Here is a workaround:

sudo apt-get install mtpfs
sudo mkdir /media/onex
sudo chmod 775 /media/onex
sudo mtpfs -o allow_other /media/onex
gksu gedit /etc/udev/rules.d/51-android.rules

and add the following line:

SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"

and then:

sudo service udev restart

Didnt work for me but has for others.

  • 1
    The question is about bluetooth transfer, mtp is not relevant here. Feb 6 '13 at 9:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.