Skip to content

debootstrap fails at E: Tried to extract package, but tar failed. Exit... on WSL #873

@dimpolo

Description

@dimpolo

This is on the arm64 branch with WSL2 Ubuntu-24.04 on Windows11

logs:

...
I: Extracting libpam-modules...
I: Extracting libpam-modules-bin...
I: Extracting libpam-runtime...
E: Tried to extract package, but tar failed. Exit...
rmdir: failed to remove '/mnt/c/Users/user/wsl/pi-gen/work/TS30/stage0/rootfs/debootstrap': Directory not empty
[22:24:32] bootstrap failed: please check /mnt/c/Users/user/wsl/pi-gen/work/TS30/stage0/debootstrap.log

debootstrap.log:

...
2025-09-22 22:24:12 URL:http://deb.debian.org/debian/pool/main/n/newt/whiptail_0.52.23-1+b1_arm64.deb [23832/23832] -> "/mnt/c/Users/user/wsl/pi-gen/work/TS30/stage0/rootfs//var/cache/apt/archives/partial/whiptail_0.52.23-1+b1_arm64.deb" [1]
2025-09-22 22:24:12 URL:http://deb.debian.org/debian/pool/main/z/zlib/zlib1g_1.2.13.dfsg-1_arm64.deb [82744/82744] -> "/mnt/c/Users/user/wsl/pi-gen/work/TS30/stage0/rootfs//var/cache/apt/archives/partial/zlib1g_1%3a1.2.13.dfsg-1_arm64.deb" [1]
tar: ./usr/share/man/man7/pam.7.gz: Cannot create symlink to 'PAM.7.gz': File exists

I can provide full logs and more info if needed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions