tailscale: `tailscale update` is not compatible with Deb 822 style sources
What is the issue?
The command to update Tailscale on Debian systems tries to run apt-get update with only the Tailscale repository. However it is only looking for the expected classic repo.list style file https://github.com/tailscale/tailscale/blob/02c6af2a69a8d33b2841fa094fa1d29bd16dd099/clientupdate/clientupdate.go#L428, if you use a newer Deb 822 style file https://repolib.readthedocs.io/en/latest/index.html which named repo.sources it fails as it is unable to find the file.
$ sudo tailscale update
This will update Tailscale from 1.62.0 to 1.64.0. Continue? [y/n] y
open /etc/apt/sources.list.d/tailscale.list: no such file or directory
Steps to reproduce
Install Tailscale using a Deb 822 style file for example
X-Repolib-Name: tailscale
Types: deb
URIs: https://pkgs.tailscale.com/stable/ubuntu
Suites: jammy
Components: main
Signed-By: /etc/apt/keyrings/tailscale.gpg
When an update is available run tailscale update
Are there any recent changes that introduced the issue?
No response
OS
Linux
OS version
Ubuntu 22.04
Tailscale version
1.62 1.64
Other software
No response
Bug report
BUG-dc901c8a61efc7d44a8ffd7adfd3efa04c9998230924a1547702243203fe98bd-20240418190354Z-d026f66c2f6eb607
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 15 (6 by maintainers)
If it’s a possibility to implement I have another thought, perhaps a bit beyond this issue but a thought. Why not switch your own install script to 822 format? They aren’t pushing it very hard but it is eventually intended to become the default and the old .list style will be deprecated.
Support was added in apt 1.1 which came out almost a decade ago in 2015 which means all non EOL Debian and derivatives support it. You could get rid of the legacy path in your install script, along with apt-key, third party keyrings became the preferred method around Bullseye but we’re supported prior especially with 822. It is designed to be more easily machine parsable and human readable. Lots of reasons it should just become the default apps go to instead of .list style.
@stephanGarland that’s a pretty good suggestion! We’d also have to update https://github.com/tailscale/tailscale/blob/12ad1423d0fd9db3df682de8f099d871a7f35928/clientupdate/clientupdate.go#L421-L425 where we switch the release track name in the file if requested. So it at least need to implement parsing for DEB822 formats.