#Cloudflared cannot install

36 messages · Page 1 of 1 (latest)

subtle hinge
#

Trying to install the connector using the official cloudflare steps on an ubuntu 24 machine.

It continously says that a pubkey is missing and therefore fails the installation.

#

full error:
W: GPG error: https://pkg.cloudflare.com/cloudflared noble InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 254B391D8CACCBF8 NO_PUBKEY 8A682D308D4E5E73
E: The repository 'https://pkg.cloudflare.com/cloudflared noble InRelease' is not signed.
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.

lofty nebula
subtle hinge
lofty nebula
subtle hinge
lofty nebula
subtle hinge
#

yup it does

#

is the file supposed to look corrupted lmao?

lofty nebula
#

yes

subtle hinge
#

A bunch of ? emojis in there

#

okay good

lofty nebula
#

It's a binary file

subtle hinge
#

yeah i figured

#

really strange why this won't work.

#

Should i just manually add the missing key to apt?

#
sudo apt-get update && sudo apt-get install cloudflared
Hit:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu noble InRelease                                                      
Hit:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease                                              
Hit:4 https://packages.wazuh.com/4.x/apt stable InRelease                                                   
Hit:5 https://deb.nodesource.com/node_22.x nodistro InRelease                                               
Hit:6 http://archive.ubuntu.com/ubuntu noble-backports InRelease                          
Get:7 https://pkg.cloudflare.com/cloudflared any InRelease [5039 B] 
Get:8 https://packages.doppler.com/public/cli/deb/debian any-version InRelease [11.9 kB]
Err:7 https://pkg.cloudflare.com/cloudflared any InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 254B391D8CACCBF8 NO_PUBKEY 8A682D308D4E5E73
Reading package lists... Done
W: GPG error: https://pkg.cloudflare.com/cloudflared any InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 254B391D8CACCBF8 NO_PUBKEY 8A682D308D4E5E73
E: The repository 'https://pkg.cloudflare.com/cloudflared any InRelease' is not signed.
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.```
lofty nebula
#

Are both files owned by root with the correct permissions?

#

gpg --show-keys /usr/share/keyrings/cloudflare-main.gpg What does that say?

#

My only idea is that the file permissions of the key aren't set correctly

subtle hinge
#

pub rsa4096 2025-10-23 [SC]
CC94B39C77AE7342A68B89628A682D308D4E5E73
uid CloudFlare Software Packaging 2025 help@cloudflare.com
sub rsa4096 2025-10-23 [E]

#

i will check permissios now

#

my permission for the .gpg file is 640. Is that okay?

lofty nebula
#

erm, i have no idea if other read is needed. But all the files in that folder have 644 for me, so I'd try that

subtle hinge
#

okay i will try.

#

well setting it to 644 worked.

#

thank you so much

#

holy that took longer than expected

#

thanks man!!!!

lofty nebula
# subtle hinge thanks man!!!!

You might want to check if they keyrings folder has the correct permissions so you don't run into the same problem again later

subtle hinge
#

Btw laudian, sorry to ask.
I wanted to ask for some security advice.

My bot listens to telegram requests at port 3000. i setup an endpoint to localhost:3000.

I setup WAF to only allow post requests, only allowed IPs of telegram. Is this safe enough? Am i missing something?

lofty nebula
subtle hinge
#

awesome! Is there any other thing i should enable for more security?

lofty nebula
#

If Telegram doesn't offer any further authentication, limiting access to their IPs seems like a good place to start.