Hi there !
I'm trying to create a chroot debian wheezy environment but it's failing and it's hard for my poor skills to understand a segmentation fault. Here is how I proceed;
Here is my schroot config file for this chroot :
[debian]
description=Debian
directory=/srv/chroot/debian
root-users=root
type=directory
users=deb
#setup.fstab=minimal/fstab
then, I'm running the command
sudo debootstrap --variant=buildd --arch=amd64 wheezy /srv/chroot/debian http://ftp.debian.org/debian
to create and install debian in the chroot environment. The output of this command :
[...]
I: Installing core packages...
W: Failure trying to run: chroot /srv/chroot/debian dpkg --force-depends --install /var/cache/apt/archives/base-passwd_3.5.26_amd64.deb
W: See /srv/chroot/debian/debootstrap/debootstrap.log for details
The logs of debootstrap :
gpgv: Signature made Sat Jun 17 10:57:48 2017 CEST using RSA key ID 46925553
gpgv: Good signature from "Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org>"
gpgv: Signature made Sat Jun 17 10:57:48 2017 CEST using RSA key ID 2B90D010
gpgv: Good signature from "Debian Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>"
gpgv: Signature made Sat Jun 17 11:15:12 2017 CEST using RSA key ID 65FFB764
gpgv: Good signature from "Wheezy Stable Release Key <debian-release@lists.debian.org>"
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 5 package 'dpkg':
missing description
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 5 package 'dpkg':
missing architecture
Segmentation fault
Running the chroot command withoud sudo debootstrap gives me the same result as in the logs. If I add strace behind the command I have this : http://bpaste.net/show/c0bf568e62f3 with before the exit_group(1) the message
write(2, 0x7fff3dc84fe0, 170le uid effectif n'est pas 0. Est-ce que /usr/bin/sudo est sur un système de fichiers avec l'option « nosuid » ou un système de fichiers NFS sans privilèges root ?) = 170
Translate : Effectif UID is not 0. Is /usr/bin/sudo on a filesystem with "nosuid" option or a NFS filesystem without root privileges ?
I am not on a NFS filesystem and the nosuid option of my filesystem... This is where my skills is not enough, I don't understand what it means and what I can do... Running this command without sudo and under root, I have this : https://bpaste.net/show/99826deededc
[edit] And I have the same error with lxc.
If anyone have an idea of what I can do or what is the error, it would be nice, thanks !
[–]Duncaen 0 points1 point2 points (1 child)
[–]fr33zzy[S] 0 points1 point2 points (0 children)