Ok. So I switched to using apt-cacher-ng for my caching and started to see this bug again.
To fix this, just remove all the Sources, Packages and Translation files from /var/cache/apt-cacher-ng (apt-cacher has the same issues) directory. Example:
DIR=/var/cache/apt-cacher-ng
cd $DIR || exit 1
for file in Release Packages Sources Translation; do
find . -type f -name "*$file*" -exec rm {} \;
done
After that I would be able to run apt-get update and everything would be fine.
Perhaps this bug should include apt-cacher and apt-cacher-ng as they are both part of this problem and they need new logic to update those control files mentioned above.
Ok. So I switched to using apt-cacher-ng for my caching and started to see this bug again.
To fix this, just remove all the Sources, Packages and Translation files from /var/cache/ apt-cacher- ng (apt-cacher has the same issues) directory. Example:
DIR=/var/ cache/apt- cacher- ng
cd $DIR || exit 1
for file in Release Packages Sources Translation; do
find . -type f -name "*$file*" -exec rm {} \;
done
After that I would be able to run apt-get update and everything would be fine.
Perhaps this bug should include apt-cacher and apt-cacher-ng as they are both part of this problem and they need new logic to update those control files mentioned above.