Questions tagged [debootstrap]
tool for creating full Debian-based installations in specific directories.
61
questions
0
votes
1
answer
26
views
Custom Debian Live-Build final IMG folder
The default output img file was at the lb config used
Is there any way to custom output img directory ? like output img to directory IMG_1, IMG_2, etc
# mkdir /customlive
# cd /customlive
# lb ...
0
votes
0
answers
58
views
Executing chroot commands inside a bash script with variables
I have a long bash script that I am customizing for a Linux installation using debootstrap. This is necessary as the setup (encryption, caching, etc.) is fairly unusual, and cannot be handled by the ...
1
vote
0
answers
173
views
qemu-debootstrap error trying to create Rootfs of Debian ARM64
I am trying to create a Root file system from last stable version of Debian using deboostrap for an ARM64-AARCH64 Architecture. I am using the wiki of Debian Arm64 Port as a base, which was mentioned ...
0
votes
1
answer
73
views
Debootstrap /usr/sbin/debootstrap: 481: : Permission denied Ubuntu 20.04
I'm trying to create an arm debian rootfs into a Pen Drive which I mounted in /mnt.
I execute:
sudo debootstrap –arch=armel –foreign stable /mnt
But then it just creates a file in /mnt/-foreign/...
0
votes
0
answers
45
views
how to add multiple packages to build debian-live using live-wrapper
The only manual I could find is readthedocs. So far I have understood the following:
I have to start working in a dedicated directory
It needs the latest debian-archive-keyring not necessarily ...
1
vote
1
answer
151
views
How would a debootstrap'ed system differ from a regular-installation system?
Suppose I perform a debootstrap-based installation of a Debian version onto an HDD/SSD, as described here, including a tasksel standard to finish things off.
Now, the guide tells me that:
You cannot ...
1
vote
1
answer
226
views
Configuring GRUB in a USB debootstrap environment
I run Debian Testing on a Dell Latitude E5450.
I created a USB environment with debootstrap following the instructions posted here, and here. As per those instructions (and others), I mounted my ...
1
vote
1
answer
323
views
chroot debootstrap problem : no such file or directory
I would like to run X86 applications on my Jetson Nano using qemu and debootstrap on ubuntu 18.04. Actually I'm following this tutorial :
https://www.youtube.com/watch?v=dzAoaFOJy7U&t=338s&...
0
votes
1
answer
310
views
What is the Debian equivalent of `dnf --installroot`
dnf allows you to install in a different root than / by provding --installroot. This is frequently use with tools like buildah. Is there any method to set the root location with apt?
0
votes
1
answer
402
views
debootstrap installation kernel mismatch
I tried to install a new Debian 10 system using debootstrap:
mount /dev/sda5 /mnt/chroot
debootstrap --variant=minbase buster /mnt/chroot ftp.au.debian.org
The bootstrap looks good so far. Now ...
1
vote
2
answers
635
views
Install Debian Package in chroot
I am building a minimal Debian image with debootstrap, chroot in it and installing grub.
Now I need to install some custom self created debian packages. These packages have postinst scripts running ...
4
votes
1
answer
626
views
What exactly does the "noauth" property mean in multistrap config?
From https://manpages.debian.org/wheezy/multistrap/multistrap.1:
--no-auth - allow the use of unauthenticated repositories. Same as noauth=true
What I understand from this definition is that ...
2
votes
1
answer
138
views
No /var/lib/dpkg/info/dash.preinst in Buster
In https://wiki.debian.org/Multistrap#Steps_for_Squeeze_and_later, it's required to run the following command in chroot environment:
/var/lib/dpkg/info/dash.preinst install
This command runs in ...
0
votes
1
answer
404
views
debootstrap Couldn't find these debs: lxc
I'm trying to follow along to a guide to creating an unprivileged lxc container on Ubuntu. According to the instructions, I should run:
debootstrap --include=lxc eoan rootfs
But when I run that, I ...
1
vote
1
answer
789
views
Building arm / aarch64 rootfs
I am interested to generate a Debian rootfs for aarch64 machine from an x86_64 workstation.
What are the required steps to achieve this ?
As far as I know the proper way is to use debootstrap:
https:...
1
vote
0
answers
131
views
QEMU networking: Host to Guest
I want to connect a host(Debian 10 VM) to a qemu-guest (Debian on aarch64 ARM). I used to debootstrap tool to install a Debian root file system. Then I installed the qemu-user-static device on my host....
3
votes
1
answer
1k
views
How to Debootstrap specific version in Ubuntu or Debian?
i want to install a specific version of Ubuntu or Debian, In ubuntu i want to debootstrap the specific version 16.04.0, and i'm using this code:
debootstrap --arch=amd64 --variant=buildd xenial "/...
1
vote
0
answers
53
views
deboostrap overlay-like/union filesystem and network boot?
I'll describe the situation first: I'm trying to create a network booted Linux (Debian) for about 200 workstations. Unfortunately, those workstations become hardware-heterogenous in previous years; ...
1
vote
1
answer
1k
views
debootstrap chroot x11 cannot open display 0 no protocol error
after installing a chroot, I found trouble when connecting to x11, I would think this was a normal use case but coudln't find anything specific about this use case
# debootstrap stable /srv/stable/
.....
9
votes
1
answer
1k
views
Why debootstrap can only run as root?
I want to download Debian system using debootstrap (creating chroot environment) and when I run debootstrap stable ./dir $debian_ftp, debootstrap says:
E: debootstrap can only run as root
Why can't ...
2
votes
1
answer
2k
views
What are the possible options for the --arch option in debootstrap?
I need to set the arch option in debootstrap. So I did some research and read the manual.
After reading the manual I see that the section on the options simply says
--arch=ARCH
Implying that I ...
1
vote
1
answer
2k
views
cdebootstrap vs debootstrap: what is the difference?
Does cdebootstrap provide any advantages to debootstrap? What is the difference between the two other than the implementation language?
-2
votes
2
answers
2k
views
Chroot : no such file or directory [closed]
I know it has been asked before but they do not solve my problem.
I have already binded the /dev and /proc, copied the qemu-arm-static to /usr/bin. But chroot fails at executing any command.
It was ...
7
votes
1
answer
6k
views
Having a bit of trouble debootstrapping a Ubuntu (18.04) via Debian 8.10
The hoster I am using provides a Debian 8.10 (kernel 4.9.85) as a rescue system. In the past I've been using that to bootstrap Ubuntu using debootstrap from here.
I am using a few preparational steps ...
0
votes
1
answer
562
views
live-build behind a proxy at lb bootstrap_archive-keys step gets Clearsigned file isn't valid, got 'NODATA'
I've been trying to do the steps from 18.4 from here:
https://debian-live.alioth.debian.org/live-manual/stable/manual/html/live-manual.en.html#847
When running the lb build I get an error at the lb ...
4
votes
1
answer
5k
views
How can I use an expired key with debootstrap?
I'm trying to use debootstrap to create a Debian Squeeze chroot (from Debian Squeeze (stable)), so I can install some no-longer-supported software. But I get an error:
$ sudo debootstrap --keyring=/...
3
votes
0
answers
746
views
How to create a Debian sid chroot from Arch Linux?
I would like to create a Debian sid chroot from my Arch Linux system. I have installed debootstrap from the community repository with pacman. Then I ran:
# debootstrap sid $MY_CHROOT http://debian....
2
votes
1
answer
2k
views
How to add locales to a chrooted system programmatically?
I have written a shell script which debootstraps a Debian system into a directory, chroots in there, sets everything up (passwords and SSH keys and so on), and generates a bootable image file from it.
...
3
votes
2
answers
2k
views
List of Debian packages with essential priority
From my understanding, the debootstrap program with the minbase option only installs packages with "essential priority" (and possibly apt). Is there a web resource which lists all packages with ...
1
vote
0
answers
814
views
How Do I Access Network Proxy From Chroot?
I have set up apt-cacher-ng on my laptop
cat /etc/apt/apt.conf.d/02proxy
Acquire::http { Proxy "http://localhost:3142"; };
I can install a package, turn off the internet, remove the package and ...
1
vote
2
answers
2k
views
How Can I Run debootstrap Offline?
I want to run debootstrap multiple times for the same target.
Often I am in transit with no internet access and would like to run it offline.
How can I run the process one with internet access and ...
3
votes
1
answer
1k
views
Couldn't find these debs: linux-image-4.9.0-3-amd64
Every now and then I'm debootstraping debian into a local directory. Until 3 hours ago it worked fine, however, now I get this error message:
Command
debootstrap --include linux-image-4.9.0-3-amd64,...
0
votes
1
answer
47
views
MySQL in debian namespace
I have a debian jessie box and i installed a debian jessie debootstrap namespace. I install the mysql service inside the jail and i get error when i try to start the mysql service. How can fix this?
/...
1
vote
2
answers
2k
views
Unable to execute redirection in chroot environment
I've set up full working debootstrap-ed arm chroot environment. I can chroot in it, run commands, etc.
I am making a script that will customize chroot env, but I struggle with this.
For example:
...
1
vote
0
answers
168
views
Debootstrap debian into root with SW RAID1
I'm stuck with a Linux upgrade question, please give me some advice for the following situation:
I've a NAS with Marvell Armada 370 CPU which runs an ancient Debian (Etch, I believe). The NAS itself ...
0
votes
0
answers
167
views
Install kernel 4.3.5 in Debian Jessie
I have created a Debian Jessie container using debootstrap. After installing the required packages, I now would like to install kernel 4.3.5, because some of my drivers need this specific version.
...
0
votes
1
answer
528
views
Kernel 4.9 module mismatch
I installed Debian Jessie with debootstrap, updated the kernel to 4.9.0-0.bpo.3-amd64 and created an image of it. Now, I wanted to start Jessie with qemu and the following command: qemu-system-x86_64 -...
4
votes
0
answers
2k
views
Use local (on disk) mirror for debootstrap
I'm trying to debootstrap from local files. I followed this guide.
My host machine runs debian that I installed with :
debootstrap stable /mnt http://httpredir.debian.org/debian/
What I did:
mkdir /...
3
votes
2
answers
2k
views
How to calculate the correct size of a loopback device filesystem image for debootstrap?
I'm using debootstrap to create a rootfs for a device that I want to then write to an image file. To calculate the size needed from my rootfs, I do the following:
local SIZE_NEEDED=$(du -sb $...
2
votes
1
answer
1k
views
debootstrap not working in kali and mint
I am trying to install linux in android by chroot method.
Following tutorials available on internet , I tried debootstrap on kali linux and mint. But everytime it returns no output.
debootstrap --...
7
votes
1
answer
4k
views
Failed getting release file while running debootstrap with sudo
If I run debootstrap in with sudo I get the following output:
I: Retrieving InRelease
I: Failed to retrieve InRelease
I: Retrieving Release
E: Failed getting release file http://de.archive.ubuntu....
-2
votes
1
answer
845
views
Why "shift" command is using in this case? [closed]
I am rewriting debootstrap to fit me and for education.
Why "shift" command in interaction piece of code in "functions" file? There are not so many arguments sent to use "shift" and, as I know, ...
2
votes
1
answer
888
views
Why does uname -m report differently in chroot and schroot environment?
I am running Ubuntu 14.04.2, 64 bit host system. Using debootstrap, I installed a minimal Ubuntu 14.04.2, 32 bit system in trusty32 directory. This is what my schroot configuration look like:
[...
2
votes
1
answer
617
views
use a different socket than /dev/log, system-wide
Is there a way to make a whole Debian (Jessie) installation use a different syslog socket than /dev/log (like, for example, /tmp/my-other-log) ?
Reason: I'm running Debian Jessie in a chroot ...
15
votes
3
answers
15k
views
Creating bootable Debian image with debootstrap
I have been trying to create a bootable debian (jessie/8.4) image for the past 2 days, and as far as I can tell I have the procedure right, but I can not get the filesystem right. I am relatively sure ...
8
votes
2
answers
13k
views
Initramfs in debootstrap chroot of fully encrypted system
I'm working on a script to create a fully encrypted washable system from debootstrap. It's doing some good, but the initramfs image that comes out does not pick up the cryptroot properly. After ...
2
votes
1
answer
877
views
chpasswd apply changes in the chroot directory
I have debootstraped version of wheezy on my Archlinux machine and would like to change it's root password:
echo "root:toor" | chpasswd --root /home/containers/wheezy/
However I get an error:
...
3
votes
2
answers
2k
views
chpasswd apply changes in the chroot directory [duplicate]
I have debootstraped version of wheezy on my Archlinux machine and would like to change it's root password:
echo "root:toor" | chpasswd --root /home/containers/wheezy/
However I get an error:
...
1
vote
0
answers
49
views
Can you pin a particular version of a chroot?
The question may quite make sense due to my chroot newbiness, but what I mean to ask is how I can make sure that when I create a new chroot, I download the same set of files each time. In the git ...
8
votes
2
answers
12k
views
the most minimal Debian/sid installed with debootstrap?
In the past years I used debootstrap to install my desktop Debian (daily usage) and I'm planning to use it once again, but until now I just used debootstrap default options, this time instead I'd like ...