Using dpkg to install on Raspberry Pi
-
Trying to install the WSPR - Weak Signal Propagation Report software on the rPi3 and running into a small error.
pi@raspberrypi:~ $ sudo dpkg --instdir=. -i wspr_2.00r1714_i386.deb dpkg-deb: error: `wspr_2.00r1714_i386.deb' is not a debian format archive dpkg: error processing archive wspr_2.00r1714_i386.deb (--install): subprocess dpkg-deb --control returned error exit status 2 Errors were encountered while processing: wspr_2.00r1714_i386.deb
Pretty sure @scottalanmiller (or others) can spot the issue in a moment,.. but I'm not seeing it.
Downloading the package doesn't take long, as it's only about 2MB.
-
Changed topic as WGET works fine;
-
Can you use gdebi?
-
@stacksofplates said in Using dpkg to install on Raspberry Pi:
Can you use gdebi?
yes
pi@raspberrypi:~ $ sudo gdebi --apt-line wspr_2.00r1714_i386.deb Reading package lists... Done Building dependency tree Reading state information... Done Building data structures... Done Failed to open the software package The package might be corrupted or you are not allowed to open the file. Check the permissions of the file.
-
@gjacobse said in Using dpkg to install on Raspberry Pi:
@stacksofplates said in Using dpkg to install on Raspberry Pi:
Can you use gdebi?
yes
pi@raspberrypi:~ $ sudo gdebi --apt-line wspr_2.00r1714_i386.deb Reading package lists... Done Building dependency tree Reading state information... Done Building data structures... Done Failed to open the software package The package might be corrupted or you are not allowed to open the file. Check the permissions of the file.
I tried to run it with dpkg and it failed for me also, however it was a different error. They might have just packaged it badly.
-
@stacksofplates said in Using dpkg to install on Raspberry Pi:
@gjacobse said in Using dpkg to install on Raspberry Pi:
@stacksofplates said in Using dpkg to install on Raspberry Pi:
Can you use gdebi?
yes
pi@raspberrypi:~ $ sudo gdebi --apt-line wspr_2.00r1714_i386.deb Reading package lists... Done Building dependency tree Reading state information... Done Building data structures... Done Failed to open the software package The package might be corrupted or you are not allowed to open the file. Check the permissions of the file.
I tried to run it with dpkg and it failed for me also, however it was a different error. They might have just packaged it badly.
so may not be the nut behind the keyboard,...
-
Here's what I got:
jhooks@megatron:~/Downloads$ sudo gdebi wspr_2.00r1714_i386.deb [sudo] password for jhooks: Reading package lists... Done Building dependency tree Reading state information... Done Reading state information... Done This package is uninstallable Cannot install 'python-tk:i386'
-
Well there is another package available
pi@raspberrypi:~ $ wget http://physics.princeton.edu/pulsar/K1JT/wspr_2.11r2263_i386.deb --2016-10-26 19:51:40-- http://physics.princeton.edu/pulsar/K1JT/wspr_2.11r2263_i386.deb Resolving physics.princeton.edu (physics.princeton.edu)... 128.112.100.6 Connecting to physics.princeton.edu (physics.princeton.edu)|128.112.100.6|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 648034 (633K) [text/plain] Saving to: ‘wspr_2.11r2263_i386.deb’ wspr_2.11r2263_i386.deb 100%[============================================================>] 632.85K 322KB/s in 2.0s 2016-10-26 19:51:42 (322 KB/s) - ‘wspr_2.11r2263_i386.deb’ saved [648034/648034]
However:
pi@raspberrypi:~ $ sudo gdebi --apt-line wspr_2.11r2263_i386.deb Reading package lists... Done Building dependency tree Reading state information... Done Building data structures... Done This package is uninstallable Wrong architecture 'i386' pi@raspberrypi:~ $
-
Guess it's not meant to be for now. Meh,.. come back tomorrow and poke at it. I hear the TV calling.
-
@gjacobse said in Using dpkg to install on Raspberry Pi:
Trying to install the WSPR - Weak Signal Propagation Report software on the rPi3 and running into a small error.
pi@raspberrypi:~ $ sudo dpkg --instdir=. -i wspr_2.00r1714_i386.deb dpkg-deb: error: `wspr_2.00r1714_i386.deb' is not a debian format archive dpkg: error processing archive wspr_2.00r1714_i386.deb (--install): subprocess dpkg-deb --control returned error exit status 2 Errors were encountered while processing: wspr_2.00r1714_i386.deb
Pretty sure @scottalanmiller (or others) can spot the issue in a moment,.. but I'm not seeing it.
Downloading the package doesn't take long, as it's only about 2MB.
Are you sure you want to install an i386 package on armhf? I don't know the software, but it could be a native compiled binary for x86 as the name suggests. You can't run that directly on ARM (except for some emulation in between like QEMU).
Solution: Use an ARM version
-
@gjacobse said in Using dpkg to install on Raspberry Pi:
... Wrong architecture 'i386' ...
Oh, you already found the failure
-
@thwr said in Using dpkg to install on Raspberry Pi:
@gjacobse said in Using dpkg to install on Raspberry Pi:
... Wrong architecture 'i386' ...
Oh, you already found the failure
I glossed over that ha.
-
Okay so, not likely to get running-
Ah well.. It was a thought. It's not like I don't have several other options on running that software. Just thought it would be interesting to see what I could do with it... Part of the fun - Experimentation
-
According to this article you should be able to compile it for ARM pretty easily on the Pi.
-
@aidan_walsh said in Using dpkg to install on Raspberry Pi:
According to this article you should be able to compile it for ARM pretty easily on the Pi.
Had not found that yet....
Guess I know what I am doing for the next bit...well,.. in between trying to resolve a Windows 8.1 File Explorer issue on (gasp) another MS Surface.
-
My guess is that it didn't compile correctly:
pi@raspberrypi:~/wspr $ ./wspr Traceback (most recent call last): File "wspr.py", line 38, in <module> import Image, ImageTk, ImageDraw ImportError: No module named Image
-
Missing a dependency?
-
@aidan_walsh said in Using dpkg to install on Raspberry Pi:
Missing a dependency?
Sudo apt-get update
was run prior to starting
-
Didi you grab the branch the article refers to or the latest?
And
sudo apt-get install build-essential subversion python2.7-dev python-numpy python-imaging-tk python-pmw libportaudio2 portaudio19-dev libsamplerate0-dev gfortran cl-fftw3 python-dev hamlib-utils
?
-
Yes - that was done. Went line by line.