https://apt.syncthing.net/ instructions not working on Ubuntu 24.04

I’ve tried upgrading a machine running the included syncthing-version that served by the Ubuntu repository. I have tried serveral times using the instructions on https://apt.syncthing.net/ but I can’t get it to work.

No errors getting the pgp keys or generating the syncthing.list in /etc/apt/sources.d.list/. Files created and look ok. Running sudo apt update and sudo apt upgrade does not update my syncthing v1 to v2. If I uninstall syncthing v1 and tries to install syncthing again, Ubuntu 24.04 is still fetching v1 from Ubuntu repositories. I have checked the output after apt update and the apt.syncthing.net is listed.

Have done everything after your instructions, how come it doesn’t work?

You need to use the “stable-v2” channel, as described on that page. The older “stable” channel is deliberately limited to version 1.x, so that APT users can make a concious choice for the migration.

Also, it is /etc/apt/sources.list.d/, not ending with .list as you wrote it. Make sure to have that correct, otherwise you may have conflicting duplicates.

As stated I’ve done the instructions several times, including checking that files have been generated correctly:

To allow the system to check the packages authenticity, you need to provide the release key.

# Add the release PGP keys:
sudo mkdir -p /etc/apt/keyrings
sudo curl -L -o /etc/apt/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg

The stable-v2 channel is updated with stable release builds, usually every first Tuesday of the month.

# Add the "stable-v2" channel to your APT sources:
echo "deb [signed-by=/etc/apt/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable-v2" | sudo tee /etc/apt/sources.list.d/syncthing.list

And they are supposed to give me access to stable-v2. It worked fine on a debian based system (openmediavault), but not on Ubuntu 24.04.

Your problem could also be related to the Troubleshouting entry “Distribution Package Preferred Over This Version” on that page.

Thank you, that solved it.

Maybe we should set a higher epoch version on our upstream-provided packages @calmh? Usually they will be newer than the distro and should be preferred by default?

I’m confused why that would be necessary or help? I run Ubuntu in a bunch of places and have never had to go through these dances…

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.