Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) #1578

Closed
TelDragon opened this issue Sep 27, 2019 · 8 comments
Closed

Comments

@TelDragon
Copy link

/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

At build time, it is not known that the DEST_LANG parameter in "config-default.conf" is invalid.

From which version is this parameter discarded? How can I enable it later?

@igorpecovnik
Copy link
Member

igorpecovnik commented Sep 27, 2019

This is unlikely to be a problem of a build script. More as a problem of your host. Where / when exactly does this happen?

@TelDragon
Copy link
Author

This is the case. When I built it earlier, the config-default.conf file was selected with the parameter "DEST_LANG". I have not paid attention to it in the later period.

I didn't observe it until after the warning appeared. Found that the latest build script is out of this parameter, the document does not have a description of this parameter.

@igorpecovnik
Copy link
Member

latest build script is out of this parameter

Its present by default:
https://github.com/armbian/build/blob/master/config/templates/config-example.conf#L12

If your system is broken or altered you might create the problem ... I tried on a clean build and can't see any troubles / warnings of this kind. Please provide a log where this happens starting from a clean build.

@Averell7
Copy link
Contributor

Averell7 commented Oct 1, 2019

I intended to set an issue about this question. In Debian Buster with Armbian Linux 4.4.182-rockchip64 it is impossible to change the locale which is locked to "C" in /etc/environment.
It will never be possible to change the locale of the console, either physical or SSL, as long as this line is there. armbian-config and dpkg-reconfigure has no effect. All locale parameters are sticked to C.
The result with a French keyboard is the most strange I have ever seen.
When you type : ùc, you get : ccccccccc
éèçà just don't appear at all. Same thing with cat
Please, please, please, remove :
LC_ALL=C
from /etc/environment.
Perhaps it has an impact on the problem you submitted, TelDragon ?

@TelDragon
Copy link
Author

TelDragon commented Oct 12, 2019

This problem still occurs with the new environment. Looking for other reasons

I: Extracting bsdutils...
I: Extracting libblkid1...
I: Extracting libfdisk1...
I: Extracting libmount1...
I: Extracting libsmartcols1...
I: Extracting libuuid1...
I: Extracting mount...
I: Extracting util-linux...
I: Extracting liblzma5...
I: Extracting zlib1g...
[ o.k. ] Installing base system [ Stage 2/2 ]
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
I: Installing core packages...
I: Unpacking required packages...
I: Unpacking libacl1:armhf...
I: Unpacking libattr1:armhf...

Reference userpatches/lib.config

PACKAGE_LIST_ADDITIONAL="$PACKAGE_LIST_ADDITIONAL python-pip python3-pip" 

debug :

[ o.k. ] Installing base system [ Stage 1/2 ]
I: Retrieving InRelease 
I: Retrieving Release 
I: Retrieving Release.gpg 
I: Checking Release signature
I: Valid Release signature (key id 067E3C456BAE240ACEE88F6FEF0F382A1A7B6500)
I: Retrieving Packages 
I: Validating Packages 
I: Found packages in base already in required: tzdata 
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Found additional required dependencies: libaudit1 libaudit-common libbz2-1.0 libcap-ng0 libdb5.3 libdebconfclient0 libgcrypt20 libgpg-error0 liblz4-1 libncursesw5 libsemanage1 libsemanage-common libsystemd0 libudev1 libustr-1.0-1 
I: Found additional base dependencies: adduser cgmanager console-setup-linux debian-archive-keyring gnupg-agent gpgv initramfs-tools-core iproute2 iw kbd keyboard-configuration klibc-utils libapparmor1 libapt-inst2.0 libapt-pkg5.0 libassuan0 libbsd0 libcap2 libcgmanager0 libc-l10n libcryptsetup4 libcurl3-gnutls libdbus-1-3 libdevmapper1.02.1 libdns-export162 libelf1 libestr0 libexpat1 libfastjson4 libffi6 libglib2.0-0 libgmp10 libgnutls30 libgssapi-krb5-2 libhogweed4 libidn11 libidn2-0 libip4tc0 libisc-export160 libk5crypto3 libkeyutils1 libklibc libkmod2 libkrb5-3 libkrb5support0 libksba8 libldap-2.4-2 libldap-common liblocale-gettext-perl liblogging-stdlog0 liblognorm5 libmnl0 libncurses5 libnettle6 libnewt0.52 libnghttp2-14 libnih1 libnih-dbus1 libnl-3-200 libnl-genl-3-200 libnpth0 libp11-kit0 libpopt0 libprocps6 libpsl5 libreadline7 librtmp1 libsasl2-2 libsasl2-modules-db libseccomp2 libslang2 libsqlite3-0 libssh2-1 libssl1.0.2 libssl1.1 libstdc++6 libtasn1-6 libunistring0 openssl pinentry-curses procps readline-common systemd-shim systemd-sysv xkb-data 
I: Checking component main on http://localhost:3142/mirrors.tuna.tsinghua.edu.cn/debian...
I: Retrieving libacl1 2.2.52-3+b1
I: Validating libacl1 2.2.52-3+b1
I: Retrieving adduser 3.115
I: Validating adduser 3.115
I: Retrieving libapparmor1 2.11.0-3+deb9u2
I: Validating libapparmor1 2.11.0-3+deb9u2
I: Retrieving apt 1.4.9
I: Validating apt 1.4.9
I: Retrieving apt-transport-https 1.4.9
I: Validating apt-transport-https 1.4.9
。。。。。。
I: Extracting util-linux...
I: Extracting liblzma5...
I: Extracting zlib1g...
[ o.k. ] Installing base system [ Stage 2/2 ]
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

@TelDragon
Copy link
Author

TelDragon commented Oct 12, 2019

Verified, just introduce userpatches/lib.config
Still using the official docs example

PACKAGE_LIST_ADDITIONAL="$PACKAGE_LIST_ADDITIONAL python-serial python" # additional packages

I have deprecated this way to install additional software, using userpatches/customize-image.sh and then installing it inside the chroot.

@TelDragon
Copy link
Author

TelDragon commented Oct 12, 2019

Also found a small problem

[ .... ] Installing [ linux-dtb-next-sunxi_5.98_armhf.deb ]
E: Unable to locate package wireguard-tools
[ .... ] Installing [ linux-stretch-root-next-t1000p_5.98_armhf.deb ]

Here code again

/build/lib/distributions.sh

 # install wireguard tools
        chroot "${SDCARD}" /bin/bash -c "apt -y -qq install wireguard-tools"

Isn't this an important piece of software?

@igorpecovnik
Copy link
Member

Isn't this an important piece of software?

no if you don't use it. its for controlling vpn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants