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
apt update
apt install sudo
Specifications
Proot/Care version: 5.30
Kernel version: 5.3
Host distribution: openSUSE leap 15.3
Guest distribution: Debian Stable
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)
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 thinkdebootstrap
may be better.Actual Behavior
apt install
not work, fatal error formdpkg
Steps to Reproduce the Problem
1.
debootstrap --arch=amd64 stable /deb
apt update
apt install sudo
Specifications
Command Output