My Ubuntu 12.04 system has been unable to connect to my Galaxy Nexus 3 phone. Today I am determined to solve this problem. Google found a solution.
First, update the MTP library. It is said that the MTP library of Ubuntu 13.10 is very easy to use and can be downloaded directly from the Internet.
Sudo add-apt-repository ppa: langdalepl/gvfs-mtp
Enter your user password and than you'll be shown following text:
You are about to add the following PPA to your system:
These builds of gvfs have my native mtp backend backported from gvfs master. Use this to easily access MTP based devices with Nautilus.
More info: https://launchpad.net /~ Langdalepl/+ archive/gvfs-mtp
Press [ENTER] to continue or ctrl-c to cancel adding it
Hit the Enter Key. After this is done you need to type following command, which updates the package list:
Sudo apt-get update
After this was successful you need to upgrade the installed packages:
Sudo apt-get upgrade
Then, the USB error message is displayed, indicating that you want to add the connection rules of Android In ubuntu.
3. Configure 51-android.rules:
Sudo gedit/etc/udev/rules. d/51-android.rules
Paste the following at the end of the file (if the file does not exist then just paste ):
# LG-Nexus 4
SUBSYSTEM = "usb", ATTR {idVendor} = "1004", MODE = "0666"
# Samsung-Nexus 7 & 10
SUBSYSTEM = "usb", SYSFS {idVendor} = "18d1", MODE = "0666"
Save and exit.
4. Make the file executable:
Sudo chmod + x/etc/udev/rules. d/51-android.rules
5. Restart udev
Sudo service udev restart