IOS 10 and libimobiledevice won't work

Asked by per on 2016-10-04

Try to update to libimobiledevice 1.2 so I can access my files on my Iphone but I received lockdow error ( -1,-20, -16, -256)
sharing networks works can see the phone in filemanager but no access to the file so how do I update my libimobiledevice?
found a ppa for that but didn’t work ;-( runing Ubuntu 14.04 and 16,04 same result
Please write it step by step / Per

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu libimobiledevice Edit question
Assignee:
No assignee Edit question
Last query:
2016-10-04
Last reply:
2017-07-08

What is the output of:

lsb_release -a; uname -a; apt-cache policy libimobiledevice

When you last unplugged the device from a PC, did you use the safe remove feature in the OS before unplugging it physically?

Thanks

per (eura) said : #2

Thank you

I think a use safe remove her are the results from 3 computer 16.04 is a new upgrade

tv@tv:~$ lsb_release -a; uname -a; apt-cache policy libimobiledevice
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial
Linux tv 4.4.0-38-generic #57-Ubuntu SMP Tue Sep 6 15:41:41 UTC 2016 i686 i686 i686 GNU/Linux
N: Kunde inte hitta paketet libimobiledevice

Her from 14.04 that I try to upgrade the libimobiledevice on

per@lap12:~$ lsb_release -a; uname -a; apt-cache policy libimobiledevice
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
Linux lap12 3.13.0-96-generic #143-Ubuntu SMP Mon Aug 29 20:15:47 UTC 2016 i686 i686 i686 GNU/Linux
N: Kunde inte hitta paketet libimobiledevice

Her are form LinuxMint ( I know this is only for Ubuntu sorry )

licy libimobiledevice
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 17.3 Rosa
Release: 17.3
Codename: rosa
Linux test-HP-Compaq-6910p-GB949ET-AK8 3.19.0-32-generic #37~14.04.1-Ubuntu SMP Thu Oct 22 09:41:40 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
N: Kunde inte hitta paketet libimobiledevice

Hope this will say you someting

Per

What is the output of:

apt-cache policy libmobiledevice

Looks like you have a typo. We don't support Mint here.

per (eura) said : #4

Here are the output from Ubuntu 14.04
N: Kunde inte hitta paketet libmobiledevice (but in Swedish) = N:can't found the package

I just try to it on iOS 9.35 and it was no problem, but can't read iOS 10.02

Maybe it's a new "feature" in Apple's software to lock their users down to Windows or Mac.

All I can suggest is report a bug.

Manfred Hampl (m-hampl) said : #6

I think the cause for not getting output in the previous commands is wrong usage of the package names.

The source package is named libimobiledevice, but the binary packages are libimobiledevice-dev, libimobiledevice-utils,
libimobiledevice6, python-imobiledevice etc.

What is the output of
dpkg -l | grep libimobiledevice
apt-cache policy libimobiledevice6

per (eura) said : #7

On 14.04 that I try to updated to 1.2

ii libimobiledevice-dev 1.1.5+git20140313.bafe6a9e-0ubuntu1.1 i386 Library for communicating with iPhone and iPod Touch devices
ii libimobiledevice-utils 1.1.5+git20140313.bafe6a9e-0ubuntu1.1 i386 Library for communicating with iPhone and iPod Touch devices
ii libimobiledevice4:i386 1.1.5+git20140313.bafe6a9e-0ubuntu1.1 i386 Library for communicating with the iPhone and iPo

N: Kunde inte hitta paketet libimobiledevice6

And on the 16.04 thats a new installation and not touch.

tv@tv:~$ dpkg -l | grep libimobiledevice
rc libimobiledevice4:i386 1.1.6+dfsg-3.1ubuntu0.1 i386 Library for communicating with the iPhone and iPod Touch
ii libimobiledevice6:i386 1.2.0+dfsg-3~ubuntu0.2 i386 Library for communicating with the iPhone and iPod Touch
tv@tv:~$ apt-cache policy libimobiledevice6
libimobiledevice6:
  Installerad: 1.2.0+dfsg-3~ubuntu0.2
  Kandidat: 1.2.0+dfsg-3~ubuntu0.2
  Versionstabell:
 *** 1.2.0+dfsg-3~ubuntu0.2 500
        500 http://se.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages
        100 /var/lib/dpkg/status
     1.2.0+dfsg-2.1build1 500
        500 http://se.archive.ubuntu.com/ubuntu xenial/main i386 Packages
tv@tv:~$

Could try:

sudo dpkg -P libimobiledevice4:i386

Remove the old config for this package

Reboot to test

per (eura) said : #10

I try to removed this on the 14.04 but received
sudo dpkg -P libimobiledevice4:i386

 libimobiledevice4:i386 is depending on libimobiledevice4 (= 1.1.5+git20140313.bafe6a9e-0ubuntu1.1).

dpkg: beroendeproblem förhindrar borttagning av libimobiledevice4:i386:
 upower är beroende av libimobiledevice4 (>= 0.9.7).
 libimobiledevice-dev är beroende av libimobiledevice4 (= 1.1.5+git20140313.bafe6a9e-0ubuntu1.1).
 python-imobiledevice är beroende av libimobiledevice4 (>= 1.1.5).
 libimobiledevice-utils är beroende av libimobiledevice4 (>= 1.1.5+git20140313.bafe6a9e).
 gvfs-backends är beroende av libimobiledevice4 (>= 1.1.5).
 libgpod4:i386 är beroende av libimobiledevice4 (>= 0.9.7).
 libgpod-common är beroende av libimobiledevice4 (>= 0.9.7).

dpkg: fel vid hantering av paketet libimobiledevice4:i386 (--purge):
 beroendeproblem - tar inte bort
Fel uppstod vid hantering:
 libimobiledevice4:i386

Manfred Hampl (m-hampl) said : #11

To clarify,

the version contained in Ubuntu trusty (1.1.5...) has a binary libimobiledevice4, and only version 1.2... (e.g. available in yakkety) has libimobiledevice6.

There is a PPA https://launchpad.net/~martin-salbaba/+archive/ubuntu/ppa+libimobiledevice with version 1.2 for trusty.

But before you start installing that version, it should be made clear why the 1.2 version for yakkety does not work for you.
What error messages do you get when you try accessing your iphone?

per (eura) said : #12

I received lockdown error different every time( -1,-20, -16, -256) but this only happens with iOS 10 but with iOS 9.. than everything works fine. That's why I try It with other computers with different distribution to (LinuxMint) also 32bit and 64bit ver but all with the same result.

per (eura) said : #13

PS but when I try the phone with win10 than every thing works fine, so it's not the phone.

Manfred Hampl (m-hampl) said : #14

On the bug tracker of libimobiledevice https://github.com/libimobiledevice/libimobiledevice/issues there are several people reporting a similar issue, e.g. https://github.com/libimobiledevice/libimobiledevice/issues/346
Some of them reported that access was working when compiling the newest 1.2 source.

Do you see a possibility to try compiling the package from the original github source?

per (eura) said : #15

I know that you write make than make install but with some help I can give it a try.
Shall I remove the old package first? in that case how?

per (eura) said : #16

P.S I will be offline for a few hours / Per

Sam Gleske (sam-mxracer) said : #17

Actually the root cause of the issue is with GnuTLS. The Ubuntu package should be rebuilt linking to OpenSSL instead of GnuTLS and the issue will be resolved.

I created a bug report with details and a solution. https://bugs.launchpad.net/ubuntu/+source/libimobiledevice/+bug/1638177

J. McDonald (mcdonald-joseph) said : #18

Ok, so someone claims to have posted a patch to this:

https://github.com/libimobiledevice/libimobiledevice/issues/413

but I don't have a clue how to install such a patch, assuming it even exists and works. All I saw at the link was undecipherable code. I am attempting to use 16.04 LTS with iOS 10.1 and this is still broken in the current libimobiledevice6

GnuTLS error: Error in the pull function.
ERROR: Could not connect to lockdownd, error code -5

Any idea when this will be resolved? In the interim, can someone help me figure out how to apply a patch to fix this in the interim if there is one available?

per (eura) said : #19

I have use this ppa https://launchpad.net/~martin-salbaba/+archive/ubuntu/ppa+libimobiledevice
works with 16.04.
Martin say
 "The xenial version is a bit tricky because all errors from device go to
no-where-land (thanks to systemd). But most of the time a reboot of the
ios device helps (was unplugged without disconnect....)"
I try it also on lower ver of Ubuntu but haven’t been able access the phone.

Hope this will help

J. McDonald (mcdonald-joseph) said : #20

per - thanks. The ppa solved the problem on 16.04 with iOS 10.1. I just did a successful file transfer from an iPhone 5c for the first time in a couple of months.

J. McDonald (mcdonald-joseph) said : #21

ppa also works for Mint18

Edith (ubunt-u-birrered) said : #22

I use 14.04 and stumbled over this discussion because I also would like a solution to connect my iPhone (iOS 10.3.x). The ppa from Martin (martin-salbaba) mentioned in comment #19 looks promising.
But I am a bit shocked that it wants to install so many packages:

libgcrypt20
libgpod-common
libimobildevice6
libplist3
libgpod4
libusbmuxd4
libusbmuxd
gvfs-common
gvfs-backends
gvfs-bin
gvfs-fuse
gvfs-libs
gvfs-daemons
gvfs

Even brings in a new crypto library! So two questions:

* Do I really need to install them all? (meaning "everything that appears as updates when I include this ppa", as in the list above)

* Some packages replace an existing version, like for gvfs-common, where it installs 1.20.3-4salbabix27trusty instead of 1.20.3-0ubuntu1.2. Usually for "untrusted" ppas, I disable them after installing what I want. But this would mean I never get an update of gvfs-common in the future? Or would a newer package from the "normal" Ubuntu package sources be installed? I'm asking because I still like to get security updates etc.

I do not distrust Martin here, and I am very grateful that he made the fix accessible to those who - as J McDonald put it - "don't have a clue how to install such a patch"! But I just try to be careful, as I said I still like security updates, and I do not want too many "untrusted" things on my system. Ubuntu is my main OS, but I also use some other computers sometimes, so I can live without the connection from iOS to Ubuntu. Therefore I'm trying to assess the risks here...

It's a PPA. Ask the maintener why there are so many dependancies. It's their package intended for their own purposes.

Dear Edith,

sorry all this dependencies are required. linimolbiledevie is accessed
via gvfs backend daemons, so the must be changed/rebuild on library
interface changes.

The ppa is tested but I havent the time to support security updates.

Martin

Am Sonntag, den 02.07.2017, 06:18 +0000 schrieb Edith:
> Question #402748 on libimobiledevice in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/libimobiledevice/+question/402748
>
> Edith requested more information:
> I use 14.04 and stumbled over this discussion because I also would like a solution to connect my iPhone (iOS 10.3.x). The ppa from Martin (martin-salbaba) mentioned in comment #19 looks promising.
> But I am a bit shocked that it wants to install so many packages:
>
> libgcrypt20
> libgpod-common
> libimobildevice6
> libplist3
> libgpod4
> libusbmuxd4
> libusbmuxd
> gvfs-common
> gvfs-backends
> gvfs-bin
> gvfs-fuse
> gvfs-libs
> gvfs-daemons
> gvfs
>
> Even brings in a new crypto library! So two questions:
>
> * Do I really need to install them all? (meaning "everything that
> appears as updates when I include this ppa", as in the list above)
>
> * Some packages replace an existing version, like for gvfs-common, where
> it installs 1.20.3-4salbabix27trusty instead of 1.20.3-0ubuntu1.2.
> Usually for "untrusted" ppas, I disable them after installing what I
> want. But this would mean I never get an update of gvfs-common in the
> future? Or would a newer package from the "normal" Ubuntu package
> sources be installed? I'm asking because I still like to get security
> updates etc.
>
> I do not distrust Martin here, and I am very grateful that he made the
> fix accessible to those who - as J McDonald put it - "don't have a clue
> how to install such a patch"! But I just try to be careful, as I said I
> still like security updates, and I do not want too many "untrusted"
> things on my system. Ubuntu is my main OS, but I also use some other
> computers sometimes, so I can live without the connection from iOS to
> Ubuntu. Therefore I'm trying to assess the risks here...
>

Can you help with this problem?

Provide an answer of your own, or ask per for more information if necessary.

To post a message you must log in.