Open yunyhx opened 3 years ago
Can you make sure you are using latest code from git, especially libusbmuxd and libimobiledevice? I recently pushed a change that from my understanding should help fixing these kind of issues.
I'm not sure where can I see if it's the current version?
tim@tim-bluechip-BUSINESSline-MT-Pro-G:~$ sudo apt-get install \
build-essential \ checkinstall \ git \ autoconf \ automake \ libtool-bin \ libplist-dev \ libusbmuxd-dev \ libssl-dev \ usbmuxd [sudo] Passwort für tim: Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig autoconf ist schon die neueste Version (2.69-11.1). automake ist schon die neueste Version (1:1.16.1-4ubuntu6). git ist schon die neueste Version (1:2.25.1-1ubuntu3). libssl-dev ist schon die neueste Version (1.1.1f-1ubuntu2). libtool-bin ist schon die neueste Version (2.4.6-14). checkinstall ist schon die neueste Version (1.6.2+git20170426.d24a630-2ubuntu1). build-essential ist schon die neueste Version (12.8ubuntu1.1). libplist-dev ist schon die neueste Version (2.2.0-4). libusbmuxd-dev ist schon die neueste Version (2.0.2-3). usbmuxd ist schon die neueste Version (1.1.1-2). 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
tim@tim-bluechip-BUSINESSline-MT-Pro-G:~$ sudo apt-get install \
doxygen \ cython Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig cython ist schon die neueste Version (0.29.14-0.1ubuntu3). doxygen ist schon die neueste Version (1.8.17-0ubuntu2). 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert
tim@tim-bluechip-BUSINESSline-MT-Pro-G:~/libimobiledevice$ ./autogen.sh libtoolize: putting auxiliary files in '.'. libtoolize: linking file './ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: linking file 'm4/libtool.m4' libtoolize: linking file 'm4/ltoptions.m4' libtoolize: linking file 'm4/ltsugar.m4' libtoolize: linking file 'm4/ltversion.m4' libtoolize: linking file 'm4/lt~obsolete.m4' configure.ac:29: installing './compile' configure.ac:6: installing './missing' common/Makefile.am: installing './depcomp' checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... gcc3 checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for mt... mt checking if mt is a manifest tool... no checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for libusbmuxd... yes checking for libplist... yes checking for ANSI C header files... (cached) yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking gcrypt.h usability... yes checking gcrypt.h presence... yes checking for gcrypt.h... yes checking for an ANSI C-conforming const... yes checking for size_t... yes checking for ssize_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint8_t... yes checking for asprintf... yes checking for strcasecmp... yes checking for strdup... yes checking for strerror... yes checking for strndup... yes checking for stpcpy... yes checking for vasprintf... yes checking endian.h usability... yes checking endian.h presence... yes checking for endian.h... yes checking for platform-specific build settings... linux-gnu checking whether gcc is Clang... no checking whether pthreads work with -pthread... yes checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking whether more special flags are required for pthreads... no checking for PTHREAD_PRIO_INHERIT... yes checking for pthread_once in -lpthread... yes checking for struct dirent.d_type... yes checking for cython... /usr/bin/cython checking for Cython version... 0.29.14 configure: Cython executable is '/usr/bin/cython' checking for python... /usr/bin/python checking for a version of Python >= '2.1.0'... yes checking for the distutils Python package... yes checking for Python include path... -I/usr/include/python2.7 checking for Python library path... -L/usr/lib -lpython2.7 checking for Python site-packages path... /usr/lib/python2.7/dist-packages checking python extra libraries... -lpthread -ldl -lutil -lm checking python extra linking flags... -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions checking consistency of all components of python development environment... yes checking whether /usr/bin/python version is >= 2.3... yes checking for /usr/bin/python version... 2.7 checking for /usr/bin/python platform... linux2 checking for /usr/bin/python script directory... ${prefix}/lib/python2.7/dist-packages checking for /usr/bin/python extension module directory... ${exec_prefix}/lib/python2.7/dist-packages checking to see if compiler understands -Wno-cast-function-type -Werror... yes checking for pkg-config... (cached) /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for libplist Cython bindings... /usr/local/include/plist/cython checking for openssl... yes checking for supported compiler flags... -Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -fsigned-char -fvisibility=hidden checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking whether make supports nested variables... (cached) yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating common/Makefile config.status: creating src/Makefile config.status: creating src/libimobiledevice-1.0.pc config.status: creating include/Makefile config.status: creating tools/Makefile config.status: creating cython/Makefile config.status: creating docs/Makefile config.status: creating doxygen.cfg config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands config.status: executing libtool commands
Install prefix: .........: /usr/local Debug code ..............: no Python bindings .........: yes SSL support backend .....: OpenSSL
Now type 'make' to build libimobiledevice 1.3.1, and then 'make install' for installation.
Libraries have been installed in: /usr/local/lib
If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the '-LLIBDIR' flag during linking and do at least one of the following:
Libraries have been installed in: /usr/local/lib/python2.7/dist-packages
If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the '-LLIBDIR' flag during linking and do at least one of the following:
make[3]: Verzeichnis „/home/tim/libimobiledevice/cython“ wird verlassen make[2]: Verzeichnis „/home/tim/libimobiledevice/cython“ wird verlassen make[1]: Verzeichnis „/home/tim/libimobiledevice/cython“ wird verlassen Making install in tools make[1]: Verzeichnis „/home/tim/libimobiledevice/tools“ wird betreten make[2]: Verzeichnis „/home/tim/libimobiledevice/tools“ wird betreten /usr/bin/mkdir -p '/usr/local/bin' /bin/bash ../libtool --mode=install /usr/bin/install -c idevice_id ideviceinfo idevicename idevicepair idevicesyslog ideviceimagemounter idevicescreenshot ideviceenterrecovery idevicedate idevicebackup idevicebackup2 ideviceprovision idevicedebugserverproxy idevicediagnostics idevicedebug idevicenotificationproxy idevicecrashreport idevicesetlocation '/usr/local/bin' libtool: install: /usr/bin/install -c .libs/idevice_id /usr/local/bin/idevice_id libtool: install: /usr/bin/install -c .libs/ideviceinfo /usr/local/bin/ideviceinfo libtool: install: /usr/bin/install -c .libs/idevicename /usr/local/bin/idevicename libtool: install: /usr/bin/install -c .libs/idevicepair /usr/local/bin/idevicepair libtool: install: /usr/bin/install -c .libs/idevicesyslog /usr/local/bin/idevicesyslog libtool: install: /usr/bin/install -c .libs/ideviceimagemounter /usr/local/bin/ideviceimagemounter libtool: install: /usr/bin/install -c .libs/idevicescreenshot /usr/local/bin/idevicescreenshot libtool: install: /usr/bin/install -c .libs/ideviceenterrecovery /usr/local/bin/ideviceenterrecovery libtool: install: /usr/bin/install -c .libs/idevicedate /usr/local/bin/idevicedate libtool: install: /usr/bin/install -c .libs/idevicebackup /usr/local/bin/idevicebackup libtool: install: /usr/bin/install -c .libs/idevicebackup2 /usr/local/bin/idevicebackup2 libtool: install: /usr/bin/install -c .libs/ideviceprovision /usr/local/bin/ideviceprovision libtool: install: /usr/bin/install -c .libs/idevicedebugserverproxy /usr/local/bin/idevicedebugserverproxy libtool: install: /usr/bin/install -c .libs/idevicediagnostics /usr/local/bin/idevicediagnostics libtool: install: /usr/bin/install -c .libs/idevicedebug /usr/local/bin/idevicedebug libtool: install: /usr/bin/install -c .libs/idevicenotificationproxy /usr/local/bin/idevicenotificationproxy libtool: install: /usr/bin/install -c .libs/idevicecrashreport /usr/local/bin/idevicecrashreport libtool: install: /usr/bin/install -c .libs/idevicesetlocation /usr/local/bin/idevicesetlocation make[2]: Für das Ziel „install-data-am“ ist nichts zu tun. make[2]: Verzeichnis „/home/tim/libimobiledevice/tools“ wird verlassen make[1]: Verzeichnis „/home/tim/libimobiledevice/tools“ wird verlassen Making install in docs make[1]: Verzeichnis „/home/tim/libimobiledevice/docs“ wird betreten make[2]: Verzeichnis „/home/tim/libimobiledevice/docs“ wird betreten make[2]: Für das Ziel „install-exec-am“ ist nichts zu tun. /usr/bin/mkdir -p '/usr/local/share/man/man1' /usr/bin/install -c -m 644 idevice_id.1 ideviceinfo.1 idevicesyslog.1 idevicebackup.1 idevicebackup2.1 ideviceimagemounter.1 idevicescreenshot.1 idevicepair.1 ideviceenterrecovery.1 idevicedate.1 ideviceprovision.1 idevicedebugserverproxy.1 idevicediagnostics.1 idevicecrashreport.1 idevicename.1 idevicedebug.1 idevicenotificationproxy.1 idevicesetlocation.1 '/usr/local/share/man/man1' make[2]: Verzeichnis „/home/tim/libimobiledevice/docs“ wird verlassen make[1]: Verzeichnis „/home/tim/libimobiledevice/docs“ wird verlassen make[1]: Verzeichnis „/home/tim/libimobiledevice“ wird betreten make[2]: Verzeichnis „/home/tim/libimobiledevice“ wird betreten make[2]: Für das Ziel „install-exec-am“ ist nichts zu tun. make[2]: Für das Ziel „install-data-am“ ist nichts zu tun. make[2]: Verzeichnis „/home/tim/libimobiledevice“ wird verlassen make[1]: Verzeichnis „/home/tim/libimobiledevice“ wird verlassen
I hope this is helpful.
Thanks
You only compiled libimobiledevice, but you might also need to compile libusbmuxd from source. But you can try. Make sure to run sudo ldconfig
after installing the libs and make sure that idevicerestore is using the new ones. Run
ldd `which idevicerestore`
and check the output if it points to /usr/local/lib/libimobiledevice*
.
You only compiled libimobiledevice, but you might also need to compile libusbmuxd from source. But you can try. Make sure to run
sudo ldconfig
after installing the libs and make sure that idevicerestore is using the new ones. Runldd `which idevicerestore`
and check the output if it points to
/usr/local/lib/libimobiledevice*
.
im getting the same issue and it does point to /usr/local/lib/libimobiledevice + libusbmuxd is installed
Hello im new here sorry for my bad english. I have problem with IPhone SE2
System Ubuntu 20.04.1 LTS
here is the Problem... tim@tim-bluechip-BUSINESSline-MT-Pro-G:~$ idevicerestore -e -l Found device in Recovery mode Identified device as d79ap, iPhone12,8 The following firmwares are currently being signed for iPhone12,8: [1] 14.2 (build 18B92) Select the firmware you want to restore: 1 Selected firmware 14.2 (build 18B92) Verifying 'iPhone12,8_14.2_18B92_Restore.ipsw'... Checksum matches. Extracting BuildManifest from IPSW Product Version: 14.2 Product Build: 18B92 Major: 18 INFO: device serial number is FFWCMA40PLJQ Device supports Image4: true Variant: Customer Erase Install (IPSW) This restore will erase your device data. ################################ [ WARNING ] #################################
You are about to perform an ERASE restore. ALL DATA on the target device
will be IRREVERSIBLY DESTROYED. If you want to update your device without
erasing the user data, hit CTRL+C now and restart without -e or --erase
command line switch.
If you want to continue with the ERASE, please type YES and press ENTER.
##############################################################################
ERROR: Unable to restore device tim@tim-bluechip-BUSINESSline-MT-Pro-G:~$
THX for help