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.
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.
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?