Dear Mark, sorry, no luck. Can you at least reproduce the behavior with the original (or/and patched) script?
Chris $ ls -la /var/cache/apt-cacher/packages/ftp.de.debian.org_debian drwxr-xr-x 2 www-data www-data 4096 Okt 12 17:44 . drwxr-xr-x 3 www-data www-data 12288 Okt 12 17:40 .. $ apt-get update && apt-get dist-upgrade ... $ ls -la /var/cache/apt-cacher/packages/ftp.de.debian.org_debian drwxr-xr-x 2 www-data www-data 4096 Okt 13 14:54 . drwxr-xr-x 3 www-data www-data 12288 Okt 13 14:53 .. -rw-r--r-- 1 www-data www-data 435616 Okt 13 14:54 augeas-lenses_1.9.0-1_all.deb -rw-r--r-- 1 www-data www-data 2686122 Okt 13 14:54 coreutils_8.28-1_amd64.deb -rw-r--r-- 1 www-data www-data 292956 Okt 13 14:54 libaugeas0_1.9.0-1_amd64.deb -rw-r--r-- 1 www-data www-data 323618 Okt 13 14:54 libexif12_0.6.21-2.1_amd64.deb -rw-r--r-- 1 www-data www-data 66282 Okt 13 14:54 qemu-kvm_2.10.0+dfsg-2_amd64.deb -rw-r--r-- 1 www-data www-data 688828 Okt 13 14:54 qemu-system-common_2.10.0+dfsg-2_amd64.deb -rw-r--r-- 1 www-data www-data 5114668 Okt 13 14:54 qemu-system-x86_2.10.0+dfsg-2_amd64.deb -rw-r--r-- 1 www-data www-data 894040 Okt 13 14:54 qemu-utils_2.10.0+dfsg-2_amd64.deb $ /tmp/apt-cacher-cleanup-patched.pl -v Invoked as root, changing to www-data:www-data and re-execing. Get /ftp.de.debian.org/debian/dists/testing/InRelease Cached file ftp.de.debian.org_debian_dists_testing_non-free_dep11_by-hash_SHA256_000325db7c7dad963ee30a157f0cfb3efe36ca31da11e9f653996bb651774d61 is current by-hash file referenced in ftp.de.debian.org_debian_dists_testing_InRelease. Adding to list for parsing Cached file ftp.de.debian.org_debian_dists_testing_main_dep11_by-hash_SHA256_b7305d583d0224335d60f18a4a82685895e8e3f919125ad043576abb6210f636 is current by-hash file referenced in ftp.de.debian.org_debian_dists_testing_InRelease. Adding to list for parsing Cached file ftp.de.debian.org_debian_dists_testing_non-free_binary-amd64_Packages.diff_by-hash_SHA256_8851326c582dbdf9dac413ccb1a1b97028e21d757a247fa18603b72259b3cd09 is current by-hash file referenced in ftp.de.debian.org_debian_dists_testing_InRelease. Adding to list for parsing Cached file ftp.de.debian.org_debian_dists_testing_non-free_binary-i386_Packages.diff_by-hash_SHA256_165338be1a1575aba139400f2e863e68249e54857cb9dcdcc6f50522eae33ee2 is current by-hash file referenced in ftp.de.debian.org_debian_dists_testing_InRelease. Adding to list for parsing Cached file ftp.de.debian.org_debian_dists_testing_main_i18n_Translation-de.diff_by-hash_SHA256_1398d3f540d251739ed8287e0b88e6afdf7e9a37ef534eb35c1bfc40dba9aa39 is current by-hash file referenced in ftp.de.debian.org_debian_dists_testing_InRelease. Adding to list for parsing Cached file ftp.de.debian.org_debian_dists_testing_main_source_Sources.diff_by-hash_SHA256_645c800a436e6026fc790189a3ab4aca46ea026b00289faf73c14f23c9581235 is current by-hash file referenced in ftp.de.debian.org_debian_dists_testing_InRelease. Adding to list for parsing Cached file ftp.de.debian.org_debian_dists_testing_main_i18n_Translation-en.diff_by-hash_SHA256_72efc9bd4ac88972b44d3ea0d50b2586ab621deaab51dc4312dcd7c7957ec9fc is current by-hash file referenced in ftp.de.debian.org_debian_dists_testing_InRelease. Adding to list for parsing Cached file ftp.de.debian.org_debian_dists_testing_non-free_source_Sources.diff_by-hash_SHA256_0b362ba1b9865cd6d10c472282d01d5462430ce0c081f2e4efcdd916ceaae4ef is current by-hash file referenced in ftp.de.debian.org_debian_dists_testing_InRelease. Adding to list for parsing Cached file ftp.de.debian.org_debian_dists_testing_contrib_binary-i386_Packages.diff_by-hash_SHA256_043c0c3d46276e2130ffba1fe56d1cf9cff3ec7e7c6904e62eaf4a0b8a990469 is current by-hash file referenced in ftp.de.debian.org_debian_dists_testing_InRelease. Adding to list for parsing Cached file ftp.de.debian.org_debian_dists_testing_contrib_source_Sources.diff_by-hash_SHA256_782024b3b4367bd499779771b0d23e04d9932879df96b61be54073ad1652ff60 is current by-hash file referenced in ftp.de.debian.org_debian_dists_testing_InRelease. Adding to list for parsing Cached file ftp.de.debian.org_debian_dists_testing_main_binary-i386_Packages.diff_by-hash_SHA256_b68e9efeb87ec062666e6eba0f458a28ed5cb3e07488f5121a392c2b364fd6f3 is current by-hash file referenced in ftp.de.debian.org_debian_dists_testing_InRelease. Adding to list for parsing Cached file ftp.de.debian.org_debian_dists_testing_main_binary-amd64_Packages.diff_by-hash_SHA256_09cd547a05521977b6638a1b934208b2a24bfe047ad84150a3ec3b2e6a9194bb is current by-hash file referenced in ftp.de.debian.org_debian_dists_testing_InRelease. Adding to list for parsing Cached file ftp.de.debian.org_debian_dists_testing_contrib_binary-amd64_Packages.diff_by-hash_SHA256_7fe40c20c9db2684e56f21c2917ac1fe72a9328cfa342fdfe15a49300f9238c2 is current by-hash file referenced in ftp.de.debian.org_debian_dists_testing_InRelease. Adding to list for parsing Cached file ftp.de.debian.org_debian_dists_testing_contrib_dep11_by-hash_SHA256_acabdc511a2ae02aa5c0fb6b6adc20f20dc7a64164bf3bd173ff08d8feafacdb is current by-hash file referenced in ftp.de.debian.org_debian_dists_testing_InRelease. Adding to list for parsing Cached file ftp.de.debian.org_debian_dists_testing_main_dep11_by-hash_SHA256_091d319ea7e78a59e6b33090eb62f794fadb1ce0c6589990a5b914d0e7d62c15 is current by-hash file referenced in ftp.de.debian.org_debian_dists_testing_InRelease. Adding to list for parsing Cached file ftp.de.debian.org_debian_dists_testing_contrib_dep11_by-hash_SHA256_c82704b65c98e5486de51de6206abaf8e85b4e1fe10ab77f738d2159e812cb8d is current by-hash file referenced in ftp.de.debian.org_debian_dists_testing_InRelease. Adding to list for parsing Get /security.debian.org/dists/testing/updates/InRelease Reading: ftp.de.debian.org_debian_dists_testing_InRelease Reading: ftp.de.debian.org_debian_dists_testing_contrib_binary-amd64_Packages.diff_by-hash_SHA256_7fe40c20c9db2684e56f21c2917ac1fe72a9328cfa342fdfe15a49300f9238c2 Reading: ftp.de.debian.org_debian_dists_testing_contrib_binary-i386_Packages.diff_by-hash_SHA256_043c0c3d46276e2130ffba1fe56d1cf9cff3ec7e7c6904e62eaf4a0b8a990469 Reading: ftp.de.debian.org_debian_dists_testing_contrib_dep11_by-hash_SHA256_acabdc511a2ae02aa5c0fb6b6adc20f20dc7a64164bf3bd173ff08d8feafacdb Reading: ftp.de.debian.org_debian_dists_testing_contrib_dep11_by-hash_SHA256_c82704b65c98e5486de51de6206abaf8e85b4e1fe10ab77f738d2159e812cb8d Reading: ftp.de.debian.org_debian_dists_testing_contrib_source_Sources.diff_by-hash_SHA256_782024b3b4367bd499779771b0d23e04d9932879df96b61be54073ad1652ff60 Reading: ftp.de.debian.org_debian_dists_testing_main_binary-amd64_Packages.diff_by-hash_SHA256_09cd547a05521977b6638a1b934208b2a24bfe047ad84150a3ec3b2e6a9194bb Reading: ftp.de.debian.org_debian_dists_testing_main_binary-i386_Packages.diff_by-hash_SHA256_b68e9efeb87ec062666e6eba0f458a28ed5cb3e07488f5121a392c2b364fd6f3 Reading: ftp.de.debian.org_debian_dists_testing_main_dep11_by-hash_SHA256_091d319ea7e78a59e6b33090eb62f794fadb1ce0c6589990a5b914d0e7d62c15 Reading: ftp.de.debian.org_debian_dists_testing_main_dep11_by-hash_SHA256_b7305d583d0224335d60f18a4a82685895e8e3f919125ad043576abb6210f636 Reading: ftp.de.debian.org_debian_dists_testing_main_i18n_Translation-de.diff_by-hash_SHA256_1398d3f540d251739ed8287e0b88e6afdf7e9a37ef534eb35c1bfc40dba9aa39 Reading: ftp.de.debian.org_debian_dists_testing_main_i18n_Translation-en.diff_by-hash_SHA256_72efc9bd4ac88972b44d3ea0d50b2586ab621deaab51dc4312dcd7c7957ec9fc Reading: ftp.de.debian.org_debian_dists_testing_main_source_Sources.diff_by-hash_SHA256_645c800a436e6026fc790189a3ab4aca46ea026b00289faf73c14f23c9581235 Reading: ftp.de.debian.org_debian_dists_testing_non-free_binary-amd64_Packages.diff_by-hash_SHA256_8851326c582dbdf9dac413ccb1a1b97028e21d757a247fa18603b72259b3cd09 Reading: ftp.de.debian.org_debian_dists_testing_non-free_binary-i386_Packages.diff_by-hash_SHA256_165338be1a1575aba139400f2e863e68249e54857cb9dcdcc6f50522eae33ee2 Reading: ftp.de.debian.org_debian_dists_testing_non-free_dep11_by-hash_SHA256_000325db7c7dad963ee30a157f0cfb3efe36ca31da11e9f653996bb651774d61 Reading: ftp.de.debian.org_debian_dists_testing_non-free_source_Sources.diff_by-hash_SHA256_0b362ba1b9865cd6d10c472282d01d5462430ce0c081f2e4efcdd916ceaae4ef Reading: security.debian.org_dists_testing_updates_InRelease Found 1132 valid file entries Building source package file/version table Validating ftp.de.debian.org_debian_dists_testing_contrib_binary-amd64_Packages.diff_by-hash_SHA256_7fe40c20c9db2684e56f21c2917ac1fe72a9328cfa342fdfe15a49300f9238c2 Get http://ftp.de.debian.org/debian/dists/testing/contrib/binary-amd64/Packages.diff/by-hash/SHA256/7fe40c20c9db2684e56f21c2917ac1fe72a9328cfa342fdfe15a49300f9238c2 Validating ftp.de.debian.org_debian_dists_testing_contrib_binary-i386_Packages.diff_by-hash_SHA256_043c0c3d46276e2130ffba1fe56d1cf9cff3ec7e7c6904e62eaf4a0b8a990469 Get http://ftp.de.debian.org/debian/dists/testing/contrib/binary-i386/Packages.diff/by-hash/SHA256/043c0c3d46276e2130ffba1fe56d1cf9cff3ec7e7c6904e62eaf4a0b8a990469 Validating ftp.de.debian.org_debian_dists_testing_contrib_dep11_by-hash_SHA256_acabdc511a2ae02aa5c0fb6b6adc20f20dc7a64164bf3bd173ff08d8feafacdb Get http://ftp.de.debian.org/debian/dists/testing/contrib/dep11/by-hash/SHA256/acabdc511a2ae02aa5c0fb6b6adc20f20dc7a64164bf3bd173ff08d8feafacdb Validating ftp.de.debian.org_debian_dists_testing_contrib_dep11_by-hash_SHA256_c82704b65c98e5486de51de6206abaf8e85b4e1fe10ab77f738d2159e812cb8d Get http://ftp.de.debian.org/debian/dists/testing/contrib/dep11/by-hash/SHA256/c82704b65c98e5486de51de6206abaf8e85b4e1fe10ab77f738d2159e812cb8d Validating ftp.de.debian.org_debian_dists_testing_contrib_source_Sources.diff_by-hash_SHA256_782024b3b4367bd499779771b0d23e04d9932879df96b61be54073ad1652ff60 Get http://ftp.de.debian.org/debian/dists/testing/contrib/source/Sources.diff/by-hash/SHA256/782024b3b4367bd499779771b0d23e04d9932879df96b61be54073ad1652ff60 Validating ftp.de.debian.org_debian_dists_testing_main_binary-amd64_Packages.diff_by-hash_SHA256_086aa4c6fe16f828c374324e55a62374fb76b877aae4db35b8da744b433c5403 Get http://ftp.de.debian.org/debian/dists/testing/main/binary-amd64/Packages.diff/by-hash/SHA256/086aa4c6fe16f828c374324e55a62374fb76b877aae4db35b8da744b433c5403 Validating ftp.de.debian.org_debian_dists_testing_main_binary-amd64_Packages.diff_by-hash_SHA256_09cd547a05521977b6638a1b934208b2a24bfe047ad84150a3ec3b2e6a9194bb Get http://ftp.de.debian.org/debian/dists/testing/main/binary-amd64/Packages.diff/by-hash/SHA256/09cd547a05521977b6638a1b934208b2a24bfe047ad84150a3ec3b2e6a9194bb Validating ftp.de.debian.org_debian_dists_testing_main_binary-i386_Packages.diff_by-hash_SHA256_6430688596e567966c3deff27e9915d8bfd79764039b2a91a65b9245dfa5d4e1 Get http://ftp.de.debian.org/debian/dists/testing/main/binary-i386/Packages.diff/by-hash/SHA256/6430688596e567966c3deff27e9915d8bfd79764039b2a91a65b9245dfa5d4e1 Validating ftp.de.debian.org_debian_dists_testing_main_binary-i386_Packages.diff_by-hash_SHA256_b68e9efeb87ec062666e6eba0f458a28ed5cb3e07488f5121a392c2b364fd6f3 Get http://ftp.de.debian.org/debian/dists/testing/main/binary-i386/Packages.diff/by-hash/SHA256/b68e9efeb87ec062666e6eba0f458a28ed5cb3e07488f5121a392c2b364fd6f3 Validating ftp.de.debian.org_debian_dists_testing_main_dep11_by-hash_SHA256_091d319ea7e78a59e6b33090eb62f794fadb1ce0c6589990a5b914d0e7d62c15 Get http://ftp.de.debian.org/debian/dists/testing/main/dep11/by-hash/SHA256/091d319ea7e78a59e6b33090eb62f794fadb1ce0c6589990a5b914d0e7d62c15 Validating ftp.de.debian.org_debian_dists_testing_main_dep11_by-hash_SHA256_268813e3e76ecc5633ed3679fb5b5a5d2566c0ef95818b1257e3c9afa157b307 Get http://ftp.de.debian.org/debian/dists/testing/main/dep11/by-hash/SHA256/268813e3e76ecc5633ed3679fb5b5a5d2566c0ef95818b1257e3c9afa157b307 Validating ftp.de.debian.org_debian_dists_testing_main_dep11_by-hash_SHA256_29125737a1842103c9504420dd0eaa34b9d7283ff240ec8208263e601b06a6dc Get http://ftp.de.debian.org/debian/dists/testing/main/dep11/by-hash/SHA256/29125737a1842103c9504420dd0eaa34b9d7283ff240ec8208263e601b06a6dc Validating ftp.de.debian.org_debian_dists_testing_main_dep11_by-hash_SHA256_b7305d583d0224335d60f18a4a82685895e8e3f919125ad043576abb6210f636 Get http://ftp.de.debian.org/debian/dists/testing/main/dep11/by-hash/SHA256/b7305d583d0224335d60f18a4a82685895e8e3f919125ad043576abb6210f636 Validating ftp.de.debian.org_debian_dists_testing_main_dep11_by-hash_SHA256_d0a971a817470325bc30d229a87a93e6109780bc66fa80a18d1f06219b2a3cd8 Get http://ftp.de.debian.org/debian/dists/testing/main/dep11/by-hash/SHA256/d0a971a817470325bc30d229a87a93e6109780bc66fa80a18d1f06219b2a3cd8 Validating ftp.de.debian.org_debian_dists_testing_main_i18n_Translation-de.diff_by-hash_SHA256_1398d3f540d251739ed8287e0b88e6afdf7e9a37ef534eb35c1bfc40dba9aa39 Get http://ftp.de.debian.org/debian/dists/testing/main/i18n/Translation-de.diff/by-hash/SHA256/1398d3f540d251739ed8287e0b88e6afdf7e9a37ef534eb35c1bfc40dba9aa39 Validating ftp.de.debian.org_debian_dists_testing_main_i18n_Translation-de.diff_by-hash_SHA256_5871d55a7b5e2e75c67d1db2b3c1aaf4fb0c2b30ba0942d6adc886485896a245 Get http://ftp.de.debian.org/debian/dists/testing/main/i18n/Translation-de.diff/by-hash/SHA256/5871d55a7b5e2e75c67d1db2b3c1aaf4fb0c2b30ba0942d6adc886485896a245 Validating ftp.de.debian.org_debian_dists_testing_main_i18n_Translation-en.diff_by-hash_SHA256_660916fcec57c86e510de9c3cad388749821216483850e967bd3d9f0881f9702 Get http://ftp.de.debian.org/debian/dists/testing/main/i18n/Translation-en.diff/by-hash/SHA256/660916fcec57c86e510de9c3cad388749821216483850e967bd3d9f0881f9702 Validating ftp.de.debian.org_debian_dists_testing_main_i18n_Translation-en.diff_by-hash_SHA256_72efc9bd4ac88972b44d3ea0d50b2586ab621deaab51dc4312dcd7c7957ec9fc Get http://ftp.de.debian.org/debian/dists/testing/main/i18n/Translation-en.diff/by-hash/SHA256/72efc9bd4ac88972b44d3ea0d50b2586ab621deaab51dc4312dcd7c7957ec9fc Validating ftp.de.debian.org_debian_dists_testing_main_source_Sources.diff_by-hash_SHA256_59424179813394ea50130996e4334e03d7d5f8645faabe20f044f455a8143d98 Get http://ftp.de.debian.org/debian/dists/testing/main/source/Sources.diff/by-hash/SHA256/59424179813394ea50130996e4334e03d7d5f8645faabe20f044f455a8143d98 Validating ftp.de.debian.org_debian_dists_testing_main_source_Sources.diff_by-hash_SHA256_645c800a436e6026fc790189a3ab4aca46ea026b00289faf73c14f23c9581235 Get http://ftp.de.debian.org/debian/dists/testing/main/source/Sources.diff/by-hash/SHA256/645c800a436e6026fc790189a3ab4aca46ea026b00289faf73c14f23c9581235 Validating ftp.de.debian.org_debian_dists_testing_non-free_binary-amd64_Packages.diff_by-hash_SHA256_8851326c582dbdf9dac413ccb1a1b97028e21d757a247fa18603b72259b3cd09 Get http://ftp.de.debian.org/debian/dists/testing/non-free/binary-amd64/Packages.diff/by-hash/SHA256/8851326c582dbdf9dac413ccb1a1b97028e21d757a247fa18603b72259b3cd09 Validating ftp.de.debian.org_debian_dists_testing_non-free_binary-i386_Packages.diff_by-hash_SHA256_165338be1a1575aba139400f2e863e68249e54857cb9dcdcc6f50522eae33ee2 Get http://ftp.de.debian.org/debian/dists/testing/non-free/binary-i386/Packages.diff/by-hash/SHA256/165338be1a1575aba139400f2e863e68249e54857cb9dcdcc6f50522eae33ee2 Validating ftp.de.debian.org_debian_dists_testing_non-free_dep11_by-hash_SHA256_000325db7c7dad963ee30a157f0cfb3efe36ca31da11e9f653996bb651774d61 Get http://ftp.de.debian.org/debian/dists/testing/non-free/dep11/by-hash/SHA256/000325db7c7dad963ee30a157f0cfb3efe36ca31da11e9f653996bb651774d61 Validating ftp.de.debian.org_debian_dists_testing_non-free_dep11_by-hash_SHA256_211dc8d16cf639741216a3385bbec4c81529a62acbf8e68a7ba9d5eab4e3a950 Get http://ftp.de.debian.org/debian/dists/testing/non-free/dep11/by-hash/SHA256/211dc8d16cf639741216a3385bbec4c81529a62acbf8e68a7ba9d5eab4e3a950 Validating ftp.de.debian.org_debian_dists_testing_non-free_source_Sources.diff_by-hash_SHA256_0b362ba1b9865cd6d10c472282d01d5462430ce0c081f2e4efcdd916ceaae4ef Get http://ftp.de.debian.org/debian/dists/testing/non-free/source/Sources.diff/by-hash/SHA256/0b362ba1b9865cd6d10c472282d01d5462430ce0c081f2e4efcdd916ceaae4ef Removing file: ftp.de.debian.org_debian/augeas-lenses_1.9.0-1_all.deb and company... Removing file: ftp.de.debian.org_debian/coreutils_8.28-1_amd64.deb and company... Removing file: ftp.de.debian.org_debian/libaugeas0_1.9.0-1_amd64.deb and company... Removing file: ftp.de.debian.org_debian/libexif12_0.6.21-2.1_amd64.deb and company... Removing file: ftp.de.debian.org_debian/qemu-kvm_2.10.0+dfsg-2_amd64.deb and company... Removing file: ftp.de.debian.org_debian/qemu-system-common_2.10.0+dfsg-2_amd64.deb and company... Removing file: ftp.de.debian.org_debian/qemu-system-x86_2.10.0+dfsg-2_amd64.deb and company... Removing file: ftp.de.debian.org_debian/qemu-utils_2.10.0+dfsg-2_amd64.deb and company... $ ls -la /var/cache/apt-cacher/packages/ftp.de.debian.org_debian drwxr-xr-x 2 www-data www-data 4096 Okt 13 15:01 . drwxr-xr-x 3 www-data www-data 4096 Okt 13 14:53 ..

