Jump to content

[Armbian build PR] - Disable md5 packages check on unsupported distributions


RSS Bot

Recommended Posts

Description

Unstable / testing packages sometimes contain hacks that are patching files. Fixing this in Debian Sid / Trixie

Not sure why this happens, but we certainly don't need this check in rolling releases.

  [🐳|🌱] Checking MD5 sum of installed packages [ debsums ]
  [🐳|🔨]   debsums: changed file /usr/sbin/start-stop-daemon (from dpkg package)
  [🐳|💥] Error 2 occurred in main shell [ at /armbian/lib/functions/logging/runners.sh:211

How Has This Been Tested?

  • [x] Manual run

Checklist:

  • [x] My code follows the style guidelines of this project
  • [x] I have performed a self-review of my own code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [x] My changes generate no new warnings
  • [x] Any dependent changes have been merged and published in downstream modules

View the full article

Link to comment
Share on other sites

I also experienced this issue with a kde-plasma ubuntu 24.04 (noble image build of 24.8.0 edge) on an Orange Pi 5 plus (16gb). Disabling the above code per the commit avoided the issue and the result was a successful image generation.

Link to comment
Share on other sites

Hi @ioncube

 

Apologies for the late reply.

 

Although not recommended practice, in my 24.8.0 build tree, I commented out the debsums invocation - i'm sure its fine 😀

The relevant part of lib/functions/rootfs/rootfs-create.sh in my build tree reads:
 

        if [[ "${DISTRIBUTION_STATUS}" == "supported" || "${FORCE_CHECK_MD5_PACKAGES:-"no"}" == "yes" ]]; then
                display_alert "Checking MD5 sum of installed packages" "debsums" "info"
                declare -g if_error_detail_message="Check MD5 sum of installed packages failed"
                #chroot_sdcard debsums --silent
        fi

and that should prevent the problem. Perhaps settings FORCE_CHECK_MD5_PACKAGES=no during ./compile.sh invocation might work also?

 

Its a difficult one to work around due to random mirrors, cache contents etc... very sporadic.

 

Andrew

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines