...
for V in $(vzlist -H -o ctid) ; do test -d /vz/private/$V/var/lib/apt/lists && rm -fv $(find /vz/private/$V/var/lib/apt/lists/*Packages* /vz/private/$V/var/lib/apt/lists/*Release* /vz/private/$V/var/lib/apt/lists -type f) /*Sources* ; done
...
From: IBCL BLog.
Originally updated: 2009-10-29