Ubuntu – “GNUTLS ERROR: A TLS packet with unexpected length was received” when I connect the iPhone 3G

iphone

Look at the video; the iPhone is supposed to appear as a photo collection of some sort but nothing happens with my iPhone! I have installed and upgraded all of the libimobiledevice versions.

I have tried to mount the iPhone with ifuse /mnt/iphone/ but the result of that operation is:

GNUTLS ERROR: A TLS packet with unexpected length was received.

Hi, how do I connect my iPhone to my laptop (Ubuntu 10.04) so that I can sync music and be able to look at it as a USB stick? (This is what I am expecting to happen.)

When I connect it to my laptop, nothing happens – it doesn't show up as an icon or as a mass storage device.

My iPhone runs iOS v4.2.1 and it's an iPhone 3G. It's not jailbroken for the moment; would that be a problem? My laptop is an Asus 1201n with Ubuntu 10.04 (64-bit).

Bus 002 Device 005: ID 05ac:1292 Apple, Inc. iPhone 3G

I connected my Ipod Video (30 gb) and that one doesn't appear as well So I'm kind of stuck now. The problem probably lies in the system, because the usb port is working.


Bus 002 Device 006: ID 05ac:1209 Apple, Inc. iPod Video

I have added this PPA, I have done all of the sudo update and upgrade. but my computer doesn't realize that my iPhone is connected, whish isn't related to libimobiledevice.

The port is working fine, it's simply that my computer doesn't recognize that I have my iPhone plugged-in! The phone itself is working (I tested it on my Mac).

I have the latest versions of these programs: hipo, ipod, gtkpod, ifuse, libusmuxd1 and usbmxd.

I connected my iPhone in Windows 7 and it worked, albeit annoyingly. I tried to mount my iPhone with fuse but I got this error:

alvar@alvars-laptop:~$ ifuse /mnt/iphone/
ERROR: the mount point specified does not exist

I have tried the ubuntugeek link, but I got an error while mounting it.

GNUTLS ERROR: A TLS packet with unexpected length was received.

Which one? (I have Lucid not Maverick.)

Which one???

Best Answer

You don't have to jailbreak your Iphone with Ubuntu however you will probably have to add a new "PPA source" to your Ubuntu installation to get the required packages for Ubuntu to Recognise your phone.

The ppa you will need to add is ppa:pmcenery/ppa to add this open a Terminal from the accessories menu and type this at the prompt.

sudo add-apt-repository ppa:pmcenery/ppa

and hit enter once this has been added type this command in the same terminal

sudo apt-get update

and after

sudo apt-get upgrade

this should upgrade your package libimobiledevice to version 1.0.4 from 1.0.1 enabling you to access your Iphone

PPA Reference:

edit

Having had a a good look around for Idevice mounting tutorials I found this at ubuntugeek it goes through the procedure of manually mounting the device including all of the required packages and file edits to get this to work hopefully this is the solution to your problem. Bearing in mind that the tutorial was written for Ubuntu 9.10 and for an Ipod touch there is a quote at the end of the tutorial

Update from our reader :- It works for Iphone 3g. But at the end of preparation procedure you need to restart both your computer and the iPhone device.

Edit 2

if you receive this error message when trying to mount with Ifuse

GNUTLS ERROR: A TLS packet with unexpected length was received

You need to pair the phone with your pc to do this enter this command

idevicepair unpair

Your Iphone or other Idevice will automatically try to re-pair. You can then unplug it and plug it back in and it should mount correctly.