Skip to content

Permanent lockdown error -5 on WSL and Ubuntu after rebooting to Ubuntu #268

@ThatDumbPan

Description

@ThatDumbPan

I have WSL installed on my Windows partition, and I also have regular Ubuntu installed on my machine on another partition. I was using libimobiledevice tools such as idevicerestore perfectly fine on WSL, and I decided I wanted to boot into Ubuntu. So I tried using the same tools there, but each of them said no device was found. lsusb listed the device there fine. Weird, I thought. I could've sworn I remembered using those tools a little while ago (on the Ubuntu partition, not WSL like mentioned earlier, I AM sure I used them fine there), but I wasn't entirely sure. So I tried running usbmuxd -f to find any usbmuxd errors, and found:

[01:11:49.095][1] preflight_worker_handle_device_add: The stored pair record for device (UDID) is invalid. Removing.
[01:11:49.529][1] preflight_worker_handle_device_add: ERROR StartSession failed on device (UDID), lockdown error -5

After a while of trying to fix that I eventually just gave up and decided to use the tools from WSL again. However once I booted into Windows and tried to do the stuff, I was horrified to find that the same problem was happening there too even though I had literally JUST used the tools less than an hour ago. I'm using an iPhone 3GS, and I found the same issue happened with my iPod touch 2nd gen, but didn't happen with my iPhone 13. I also tried using a different laptop with Ubuntu installed and the same thing happened. Tried rebooting the 3GS as well to no avail. Building libimobiledevice and usbmuxd from source didn't work either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions