GNU bug report logs -
#40899
Locales not set up correctly
Previous Next
Reported by: Matthew Kraai <kraai <at> ftbfs.org>
Date: Mon, 27 Apr 2020 12:30:02 UTC
Severity: normal
Done: zimoun <zimon.toutoune <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 40899 in the body.
You can then email your comments to 40899 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#40899
; Package
guix
.
(Mon, 27 Apr 2020 12:30:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Matthew Kraai <kraai <at> ftbfs.org>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Mon, 27 Apr 2020 12:30:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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' package and
defining `GUIX_LOCPATH', along these lines:
guix package -i glibc-utf8-locales
export GUIX_LOCPATH="$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-[0mnss-certs-3.50
/gnu/store/29jhbbg1hf557x8j53f9sxd9imlmf02a-bash-minimal-5.0.7/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
downloading from https://ci.guix.gnu.org/nar/lzip/0y63pfqi2626nwsjbksrci1jyd62cxx8-nss-certs-3.50...[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 #<thunk 7f6763f15400>)
In ice-9/boot-9.scm:
718:2 2 (call-with-prompt _ _ #<procedure default-prompt-handle?>)
In ice-9/eval.scm:
619:8 1 (_ #(#(#<directory (guile-user) 7f6763b17f00>)))
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/store/mxp55201zl6wm2d82xdjnc8qa7qwgr85-nss-certs-3.50.drv' failed (usually happens due to networking issues); try `--fallback' to build derivation from source
```
--
Matthew Kraai
[install_guix.sh (application/x-sh, attachment)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#40899
; Package
guix
.
(Mon, 27 Apr 2020 12:54:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 40899 <at> debbugs.gnu.org (full text, mbox):
Dear,
On Mon, 27 Apr 2020 at 14:30, Matthew Kraai <kraai <at> ftbfs.org> wrote:
> $ guix package -i nss-certs
> guile: warning: failed to install locale
There 3 points:
a) "guix install glibc-utf8-locales" as root because of the daemon
and restart it. (depending on your system init, an extra config should
be required)
b) "guix install glibc-utf8-locales" as regular user
This should fix the locales issues.
Note that depending on your locale, glibc-utf8-locles should not
provide it. (The term utf8 could be misleading). But en_US is provided
by it.
> guix package: error: some substitutes for the outputs of derivation `/gnu/store/mxp55201zl6wm2d82xdjnc8qa7qwgr85-nss-certs-3.50.drv' failed (usually happens due to networking issues); try `--fallback' to build derivation from source
c) Try:
guix install nss-certs --fallback
Hope that helps,
simon
Information forwarded
to
bug-guix <at> gnu.org
:
bug#40899
; Package
guix
.
(Tue, 28 Apr 2020 07:57:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 40899 <at> debbugs.gnu.org (full text, mbox):
Hi simon,
On Mon, Apr 27, 2020 at 02:53:17PM +0200, zimoun wrote:
> On Mon, 27 Apr 2020 at 14:30, Matthew Kraai <kraai <at> ftbfs.org> wrote:
>
> > $ guix package -i nss-certs
> > guile: warning: failed to install locale
>
> There 3 points:
>
> a) "guix install glibc-utf8-locales" as root because of the daemon
> and restart it. (depending on your system init, an extra config should
> be required)
I modified the script to run the following commands as root:
```
guix package -i glibc-utf8-locales
systemctl restart guix-daemon
```
> b) "guix install glibc-utf8-locales" as regular user
The script was already doing this.
> This should fix the locales issues.
>
> Note that depending on your locale, glibc-utf8-locles should not
> provide it. (The term utf8 could be misleading). But en_US is provided
> by it.
When I run guix, it still produces the same locale messages:
```
$ guix package -I
guile: warning: failed to install locale
hint: Consider installing the `glibc-utf8-locales' or `glibc-locales' package
and defining `GUIX_LOCPATH', along these lines:
guix package -i glibc-utf8-locales
export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"
See the "Application Setup" section in the manual, for more info.
glibc-utf8-locales 2.29 out /gnu/store/n79cf8bvy3k96gjk1rf18d36w40lkwlr-glibc-utf8-locales-2.29
```
> > guix package: error: some substitutes for the outputs of derivation `/gnu/store/mxp55201zl6wm2d82xdjnc8qa7qwgr85-nss-certs-3.50.drv' failed (usually happens due to networking issues); try `--fallback' to build derivation from source
>
> c) Try:
> guix install nss-certs --fallback
The --fallback option works. Thank you for the suggestion.
--
Matthew Kraai
Information forwarded
to
bug-guix <at> gnu.org
:
bug#40899
; Package
guix
.
(Tue, 28 Apr 2020 08:15:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 40899 <at> debbugs.gnu.org (full text, mbox):
On Tue, 28 Apr 2020 at 09:56, Matthew Kraai <kraai <at> ftbfs.org> wrote:
> When I run guix, it still produces the same locale messages:
>
> ```
> $ guix package -I
> guile: warning: failed to install locale
> hint: Consider installing the `glibc-utf8-locales' or `glibc-locales' package
> and defining `GUIX_LOCPATH', along these lines:
>
> guix package -i glibc-utf8-locales
> export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"
>
> See the "Application Setup" section in the manual, for more info.
>
> glibc-utf8-locales 2.29 out /gnu/store/n79cf8bvy3k96gjk1rf18d36w40lkwlr-glibc-utf8-locales-2.29
> ```
Hum? Did you set GUIX_LOCPATH?
Information forwarded
to
bug-guix <at> gnu.org
:
bug#40899
; Package
guix
.
(Tue, 28 Apr 2020 08:35:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 40899 <at> debbugs.gnu.org (full text, mbox):
On Tue, Apr 28, 2020 at 10:14:13AM +0200, zimoun wrote:
> On Tue, 28 Apr 2020 at 09:56, Matthew Kraai <kraai <at> ftbfs.org> wrote:
>
> > When I run guix, it still produces the same locale messages:
> >
> > ```
> > $ guix package -I
> > guile: warning: failed to install locale
> > hint: Consider installing the `glibc-utf8-locales' or `glibc-locales' package
> > and defining `GUIX_LOCPATH', along these lines:
> >
> > guix package -i glibc-utf8-locales
> > export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"
> >
> > See the "Application Setup" section in the manual, for more info.
> >
> > glibc-utf8-locales 2.29 out /gnu/store/n79cf8bvy3k96gjk1rf18d36w40lkwlr-glibc-utf8-locales-2.29
> > ```
>
> Hum? Did you set GUIX_LOCPATH?
Yes,
```
admin <at> ip-172-31-11-27:~$ echo $GUIX_LOCPATH
/home/admin/.guix-profile/lib/locale
admin <at> ip-172-31-11-27:~$ guix package -I
guile: warning: failed to install locale
hint: Consider installing the `glibc-utf8-locales' or `glibc-locales' package
and defining `GUIX_LOCPATH', along these lines:
guix package -i glibc-utf8-locales
export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"
See the "Application Setup" section in the manual, for more info.
glibc-utf8-locales 2.29 out /gnu/store/n79cf8bvy3k96gjk1rf18d36w40lkwlr-glibc-utf8-locales-2.29
```
--
Matthew Kraai
Information forwarded
to
bug-guix <at> gnu.org
:
bug#40899
; Package
guix
.
(Tue, 28 Apr 2020 09:17:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 40899 <at> debbugs.gnu.org (full text, mbox):
Is 'admin' the regular user or another name for the 'root' account?
On the Debian foreign distro, for GUIX_LOCPATH, I have:
- root account: /root/.guix-profile/lib/local
- regular user: /home/kikoo/.guix-profile/lib/locale
Hope that helps,
simon
Information forwarded
to
bug-guix <at> gnu.org
:
bug#40899
; Package
guix
.
(Tue, 28 Apr 2020 11:00:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 40899 <at> debbugs.gnu.org (full text, mbox):
On Tue, Apr 28, 2020 at 11:15:58AM +0200, zimoun wrote:
> Is 'admin' the regular user or another name for the 'root' account?
>
> On the Debian foreign distro, for GUIX_LOCPATH, I have:
>
> - root account: /root/.guix-profile/lib/local
> - regular user: /home/kikoo/.guix-profile/lib/locale
'admin' is the regular user.
I think the problem is that LANG is set to 'C.UTF-8' by default. If I
change the contents of /etc/default/locale from
LANG=C.UTF-8
to
LANG=en_US.UTF-8
I no longer see the error installing nss-certs.
--
Matthew Kraai
Reply sent
to
zimoun <zimon.toutoune <at> gmail.com>
:
You have taken responsibility.
(Tue, 28 Apr 2020 11:06:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Matthew Kraai <kraai <at> ftbfs.org>
:
bug acknowledged by developer.
(Tue, 28 Apr 2020 11:06:01 GMT)
Full text and
rfc822 format available.
Message #28 received at 40899-done <at> debbugs.gnu.org (full text, mbox):
On Tue, 28 Apr 2020 at 12:59, Matthew Kraai <kraai <at> ftbfs.org> wrote:
> I think the problem is that LANG is set to 'C.UTF-8' by default. If I
> change the contents of /etc/default/locale from
>
> LANG=C.UTF-8
>
> to
>
> LANG=en_US.UTF-8
Ah yes. :-)
So closing.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 26 May 2020 11:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 76 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.