fakeroot cdebootstrap: Failed to unshare: Operation not permitted
5
votes
2
answers
2208
views
On Debian, when running:
$ fakeroot cdebootstrap stable /tmp/foo
cdebootstrap downloads the packages, but when it has to extract them, I get this error:
E: Failed to unshare: Operation not permitted
How can I run cdebootstrap as non-root?
This part in unshare's manual seems relevant, but am not sure how:
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).
Asked by Florian Margaine
(523 rep)
Jul 29, 2015, 09:47 PM
Last activity: Jul 11, 2022, 12:51 PM
Last activity: Jul 11, 2022, 12:51 PM