Closed retournerai closed 2 years ago
The command you are running contains $ signs which indicate to the shell that you want it to replace them with variables. Due to this, the filename that dpkg
actually receives is invalid. Please find the correct filename using ls
and use that for the dpkg
command.
As an example:
$ curl -OL https://github.com/WireGuard/wireguard-vyatta-ubnt/releases/download/1.0.20210606-2/e50-v2-v1.0.20210606-v1.0.20210914.deb
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 646 100 646 0 0 62 0 0:00:10 0:00:10 --:--:-- 166
100 150k 100 150k 0 0 14264 0 0:00:10 0:00:10 --:--:-- 14264
$ ls
e50-v2-v1.0.20210606-v1.0.20210914.deb
$ sudo dpkg -i e50-v2-v1.0.20210606-v1.0.20210914.deb
sudo dpkg -i $1.0.20210606-2-$e50-v1-v1.0.20210606-v1.0.20210914.deb dpkg-deb: error: 'histappend=1.0.20210606-2--v1-v1.0.20210606-v1.0.20210914.deb' is not a debian format archive
For my EdgeRouter X this is the right file but it does not work.