使用的教程
https://help.ubuntu.com/community/BasicChroot
https://help.ubuntu.com/community/DebootstrapChroot
主机系统是ubuntu 12.04 i386
debootstrap的子系统是ubuntu 10.04 lucid
按文档就建立的配置文件如下
[lucid]
description=ubuntu 10.04 lucid for i386
directory=/srv/chroot/lucid_i386
root-users=test
#run-setup-scripts=true
#run-exec-scripts=true
type=directory
users=root,test
然后使用的如下指令安装的基本系统
sudo debootstrap --variant=buildd --arch=i386 lucid /srv/chroot/lucid_i386 http://mirror.neu.edu.cn/ubuntu/
安装完使用
schroot -c lucid 想进入子系统
出现如下错误
错误:20copyfiles: cp: cannot create regular file `/var/lib/schroot/mount/lucid-dde4b42f-71b5-4f73-a37c-379fc1d88902/etc/resolv.conf': No such file or directory
错误:lucid-dde4b42f-71b5-4f73-a37c-379fc1d88902: chroot 建立失败: stage=setup-start
进入子系统失败,求解决方案!实在google不到资料了
[求助]关于在ubuntu下使用debootstrap创建子系统出错
-
- 帖子: 19
- 注册时间: 2011-02-28 22:28