Hi,

Thanks for the report.  Are you using Guix System or Guix on foreign?


On Fri, 4 Dec 2020 at 16:53, yasu <y...@yasuaki.com> wrote:

> I rely on the -C option below to compile ./pre-inst-env .

Aside that nothing, --pure, or -C should work.  The nothing could not,
depending on your setup.  Anyway.


> ~/co/guix (master)$ guix environment -C guix
> guix environment: error: cannot create container: unprivileged user cannot 
> create user namespaces
> guix environment: error: please set 
> /proc/sys/kernel/unprivileged_userns_clone to "1"

Have you tried to do the recommandation?

     please set /proc/sys/kernel/unprivileged_userns_clone to "1"

(as root if you can).  For example, on Debian, I have been doing that
since ever.  And even I have documented it to not forget when I
reinstall. :-)

--8<---------------cut here---------------start------------->8---
    Be careful !
    #+begin_src shell
      # as root
      echo "kernel.unprivileged_userns_clone = 1" > /etc/sysctl.d/local.conf
      sysctl --system
    #+end_src
--8<---------------cut here---------------end--------------->8---


All the best,
simon

Reply via email to