🐛The cloudflared package cannot be installed via apt and deb packages.
Describe the bug Installation of the cloudflared package is not possible, the download speed is 2.6 PB/sec. Packets are ignored.
To Reproduce
Steps to reproduce the behavior:
1. sudo mkdir -p --mode=0755 /usr/share/keyrings curl -fsSL https://pkg.cloudflare.com/cloudflare-main.gpg | sudo tee /usr/share/keyrings/cloudflare-main.gpg >/dev/null
2. echo "deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared any main" | sudo tee /etc/apt/sources.list.d/cloudflared.list
3. sudo apt-get update && sudo apt-get install cloudflared
Expected behavior Installing the cloudflared package.
Environment and versions
- OS: Ubuntu 24.04.3 LTS x86_64
- Architecture: x86_64
- Version: 24.04.3 LTS x86_64
Logs and errors
Isudo apt install cloudflared
[sudo] password for searxng_user:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
cloudflared
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 20.2 MB of archives.
After this operation, 41.2 MB of additional disk space will be used.
Get:1 https://pkg.cloudflare.com/cloudflared noble/main amd64 cloudflared amd64 2025.10.0 [20.2 MB]
Ign:1 https://pkg.cloudflare.com/cloudflared noble/main amd64 cloudflared amd64 2025.10.0
Get:1 https://pkg.cloudflare.com/cloudflared noble/main amd64 cloudflared amd64 2025.10.0 [20.2 MB]
Ign:1 https://pkg.cloudflare.com/cloudflared noble/main amd64 cloudflared amd64 2025.10.0
Get:1 https://pkg.cloudflare.com/cloudflared noble/main amd64 cloudflared amd64 2025.10.0 [20.2 MB]
Ign:1 https://pkg.cloudflare.com/cloudflared noble/main amd64 cloudflared amd64 2025.10.0
Get:1 https://pkg.cloudflare.com/cloudflared noble/main amd64 cloudflared amd64 2025.10.0 [20.2 MB]
Err:1 https://pkg.cloudflare.com/cloudflared noble/main amd64 cloudflared amd64 2025.10.0
Connection timed out [IP: 2a06:98c1:3123:8000:: 443]
E: Failed to fetch https://pkg.cloudflare.com/cloudflared/pool/main/c/cloudflared/cloudflared_2025.10.0_amd64.deb Connection timed out [IP: 2a06:98c1:3123:8000:: 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Additional context Perhaps it's because cloudflare is blocked in my country, and the problem can be solved by installing a vpn or proxy. But I do not know how to implement it. I will be glad of any help, thanks in advance.
Does your network support IPv6? If not, try to force apt to use IPv4 first:
sudo apt-get -o Acquire::ForceIPv4=true update
sudo apt-get -o Acquire::ForceIPv4=true install cloudflared
Otherwise, if you need a proxy or VPN just to download the package from pkg.cloudflare.com, it is highly likely that your network also blocks the Cloudflare edge IPs. This means that even after you successfully install cloudflared, the service itself will likely fail to establish its outbound connections to the Cloudflare network, hence the cloudflared service traffic (which uses HTTP/2 and QUIC) would also need to be routed through your VPN or proxy.