WSL 우분투는 항상 "하위 프로세스 /usr/bin/dpkg가 오류 코드 (1)를 반환했습니다." 오류와 함께 실패합니다.

WSL 우분투는 항상 "하위 프로세스 /usr/bin/dpkg가 오류 코드 (1)를 반환했습니다." 오류와 함께 실패합니다.

Linux 터미널용 win10 Windows 하위 시스템에서 우분투를 사용하려고 합니다. 그러나 다음과 같은 명령을 실행하면 다음과 같은 결과가 sudo apt reinstall libpaper1나타납니다.

Setting up passwd (1:4.8.1-1ubuntu5.20.04.4) ...
/var/lib/dpkg/info/passwd.postinst: 21: getent: not found
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
Errors were encountered while processing:
 passwd
E: Sub-process /usr/bin/dpkg returned an error code (1)

여러 가이드와 apt-get 설치, 업데이트, 업그레이드를 시도했지만 항상 이 오류가 발생합니다!

관련 정보