I used a directory instead of a partition but since the error happens inside the chroot, I don't think that makes any difference.
I'm using debian unstable and I have debootstrap, dpkg, libc6 and gcc in their latest version (according to apt-get)
I also tried that instruccions today, so if you are also using the lastest version of that software, we both have the same environment.
The problem seems related to /dev/null I installed tzdata in the chroot without problems, then I move to libc6:
#dpkg --force-depends --install var/cache/apt/archives/libc6_2.3.6-7_i386.deb (Reading database ... 2329 files and directories currently installed.) Preparing to replace libc6 2.3.6-7 (using .../libc6_2.3.6-7_i386.deb) ... /var/lib/dpkg/tmp.ci/preinst: line 117: /dev/null: Permission denied /var/lib/dpkg/tmp.ci/preinst: line 122: /dev/null: Permission denied /var/lib/dpkg/tmp.ci/preinst: line 127: /dev/null: Permission denied /var/lib/dpkg/tmp.ci/preinst: line 117: /dev/null: Permission denied /var/lib/dpkg/tmp.ci/preinst: line 122: /dev/null: Permission denied /var/lib/dpkg/tmp.ci/preinst: line 117: /dev/null: Permission denied /var/lib/dpkg/tmp.ci/preinst: line 122: /dev/null: Permission denied /var/lib/dpkg/tmp.ci/preinst: line 117: /dev/null: Permission denied /var/lib/dpkg/tmp.ci/preinst: line 122: /dev/null: Permission denied /var/lib/dpkg/tmp.ci/preinst: line 127: /dev/null: Permission denied /var/lib/dpkg/tmp.ci/preinst: line 117: /dev/null: Permission denied /var/lib/dpkg/tmp.ci/preinst: line 122: /dev/null: Permission denied /var/lib/dpkg/tmp.ci/preinst: line 117: /dev/null: Permission denied /var/lib/dpkg/tmp.ci/preinst: line 122: /dev/null: Permission denied Unpacking replacement libc6 ... Setting up libc6 (2.3.6-7) ... /var/lib/dpkg/info/libc6.postinst: line 112: /dev/null: Permission denied /var/lib/dpkg/info/libc6.postinst: line 112: /dev/null: Permission denied /var/lib/dpkg/info/libc6.postinst: line 29: /dev/null: Permission denied dpkg: error processing libc6 (--install): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: libc6
/dev/null seems ok (/dev/ also have the correct permisions and everything is run as root), but it's not working:
# ls -la /dev/null crw-rw-rw- 1 root root 1, 3 Nov 5 18:32 /dev/null
#echo "echo" > /dev/null bash: /dev/null: Permission denied
<code>
<blockcode>
<foo>
[foo]
More information about formatting options
/dev/null ?
I used a directory instead of a partition but since the error happens inside the chroot, I don't think that makes any difference.
I'm using debian unstable and I have debootstrap, dpkg, libc6 and gcc in their latest version (according to apt-get)
I also tried that instruccions today, so if you are also using the lastest version of that software, we both have the same environment.
The problem seems related to /dev/null
I installed tzdata in the chroot without problems, then I move to libc6:
#dpkg --force-depends --install var/cache/apt/archives/libc6_2.3.6-7_i386.deb
(Reading database ... 2329 files and directories currently installed.)
Preparing to replace libc6 2.3.6-7 (using .../libc6_2.3.6-7_i386.deb) ...
/var/lib/dpkg/tmp.ci/preinst: line 117: /dev/null: Permission denied
/var/lib/dpkg/tmp.ci/preinst: line 122: /dev/null: Permission denied
/var/lib/dpkg/tmp.ci/preinst: line 127: /dev/null: Permission denied
/var/lib/dpkg/tmp.ci/preinst: line 117: /dev/null: Permission denied
/var/lib/dpkg/tmp.ci/preinst: line 122: /dev/null: Permission denied
/var/lib/dpkg/tmp.ci/preinst: line 117: /dev/null: Permission denied
/var/lib/dpkg/tmp.ci/preinst: line 122: /dev/null: Permission denied
/var/lib/dpkg/tmp.ci/preinst: line 117: /dev/null: Permission denied
/var/lib/dpkg/tmp.ci/preinst: line 122: /dev/null: Permission denied
/var/lib/dpkg/tmp.ci/preinst: line 127: /dev/null: Permission denied
/var/lib/dpkg/tmp.ci/preinst: line 117: /dev/null: Permission denied
/var/lib/dpkg/tmp.ci/preinst: line 122: /dev/null: Permission denied
/var/lib/dpkg/tmp.ci/preinst: line 117: /dev/null: Permission denied
/var/lib/dpkg/tmp.ci/preinst: line 122: /dev/null: Permission denied
Unpacking replacement libc6 ...
Setting up libc6 (2.3.6-7) ...
/var/lib/dpkg/info/libc6.postinst: line 112: /dev/null: Permission denied
/var/lib/dpkg/info/libc6.postinst: line 112: /dev/null: Permission denied
/var/lib/dpkg/info/libc6.postinst: line 29: /dev/null: Permission denied
dpkg: error processing libc6 (--install):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
libc6
/dev/null seems ok (/dev/ also have the correct permisions and everything is run as root), but it's not working:
# ls -la /dev/null
crw-rw-rw- 1 root root 1, 3 Nov 5 18:32 /dev/null
#echo "echo" > /dev/null
bash: /dev/null: Permission denied