这是indexloc提供的服务,不要输入任何密码
Skip to content

[Bug]: termux_step_update_alternatives() has /dev/stderr: Permission denied inside termux-docker inside GitHub Actions #25377

@robertkirkman

Description

@robertkirkman

Problem description

Unfortunately, after:

building termux packages inside termux-docker inside GitHub Actions has stopped working, because of this error happening:

Image

This error happens because GitHub Actions restricts direct /dev/stderr access to the root user, but in order for termux-docker to function properly, it has to be run as a non-root user.

What steps will reproduce the bug?

Minimal reproducible example code including GitHub Actions log:

owokitty/termux-on-gha@a7d3bf8

What is the expected behavior?

termux-docker working to build termux-packages packages inside of GitHub Actions, like previously

System information

/data/data/com.termux/files/usr/bin/getprop: 3: exec: /system/bin/getprop: not found
/data/data/com.termux/files/usr/bin/getprop: 3: exec: /system/bin/getprop: not found
/data/data/com.termux/files/usr/bin/getprop: 3: exec: /system/bin/getprop: not found
/data/data/com.termux/files/usr/bin/getprop: 3: exec: /system/bin/getprop: not found
/data/data/com.termux/files/usr/bin/getprop: 3: exec: /system/bin/getprop: not found
/data/data/com.termux/files/usr/bin/getprop: 3: exec: /system/bin/getprop: not found
/data/data/com.termux/files/usr/bin/getprop: 3: exec: /system/bin/getprop: not found
Termux Variables:
unsupported
Packages CPU architecture:
x86_64
Subscribed repositories:
# sources.list
deb https://packages-cf.termux.dev/apt/termux-main stable main
Updatable packages:
All packages up to date
termux-tools version:
1.45.0
Android version:

Kernel build information:
Linux 37ae260dec3a 6.11.0-1018-azure #18~24.04.1-Ubuntu SMP Sat Jun 28 04:46:03 UTC 2025 x86_64 Android
Device manufacturer:

Device model:

Supported ABIs:
SUPPORTED_ABIS: 
SUPPORTED_32_BIT_ABIS: 
SUPPORTED_64_BIT_ABIS: 
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec-ld-preload.so

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug reportSomething is not working properly

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions