I use Android 7, Ubuntu 16.04.
My phone did not connect via USB. Only blank Nautilus window opened. Installing mtpfs did not help. Phone was mounted, hovering the mouse over "Samsung Android" field in Nautilus showed "mtp://[USB 001, 014]/". Press eject did not change the condition. Pressing alert dialogue in phone to allow computer access just opened another blank Nautilus window. In Android 7 I can no longer find developer options or how to set phone as media device.
I gave the following commands in the terminal:
- sudo apt-get install jmtpfs
- sudo mkdir /media/myphone
After doing this, the phone connected without problems. I am not sure the second step is needed. Further steps (if someone may need them) can be found here:
How to connect Android 7.1 to Ubuntu Linux with USB?
When I now connect the phone, Nautilus will still open with a blank window, but after pressing the alert box "Allow computer access" (that appears in the phone), a second window opens in Nautilus, showing both phone memory and external card.
sudo ppa-purge ppa:langdalepl/gvfs-mtp"13.10 (Saucy) and newer versions of Ubuntu contain all of these changes, so you don't need to use this ppa any more." – bain May 08 '14 at 22:19