blob: b80654daa50761b681ad385537722e1f5ce75586 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
QEMU internal SIGSEGV when creating an x86_64 Debian chroot from an aarch64 host.
Description of problem:
When I try to create a x86_64 Debian chroot using debootstrap from an aarch64 host system, QEMU segfaults causing the process to fail.
Steps to reproduce:
1. Run `sudo apt install debootstrap qemu-user-static binfmt-support`
2. Run `sudo debootstrap --arch amd64 bookworm debian_chroot http://deb.debian.org/debian/`
Additional information:
End of deboostrap output:
```
I: Configuring dash...
I: Configuring libpam-modules:amd64...
I: Configuring grep...
I: Configuring perl-base...
I: Configuring gzip...
I: Configuring passwd...
I: Configuring login...
I: Configuring apt...
I: Configuring adduser...
I: Configuring libc-bin...
W: Failure while configuring required packages.
W: See /home/allen/debian_chroot/debootstrap/debootstrap.log for details (possibly the package passwd is at fault)
```
End of debootstrap log:
```
$ tail /home/allen/debian_chroot/debootstrap/debootstrap.log -n30
Setting up grep (3.8-5) ...
Setting up perl-base (5.36.0-7+deb12u1) ...
Setting up gzip (1.12-1) ...
Setting up passwd (1:4.13+dfsg1-1+b1) ...
x86_64-binfmt-P: QEMU internal SIGSEGV {code=MAPERR, addr=0x20}
Segmentation fault
groupadd: group 'shadow' already exists
Group ID 42 has been allocated for the shadow group. You have either
used 42 yourself or created a shadow group with a different ID.
Please correct this problem and reconfigure with dpkg --configure passwd''.
Note that both user and group IDs in the range 0-99 are globally
allocated by the Debian project and must be the same on every Debian
system.
dpkg: error processing package passwd (--configure):
installed passwd package post-installation script subprocess returned error exit status 1
Setting up libpam-runtime (1.5.2-6+deb12u1) ...
Setting up login (1:4.13+dfsg1-1+b1) ...
dpkg: apt: dependency problems, but configuring anyway as you requested:
apt depends on adduser.
Setting up apt (2.6.1) ...
dpkg: adduser: dependency problems, but configuring anyway as you requested:
adduser depends on passwd; however:
Package passwd is not configured yet.
Setting up adduser (3.134) ...
Processing triggers for libc-bin (2.36-9+deb12u7) ...
Errors were encountered while processing:
passwd
```
Full debootstrap log:
[debootstrap.log](/uploads/4eb24abd98a647e08bd03deea897b9dd/debootstrap.log)
|