📝No install instructions for Linux
The only resource I could find to install cloudflared on linux is in a tutorial for creating a local tunnel. The repository does not find a compatible version for Ubuntu 24 LTS.
The Linux download link in the README of this repository returns 404.
sudo apt-get update && sudo apt-get install cloudflared
Hit:1 https://download.docker.com/linux/ubuntu noble InRelease
Hit:2 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:3 https://pkg.cloudflare.com/cloudflared noble InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu noble InRelease
Get:5 http://us.archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
Hit:6 http://us.archive.ubuntu.com/ubuntu noble-backports InRelease
Err:7 https://pkg.cloudflare.com/cloudflared noble Release
404 Not Found [IP: 104.18.0.118 443]
Get:8 http://us.archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [623 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [710 kB]
Reading package lists... Done
E: The repository 'https://pkg.cloudflare.com/cloudflared noble Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Linux downloads are listed here. On Ubuntu you'll want the .deb file or to follow the instructions in the linux sectuin about adding the Cloudflare Package Repository.
I'm on an intel nuc with Ubuntu 24.04.1 LTS x86_64 and did the following:
- Save the latest release of cloudflared compiled for Linux x86_64 architecture as
cloudflared.debin current directory
curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb
- Run Debian's package manager to install the package file that was just downloaded
sudo dpkg -i cloudflared.deb
You can verify it's working with `cloudflared version`, Hope that helps
The line E: The repository 'https://pkg.cloudflare.com/cloudflared noble Release' does not have a Release file. indicates that the cloudflared repository doesn't support Ubuntu 24.04 LTS noble yet, as a workaround I changed to use the previous Ubuntu LTS code name jammy instead for /etc/apt/sources.list.d/cloudflared.list:
deb [signed-by=/etc/apt/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared jammy main
On the other hand, could the repository maintainer for for cloudflared please help to update the repository to support Ubuntu noble release?
@jackgray-nycbs FYI
Yes you can workaround by using the deb file but you lose the ability to do auto-upgrade via apt. I'd suggest cloudflared repository maintainers to look into this issue, since Ubuntu 24.04 is being adopted as the next LTS version.
Instructions have been updated on Cloudflare package repository, see here: https://pkg.cloudflare.com/index.html . It now contains instructions for Ubuntu 24.04 (and it works).