fakeroot cdebootstrap:取消共享失败:不允许操作

Flo*_*ine 5 debootstrap fakeroot

在 Debian 上,运行时:

$ fakeroot cdebootstrap stable /tmp/foo
Run Code Online (Sandbox Code Playgroud)

cdebootstrap 下载软件包,但是当它必须解压它们时,我收到此错误:

E: Failed to unshare: Operation not permitted
Run Code Online (Sandbox Code Playgroud)

如何以非 root 身份运行 cdebootstrap?

取消共享手册中的这一部分似乎相关,但我不确定如何:

EPERM (since Linux 3.9)
              CLONE_NEWUSER was specified in flags and the caller is in a
              chroot environment (i.e., the caller's root directory does not
              match the root directory of the mount namespace in which it
              resides).
Run Code Online (Sandbox Code Playgroud)

小智 0

也许 /tmp 是问题所在。尝试

$fakeroot cdebootstrap 稳定 $HOME/somedir