When doing apt-get download -o RootDir=. apt once it's downloaded the package it effectively tries to move it to ./$( pwd )/
(the prefix is whatever RootDir points to) instead of moving to $( pwd )/ This causes it to fail unless you do a mkdir -p ./$( readlink -f $( pwd ) ) Is this a bug or a feature? You also can get weird errors about cannot rename across filesystems where RootDir is not on the same filesystem as $(pwd)