WireGuard / wireguard-vyatta-ubnt

WireGuard for Ubiquiti Devices
https://www.wireguard.com/
GNU General Public License v3.0
1.45k stars 68 forks source link

Unable to install #142

Closed darknet1944 closed 1 year ago

darknet1944 commented 1 year ago

EdgeRouter X Currently running EdgeOSv2.0.9-hotfix.4 Download from repository via curl command.

ubnt@EdgeRouter-X-5-Port:~$ sudo dpkg -i e50-v2-v1.0.20220627-v1.0.20210914.deb
dpkg-deb: error: 'e50-v2-v1.0.20220627-v1.0.20210914.deb' is not a debian format archive dpkg: error processing archive e50-v2-v1.0.20220627-v1.0.20210914.deb (--install): subprocess dpkg-deb --control returned error exit status 2 Errors were encountered while processing: e50-v2-v1.0.20220627-v1.0.20210914.deb Please advise.

dc361 commented 1 year ago

What curl command line did you use to download the package. I just tried re-installing that version on an ER-X but I scp'd the file that I had previously downloaded from my windows machine.

vchrizz commented 1 year ago

I guess you should use -L or --location option for curl to properly follow the redirect(s) on github. Like for example:

curl -L -o e50-v2-v1.0.20220627-v1.0.20210914.deb https://github.com/WireGuard/wireguard-vyatta-ubnt/releases/download/1.0.20220627-1/e50-v2-v1.0.20220627-v1.0.20210914.deb
sudo dpkg -i e50-v2-v1.0.20220627-v1.0.20210914.deb

from the manpage of curl:

-L, --location (HTTP) If the server reports that the requested page has moved to a different location (indicated with a Location: header and a 3XX response code), this option will make curl redo the request on the new place.

darknet1944 commented 1 year ago

@vchrizz - Thank you! your instructions worked!

darknet1944 commented 1 year ago

Using command line provided by vchrizz I was able to install wireguard. Thank you. Issue is closed.