r/bedrocklinux • u/Striking-Positive445 • 11d ago
Bedrock tutorial is not working
I'm sorry, I know I've already uploaded something like 5 days ago, but this is pretty weird, I made a script that is before the ---, after it there's the """""log""""":
#!/usr/bin/env bash
set -euo pipefail
cat ~/bedrock-will-test.sh &> ~/bedrock.test.txt
echo -e "\n---\n" | tee -a ~/bedrock.test.txt
sudo brl fetch -n tut-debian debian &>> ~/bedrock.test.txt || true
sudo strat tut-debian apt install qemu-user-static -y &>> ~/bedrock.test.txt
brl fetch -A alpine &>> ~/bedrock.test.txt
brl fetch -a aarch64 -L &>> ~/bedrock.test.txt
sudo brl fetch -n tut-aarch64 -a aarch64 alpine &>> ~/bedrock.test.txt
strat tut-alpine uname -m | tee /tmp/tut1 | tee -a ~/bedrock.test.txt
strat tut-aarch64 uname -m | tee /tmp/tut2 | tee -a ~/bedrock.test.txt
---
ERROR: Something already exists at "/bedrock/strata/tut-debian". Consider either setting a different name with `brl fetch -n <new-name> <other fields>` or removing the pre-existing stratum/alias with `brl remove "tut-debian"`.
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Leyendo lista de paquetes...
Creando árbol de dependencias...
Leyendo la información de estado...
Installing:
qemu-user-static
Installing dependencies:
dbus libcryptsetup12 linux-sysctl-defaults
dbus-bin libdbus-1-3 qemu-user
dbus-daemon libdevmapper1.02.1 qemu-user-binfmt
dbus-session-bus-common libexpat1 systemd
dbus-system-bus-common libjson-c5 systemd-cryptsetup
dmsetup libkmod2 systemd-timesyncd
libapparmor1 libsystemd-shared
Paquetes sugeridos:
default-dbus-session-bus libidn2-0 systemd-userdbd
| dbus-session-bus libip4tc2 systemd-boot
libarchive13t64 libp11-kit0 systemd-resolved
libbpf1 libpwquality1 systemd-repart
libdw1t64 libqrencode4 libtss2-tcti-device0
libelf1t64 libtss2-rc0t64 polkitd
libfido2-1 systemd-container
libgcrypt20 systemd-homed
Summary:
Upgrading: 0, Installing: 21, Removing: 0, Not Upgrading: 3
Download size: 78.0 MB
Space needed: 498 MB / 297 GB available
Des:1 http://debian.mirror.constant.com/debian trixie/main amd64 libsystemd-shared amd64 257.13-1~deb13u1 [2 155 kB]
Des:2 http://debian.mirror.constant.com/debian trixie/main amd64 libapparmor1 amd64 4.1.0-1 [43.7 kB]
Des:3 http://debian.mirror.constant.com/debian trixie/main amd64 systemd amd64 257.13-1~deb13u1 [3 094 kB]
Des:4 http://debian.mirror.constant.com/debian trixie/main amd64 libdbus-1-3 amd64 1.16.2-2 [178 kB]
Des:5 http://debian.mirror.constant.com/debian trixie/main amd64 dbus-bin amd64 1.16.2-2 [80.0 kB]
Des:6 http://debian.mirror.constant.com/debian trixie/main amd64 dbus-session-bus-common all 1.16.2-2 [52.3 kB]
Des:7 http://debian.mirror.constant.com/debian trixie/main amd64 libexpat1 amd64 2.8.3-1~deb13u1 [123 kB]
Des:8 http://debian.mirror.constant.com/debian trixie/main amd64 dbus-daemon amd64 1.16.2-2 [159 kB]
Des:9 http://debian.mirror.constant.com/debian trixie/main amd64 dbus-system-bus-common all 1.16.2-2 [53.5 kB]
Des:10 http://debian.mirror.constant.com/debian trixie/main amd64 dbus amd64 1.16.2-2 [71.6 kB]
Des:11 http://debian.mirror.constant.com/debian trixie/main amd64 linux-sysctl-defaults all 4.12.1 [5 724 B]
Des:12 http://debian.mirror.constant.com/debian trixie/main amd64 systemd-timesyncd amd64 257.13-1~deb13u1 [93.3 kB]
Des:13 http://debian.mirror.constant.com/debian trixie/main amd64 libdevmapper1.02.1 amd64 2:1.02.205-2 [135 kB]
Des:14 http://debian.mirror.constant.com/debian trixie/main amd64 dmsetup amd64 2:1.02.205-2 [82.3 kB]
Des:15 http://debian.mirror.constant.com/debian trixie/main amd64 libjson-c5 amd64 0.18+ds-1 [46.0 kB]
Des:16 http://debian.mirror.constant.com/debian trixie/main amd64 libcryptsetup12 amd64 2:2.7.5-2 [254 kB]
Des:17 http://debian.mirror.constant.com/debian trixie/main amd64 libkmod2 amd64 34.2-2 [63.2 kB]
Des:18 http://debian.mirror.constant.com/debian trixie/main amd64 qemu-user amd64 1:10.0.13+ds-0+deb13u1 [71.1 MB]
Des:19 http://debian.mirror.constant.com/debian trixie/main amd64 qemu-user-binfmt amd64 1:10.0.13+ds-0+deb13u1 [2 060 B]
Des:20 http://debian.mirror.constant.com/debian trixie/main amd64 qemu-user-static amd64 1:10.0.13+ds-0+deb13u1 [77.4 kB]
Des:21 http://debian.mirror.constant.com/debian trixie/main amd64 systemd-cryptsetup amd64 257.13-1~deb13u1 [173 kB]
Descargados 78.0 MB en 22s (3 551 kB/s)
Seleccionando el paquete libsystemd-shared:amd64 previamente no seleccionado.
(Leyendo la base de datos ...
(Leyendo la base de datos ... 5%
(Leyendo la base de datos ... 10%
(Leyendo la base de datos ... 15%
(Leyendo la base de datos ... 20%
(Leyendo la base de datos ... 25%
(Leyendo la base de datos ... 30%
(Leyendo la base de datos ... 35%
(Leyendo la base de datos ... 40%
(Leyendo la base de datos ... 45%
(Leyendo la base de datos ... 50%
(Leyendo la base de datos ... 55%
(Leyendo la base de datos ... 60%
(Leyendo la base de datos ... 65%
(Leyendo la base de datos ... 70%
(Leyendo la base de datos ... 75%
(Leyendo la base de datos ... 80%
(Leyendo la base de datos ... 85%
(Leyendo la base de datos ... 90%
(Leyendo la base de datos ... 95%
(Leyendo la base de datos ... 100%
(Leyendo la base de datos ... 12114 ficheros o directorios instalados actualmente.)
Preparando para desempaquetar .../libsystemd-shared_257.13-1~deb13u1_amd64.deb ...
Desempaquetando libsystemd-shared:amd64 (257.13-1~deb13u1) ...
Seleccionando el paquete libapparmor1:amd64 previamente no seleccionado.
Preparando para desempaquetar .../libapparmor1_4.1.0-1_amd64.deb ...
Desempaquetando libapparmor1:amd64 (4.1.0-1) ...
Configurando libsystemd-shared:amd64 (257.13-1~deb13u1) ...
Seleccionando el paquete systemd previamente no seleccionado.
(Leyendo la base de datos ...
(Leyendo la base de datos ... 5%
(Leyendo la base de datos ... 10%
(Leyendo la base de datos ... 15%
(Leyendo la base de datos ... 20%
(Leyendo la base de datos ... 25%
(Leyendo la base de datos ... 30%
(Leyendo la base de datos ... 35%
(Leyendo la base de datos ... 40%
(Leyendo la base de datos ... 45%
(Leyendo la base de datos ... 50%
(Leyendo la base de datos ... 55%
(Leyendo la base de datos ... 60%
(Leyendo la base de datos ... 65%
(Leyendo la base de datos ... 70%
(Leyendo la base de datos ... 75%
(Leyendo la base de datos ... 80%
(Leyendo la base de datos ... 85%
(Leyendo la base de datos ... 90%
(Leyendo la base de datos ... 95%
(Leyendo la base de datos ... 100%
(Leyendo la base de datos ... 12127 ficheros o directorios instalados actualmente.)
Preparando para desempaquetar .../00-systemd_257.13-1~deb13u1_amd64.deb ...
Desempaquetando systemd (257.13-1~deb13u1) ...
Seleccionando el paquete libdbus-1-3:amd64 previamente no seleccionado.
Preparando para desempaquetar .../01-libdbus-1-3_1.16.2-2_amd64.deb ...
Desempaquetando libdbus-1-3:amd64 (1.16.2-2) ...
Seleccionando el paquete dbus-bin previamente no seleccionado.
Preparando para desempaquetar .../02-dbus-bin_1.16.2-2_amd64.deb ...
Desempaquetando dbus-bin (1.16.2-2) ...
Seleccionando el paquete dbus-session-bus-common previamente no seleccionado.
Preparando para desempaquetar .../03-dbus-session-bus-common_1.16.2-2_all.deb ...
Desempaquetando dbus-session-bus-common (1.16.2-2) ...
Seleccionando el paquete libexpat1:amd64 previamente no seleccionado.
Preparando para desempaquetar .../04-libexpat1_2.8.3-1~deb13u1_amd64.deb ...
Desempaquetando libexpat1:amd64 (2.8.3-1~deb13u1) ...
Seleccionando el paquete dbus-daemon previamente no seleccionado.
Preparando para desempaquetar .../05-dbus-daemon_1.16.2-2_amd64.deb ...
Desempaquetando dbus-daemon (1.16.2-2) ...
Seleccionando el paquete dbus-system-bus-common previamente no seleccionado.
Preparando para desempaquetar .../06-dbus-system-bus-common_1.16.2-2_all.deb ...
Desempaquetando dbus-system-bus-common (1.16.2-2) ...
Seleccionando el paquete dbus previamente no seleccionado.
Preparando para desempaquetar .../07-dbus_1.16.2-2_amd64.deb ...
Desempaquetando dbus (1.16.2-2) ...
Seleccionando el paquete linux-sysctl-defaults previamente no seleccionado.
Preparando para desempaquetar .../08-linux-sysctl-defaults_4.12.1_all.deb ...
Desempaquetando linux-sysctl-defaults (4.12.1) ...
Seleccionando el paquete systemd-timesyncd previamente no seleccionado.
Preparando para desempaquetar .../09-systemd-timesyncd_257.13-1~deb13u1_amd64.deb ...
Desempaquetando systemd-timesyncd (257.13-1~deb13u1) ...
Seleccionando el paquete libdevmapper1.02.1:amd64 previamente no seleccionado.
Preparando para desempaquetar .../10-libdevmapper1.02.1_2%3a1.02.205-2_amd64.deb ...
Desempaquetando libdevmapper1.02.1:amd64 (2:1.02.205-2) ...
Seleccionando el paquete dmsetup previamente no seleccionado.
Preparando para desempaquetar .../11-dmsetup_2%3a1.02.205-2_amd64.deb ...
Desempaquetando dmsetup (2:1.02.205-2) ...
Seleccionando el paquete libjson-c5:amd64 previamente no seleccionado.
Preparando para desempaquetar .../12-libjson-c5_0.18+ds-1_amd64.deb ...
Desempaquetando libjson-c5:amd64 (0.18+ds-1) ...
Seleccionando el paquete libcryptsetup12:amd64 previamente no seleccionado.
Preparando para desempaquetar .../13-libcryptsetup12_2%3a2.7.5-2_amd64.deb ...
Desempaquetando libcryptsetup12:amd64 (2:2.7.5-2) ...
Seleccionando el paquete libkmod2:amd64 previamente no seleccionado.
Preparando para desempaquetar .../14-libkmod2_34.2-2_amd64.deb ...
Desempaquetando libkmod2:amd64 (34.2-2) ...
Seleccionando el paquete qemu-user previamente no seleccionado.
Preparando para desempaquetar .../15-qemu-user_1%3a10.0.13+ds-0+deb13u1_amd64.deb ...
Desempaquetando qemu-user (1:10.0.13+ds-0+deb13u1) ...
Seleccionando el paquete qemu-user-binfmt previamente no seleccionado.
Preparando para desempaquetar .../16-qemu-user-binfmt_1%3a10.0.13+ds-0+deb13u1_amd64.deb ...
Desempaquetando qemu-user-binfmt (1:10.0.13+ds-0+deb13u1) ...
Seleccionando el paquete qemu-user-static previamente no seleccionado.
Preparando para desempaquetar .../17-qemu-user-static_1%3a10.0.13+ds-0+deb13u1_amd64.deb ...
Desempaquetando qemu-user-static (1:10.0.13+ds-0+deb13u1) ...
Seleccionando el paquete systemd-cryptsetup previamente no seleccionado.
Preparando para desempaquetar .../18-systemd-cryptsetup_257.13-1~deb13u1_amd64.deb ...
Desempaquetando systemd-cryptsetup (257.13-1~deb13u1) ...
Configurando libexpat1:amd64 (2.8.3-1~deb13u1) ...
Configurando libapparmor1:amd64 (4.1.0-1) ...
Configurando systemd (257.13-1~deb13u1) ...
Created symlink '/etc/systemd/system/getty.target.wants/getty@tty1.service' → '/usr/lib/systemd/system/getty@.service'.
Created symlink '/etc/systemd/system/multi-user.target.wants/remote-fs.target' → '/usr/lib/systemd/system/remote-fs.target'.
Created symlink '/etc/systemd/system/sysinit.target.wants/systemd-pstore.service' → '/usr/lib/systemd/system/systemd-pstore.service'.
[0;1;39m/usr/lib/tmpfiles.d/legacy.conf:14: Duplicate line for path "/run/lock", ignoring.[0m
Configurando linux-sysctl-defaults (4.12.1) ...
Configurando qemu-user (1:10.0.13+ds-0+deb13u1) ...
Configurando libdbus-1-3:amd64 (1.16.2-2) ...
Configurando systemd-timesyncd (257.13-1~deb13u1) ...
Created symlink '/etc/systemd/system/dbus-org.freedesktop.timesync1.service' → '/usr/lib/systemd/system/systemd-timesyncd.service'.
Created symlink '/etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service' → '/usr/lib/systemd/system/systemd-timesyncd.service'.
Running in chroot, ignoring command 'daemon-reload'
Running in chroot, ignoring command 'is-active'
systemd-time-wait-sync.service is a disabled or a static unit, not starting it.
Running in chroot, ignoring command 'is-active'
Running in chroot, ignoring command 'start'
Configurando dbus-session-bus-common (1.16.2-2) ...
Configurando dbus-system-bus-common (1.16.2-2) ...
Configurando qemu-user-binfmt (1:10.0.13+ds-0+deb13u1) ...
Configurando libjson-c5:amd64 (0.18+ds-1) ...
Configurando dbus-bin (1.16.2-2) ...
Configurando libkmod2:amd64 (34.2-2) ...
Configurando qemu-user-static (1:10.0.13+ds-0+deb13u1) ...
Configurando dbus-daemon (1.16.2-2) ...
Configurando dbus (1.16.2-2) ...
Running in chroot, ignoring command 'daemon-reload'
Running in chroot, ignoring command 'is-active'
invoke-rc.d: WARNING: No init system and policy-rc.d missing! Defaulting to block.
Running in chroot, ignoring command 'daemon-reload'
Running in chroot, ignoring command 'is-active'
dbus.service is a disabled or a static unit, not starting it.
Configurando libdevmapper1.02.1:amd64 (2:1.02.205-2) ...
Configurando dmsetup (2:1.02.205-2) ...
Configurando libcryptsetup12:amd64 (2:2.7.5-2) ...
Configurando systemd-cryptsetup (257.13-1~deb13u1) ...
Procesando disparadores para libc-bin (2.41-12+deb13u4) ...
Procesando disparadores para systemd (257.13-1~deb13u1) ...
Running in chroot, ignoring command 'show'
Running in chroot, ignoring command 'restart'
aarch64
armv7hl
armv7l
ppc64le
s390x
i586
x86_64
alpine
arch-arm
centos
debian
devuan
fedora
ubuntu
void
void-musl
ERROR: Interpreter at /bedrock/strata/tut-debian//usr/bin/qemu-aarch64-static is open to writing by group. Ensure a locked down "bin" is earlier in the $PATH and try again.
1
Upvotes
0
u/ParadigmComplex founder and lead developer 7d ago edited 7d ago
Your title seems to be about the tutorial, but this is doing things outside the scope of the tutorial, e.g. qemu-user-static. In principle experimenting with that feature or reporting issues with it is fine, but it's different from a problem with the tutorial as described in the title and so I might not be understanding you correctly. I'll do my best, but if my response isn't what you're expecting, please elaborate on the issue and how I can help further.
If the tutorial goes well, it has you create
tut-debianand then remove it. Presumably something went wrong, leaving the oldtut-debianaround. As described in that error message, you can either just use another name (be consistent about it when going through the tutorial) or just remove the oldtut-debian. Removing the old one is probably what you want, unless you have some reason to keep it around.This is a warning from
aptbecause you're redirectingaptoutput to log and share what it's doing, and not really an issue on Bedrock's end. Safe to ignore.This is code I wrote being very defensive to protect you. Maybe too defensive and I should loosen it a bit.
You can unblock this by running
chmod g-w /bedrock/strata/tut-debian/usr/bin/qemu-aarch64-staticas root.