Skip to content

[Bug]: libc++ download error #26838

@alexdvn

Description

@alexdvn

Problem description

It shows this weird error when using the build script for libc++ (note, I have a small script that runs the build-package.sh script)

❯ termux-build -I -f libc++
gpg: key B0076E490B71616B: 18 signatures not checked due to missing keys
gpg: key B0076E490B71616B: public key "Henrik Grimler [email protected]" imported
gpg: Total number processed: 1
gpg: imported: 1
gpg: no ultimately trusted keys found
gpg (GnuPG) 2.5.11; Copyright (C) 2025 g10 Code GmbH
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

gpg: key 5A897D96E57CF20C: public key "Termux Releases (Termux automatic builds) [email protected]" imported
gpg: Total number processed: 1
gpg: imported: 1
gpg: marginals needed: 3 completes needed: 1 trust model: pgp
gpg: depth: 0 valid: 1 signed: 1 trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1 valid: 1 signed: 1 trust: 1-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2026-05-06
gpg (GnuPG) 2.5.11; Copyright (C) 2025 g10 Code GmbH
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

gpg: key 389CEED64573DFCA: public key "termux-pacman (security signature) [email protected]" imported
gpg: Total number processed: 1
gpg: imported: 1
gpg (GnuPG) 2.5.11; Copyright (C) 2025 g10 Code GmbH
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

gpg: key 6A5C550C260667D1: public key "Termux-user-repository (TUR AUTOBUILD key)" imported
gpg: Total number processed: 1
gpg: imported: 1
gpg (GnuPG) 2.5.11; Copyright (C) 2025 g10 Code GmbH
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

termux - building libc++ for arch aarch64...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
termux-elf-cleaner
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 18.1 kB of archives.
After this operation, 90.1 kB of additional disk space will be used.
Get:1 https://mirror.quantum5.ca/termux/termux-main stable/main aarch64 termux-elf-cleaner aarch64 3.0.1-1 [18.1 kB]
Fetched 18.1 kB in 0s (41.9 kB/s)
Selecting previously unselected package termux-elf-cleaner.
(Reading database ... 55918 files and directories currently installed.)
Preparing to unpack .../termux-elf-cleaner_3.0.1-1_aarch64.deb ...
Unpacking termux-elf-cleaner (3.0.1-1) ...
Setting up termux-elf-cleaner (3.0.1-1) ...
Get:1 https://tur.kcubeterm.com tur-packages InRelease
Hit:2 https://mirror.quantum5.ca/termux/termux-main stable InRelease
Hit:3 https://mirror.quantum5.ca/termux/termux-root root InRelease
Hit:4 https://mirror.quantum5.ca/termux/termux-x11 x11 InRelease
Fetched 18.4 kB in 6s (2863 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Downloading https://dl.google.com/android/repository/android-ndk-r28c-linux.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 688M 100 688M 0 0 28.7M 0 0:00:23 0:00:23 --:--:-- 28.3M
Wrong checksum for https://dl.google.com/android/repository/android-ndk-r28c-linux.zip
Expected: 59c2f6dc96743b5daf5d1626684640b20a6bd2b1d85b13156b90333741bad5cc
Actual: dfb20d396df28ca02a8c708314b814a4d961dc9074f9a161932746f815aa552f

What steps will reproduce the bug?

This doesent have any steps

What is the expected behavior?

It should build it

System information

❯ termux-info
Termux Variables:
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP__APK_FILE=/data/app/~~xT59Cdj_HqN-Wx16oL41ug==/com.termux-Vx6XTOqxlpLV5EWPZKHvzQ==/base.apk
TERMUX_APP__APK_RELEASE=GITHUB
TERMUX_APP__APP_VERSION_CODE=1022
TERMUX_APP__APP_VERSION_NAME=0.119.0-beta.3
TERMUX_APP__DATA_DIR=/data/user/0/com.termux
TERMUX_APP__IS_DEBUGGABLE_BUILD=true
TERMUX_APP__IS_INSTALLED_ON_EXTERNAL_STORAGE=false
TERMUX_APP__LEGACY_DATA_DIR=/data/data/com.termux
TERMUX_APP__PACKAGE_NAME=com.termux
TERMUX_APP__PID=14048
TERMUX_APP__SE_FILE_CONTEXT=u:object_r:app_data_file:s0:c18,c257,c512,c768
TERMUX_APP__SE_INFO=default:targetSdkVersion=28:complete
TERMUX_APP__TARGET_SDK=28
TERMUX_VERSION=0.119.0-beta.3
TERMUX__APPS_DIR=/data/user/0/com.termux/termux/apps
TERMUX__HOME=/data/data/com.termux/files/home
TERMUX__PREFIX=/data/data/com.termux/files/usr
TERMUX__ROOTFS_DIR=/data/data/com.termux/files
TERMUX__SE_PROCESS_CONTEXT=u:r:untrusted_app_27:s0:c18,c257,c512,c768
TERMUX__UID=10274
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://mirror.quantum5.ca/termux/termux-main stable main
# tur-repo (sources.list.d/tur.list)
deb https://tur.kcubeterm.com tur-packages tur tur-on-device tur-continuous
# x11-repo (sources.list.d/x11.list)
deb https://mirror.quantum5.ca/termux/termux-x11 x11 main
# root-repo (sources.list.d/root.list)
deb https://mirror.quantum5.ca/termux/termux-root root stable
Updatable packages:
All packages up to date
termux-tools version:
1.45.0
Android version:
15
Kernel build information:
Linux localhost 5.15.167-android13-8-31019773 #1 SMP PREEMPT Mon Jun 30 05:52:20 UTC 2025 aarch64 Android
Device manufacturer:
samsung
Device model:
SM-A156U1
Supported ABIs:
SUPPORTED_ABIS: arm64-v8a,armeabi-v7a,armeabi
SUPPORTED_32_BIT_ABIS: armeabi-v7a,armeabi
SUPPORTED_64_BIT_ABIS: arm64-v8a
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec-ld-preload.so
Installed termux plugins:
com.termux.api versionCode:1002
com.termux.x11 versionCode:15

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug reportSomething is not working properlypackagingIssue related to building packages, not affecting end users directly

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions