[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

FW: Problem creating debian 12 rootfs on WSL-2: with debootstrap : getting error 2 extracting .//var/cache/apt/archives/libpam-runtime_1.5.2-6+deb12u1_all.deb



I’m running TOT version of debootstrap on WSL-2 from:

        https://salsa.debian.org/installer-team/debootstrap.git

My command line is:

        ./debootstrap --verbose stable $TARGET_FS_ROOT

Adding some code to print out some debugging information and so that processing continues after this failure everything else completes normally.

Doing a chroot to the created root fs “apt update” completes normally “apt upgrade” reports an error about this package.

Running:

apt --fix-broken install

I get:

dpkg: error processing archive /var/cache/apt/archives/libpam-runtime_1.5.3-7_all.deb (--unpack):

 unable to open '/usr/share/man/man7/PAM.7.gz.dpkg-new': No such file or directory

Errors were encountered while processing:

 /var/cache/apt/archives/libpam-runtime_1.5.3-7_all.deb

Error: Sub-process /usr/bin/dpkg returned an error code (1)

Am I doing something wrong? Is anyone else seeing this? Any suggestions on how I can fix this or work around it?

Regards

Mark

 


Reply to: