From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Kraai Subject: bug#40899: Locales not set up correctly Date: Mon, 27 Apr 2020 05:29:43 -0700 Message-ID: <20200427122943.GA25049@inspiron-3147> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="+HP7ph2BbKc20aGI" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:37016) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jT2tf-0003YC-Hc for bug-guix@gnu.org; Mon, 27 Apr 2020 08:30:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jT2tf-0005pc-1W for bug-guix@gnu.org; Mon, 27 Apr 2020 08:30:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52540) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jT2te-0005pE-Jg for bug-guix@gnu.org; Mon, 27 Apr 2020 08:30:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jT2te-0000BA-D3 for bug-guix@gnu.org; Mon, 27 Apr 2020 08:30:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:36992) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jT2tR-0003Gp-Mp for bug-guix@gnu.org; Mon, 27 Apr 2020 08:29:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jT2tQ-0005Si-RQ for bug-guix@gnu.org; Mon, 27 Apr 2020 08:29:49 -0400 Received: from mail.ftbfs.org ([52.8.68.13]:18800 helo=aws.ftbfs.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jT2tQ-0005Na-EK for bug-guix@gnu.org; Mon, 27 Apr 2020 08:29:48 -0400 Received: from ip68-5-94-190.oc.oc.cox.net ([68.5.94.190] helo=inspiron-3147) by aws.ftbfs.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jT2tN-0006Pr-8m for bug-guix@gnu.org; Mon, 27 Apr 2020 12:29:45 +0000 Content-Disposition: inline List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: 40899@debbugs.gnu.org --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, After I launch an EC2 instance using the official Debian 10 Buster AMI and run the attached script, which should match the installation instructions in the manual, the locales don't seem to be set up properly. For example, ``` $ guix package -i nss-certs guile: warning: failed to install locale hint: Consider installing the `glibc-utf8-locales' or `glibc-locales' packa= ge and defining `GUIX_LOCPATH', along these lines: guix package -i glibc-utf8-locales export GUIX_LOCPATH=3D"$HOME/.guix-profile/lib/locale" See the "Application Setup" section in the manual, for more info. guix package: warning: Consider running 'guix pull' followed by 'guix package -u' to get up-to-date packages and security updates. The following package will be installed: nss-certs 3.50 substitute: /gnu/store/29jhbbg1hf557x8j53f9sxd9imlmf02a-bash-minimal-5.0.7/= bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8) 0.1 MB will be downloaded: /gnu/store/0y63pfqi2626nwsjbksrci1jyd62cxx8-=1B[0mnss-certs-3.50 /gnu/store/29jhbbg1hf557x8j53f9sxd9imlmf02a-bash-minimal-5.0.7/bin/bash: wa= rning: setlocale: LC_ALL: cannot change locale (en_US.utf8) downloading from https://ci.guix.gnu.org/nar/lzip/0y63pfqi2626nwsjbksrci1jy= d62cxx8-nss-certs-3.50...=1B[0m nss-certs-3.50 133KiB 189KiB/s 00:00 [######## ] = 48.3%Backtrace: In ice-9/boot-9.scm: 1736:10 4 (with-exception-handler _ _ #:unwind? _ # _) In unknown file: 3 (apply-smob/0 #) In ice-9/boot-9.scm: 718:2 2 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 1 (_ #(#(#))) In guix/ui.scm: 1936:12 0 (run-guix-command _ . _) guix/ui.scm:1936:12: In procedure run-guix-command: Throw to key `encoding-error' with args `("scm_to_stringn" "cannot convert = wide string to output locale" 84 #f #f)'. substitution of /gnu/store/0y63pfqi2626nwsjbksrci1jyd62cxx8-nss-certs-3.50 = failed guix package: error: some substitutes for the outputs of derivation `/gnu/s= tore/mxp55201zl6wm2d82xdjnc8qa7qwgr85-nss-certs-3.50.drv' failed (usually h= appens due to networking issues); try `--fallback' to build derivation from= source=20 ``` --=20 Matthew Kraai --+HP7ph2BbKc20aGI Content-Type: application/x-sh Content-Disposition: attachment; filename="install_guix.sh" Content-Transfer-Encoding: quoted-printable #!/bin/sh=0A=0Aset -e=0Asudo apt update=0Asudo apt install -y gnupg=0Awget = https://ftp.gnu.org/gnu/guix/guix-binary-1.1.0.x86_64-linux.tar.xz=0Awget h= ttps://ftp.gnu.org/gnu/guix/guix-binary-1.1.0.x86_64-linux.tar.xz.sig=0Awge= t https://sv.gnu.org/people/viewgpg.php?user_id=3D15145 -qO - | gpg --impor= t -=0Agpg --verify guix-binary-1.1.0.x86_64-linux.tar.xz.sig=0Asudo -s <<'E= OF'=0Acd /tmp=0Atar -xf ~admin/guix-binary-1.1.0.x86_64-linux.tar.xz=0Amv v= ar/guix /var && mv gnu /=0Amkdir -p ~root/.config/guix=0Aln -sf /var/guix/p= rofiles/per-user/root/current-guix ~root/.config/guix/current=0AGUIX_PROFIL= E=3D"`echo ~root`/.config/guix/current"=0Asource $GUIX_PROFILE/etc/profile= =0Agroupadd --system guixbuild=0Afor i in `seq -w 1 10`; do=0A useradd -= g guixbuild -G guixbuild \=0A -d /var/empty -s `which = nologin` \=0A -c "Guix build user $i" --system \=0A = guixbuilder$i;=0Adone=0Acp ~root/.config/guix/current/lib/systemd/syst= em/guix-daemon.service /etc/systemd/system=0Asystemctl start guix-daemon &&= systemctl enable guix-daemon=0Acd /usr/local/bin=0Aln -s /var/guix/profile= s/per-user/root/current-guix/bin/guix=0Acd /usr/local/share/info=0Afor i in= /var/guix/profiles/per-user/root/current-guix/share/info/*; do=0A ln -s= $i=0Adone=0Aguix archive --authorize <~root/.config/guix/current/share/gui= x/ci.guix.gnu.org.pub=0AEOF=0Aguix install glibc-utf8-locales=0Acat >>.prof= ile <<'EOF'=0A=0Aexport GUIX_LOCPATH=3D$HOME/.guix-profile/lib/locale=0AEOF= =0A --+HP7ph2BbKc20aGI--