This question already has an answer here:

I tried to install syncthing on Debian Jessie (i386 architecture) following these steps:

curl -s https://syncthing.net/release-key.txt | sudo apt-key add -
echo "deb http://apt.syncthing.net/ syncthing release" | sudo tee /etc/apt/sources.list.d/syncthing.list
sudo apt-get update

At this point, apt-get fails with the following message:

W: Failed to fetch http://apt.syncthing.net/dists/syncthing/InRelease Unable to find expected entry 'release/binary-arm64/Packages' in Release file (Wrong sources.list entry or malformed file)

Now, I do have arm64 as a foreign architecture, and syncthing seems to miss packages for it. That shouldn't be a problem, since I only want to install syncthing on my host architecture, i386.

How can I proceed with the installation without removing arm64 from my foreign architectures?

marked as duplicate by Stephen Kitt, Community Aug 24 '16 at 7:51

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Not sure if it will work, but you could try editing the syncthing entry in sources.list to 'deb [arch=i386] http//apt.syncthing.net/ syncthing release' – Paul Nordin Aug 24 '16 at 6:57
  • @PaulNordin Hey, thanks, I didn't know it was possible. It looks like the solution I'm after. I'll try it out when I get back home, but I'm confident it will work. Could you write an answer? – Dmitry Grigoryev Aug 24 '16 at 7:21
  • Nice link. I'll incorporate that into the answer. – Paul Nordin Aug 24 '16 at 7:30

You can specify the architecture for apt to use by modifying the source entry (adding [arch=architecture] or during installation (apt-get install package:architecture). For more information, please refer to Multiarch/HOWTO - Debian Wiki

Since you are having trouble at the apt update stage, it is probably best to try modifying the entry for syncthing in /etc/apt/sources.list to the following:

deb [arch=i386] http://apt.syncthing.net/ syncthing release

Then, retry the update.

Not the answer you're looking for? Browse other questions tagged or ask your own question.