apt-cacher-import.pl fails to “rename” (move) .deb files during import

Importing: apache2-mpm-worker_2.2.9-7ubuntu3_i386.deb
Failed to rename apache2-mpm-worker_2.2.9-7ubuntu3_i386.deb. Try read-only (-r) or symlink (-s) options. at /usr/share/apt-cacher/apt-cacher-import.pl line 154.

(I faked this by copying and pasting from ABC Science Forum, because I didn’t save any of the ones I actually saw.)

For me the problem with apt-cacher-import.pl was that apparently Perl’s rename function can’t move files across devices, and that’s how my imports and cache laid on the disk. I solved this by using the -s parameter, which only makes symlinks. Another option would be to manually move the files onto the same device before importing. I suppose that’s why the /var/cache/apt-cacher/import directory is there.