How To Resolve "guile: warning: failed to install locale"

DoneSubmitted by David Philipe Gil.
Details
4 participants
  • David Philipe Gil
  • Marius Bakke
  • Ricardo Wurmus
  • zimoun
Owner
unassigned
Severity
normal
D
D
David Philipe Gil wrote on 29 May 17:19 +0200
(name . bug-guix@gnu.org)(address . bug-guix@gnu.org)
WZW_fZA-wrjLosEBKKNZWXyO2KaK5U-OKlzvq2Jm0BakFYlgDtp58L_tht2Pr3OgRcPMxKK52Sue_ssu5s6KMLRCHzVCv3bDy9X3U_Gppko=@protonmail.com
I have the Guix package manager installed on Trisquel 9 (Ubuntu 18.04 based) and whenever I do "guix pull", "guix package -u", etc. As a first response, I see the following warning -- "guile: warning: failed to install locale".
I have installed the glibc locales package already. How do I resolve this? I suspect this is related to why some programs like "peek" (a GIF recording app) show me broken UI characters.
Attachment: file
Attachment: signature.asc
Z
Z
zimoun wrote on 29 May 17:31 +0200
(name . David Philipe Gil)(address . davidpgil@protonmail.com)(address . 41603@debbugs.gnu.org)
CAJ3okZ2ie=bmo6vaWfbH9K7VW0jtk8+EJWxu8e=VAYUGq_uJ=g@mail.gmail.com
Dear,
On Fri, 29 May 2020 at 17:20, David Philipe Gil via Bug reports forGNU Guix <bug-guix@gnu.org> wrote:
Toggle quote (4 lines)> I have the Guix package manager installed on Trisquel 9 (Ubuntu 18.04 based) and whenever I do "guix pull", "guix package -u", etc. As a first response, I see the following warning -- "guile: warning: failed to install locale".>> I have installed the glibc locales package already. How do I resolve this? I suspect this is related to why some programs like "peek" (a GIF recording app) show me broken UI characters.
Do you have installed twice glibc-locales?
1. in your user default profile; what you already did, I guess. 2. in your root profile (roughly speaking the locale used by thedaemon) -- maybe adjust systemd or other.
Well, this should fix the issue when you invoke "guix <command>".For the other issue (peek), I do not know.
Hope that helps,simon
D
D
David Philipe Gil wrote on 29 May 22:29 +0200
(name . zimoun)(address . zimon.toutoune@gmail.com)(address . 41603@debbugs.gnu.org)
924c3bcc-4dc2-c3cd-af86-4dae3679a8ef@protonmail.com
I uninstalled glibc-locales and tried to reinstall and now I cannotreinstall it.
guile: warning: failed to install localeThe following package will be installed:   glibc-locales 2.31
substitute: guix substitute: warning: ACL for archive imports seems tobe uninitialized, substitutes may be unavailableThe following derivations will be built:   /gnu/store/rymq0i0my05d99ak07gkynj1k833fykp-glibc-locales-2.31.drv  /gnu/store/yqb4xxxjgwm21gnl0kp4w7awiamqjhi6-linux-libre-headers-5.4.20.drv   /gnu/store/kkk0l92v144xj04kzrccbggr5m7v8ppd-rsync-3.1.3.drv   /gnu/store/67dlbyg441iafjiz1k5xrrsp9iflidkr-popt-1.16.drv   /gnu/store/cgzl9aa8qr8bgzq7qr4m2bbb76c8azkl-popt-1.16.tar.gz.drvbuilding /gnu/store/cgzl9aa8qr8bgzq7qr4m2bbb76c8azkl-popt-1.16.tar.gz.drv...downloading from http://rpm5.org/files/popt/popt-1.16.tar.gz...\sha256 hash mismatch for/gnu/store/smgir46ibcnj6sr55lipl45xbafx89i9-popt-1.16.tar.gz:  expected hash: 1j2c61nn2n351nhj4d25mnf3vpiddcykq005w2h6kw79dwlysa77  actual hash:   0w0az9ni0gsh8zqpv3g15k2mrn201np876ha4442pfks9jpg0vylhash mismatch for store item'/gnu/store/smgir46ibcnj6sr55lipl45xbafx89i9-popt-1.16.tar.gz'build of/gnu/store/cgzl9aa8qr8bgzq7qr4m2bbb76c8azkl-popt-1.16.tar.gz.drv failedView build log at'/var/log/guix/drvs/cg/zl9aa8qr8bgzq7qr4m2bbb76c8azkl-popt-1.16.tar.gz.drv.bz2'.cannot build derivation`/gnu/store/67dlbyg441iafjiz1k5xrrsp9iflidkr-popt-1.16.drv': 1dependencies couldn't be builtcannot build derivation`/gnu/store/kkk0l92v144xj04kzrccbggr5m7v8ppd-rsync-3.1.3.drv': 1dependencies couldn't be builtcannot build derivation`/gnu/store/yqb4xxxjgwm21gnl0kp4w7awiamqjhi6-linux-libre-headers-5.4.20.drv':1 dependencies couldn't be builtcannot build derivation`/gnu/store/rymq0i0my05d99ak07gkynj1k833fykp-glibc-locales-2.31.drv': 1dependencies couldn't be builtguix package: error: build of`/gnu/store/rymq0i0my05d99ak07gkynj1k833fykp-glibc-locales-2.31.drv' failed

On 5/29/20 11:31 AM, zimoun wrote:
Toggle quote (20 lines)> Dear,>> On Fri, 29 May 2020 at 17:20, David Philipe Gil via Bug reports for> GNU Guix <bug-guix@gnu.org> wrote:>>> I have the Guix package manager installed on Trisquel 9 (Ubuntu 18.04 based) and whenever I do "guix pull", "guix package -u", etc. As a first response, I see the following warning -- "guile: warning: failed to install locale".>>>> I have installed the glibc locales package already. How do I resolve this? I suspect this is related to why some programs like "peek" (a GIF recording app) show me broken UI characters.> Do you have installed twice glibc-locales?>> 1. in your user default profile; what you already did, I guess.> 2. in your root profile (roughly speaking the locale used by the> daemon) -- maybe adjust systemd or other.>> Well, this should fix the issue when you invoke "guix <command>".> For the other issue (peek), I do not know.>> Hope that helps,> simon
-- ==============================================
Sent from Protonmail -- https://protonmail.com
Attachment: signature.asc
D
D
David Philipe Gil wrote on 29 May 23:10 +0200
(name . zimoun)(address . zimon.toutoune@gmail.com)(address . 41603@debbugs.gnu.org)
9390eb99-99a5-29ba-24df-e627ab59be62@protonmail.com
It seems the local build aspect is broken for me for glibc-locales so tosolve this, as root I did:
# guix archive --authorize < \ ~root/.config/guix/current/share/guix/ci.guix.gnu.org.pub
It seems to have fixed my issue.
On 5/29/20 4:29 PM, David Philipe Gil wrote:
Toggle quote (65 lines)> I uninstalled glibc-locales and tried to reinstall and now I cannot> reinstall it.>> guile: warning: failed to install locale> The following package will be installed:>    glibc-locales 2.31>> substitute: guix substitute: warning: ACL for archive imports seems to> be uninitialized, substitutes may be unavailable> The following derivations will be built:>    /gnu/store/rymq0i0my05d99ak07gkynj1k833fykp-glibc-locales-2.31.drv>   > /gnu/store/yqb4xxxjgwm21gnl0kp4w7awiamqjhi6-linux-libre-headers-5.4.20.drv>    /gnu/store/kkk0l92v144xj04kzrccbggr5m7v8ppd-rsync-3.1.3.drv>    /gnu/store/67dlbyg441iafjiz1k5xrrsp9iflidkr-popt-1.16.drv>    /gnu/store/cgzl9aa8qr8bgzq7qr4m2bbb76c8azkl-popt-1.16.tar.gz.drv> building /gnu/store/cgzl9aa8qr8bgzq7qr4m2bbb76c8azkl-popt-1.16.tar.gz.drv...> downloading from http://rpm5.org/files/popt/popt-1.16.tar.gz ...> \sha256 hash mismatch for> /gnu/store/smgir46ibcnj6sr55lipl45xbafx89i9-popt-1.16.tar.gz:>   expected hash: 1j2c61nn2n351nhj4d25mnf3vpiddcykq005w2h6kw79dwlysa77>   actual hash:   0w0az9ni0gsh8zqpv3g15k2mrn201np876ha4442pfks9jpg0vyl> hash mismatch for store item> '/gnu/store/smgir46ibcnj6sr55lipl45xbafx89i9-popt-1.16.tar.gz'> build of> /gnu/store/cgzl9aa8qr8bgzq7qr4m2bbb76c8azkl-popt-1.16.tar.gz.drv failed> View build log at> '/var/log/guix/drvs/cg/zl9aa8qr8bgzq7qr4m2bbb76c8azkl-popt-1.16.tar.gz.drv.bz2'.> cannot build derivation> `/gnu/store/67dlbyg441iafjiz1k5xrrsp9iflidkr-popt-1.16.drv': 1> dependencies couldn't be built> cannot build derivation> `/gnu/store/kkk0l92v144xj04kzrccbggr5m7v8ppd-rsync-3.1.3.drv': 1> dependencies couldn't be built> cannot build derivation> `/gnu/store/yqb4xxxjgwm21gnl0kp4w7awiamqjhi6-linux-libre-headers-5.4.20.drv':> 1 dependencies couldn't be built> cannot build derivation> `/gnu/store/rymq0i0my05d99ak07gkynj1k833fykp-glibc-locales-2.31.drv': 1> dependencies couldn't be built> guix package: error: build of> `/gnu/store/rymq0i0my05d99ak07gkynj1k833fykp-glibc-locales-2.31.drv' failed>>> On 5/29/20 11:31 AM, zimoun wrote:>> Dear,>>>> On Fri, 29 May 2020 at 17:20, David Philipe Gil via Bug reports for>> GNU Guix <bug-guix@gnu.org> wrote:>>>>> I have the Guix package manager installed on Trisquel 9 (Ubuntu 18.04 based) and whenever I do "guix pull", "guix package -u", etc. As a first response, I see the following warning -- "guile: warning: failed to install locale".>>>>>> I have installed the glibc locales package already. How do I resolve this? I suspect this is related to why some programs like "peek" (a GIF recording app) show me broken UI characters.>> Do you have installed twice glibc-locales?>>>> 1. in your user default profile; what you already did, I guess.>> 2. in your root profile (roughly speaking the locale used by the>> daemon) -- maybe adjust systemd or other.>>>> Well, this should fix the issue when you invoke "guix <command>".>> For the other issue (peek), I do not know.>>>> Hope that helps,>> simon
-- ==============================================
Sent from Protonmail -- https://protonmail.com
Attachment: file
Attachment: signature.asc
M
M
Marius Bakke wrote on 29 May 23:15 +0200
(address . 41603@debbugs.gnu.org)
871rn24f47.fsf@gnu.org
David Philipe Gil via Bug reports for GNU Guix <bug-guix@gnu.org>writes:
Toggle quote (3 lines)> I uninstalled glibc-locales and tried to reinstall and now I cannot> reinstall it.
So you reinstalled Guix?
Toggle quote (7 lines)> guile: warning: failed to install locale> The following package will be installed:>    glibc-locales 2.31>> substitute: guix substitute: warning: ACL for archive imports seems to> be uninitialized, substitutes may be unavailable
Did you intentionally disable binary substitutes?
Toggle quote (16 lines)> The following derivations will be built:>    /gnu/store/rymq0i0my05d99ak07gkynj1k833fykp-glibc-locales-2.31.drv>   > /gnu/store/yqb4xxxjgwm21gnl0kp4w7awiamqjhi6-linux-libre-headers-5.4.20.drv>    /gnu/store/kkk0l92v144xj04kzrccbggr5m7v8ppd-rsync-3.1.3.drv>    /gnu/store/67dlbyg441iafjiz1k5xrrsp9iflidkr-popt-1.16.drv>    /gnu/store/cgzl9aa8qr8bgzq7qr4m2bbb76c8azkl-popt-1.16.tar.gz.drv> building /gnu/store/cgzl9aa8qr8bgzq7qr4m2bbb76c8azkl-popt-1.16.tar.gz.drv...> downloading from http://rpm5.org/files/popt/popt-1.16.tar.gz ...> \sha256 hash mismatch for> /gnu/store/smgir46ibcnj6sr55lipl45xbafx89i9-popt-1.16.tar.gz:>   expected hash: 1j2c61nn2n351nhj4d25mnf3vpiddcykq005w2h6kw79dwlysa77>   actual hash:   0w0az9ni0gsh8zqpv3g15k2mrn201np876ha4442pfks9jpg0vyl> hash mismatch for store item> '/gnu/store/smgir46ibcnj6sr55lipl45xbafx89i9-popt-1.16.tar.gz'
Uff, this is because the domain that used to serve the tarball hasstarted serving very different content. :-/
I have fixed this in the Guix master branch with commit91c8b23e571b90e2d263194c9fbb2b05c0475dc1.
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl7Re3gACgkQoqBt8qM6VPpGRQf9G3qvDyZreeGedTKu1snIOOTFZy/YJ99LLtL2K7q9+w2JB2lay1oDMBP+tR4hE27PDfT9qidUHljysg0yw6QAB/54SOzhS670mJCvlNEVZxwF1ADH0Z0PNHpduUovNqGCBieurrXMJn9ndVOkonaVbsUcGocu6bjlu2mDFtHpcgC5o1r7YfTnt15+gb7oiJLII22Ej7hooG8s7ruqJ29RbpKoM1Q9ar40aelVtV+yPEFAcsh9L0aUmoly89NXtvos54WH7O/HZpd2csTe+hOUisTL3bnM80WTTFAG2MX95sSd+MZSp/auogaA4jo+nWVDEx9w2TKbdaVWe/Q8/QZCUw===W6VT-----END PGP SIGNATURE-----
Z
Z
zimoun wrote on 30 May 00:03 +0200
(name . David Philipe Gil)(address . davidpgil@protonmail.com)(address . 41603@debbugs.gnu.org)
CAJ3okZ1POhM81Z3wABE0YwKj_3QUOawCq4Ad+APXyRP7hiHabA@mail.gmail.com
Dear,
On Fri, 29 May 2020 at 23:10, David Philipe Gil<davidpgil@protonmail.com> wrote:
Toggle quote (6 lines)>> It seems the local build aspect is broken for me for glibc-locales so to solve this, as root I did:>> # guix archive --authorize < \> ~root/.config/guix/current/share/guix/ci.guix.gnu.org.pub
As Marius pointed, without this you do not use the substitutes(binary) served by the build farm ci.guix.gnu.org...

Toggle quote (3 lines)> substitute: guix substitute: warning: ACL for archive imports seems to> be uninitialized, substitutes may be unavailable
...therefore, you are rebuilding everything. And your issue was coming from...

Toggle quote (14 lines)> The following derivations will be built:> /gnu/store/rymq0i0my05d99ak07gkynj1k833fykp-glibc-locales-2.31.drv>> /gnu/store/yqb4xxxjgwm21gnl0kp4w7awiamqjhi6-linux-libre-headers-5.4.20.drv> /gnu/store/kkk0l92v144xj04kzrccbggr5m7v8ppd-rsync-3.1.3.drv> /gnu/store/67dlbyg441iafjiz1k5xrrsp9iflidkr-popt-1.16.drv> /gnu/store/cgzl9aa8qr8bgzq7qr4m2bbb76c8azkl-popt-1.16.tar.gz.drv> building /gnu/store/cgzl9aa8qr8bgzq7qr4m2bbb76c8azkl-popt-1.16.tar.gz.drv...> downloading from http://rpm5.org/files/popt/popt-1.16.tar.gz ...> \sha256 hash mismatch for> /gnu/store/smgir46ibcnj6sr55lipl45xbafx89i9-popt-1.16.tar.gz:> expected hash: 1j2c61nn2n351nhj4d25mnf3vpiddcykq005w2h6kw79dwlysa77> actual hash: 0w0az9ni0gsh8zqpv3g15k2mrn201np876ha4442pfks9jpg0vyl
...this mismatch. The upstream did a really bad thing: in-place replacement.

Hope that helps,simon
D
D
David Philipe Gil wrote on 30 May 00:07 +0200
(name . zimoun)(address . zimon.toutoune@gmail.com)(address . 41603@debbugs.gnu.org)
Vq_HziWkAB5gUKEdp0Wo03Co8NQVuefqDrOdFGJ2L_7JTXsqVAnEZLF1o_jN6BYzKWSsvfXeql-SmVWocEB5mhBxC97H6vNatVP8oOvcyro=@protonmail.com
Attachment: file
Attachment: signature.asc
Z
Z
zimoun wrote on 30 May 00:10 +0200
(name . Marius Bakke)(address . marius@gnu.org)
CAJ3okZ17wy6awLj0mxnaMX00U+RKi+aicjBN41HMR0LLS6mTQQ@mail.gmail.com
Hi Marius,
On Fri, 29 May 2020 at 23:15, Marius Bakke <marius@gnu.org> wrote:
Toggle quote (6 lines)> Uff, this is because the domain that used to serve the tarball has> started serving very different content. :-/>> I have fixed this in the Guix master branch with commit> 91c8b23e571b90e2d263194c9fbb2b05c0475dc1.
Thank you for the quick fix. Closing?
R
R
Ricardo Wurmus wrote on 30 May 00:12 +0200
(name . David Philipe Gil)(address . davidpgil@protonmail.com)
874kryie50.fsf@elephly.net
David Philipe Gil via Bug reports for GNU Guix <bug-guix@gnu.org> writes:
Toggle quote (3 lines)> substitute: guix substitute: warning: ACL for archive imports seems to> be uninitialized, substitutes may be unavailable
This means you will be building everything from source. If that’s notwhat you intended to do you should authorize the public key of thesubstitute server ci.guix.gnu.org.
-- Ricardo
D
D
David Philipe Gil wrote on 30 May 00:13 +0200
(address . 41603@debbugs.gnu.org)
d2VlyZ1E4irnoOOA5-pjQekT0CGWxO16oB6-ydtkY0xvG7ccQYkIWLIZFYFa6mJtho98dlexmIAnwcjhymbUGFZBLCdZzRXMJZdCAY4ndsw=@protonmail.com
Attachment: file
Attachment: signature.asc
Z
Z
zimoun wrote on 30 May 00:14 +0200
(name . David Philipe Gil)(address . davidpgil@protonmail.com)(address . 41603@debbugs.gnu.org)
CAJ3okZ1hPKjTeQQj3s7O0e04def=v-haZ2_arZ21WeU0bdN3Wg@mail.gmail.com
On Sat, 30 May 2020 at 00:07, David Philipe Gil<davidpgil@protonmail.com> wrote:
Toggle quote (3 lines)>> I thought it would be "cool" to build all of my own software using Guix, but it seems that functionality is not reliable yet. Anyway, my issue is now resolved. Thank you.
Depending on what you use, build all your software could be reallyresource hungry! Especially with the bootstrap dance.
The functionality is reliable. The issue is not from the Guix sidebut from upstream. Well, Guix cannot fix the world. ;-)

Cheers,simon
D
D
David Philipe Gil wrote on 30 May 00:14 +0200
(name . Ricardo Wurmus)(address . rekado@elephly.net)
2TD71rqqWZD4vqBVPuvu5Ykx25MfyNOJfS-HnadilqhzEQLHpjb1FippPFj8dqAuvG0umEnSlIEZTSD0taJkD9Jgf3VWGm_W3Sf5mmTd4w0=@protonmail.com
Attachment: file
Attachment: signature.asc
D
D
David Philipe Gil wrote on 30 May 00:16 +0200
(name . zimoun)(address . zimon.toutoune@gmail.com)(address . 41603@debbugs.gnu.org)
NEsoJMDsdpCYYjuF0NU87KBC-ez_SXSbejxeBJLRkC3Faj-EeZgvVVoAOFqs50wPZp2ge4--FVWgC-edAH31fGkuLaEdf6OXoLwlB7yrjsc=@protonmail.com
Attachment: file
Attachment: signature.asc
Z
Z
zimoun wrote on 30 May 00:27 +0200
(name . David Philipe Gil)(address . davidpgil@protonmail.com)(address . 41603-done@debbugs.gnu.org)
CAJ3okZ3KkZx8jaHa=Vh7mFPkqNZyqWPTBQ--CpUk4KL16RBaSg@mail.gmail.com
Dear,
Because the issue is fixed for you and new hash is fixed in91c8b23e571b90e2d263194c9fbb2b then I am closing.

On Sat, 30 May 2020 at 00:16, David Philipe Gil<davidpgil@protonmail.com> wrote:>
Toggle quote (2 lines)> I thankfully have resources to spare on building my own binaries. I might go back to it. I think its so cool.
Now your issue is solved, you can start again to burn your CPU.Give a look a "guix challenge" and please report mismatch and "guixpublish" to serve the binaries you build.

All the best,simon
Closed
D
D
David Philipe Gil wrote on 30 May 01:14 +0200
(name . zimoun)(address . zimon.toutoune@gmail.com)(address . 41603-done@debbugs.gnu.org)
a9a69a81-124d-a739-b462-85c8bf88b6c0@protonmail.com
Interesting -- ive never heard of guix challenge...
I ran it and here is my result:
'''
8,427 store items were analyzed:  - 3,480 (41.3%) were identical  - 147 (1.7%) differed  - 4,800 (57.0%) were inconclusive
'''
So, does this mean that some of the binaries that are being hosted maybe malicious? I am only somewhat "techie" if i built my own binaries isit "easy" to publish my binaries?
On 5/29/20 6:27 PM, zimoun wrote:
Toggle quote (18 lines)> Dear,>> Because the issue is fixed for you and new hash is fixed in> 91c8b23e571b90e2d263194c9fbb2b then I am closing.>>> On Sat, 30 May 2020 at 00:16, David Philipe Gil> <davidpgil@protonmail.com> wrote:>>>> I thankfully have resources to spare on building my own binaries. I might go back to it. I think its so cool.> Now your issue is solved, you can start again to burn your CPU.> Give a look a "guix challenge" and please report mismatch and "guix> publish" to serve the binaries you build.>>> All the best,> simon
-- ==============================================
Sent from Protonmail -- https://protonmail.com
Attachment: signature.asc
Closed
M
M
Marius Bakke wrote on 30 May 10:03 +0200
(address . 41603-done@debbugs.gnu.org)
87r1v13l4z.fsf@gnu.org
David Philipe Gil via Bug reports for GNU Guix <bug-guix@gnu.org>writes:
Toggle quote (16 lines)> Interesting -- ive never heard of guix challenge...>> I ran it and here is my result:>> '''>> 8,427 store items were analyzed:>   - 3,480 (41.3%) were identical>   - 147 (1.7%) differed>   - 4,800 (57.0%) were inconclusive>> '''>> So, does this mean that some of the binaries that are being hosted may> be malicious?
It means that 147 out of 3627 items that could be found on the remoteserver were not reproducible. Or about 4%. There are some knownoffenders such as debug outputs: you can use 'guix challenge--diff=diffoscope' to get detailed information about the differences.
96% is close to Debian's number: https://isdebianreproducibleyet.com/.
It would be good to file bugs about those 4% and bring the numbercloser to zero. :-)
"inconclusive" just means that the remote did not have those store itemsavailable, so Guix was unable to challenge them.
Toggle quote (3 lines)> I am only somewhat "techie" if i built my own binaries is it "easy" to> publish my binaries?
Yes: simply running 'guix publish' starts a web server that can be usedwith --substitute-urls. You'll also need to generate a signing key andauthorize it on all clients.
There is a service available for 'guix publish', also on foreigndistributions.
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl7SEzwACgkQoqBt8qM6VPp1yAgA0fJcYoJhxOw30fP3mzsjkOogcEhnZbOcrAHNzNy2BcSWhZjlWROdTIvW7cD/oVT5fO3sDTL5fhwpIXnaG8XclmXzLOdvDY+wfMm0MX4JNEzSdyB+zNxr0EjFKwQYooKXYk/N/uB5+PnH7u3GQXZYGHL0iobA2ZNUdHDk7mXdxnVa99rmRLIMLGnSDR3xIqKY28WoJxRVkXtkfA3JN+bsoAflyQZJmicx+brMkYiZBkt2Qv42GfJzrTBQ6uqTaj6s57OQrRnbiE9T4Bt5NysMb6xe9EWVAG9B49eDbCYA4FF6ABgJCgg6wbaDWIAH5oDnZW8sbXQa6j+OlmheNbF6+w===+lzh-----END PGP SIGNATURE-----
Closed
?