Ubuntu 13.04 中的 debootstrap 错误

axe*_*xel 4 debootstrap ubuntu

我正在尝试使用以下命令在 Ubuntu 中创建文件系统:

sudo debootstrap --foreign --no-check-gpg --include=ca-certificates --arch=armhf testing rootfs http://debian.raspbian.com/debian
Run Code Online (Sandbox Code Playgroud)

但出现以下错误:

/usr/sbin/debootstrap: 1294: /usr/sbin/debootstrap: cannot create /home/.../rootfs/test-dev-null: Permission denied
E: Cannot install into target '/home/.../rootfs' mounted with noexec or nodev
Run Code Online (Sandbox Code Playgroud)

有人能帮我一下吗?谢谢!

daw*_*wud 6

找出路径/home/.../rootfs所在的文件系统(可能是专用分区或 LVM,您没有提供详细信息),然后以 root 身份(或使用sudo)使用execdev选项重新挂载它。

# mount -o remount,exec,dev /home
Run Code Online (Sandbox Code Playgroud)

这里/home是一个假设分离分区或专用逻辑卷的示例。