strange apt-get problem

Recently, I got an interesting bug email telling me, that apt-get would not want to update from my repository with the following warning:

W: Failed to fetch http://www.beathovn.de/debian/dists/stable/Release
Unable to find expected entry main/binary-amd64/Packages in Meta-index file (malformed Release file?)

It turned out, that I really have to have a Packages file in the above mentioned location and not only the (seemingly much more common) Packages.gz. Couldn't find any documentation on that, though (besides a bugreport mentioning just that: #481129). The funny thing is, that my usual official Debian repository server also does not have the uncompressed file, only the compressed one. And, of course, apt-get works nicely. Maybe it's because their Release file mentions the uncompressed file, although it is not actually in the directory??? Magic...

Anyway, I put up the additional uncompressed Packages file and apt-get seems happy now...

 

secure apt now working

So finally, yesterday, I found the problem, why apt-get would still complain about not being able to verify the package signature and fixed it. It was simply, that I had put both Release and Release.gpg in the wrong place. These files should reside in /dists/stable and not in the top-level directory. (And that fact was actually described here.) Now things seem to be working correctly.