I am currently encountering the same problem with version: debootstrap 1.0.40~ubuntu0.7 using wheezy instead of sid and without using fakeroot fakechroot, but directly using sudo.
the strange thing is that this exact same error comes when debootstrap is called from a script. But calling the same debootstrap command in a terminal finishes without any error.
On Tue, 10 Dec 2013 15:48:33 +0100 Johannes Schauer <
j.schauer@email.de> wrote:
> Package: debootstrap
> Version: 1.0.55
> Severity: normal
>
> Running debootstrap under Debian Sid yields:
>
> $ fakeroot fakechroot debootstrap --verbose --variant=fakechroot sid debian-sid
> [...]
> I: Installing core packages...
> W: Failure trying to run: chroot /home/josch/debian-sid dpkg --force-depends --install /var/cache/apt/archives/base-files_7.2_amd64.deb /var/cache/apt/archives/base-passwd_3.5.28_amd64.deb
> W: See /home/josch/debian-sid/debootstrap/debootstrap.log for details (possibly the package archive is at fault)
>
> And the last lines of the log say:
>
> dpkg: warning: parsing file '/var/lib/dpkg/status' near line 5 package 'dpkg':
> missing description
> dpkg: warning: parsing file '/var/lib/dpkg/status' near line 5 package 'dpkg':
> missing architecture
> dpkg: regarding .../base-files_7.2_amd64.deb containing base-files, pre-dependency problem:
> base-files pre-depends on awk
> awk is not installed.
>
> dpkg: warning: ignoring pre-dependency problem!
> Selecting previously unselected package base-files.
> (Reading database ... 0 files and directories currently installed.)
> Preparing to unpack .../base-files_7.2_amd64.deb ...
> Unpacking base-files (7.2) ...
> rm: cannot remove '/var/lib/dpkg/
tmp.ci': Directory not empty
> dpkg: error while cleaning up:
> subprocess rm cleanup returned error exit status 1
> rm: cannot remove '/var/lib/dpkg/
tmp.ci': Directory not empty
> dpkg: error processing archive /var/cache/apt/archives/base-passwd_3.5.28_amd64.deb (--install):
> subprocess rm cleanup returned error exit status 1
> dpkg: base-files: dependency problems, but configuring anyway as you requested:
> base-files depends on awk; however:
> Package awk is not installed.
>
> chown: invalid user: 'root:root'
> dpkg: error processing package base-files (--install):
> subprocess installed post-installation script returned error exit status 1
> Errors were encountered while processing:
> /var/cache/apt/archives/base-passwd_3.5.28_amd64.deb
> base-files
> Setting up base-files (7.2) ...