ubuntu手动引导linux,如何在CentOS Linux上解除引导

debootstrap是Debian GNU /Linux引导程序,它允许您将Debian基本系统(例如Debian或Ubuntu)安装到当前正在运行的系统的目录中。此配置是有关如何在CentOS /RHEL上进行debbootstrap的入门指南。的debootstrap该软件包在标准CentOS存储库中不可用。为了使其可用,我们首先需要启用EPEL存储库。下载EPEL存储库软件包:

# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

并使用RPM命令安装它:

# rpm -Uvh epel-release-7-5.noarch.rpm

现在应启用EPEL存储库。确认运行:

# yum repolist | grep epel

* epel: epel.mirror.digitalpacific.com.au

现在,我们只需安装debootstrap使用yum:

# yum install debootstrap.noarch

所有人都应该准备进行引导。要找出可用的debootstrap脚本,请运行:

# ls /usr/share/debootstrap/scripts/

breezy etch-m68k hoary jessie maverick potato sarge sid testing vivid woody

dapper feisty hoary.buildd karmic natty precise sarge.buildd squeeze trusty warty woody.buildd

edgy gutsy intrepid lenny oldstable quantal sarge.fakechroot stable unstable warty.buildd

etch hardy jaunty lucid oneiric raring saucy stretch utopic wheezy

在这个阶段,我们知道我们想要什么版本。我们还需要创建目标目录,选择架构和镜像。下列linux命令将使用以下命令将Ubuntu Trusty Tahr amd64版本安装到chroot目录中http://mirror.internode.on.net/pub/ubuntu/ubuntu/作为镜像:

# mkdir chroot

# debootstrap --arch=amd64 trusty chroot http://mirror.internode.on.net/pub/ubuntu/ubuntu/

如果您看到错误:

E: No pkgdetails available; either install perl, or build pkgdetails.c from the base-installer source package

通过安装perl软件包来修复它:

# yum install perl

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值