The officially official Devuan Forum!

You are not logged in.

#1 2023-03-04 08:49:11

samhain
Member
Registered: 2017-04-03
Posts: 62  

debootsrap to set up chroot environment?

Could somebody give me a hint how to set up a minimal devuan chroot environment with debootstrap? I can install debian:

# debootstrap  --variant=minbase  stretch ./chroot http://deb.debian.org/debian
[...]
I: Base system installed successfully.

But I cannot install devuan:

# debootstrap --variant=minbase chimaera ./chroot http://deb.devuan.org/devuan
I: Retrieving InRelease
I: Checking Release signature
I: Valid Release signature (key id 72E3CB773315DFA2E464743D94532124541922FB)
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on http://deb.devuan.org/devuan...
I: Retrieving apt 2.2.4+devuan1
I: Validating apt 2.2.4+devuan1
I: Retrieving libapt-pkg6.0 2.2.4+devuan1
I: Validating libapt-pkg6.0 2.2.4+devuan1
I: Retrieving base-files 11.1+devuan3
I: Validating base-files 11.1+devuan3
I: Retrieving devuan-keyring 2022.09.04
I: Validating devuan-keyring 2022.09.04
I: Retrieving libeudev1 3.2.9-10~chimaera1
I: Validating libeudev1 3.2.9-10~chimaera1
I: Retrieving init-system-helpers 1.60+devuan1
I: Validating init-system-helpers 1.60+devuan1
I: Retrieving bootlogd 2.96-7+devuan2
I: Validating bootlogd 2.96-7+devuan2
I: Retrieving initscripts 2.96-7+devuan2
I: Validating initscripts 2.96-7+devuan2
I: Retrieving sysv-rc 2.96-7+devuan2
I: Validating sysv-rc 2.96-7+devuan2
I: Retrieving sysvinit-core 2.96-7+devuan2
I: Validating sysvinit-core 2.96-7+devuan2
I: Retrieving sysvinit-utils 2.96-7+devuan2
I: Validating sysvinit-utils 2.96-7+devuan2
I: Retrieving bsdutils 1:2.36.1-8+devuan2
I: Validating bsdutils 1:2.36.1-8+devuan2
I: Retrieving libblkid1 2.36.1-8+devuan2
I: Validating libblkid1 2.36.1-8+devuan2
I: Retrieving libmount1 2.36.1-8+devuan2
I: Validating libmount1 2.36.1-8+devuan2
I: Retrieving libsmartcols1 2.36.1-8+devuan2
I: Validating libsmartcols1 2.36.1-8+devuan2
I: Retrieving libuuid1 2.36.1-8+devuan2
I: Validating libuuid1 2.36.1-8+devuan2
I: Retrieving mount 2.36.1-8+devuan2
I: Validating mount 2.36.1-8+devuan2
I: Retrieving util-linux 2.36.1-8+devuan2
I: Validating util-linux 2.36.1-8+devuan2
I: Chosen extractor for .deb packages: dpkg-deb
I: Extracting base-files...
I: Extracting libeudev1...
I: Extracting init-system-helpers...
I: Extracting bootlogd...
I: Extracting initscripts...
I: Extracting sysv-rc...
I: Extracting sysvinit-core...
I: Extracting sysvinit-utils...
I: Extracting bsdutils...
I: Extracting libblkid1...
I: Extracting libmount1...
I: Extracting libsmartcols1...
I: Extracting libuuid1...
I: Extracting mount...
I: Extracting util-linux...
W: Failure trying to run: chroot "/tmp/chroot" dpkg-deb -f  Version
W: See /tmp/chroot/debootstrap/debootstrap.log for details
W: Failure trying to run: chroot "/tmp/chroot" mount -t proc proc /proc
W: See /tmp/chroot/debootstrap/debootstrap.log for details
W: Failure trying to run: chroot "/tmp/chroot" mount -t sysfs sysfs /sys
W: See /tmp/chroot/debootstrap/debootstrap.log for details
W: Failure trying to run: chroot "/tmp/chroot" /sbin/ldconfig
W: See /tmp/chroot/debootstrap/debootstrap.log for details

/tmp/chroot/debootstrap/debootstrap.log:
chroot: failed to run command 'dpkg-deb': No such file or directory
chroot: failed to run command 'mount': No such file or directory
chroot: failed to run command 'mount': No such file or directory
chroot: failed to run command '/sbin/ldconfig': No such file or directory
(END)

So "dpkg-deb" is missing in the evironment.

Forcing it to the include list also fails:

# debootstrap --variant=minbase --include=dpkg chimaera ./chroot http://deb.devuan.org/devuan
I: Checking Release signature
I: Valid Release signature (key id 72E3CB773315DFA2E464743D94532124541922FB)
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on http://deb.devuan.org/devuan...
E: Couldn't find these debs: dpkg

Any clue what I missed?

Offline

#2 2023-03-04 10:25:16

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,144  

Re: debootsrap to set up chroot environment?

The repository is http://deb.devuan.org/merged.

Offline

#3 2023-03-04 22:02:24

samhain
Member
Registered: 2017-04-03
Posts: 62  

Re: debootsrap to set up chroot environment?

Oh oh ... thanks, that makes it work smile

Offline

Board footer