WireGuard / wireguard-vyatta-ubnt

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

Package Architecture Error for ER-X/ER-X SFP #6

Closed dc361 closed 4 years ago

dc361 commented 4 years ago

As reported by REDFIVE on the ubnt forum and verified by myself, when you try to install the latest version (v1) on an ER-X or ER-X-SFP your get the following error:

sudo dpkg -i e50-v1-v1.0.20200429-v1.0.20200319.deb
dpkg: error processing e50-v1-v1.0.20200429-v1.0.20200319.deb (--install):
 package architecture (mips) does not match system (mipsel)
Errors were encountered while processing:
 e50-v1-v1.0.20200429-v1.0.20200319.deb
sffetlio commented 4 years ago

Same for v2

sudo dpkg -i e50-v2-v1.0.20200429-v1.0.20200319.deb
dpkg: error processing archive e50-v2-v1.0.20200429-v1.0.20200319.deb (--install):
 package architecture (mips) does not match system (mipsel)
Errors were encountered while processing:
 e50-v2-v1.0.20200429-v1.0.20200319.deb
FossoresLP commented 4 years ago

Thanks for reporting the issue. I have created a fix. Could you please try the following packages? v1: https://gitlab.com/FossoresLP/wireguard-vyatta-ubnt/-/jobs/537216302/artifacts/raw/e50-v1-v1.0.20200429-v1.0.20200319.deb v2: https://gitlab.com/FossoresLP/wireguard-vyatta-ubnt/-/jobs/537216306/artifacts/raw/e50-v2-v1.0.20200429-v1.0.20200319.deb

FossoresLP commented 4 years ago

Sorry, just noticed that myself. I made a typo in the sed command that should replace the architecture. The CI pipeline is currently running. I will post the fixed packages here shortly.

dc361 commented 4 years ago

Not yet:

 sudo dpkg -i e50-v1-v1.0.20200429-v1.0.20200319.deb
dpkg: warning: parsing file '/var/lib/dpkg/tmp.ci/control' near line 4 package 'wireguard':
 'PACKAGE_ARCH' is not a valid architecture name: character `_' not allowed (only letters, digits and characters `-')
dpkg: error processing e50-v1-v1.0.20200429-v1.0.20200319.deb (--install):
 package architecture (PACKAGE_ARCH) does not match system (mipsel)
Errors were encountered while processing:
 e50-v1-v1.0.20200429-v1.0.20200319.deb
droidforever commented 4 years ago

Same for me on v2 dpkg: warning: parsing file '/var/lib/dpkg/tmp.ci/control' near line 4 package 'wireguard:PACKAGE_ARCH': 'PACKAGEARCH' is not a valid architecture name: character '' not allowed (only letters, digits and characters '-') dpkg: error processing archive wg (--install): package architecture (PACKAGE_ARCH) does not match system (mipsel) Errors were encountered while processing: e50-v2-v1.0.20200429-v1.0.20200319.deb

zx2c4 commented 4 years ago

The latest on https://github.com/WireGuard/wireguard-vyatta-ubnt/releases should now work.

phunkyThylacine commented 2 years ago

Edited: I am an idiot and was using the wrong version.

Check your version people. I am off to eat humble pie.