curl -s https://syncthing.net/release-key.txt | sudo apt-key add -
result is
gpg: no valid OpenPGP data found.
echo "deb https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list works
sudo apt-get update gives:
Ign:7 https://apt.syncthing.net syncthing/stable all Packages Ign:8 https://apt.syncthing.net syncthing/stable Translation-en Reading package lists... Done W: The repository 'https://apt.syncthing.net syncthing Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. E: Failed to fetch https://apt.syncthing.net/dists/syncthing/stable/binary-armel/Packages E: Some index files failed to download. They have been ignored, or old ones used instead.
I am not so advanced to understand what is wrong, please help.
Okay, I already had a feeling the certificate store was the culprit.
It seems you’re missing a root certificate store, which curl requires to verify https certificates. Or maybe your curl installation is only missing permissions to access it.
Can you verify if the file /etc/ssl/certs/ca-certificates.crt and the directory /etc/ssl/certs exists and if they do, what are their permissions?
I was missing whole ca-certificates package, installing it with
sudo apt-get install --reinstall ca-certificates solved the issue.
All commands works now and I have 1.2.0. Thank you Max.