AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / ubuntu / Perguntas / 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

Instale mais pacotes com debootstrap

  • 772

debootstrapé uma ferramenta que irá instalar um sistema base Debian/Ubuntu em um subdiretório de outro sistema já instalado.

O log de instalação termina assim:

. . . 
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...

Então me parece que os únicos debootstrapextratos de pacotes são base-files, certo?

Existe alguma maneira de debootstrapextrair/instalar mais pacotes? Especialmente, descobri que debootstrapnem sequer instala o kernel do linux. Posso de alguma forma deixar debootstrapinstalar o kernel linux também?

system-installation kernel debootstrap
  • 1 1 respostas
  • 2499 Views

1 respostas

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

    Eu não instalei o kernel, mas encontrei isso

    No link O bit de código --include=iputils-pingé um exemplo de como adicionar pacote, mas você depois de instalar a máquina em uma pasta que você gosta, você pode chrootnessa pasta adicionar todos os repositórios apt que você gosta e dar apt update && apt upgradeouapt install packXXX

    Para o meu estudo eu fiz isso:
    $ mkdir -p sviluppo/studio/progetti/docker/immagini/ubuntu19.10
    $ cd sviluppo/studio/progetti/docker/immagini/ubuntu19.10
    Importan não se esqueça de fazer uma cdpasta chroot futura como a minha acima

    $ sudo apt policy debootstrap

    debootstrap: Instalação: 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 Pacotes 100 /var/lib/dpkg/status 1.0.116ubuntu1 500 500 http://archive.ubuntu.com/ubuntu eoan/main amd64 Pacotes 500 http:/ /archive.ubuntu.com/ubuntu eoan/main Pacotes i386

    Então eu instalei o Ubuntu 19.10 na minha pasta:
    $ sudo debootstrap --verbose eoan ./
    $ sudo vim ./etc/apt/sources.list e mudei para:

    #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
    

    Então

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

    file/eoan-updates,eoan-security 1:5.37-5ubuntu0.1 amd64 [atualizável de: 1:5.37-5] libfribidi0/eoan-updates,eoan-security 1.0.5-3.1ubuntu0.19.10.1 amd64 [atualizável de : 1.0.5-3.1] libmagic-mgc/eoan-updates,eoan-security 1:5.37-5ubuntu0.1 amd64 [atualizável de: 1:5.37-5] libmagic1/eoan-updates,eoan-security 1:5.37-5ubuntu0 .1 amd64 [atualizável de: 1:5.37-5]

    # sudo apt upgrade
    # exit
    

    Abraços,
    Leonardo

    • 1

relate perguntas

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Existe um comando para listar todos os usuários? Também para adicionar, excluir, modificar usuários, no terminal?

    • 9 respostas
  • Marko Smith

    Como excluir um diretório não vazio no Terminal?

    • 4 respostas
  • Marko Smith

    Como descompactar um arquivo zip do Terminal?

    • 9 respostas
  • Marko Smith

    Como instalo um arquivo .deb por meio da linha de comando?

    • 11 respostas
  • Marko Smith

    Como instalo um arquivo .tar.gz (ou .tar.bz2)?

    • 14 respostas
  • Marko Smith

    Como listar todos os pacotes instalados

    • 24 respostas
  • Martin Hope
    Flimm Como posso usar o docker sem sudo? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    led-Zepp Como faço para salvar a saída do terminal em um arquivo? 2014-02-15 11:49:07 +0800 CST
  • Martin Hope
    ubuntu-nerd Como descompactar um arquivo zip do Terminal? 2011-12-11 20:37:54 +0800 CST
  • Martin Hope
    TheXed Como instalo um arquivo .deb por meio da linha de comando? 2011-05-07 09:40:28 +0800 CST
  • Martin Hope
    Ivan Como listar todos os pacotes instalados 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    David Barry Como determino o tamanho total de um diretório (pasta) na linha de comando? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher "Os seguintes pacotes foram retidos:" Por que e como resolvo isso? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford Como os PPAs podem ser removidos? 2010-07-30 01:09:42 +0800 CST

Hot tag

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

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve