首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用debootstrap安装更多软件包

使用debootstrap安装更多软件包
EN

Ask Ubuntu用户
提问于 2019-06-24 22:06:51
回答 1查看 3.5K关注 0票数 2

debootstrap是一个工具,它将把Debian/Ubuntu系统安装到另一个已经安装的系统的子目录中。

安装日志的结尾如下:

代码语言:javascript
复制
. . . 
I: Validating xxd 2:8.1.0320-1ubuntu3
I: Validating xz-utils 5.2.4-1
I: Validating zlib1g 1:1.2.11.dfsg-1ubuntu2
I: Chosen extractor for .deb packages: dpkg-deb
I: Extracting base-files...

所以在我看来,debootstrap提取的唯一包是base-files,对吗?

debootstrap有任何方法提取/安装更多的软件包吗?特别是,我发现debootstrap甚至根本不安装linux内核。我可以让debootstrap也安装linux内核吗?

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2019-11-13 15:54:00

我没有安装内核,但找到了

在链接中,代码位--include=iputils-ping是一个如何添加包的示例,但是在您将机器安装在您喜欢的文件夹中之后,您可以在该文件夹中添加所有您喜欢的apt回购,并给apt update && apt upgradeapt install packXXX

对于我的研究,我已经这样做了:$ mkdir -p sviluppo/studio/progetti/docker/immagini/ubuntu19.10 $ cd sviluppo/studio/progetti/docker/immagini/ubuntu19.10 Importan不要忘记做一个 cd on,未来的chroot文件夹就像我上面的一样

$ sudo apt policy debootstrap

http://archive.ubuntu.com/ubuntu eoan更新/主amd64包500 http://archive.ubuntu.com/ubuntu eoan更新/主i386包100 /var/dpkg/状态1.116 ubuntu1 500 http://archive.ubuntu.com/ubuntu eoan/主amd64包500 http://archive.ubuntu.com/ubuntu eoan/主amd64包500 C12eoan/主amd64包500 C12eoan/主amd64软件包500 C12 eoan/main amd64 Packages 500C13 eoan/main i386 Packages 500C12eoan/main amd64 Packages 500C12eoan/main amd64 Package 500C13eoan/main i386 Package 500C13eoan/main

然后,我在我的文件夹:$ sudo debootstrap --verbose eoan ./ $ sudo vim ./etc/apt/sources.list上安装了ubuntu19.10,并将其更改为:

代码语言:javascript
复制
#deb http://archive.ubuntu.com/ubuntu eoan main

deb http://archive.ubuntu.com/ubuntu eoan main restricted
deb-src http://archive.ubuntu.com/ubuntu eoan main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu eoan-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu eoan-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu eoan universe
deb-src http://archive.ubuntu.com/ubuntu eoan universe
deb http://archive.ubuntu.com/ubuntu eoan-updates universe
deb-src http://archive.ubuntu.com/ubuntu eoan-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu eoan multiverse
deb-src http://archive.ubuntu.com/ubuntu eoan multiverse
deb http://archive.ubuntu.com/ubuntu eoan-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu eoan-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu eoan-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu eoan-backports main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu eoan-security main restricted
deb-src http://archive.ubuntu.com/ubuntu eoan-security main restricted
deb http://archive.ubuntu.com/ubuntu eoan-security universe
deb-src http://archive.ubuntu.com/ubuntu eoan-security universe
deb http://archive.ubuntu.com/ubuntu eoan-security multiverse
deb-src http://archive.ubuntu.com/ubuntu eoan-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu eoan partner
deb-src http://archive.canonical.com/ubuntu eoan partner

# deb http://archive.ubuntu.com/ubuntu eoan-proposed main restricted universe multiverse #Non per esseri umani durante la fase di sviluppo del rilascio eoan

然后

代码语言:javascript
复制
# sudo chroot /home/leonardo/sviluppo/studio/progetti/docker/immagini/ubuntu19.10
# sudo apt update
# sudo apt list --upgradable

amd64 libfribidi0 0/eoan- amd64 1.0.5-3.1ubuntu0.19.10.1 amd64 lib魔术-mgc/eoan-更新,eoan-安全性1:5.37-5 ubuntu0.1 amd64 libmagic 1/eoan更新,eoan-安全1:5.37-5 ubuntu0.1 amd64 libmagic1/eoan amd64

代码语言:javascript
复制
# sudo apt upgrade
# exit

你好,莱昂纳多

票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1153695

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档