The only way to do this - use PPA by Ondrej Sury which supports just up to Noble release of Ubuntu (24.04). No problem to change sources in latesy Ubuntu to use this PPA (just change “plucky” to “noble”).
Almost all PHP8.4 components installed then successfully except php8.4-intl (asked for absent libzip4t64) and php8.4-zip (asked for absent libicu74). Guess these absent libraries dropped from main repositories after Noble release.
Anyway, how to fix this and finally got intl and zip php extensions?
To fix missing dependencies (libzip4t64 for php8.4-intl and libicu74 for php8.4-zip) on Ubuntu 25.04 (Plucky) when using Ondřej Surý’s PPA for Noble (24.04):
Fix method:
Download missing .deb packages manually from Noble (24.04) and install them:
This approach is safe only if no critical system packages in Plucky already depend on newer versions of ICU or libzip. If you run into version conflicts, you may need to containerize PHP (e.g., Docker) or build the extensions from source against local libs.