Revert "Write apt data directly to the destination"

This reverts commit 4b6110918a9fb79eafa59f1437dfa7c2ed3627dc.