cloudflared icon indicating copy to clipboard operation
cloudflared copied to clipboard

Build packages for Ubuntu Jammy Jellyfish (22.04)

Open F21 opened this issue 2 years ago • 14 comments

Describe the feature you'd like I would like to see Ubuntu Jammy Jellyfish (22.04) added as a supported version in Cloudflare's package repositories (https://pkg.cloudflare.com/)

Describe alternatives you've considered N/A

Additional context It would be nice to have a repo for jammy as it is a LTS release, since I prefer to install cloudflared using my package manager and have the package manager handle updates for cloudflared.

F21 avatar May 08 '22 23:05 F21

@F21 , we’re working on adding this and you should see it soon!

sudarshan-reddy avatar May 09 '22 05:05 sudarshan-reddy

Hi, Any ETA yet?

gillesdupont9 avatar May 30 '22 07:05 gillesdupont9

Any specific date?

rotycha avatar Jun 09 '22 14:06 rotycha

Any updates?

maxpain avatar Jun 09 '22 23:06 maxpain

@maxpain Per #663, it's in internal beta and could be available in a few weeks (@sudarshan-reddy couldn't promise a date).

F21 avatar Jun 09 '22 23:06 F21

Looking forward to this. We use Ansible to manage our deployments and updates, and rely on apt for package management. Downloading binaries / .deb files directly isn't ideal in an automated environment.

binaryfire avatar Jun 16 '22 03:06 binaryfire

You can now try out our beta pkg downloader if you want! (remember to add sudo wherever necessary)

mkdir -p --mode=0755 /usr/share/keyrings
curl https://pkg-beta.try.cloudflare.com/cloudflare-main.gpg -o /usr/share/keyrings/cloudflare-main.gpg
echo 'deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg-beta.try.cloudflare.com/cloudflared jammy main' >  /etc/apt/sources.list.d/cloudflared.list
apt-get update
 
apt-get install cloudflared

Let us know if you run into any problems.

This will also be available in pkg.cloudflare.com soon.

sudarshan-reddy avatar Jun 23 '22 13:06 sudarshan-reddy

Maybe change this webpage https://pkg.cloudflareclient.com/install so that it doesn't say that Jammy is a supported release until it actually is. Or indicate that it's coming soon - to avoid frustration.

stephenogg avatar Jun 26 '22 17:06 stephenogg

@stephenogg as a note, https://pkg.cloudflareclient.com/install is for the Warp Desktop Client and not cloudflared specifically. If all goes well with the testing of the new beta pkg downloader - we hope to consolidate these two repos to avoid confusion in the future.

Thank you for the feedback. We're looking forward to bringing this to General Availability.

abelinkinbio avatar Jun 26 '22 19:06 abelinkinbio

https://pkg.cloudflareclient.com/install also lists Bionic (Ubuntu 18.04) as supported but I cannot find the cloudflared package after adding the repo: $ apt-cache search cloudflared

Will this be addressed here too? Thanks.

nickweavers avatar Jul 11 '22 15:07 nickweavers

To re-iterate what @abelinkinbio said,

as a note, https://pkg.cloudflareclient.com/install is for the Warp Desktop Client and not cloudflared specifically. If all goes well with the testing of the new beta pkg downloader - we hope to consolidate these two repos to avoid confusion in the future.

Follow https://github.com/cloudflare/cloudflared/issues/640#issuecomment-1164391371 for cloudflared installs (Note: This is a beta for now)

sudarshan-reddy avatar Jul 11 '22 15:07 sudarshan-reddy

Error why setting beta cloudflared on 22.04 jammy:

Setting up cloudflared (2022.7.1) ...
ln: failed to create symbolic link '/usr/local/bin/cloudflared': No such file or directory
dpkg: error processing package cloudflared (--configure):
 installed cloudflared package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 cloudflared
E: Sub-process /usr/bin/dpkg returned an error code (1)```

xxxpsyduck avatar Jul 12 '22 07:07 xxxpsyduck

That's being tracked here: https://github.com/cloudflare/cloudflared/issues/686. Did you already have a cloudflared installed as a service?

sudarshan-reddy avatar Jul 12 '22 10:07 sudarshan-reddy

That's being tracked here: #686. Did you already have a cloudflared installed as a service?

No I don't

xxxpsyduck avatar Jul 13 '22 02:07 xxxpsyduck

https://pkg.cloudflare.com/#ubuntu-jammy should work now.

sudarshan-reddy avatar Aug 11 '22 13:08 sudarshan-reddy

i get this error

N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://pkg.cloudflare.com/cloudflared jammy InRelease' doesn't support architecture 'i386'

911realdeb avatar Oct 23 '22 12:10 911realdeb

i get this error when trying to install

Setting up cloudflared (2022.11.1) ...
ln: failed to create symbolic link '/usr/local/bin/cloudflared': No such file or directory
dpkg: error processing package cloudflared (--configure):
 installed cloudflared package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 cloudflared
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

phntom avatar Dec 09 '22 10:12 phntom

just an fyi, can get it to work if I run sudo mkdir /usr/local/bin

phntom avatar Dec 09 '22 10:12 phntom

To fix:

Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://pkg.cloudflare.com/cloudflared jammy InRelease' doesn't support architecture 'i386'

Run:

sudo nano /etc/apt/sources.list.d/cloudflared.list

Change to:

deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared jammy main

arch=amd64 tells it to only grab 64bit.

war59312 avatar Feb 14 '23 20:02 war59312