cloudflare / cloudflared

Cloudflare Tunnel client (formerly Argo Tunnel)
https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-guide
Apache License 2.0
9.39k stars 837 forks source link

📝No install instructions for Linux #1347

Open jackgray-nycbs opened 3 weeks ago

jackgray-nycbs commented 3 weeks ago

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.
cyanidium commented 5 days ago

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.

keshsad commented 3 days ago

I'm on an intel nuc with Ubuntu 24.04.1 LTS x86_64 and did the following:

  1. Save the latest release of cloudflared compiled for Linux x86_64 architecture as cloudflared.deb in current directory
curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb
  1. 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

houtianze commented 2 days ago

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