* Michael Prokop [Sun Apr 03, 2011 at 02:57:00PM +0200]: > Upgrading to latest dpkg when running kernel version <2.6.22 results > in:
> | dpkg: error processing /var/cache/apt/archives/perl_5.10.1-19_i386.deb
> (--unpack):
> | error setting timestamps of `/usr/share/man/man1/psed.1.gz.dpkg-new':
> Function not implemented
> | Preparing to replace perl-base 5.10.1-18 (using
> .../perl-base_5.10.1-19_i386.deb) ...
> | Unpacking replacement perl-base ...
> | dpkg: error processing /var/cache/apt/archives/perl-base_5.10.1-19_i386.deb
> (--unpack):
> | error setting timestamps of
> `/usr/share/man/man1/perl5.10.1.1.gz.dpkg-new': Function not implemented
> Caused by:
> | 22375 utimensat(AT_FDCWD, "/usr/share/man/man1/psed.1.gz.dpkg-new",
> {{1301834577, 0}, {1301648022, 0}}, AT_SYMLINK_NOFOLLOW) = -1 ENOSYS
> (Function not implemented)
> utimensat() was added to Linux in kernel 2.6.22; glibc support was
> added with version 2.6.
Stumbled upon #545306 and #515731 in the meanwhile.
Just in case someones else is running into this issue and wants
to downgrade to older dpkg version not affected by this issue in the
meanwhile:
# echo 'int lutimes() { return 0; };' > lutimes.c
# gcc -Wall -O2 -fpic -shared -ldl -o libfakelutimes.so lutimes.c
# export LD_PRELOAD=/root/libfakelutimes.so
# dpkg -i /var/cache/apt/archives/dpkg_1.15.8.6_i386.deb
regards,
-mika-
signature.asc
Description: Digital signature

