Score:0

cloudflared: command not found in Ubuntu

us flag

I have been trying to create a Cloudflare Tunnel with cloudflared on Ubuntu (WSL). I followed the link redirected from here and these are what I did:

echo 'deb http://pkg.cloudflare.com/ focal main' |
> sudo tee /etc/apt/sources.list.d/cloudflare-main.list
deb http://pkg.cloudflare.com/ focal main   <---- result of running above command.

Imported GPG key

curl -C - https://pkg.cloudflare.com/pubkey.gpg | sudo apt-key add -
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   967  100   967    0     0   1017      0 --:--:-- --:--:-- --:--:--  1016
OK  <---- result from running above command.

Before that I had updated repository GPG key with:

curl -C - https://pkg.cloudflare.com/pubkey.gpg | sudo apt-key add -

and

sudo apt-key del 8e5f9a5d

And finally:

sudo apt-get update
Hit:1 https://download.docker.com/linux/ubuntu focal InRelease                                                                                                
Ign:2 http://pkg.cloudflare.com focal InRelease                                                                                                               
Hit:3 http://security.ubuntu.com/ubuntu focal-security InRelease                                                               
Hit:4 http://pkg.cloudflare.com focal Release 
Hit:5 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:7 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:8 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists... Done  <--- result from above command.

However, when I hit cloudflared update command, it returns cloudflared: command not found prompt. Any feedbacks and suggestions would be highly appreciated on where I could have gone wrong.

Pilot6 avatar
cn flag
You've added the source but didn't install it.
Pilot6 avatar
cn flag
`sudo apt install cloudflare` is probably missing.
Sebastian avatar
us flag
@Pilot6 when I hit the above command I get ` Unable to locate package cloudflare`.
Liso avatar
sd flag
`sudo apt install cloudflared`.
Sebastian avatar
us flag
@Liso, cheers. That works
Score:1
ru flag

cloudflared needs to be installed.

You probably added its source but didn't install it yet.

As a matter of fact, run the following command to install it:

~$ sudo apt-get install cloudflared
Sebastian avatar
us flag
Thank you, that worked as suggested by @Liso and you.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.