AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1153695
Accepted
xpt
xpt
Asked: 2019-06-25 14:06:51 +0800 CST2019-06-25 14:06:51 +0800 CST 2019-06-25 14:06:51 +0800 CST

使用 debootstrap 安装更多软件包

  • 772

debootstrap是将 Debian/Ubuntu 基础系统安装到另一个已安装系统的子目录中的工具。

安装日志结束如下:

. . . 
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 内核吗?

system-installation kernel debootstrap
  • 1 1 个回答
  • 2499 Views

1 个回答

  • Voted
  1. Best Answer
    Leonardo Saracini
    2019-11-14T07:54:00+08:002019-11-14T07:54:00+08:00

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

    在链接中代码位--include=iputils-ping是如何添加包的示例,但是您在将机器安装在您喜欢的文件夹中后,您可以chroot在该文件夹中添加您喜欢的所有 apt repo 并提供apt update && apt upgrade或apt install packXXX

    在我的学习中,我这样做了:
    $ mkdir -p sviluppo/studio/progetti/docker/immagini/ubuntu19.10
    $ cd sviluppo/studio/progetti/docker/immagini/ubuntu19.10
    Importan 不要忘记cd像我上面的那样在未来的 chroot 文件夹上做一个

    $ sudo apt policy debootstrap

    debootstrap: Installato: 1.0.116ubuntu1.1 Candidato: 1.0.116ubuntu1.1 Tabella versione: *** 1.0.116ubuntu1.1 500 500 http://archive.ubuntu.com/ubuntu eoan-updates/main amd64 Packages 500 http: //archive.ubuntu.com/ubuntu eoan-updates/main i386 包 100 /var/lib/dpkg/status 1.0.116ubuntu1 500 500 http://archive.ubuntu.com/ubuntu eoan/main amd64 包 500 http:// /archive.ubuntu.com/ubuntu eoan/main i386 包

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

    #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
    

    然后

    # sudo chroot /home/leonardo/sviluppo/studio/progetti/docker/immagini/ubuntu19.10
    # sudo apt update
    # sudo apt list --upgradable
    
    

    文件/eoan-updates,eoan-security 1:5.37-5ubuntu0.1 amd64 [可升级自:1:5.37-5] libfribidi0/eoan-updates,eoan-security 1.0.5-3.1ubuntu0.19.10.1 amd64 [可升级自: 1.0.5-3.1] libmagic-mgc/eoan-updates,eoan-security 1:5.37-5ubuntu0.1 amd64 [可升级自:1:5.37-5] libmagic1/eoan-updates,eoan-security 1:5.37-5ubuntu0 .1 amd64 [可升级自:1:5.37-5]

    # sudo apt upgrade
    # exit
    

    问候,
    莱昂纳多

    • 1

相关问题

  • Ubuntu 是否支持与 SSD 一起使用的 TRIM 命令?

  • 您对台式机和家庭服务器的驱动器分区方案有什么建议?[关闭]

  • 使用 apt-get upgrade 时如何强制安装内核更新?

  • 安装时,我可以选择加密我的主文件夹——这是做什么的?

  • 在不使用标准升级系统的情况下升级有哪些替代方案?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve