help cloudflare tunnel
alfonsop123@raspberrypi:~ $ curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amdhf &&sudo dpkg -i cloudflared.deb &&sudo cloudflared service install priv key?
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 9 100 9 0 0 19 0 --:--:-- --:--:-- --:--:-- 19
dpkg-deb: error: unexpected end of file in archive magic version number in cloudflared.deb
dpkg: error processing archive cloudflared.deb (--install):
dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
cloudflared.deb
how do i fix it its a rpi4
3 Replies
amdhf doesn't exist, only armhf does, and if you're trying to install it, you probably want the deb file too, so this link:
https://github.com/cloudflare/cloudflared/releases/download/2024.3.0/cloudflared-linux-armhf.deb
Are you sure your pi wants that though? iirc pi is a bit of a mess. You can try running dpkg --print-architecture
to see which one you needalfonsop123@raspberrypi:~ $ curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-armhf &&sudo dpkg -i cloudflared.deb &&sudo cloudflared service install priv key
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 31.7M 100 31.7M 0 0 4421k 0 0:00:07 0:00:07 --:--:-- 3927k
dpkg-deb: error: 'cloudflared.deb' is not a Debian format archive
dpkg: error processing archive cloudflared.deb (--install):
dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
cloudflared.deb
raspberry pi os
you're still missing the .deb
ex:
curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-armhf.deb && sudo dpkg -i cloudflared.deb