cloudflared
cloudflared copied to clipboard
🐛The repository 'https://pkg.cloudflareclient.com lunar Release' does not have a Release file.
when I try to update the app sudo apt update
Then this issue happened.
Hit:6 http://archive.ubuntu.com/ubuntu lunar-updates InRelease
Err:7 https://pkg.cloudflareclient.com lunar Release
404 Not Found [IP: 104.19.236.24 443]
Hit:8 http://archive.ubuntu.com/ubuntu lunar-backports InRelease
Hit:9 http://archive.ubuntu.com/ubuntu lunar-security InRelease
Reading package lists... Done
E: The repository 'https://pkg.cloudflareclient.com lunar 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.
How to fix it?
As a workaround, you can edit the apt sources file and replace lunar with jammy.
Can you please tell how to fix this error
@RajAdwaita You can follow https://pkg.cloudflare.com/index.html#debian-bookworm. This does assume that you are on a Debian based OS.
tl;dr run:
echo "deb [signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ jammy main" | sudo tee /etc/apt/sources.list.d/cloudflare-client.list
I ran into this when trying to install the Cloudflare WARP client from https://pkg.cloudflareclient.com/ on Ubuntu 23.10 (mantic). Yes, as of now (17 June 2024), the docs state that the supported Ubuntu versions are only Jammy (22.04) and Focal (20.04), which means the official support for last two Ubuntu versions is missing, but I was able to successfully install and run it on a newer, unsupported, version (23.10) with the suggestion from @Cyb3r-Jak3:
As a workaround, you can edit the apt sources file and replace
lunarwithjammy.
Can you please tell how to fix this error
To elaborate on this a little more, if you're installing the client and you follow the instructions and run:
echo "deb [signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/cloudflare-client.list
This adds your current Ubuntu codename (via lsb_release -cs, e.g. lunar or mantic) to the repository, which then complains if you run
sudo apt-get update && sudo apt-get install cloudflare-warp
because the newer version isn't officially supported:
E: The repository 'https://pkg.cloudflareclient.com mantic 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.
To fix this you need to manually use the latest supported codename in the command, which is jammy as of now, so run this instead:
echo "deb [signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ jammy main" | sudo tee /etc/apt/sources.list.d/cloudflare-client.list
Running sudo apt-get update && sudo apt-get install cloudflare-warp afterwards should work (at least on Ubuntu 23.10).