termux / proot-distro

An utility for managing installations of the Linux distributions in Termux.
GNU General Public License v3.0
1.69k stars 197 forks source link

Proot distro unable to write and some have no locales unless default C locale. #387

Closed pawn343 closed 9 months ago

pawn343 commented 9 months ago

Problem description

I believe that this is the problem in proot script since all distros that i've tried almost all have no locales (only default C or POSIX locales) and unable to create one with locale-gen or set one that i needed like "en_US.UTF-8".

And second, all proot distros unable to write/create a file with error "permission denied" whenever i tried to install some specific package like shown below: Screenshot_2023-12-29-02-59-11-641_com termux

And in manjaro when i tried to change the locale with localedef -c -f UTF-8 -i en_US en_US.UTF-8: Screenshot_2023-12-29-03-39-00-310_com termux

If this was not the problem caused by proot script or outside of the distros bug then please guide me where i can find or ask the question to.

Thanks and regards.

What steps will reproduce the bug?

Installing some specific package like perl or glibc-locales or package that contains locales. Or trying to create/change the locale with localedef -c -f UTF-8 -i en_US en_US.UTF-8 or export LC_ALL="en_US.UTF-8.

What is the expected behavior?

No response

sylirre commented 9 months ago

Arch Linux, Debian, Ubuntu have locales configured and work fine. Some others may need to setup locales manually and that's can be easily done using standard methods. No distribution problems confirmed.

Permission denials you see can be a device-specific bug of proot utility. That's unless your device is rooted and you actively modifying files in Termux $PREFIX as root.

proot-distro is nothing more than just a shell script automating proot usage. By design it can't produce issues you described. However proot tends to be unstable and cause weird behavior, depending on device, Android and Linux kernel versions.

Distribution bugs are unlikely. When happen, they affect all installations in the world. Not just Termux proot.

PRoot issues should be reported to https://github.com/termux/proot/issues.


Screenshot_20231229-113709

Screenshot_20231229-114104