proot-me / proot

chroot, mount --bind, and binfmt_misc without privilege/setup for Linux
https://proot-me.github.io
GNU General Public License v2.0
2.02k stars 378 forks source link

debootstrap not work #320

Open CicadaSeventeen opened 2 years ago

CicadaSeventeen commented 2 years ago

Expected Behavior

Use debootstrap to get a Debian Stable system. I used to use Debian docker image, but I have met some problem, so I think debootstrap may be better.

Actual Behavior

apt install not work, fatal error form dpkg

Steps to Reproduce the Problem

1.debootstrap --arch=amd64 stable /deb

  1. apt update
  2. apt install sudo

Specifications

Command Output

Reading package lists... Done
Building dependency tree... Done
The following NEW packages will be installed:
  sudo
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1059 kB of archives.
After this operation, 4699 kB of additional disk space will be used.
Get:1 https://deb.debian.org/debian stable/main amd64 sudo amd64 1.9.5p2-3 [1059 kB]
Fetched 1059 kB in 12s (90.3 kB/s)                                                         
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "zh_CN.UTF-8",
    LANG = "zh_CN.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
dpkg: unrecoverable fatal error, aborting:
 unknown system group 'crontab' in statoverride file; the system group got removed
before the override, which is most probably a packaging bug, to recover you
can remove the override manually with dpkg-statoverride
W: No sandbox user '_apt' on the system, can not drop privileges
E: Sub-process /usr/bin/dpkg returned an error code (2)
mahesh-hegde commented 2 years ago

Can you post the steps you bootstrapped? i.e the flags you passed to debootstrap script?