[Android-tools-devel] Bug#987464: mkbootimg: unpack_bootimg fails with python error

Curious Linuxian curioprivie at tutanota.com
Sat Apr 24 11:24:05 BST 2021


Package: mkbootimg
Version: 1:10.0.0+r36-7
Severity: important
X-Debbugs-Cc: curioprivie at tutanota.com

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
    
    Trying to unpack a boot.img file with unpack_bootimg.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

    I tried to run, "unpack_bootimg --boot_img boot.img --out out"

   * What was the outcome of this action?

    Only extracts the kernel and gives the following python error at the end of output:
    Traceback (most recent call last):
  File "/usr/bin/unpack_bootimg", line 152, in <module>
    main()
  File "/usr/bin/unpack_bootimg", line 148, in main
    unpack_bootimage(args)
  File "/usr/bin/unpack_bootimg", line 126, in unpack_bootimage
    extract_image(image_info[0], image_info[1], args.boot_img,
  File "/usr/bin/unpack_bootimg", line 35, in extract_image
    bootimage.seek(offset)
TypeError: 'float' object cannot be interpreted as an integer


   * What outcome did you expect instead?
    
     Unpack boot.img, extracts the kernel,ramdisk, second bootloader,
recovery dtbo and dtb.

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: bullseye/sid
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-6-amd64 (SMP w/2 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mkbootimg depends on:
ii  python3  3.9.2-2

mkbootimg recommends no packages.

mkbootimg suggests no packages.

-- no debconf information



More information about the Android-tools-devel mailing list