I was trying to install CFEngine3 using the following commands:
wget http://cfengine.com/pub/gpg.key apt-key add gpg.key rm gpg.key add-apt-repository http://cfengine.com/pub/apt apt-get update apt-get install cfengine-community
However, I got the following error:
Failed to fetch http://cfengine.com/pub/apt/dists/precise/Release Unable to find expected entry ‘main/source/Sources’ in Release file (Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old ones used instead.
Apparently this is an open bug. Thankfully, there is an easy work-around. Simply edit /etc/apt/sources.list and comment out the following line (by adding a “#”):
deb-src http://cfengine.com/pub/apt precise main
You can still install the binary packages without the src repository.