libimobiledevice / libideviceactivation

A library to handle the activation process of iOS devices
https://libimobiledevice.org
GNU Lesser General Public License v2.1
286 stars 131 forks source link

Ubuntu 14.04 + iOS 8.1.1 unhandled lockdown error #10

Closed megarock closed 9 years ago

megarock commented 9 years ago

The device is an iphone 4s and iPhone 5 , recently updated from iOS 7.1.1 to iOS 8.1.1 Host machine is "Ubuntu 14.04.1 LTS ". Software is libimobiledevice 1.1.7 , using libplist 1.12 and libusbmuxd 1.0.10.

Unable to mount iPhone unhandled lockdown error

i can't activate or get info from idevice or do any thing all i have is this erreur

ERROR: Could not connect to lockdownd, error code -7

please help me !

megarock commented 9 years ago

@FunkyM @fodil123

nasreddine27 commented 9 years ago

try sudo ideviceinfo

nikias commented 9 years ago

@nasreddine27 running the idevice* commands as root is wrong. @megarock what does ideviceinfo -k ActivationState give you?

megarock commented 9 years ago

@nikias i got " ERROR: Could not connect to lockdownd, error code -2 "

screenshot from 2015-01-09 14 13 05

and this when i connect the iPhone

screenshot from 2015-01-09 14 10 23

nikias commented 9 years ago

The unable to mount iPhone popup is because the gvfs package hasn't been updated yet. However the error -2 means invalid configuration. I think you have something messed up on your system. What does which ideviceinfo show and what is the result of lddwhich ideviceinfo`` ? I would guess that it either uses the old libraries or usbmuxd is not up to date. Oh and please paste text for command output from the terminal :)

megarock commented 9 years ago

Have you Any suggestion please !

nikias commented 9 years ago

@megarock please run the commands I gave in my previous comment and paste the output here.

megarock commented 9 years ago

ERROR: Could not connect to lockdownd, error code -2

nikias commented 9 years ago

@megarock please read what I wrote. Run: which ideviceinfo and lddwhich ideviceinfo`` Just copy and paste into your terminal.

megarock commented 9 years ago

screenshot from 2015-01-09 15 05 42

megarock commented 9 years ago

@nikias i think the problem was in usbmuxd ! but i get avery thin,g from http://www.libimobiledevice.org/

nikias commented 9 years ago

@megarock the output looks fine. If something is wrong then most likely usbmuxd. Maybe you have two copies installed in /usr/sbin/usbmuxd and /usr/local/sbin/usbmuxd and that's messing things up?

megarock commented 9 years ago

@nikias and what can I do ? please

megarock commented 9 years ago

you are right ! screenshot from 2015-01-09 16 54 33 screenshot from 2015-01-09 16 51 54

@nikias you are right

mambo06 commented 9 years ago

facing same problem with @megarock anyone can solve this? thanks

nikias commented 9 years ago

You guys have to configure your system to run the one you built on your own. Try editing /lib/udev/rules.d/39-usbmuxd.rules and change the path to /usr/local/sbin/usbmuxd.

mambo06 commented 9 years ago

thanks but lockdown 2 still happaned, i try def usbmoxd from repo, its no different.

i try libimobiledevice default from repo which is 1.1.5 ubuntu and got error -7. is this because ubuntu 14.4.1 LTS? should i try it on arc linux?

FunkyM commented 9 years ago

Remove all libraries and traces thereof from your system. Then build and install cleanly from source. This should fix your issues. Also make sure that /var/lib/lockdown/ exists and has proper read/write permissions for the user running usbmuxd.

TacticalSystem commented 9 years ago

@megarock How did you solved it? plsss

mambo06 commented 9 years ago

I move to arch. Done. Its bug for ubuntu 14.04 i think

adilek commented 9 years ago

Sometimes this issue appears when it can't access /var/lib/lockdown. I have changed the permission (sudo chmod -R 0777 /var/lib/lockdown) and it worked.

bja-au commented 8 years ago

Thanks guys - changing the /var/lib/lockdown fixed the problem for me also

jacksonrayhamilton commented 8 years ago

I'm on Linux Mint 17.0; I was having the exact same issue and tried everything in this thread. I compiled all the packages from source. I had to create a symlink from /usr/sbin/usbmuxd to /usr/local/sbin/usbmuxd, restart, and I had to choose to "Trust this Computer" from the iPod. Then it connected.

joemac42 commented 8 years ago

I'm a bit new to Linux Mint. I'm using 17.2. I don't have a /usr/sbin/usbmuxd Could you provide an example of terminal code to do this?

jacksonrayhamilton commented 8 years ago

@joemac42 I downloaded and extracted the archives under "Sources and Dependencies" from http://www.libimobiledevice.org/. I entered each package's directory with cd and I ran ./configure to see if the package had any dependencies, and in many cases they did (on each other); in that case, I continued until I found a package without any dependencies and then ran make and sudo make install, traversing back up the dependency tree until I had all of them installed. At some point you may need to run sudo apt-get build-dep PACKAGE-NAME to install some other dependency required to compile one of those packages, although be wary that using apt-get build-dep might cause an outdated version of one of the libimobiledevice packages to be installed, which could mess things up.

I'm sorry that I can't provide more specific instructions, but there may be more or fewer steps required depending on what's already installed on your system, and it took me quite a while to get this working originally so I can't recount every step I took either.

In summary, for each package from http://www.libimobiledevice.org/, run ./configure, make and sudo make install.