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

[Bug]: Configure default locale for Debian #357

Closed HusniMuhammad closed 10 months ago

HusniMuhammad commented 11 months ago

Problem description

locale set error in proot-distro Debian unstable (Sometimes in termux's proot-distro's default repo: stable)

After using unstable repo of Debian (for getting frequent updates)

changing the repo

Modify the (../etc/apt/sources.list) file

deb https://deb.debian.org/debian unstable main

After modification I'm using commands like

apt remove pkgname

It's shows following warning/error message

Screenshot_20231030-065924

What steps will reproduce the bug?

What is the expected behavior?

No errors (I think so)

George-Seven commented 11 months ago

Current fix -

Login as root user and -

apt install -y nano && apt install -y locales

Let it fail once in locales, as it will setup some configuration files that we need.

Now do -

nano /etc/locale.gen

Scroll down and uncomment # en_US.UTF-8 UTF-8

(remove the #)

CTRL+X+Y+ENTER save and exit. Then run -

apt install -y locales

Error should be fixed.

HusniMuhammad commented 11 months ago

Worked thanks

George-Seven commented 11 months ago

Welcome. I had gotten the same error in default proot-distro debian, pushing me to fix it.

sylirre commented 10 months ago

Warning is not error and what you see is expected as locales are not configured.

Although I'd keep this opened as it is possible to set up en_US.UTF-8 locale as default configuration in new release.