Okay, quick and dirty workaround that proves its an fsync issue:
//nosync.c: void sync() { } int fsync(int fildes) { return 0; }
//build it: gcc -shared -fPIC -O2 -g nosync.c -o /usr/local/lib/libnosync.so
//use it as preload with dpkg/apt LD_PRELOAD=/usr/local/lib/libnosync.so apt-get install $package
dpkg should work 'rather' quickly now
Okay, quick and dirty workaround that proves its an fsync issue:
//nosync.c:
void sync() { }
int fsync(int fildes) { return 0; }
//build it: lib/libnosync. so
gcc -shared -fPIC -O2 -g nosync.c -o /usr/local/
//use it as preload with dpkg/apt /usr/local/ lib/libnosync. so apt-get install $package
LD_PRELOAD=
dpkg should work 'rather' quickly now