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

Bug#860545: debootstrap fails to locate xzcat if the default shell is set to posh

Package: debootstrap
Version: 1.0.89
Severity: normal

Dear Maintainer,

Trying to run debootstrap with just acl (the first package in the list) fails
at unpacking due to a missing xzcat

sudo debootstrap  --merged-usr  --variant=minbase --components=main,non-free
--include=acl jessie /tmp/debtest http://deb.debian.org/debian

I: Chosen extractor for .deb packages: ar
I: Extracting acl...
E: Extracting .//var/cache/apt/archives/acl_2.2.52-2_amd64.deb requires the
xzcat command, which is not available
$ which xzcat

changing /bin/sh -> dash fixes it, but I would have figued that if debootstrap
has its shebang set to /bin/sh, it would work with any posix shell, including

(I read the warning:
WARNING: Since many of Debian's /bin/sh scripts are not actually policy-
compliant, using posh as your /bin/sh may reveal breakage.)

-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf

Kernel: Linux 4.9.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages debootstrap depends on:
ii  wget  1.18-5

Versions of packages debootstrap recommends:
ii  debian-archive-keyring  2014.3
ii  gnupg                   2.1.18-6

debootstrap suggests no packages.

-- no debconf information

Reply to: