ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Using dpkg to install on Raspberry Pi

    IT Discussion
    raspian raspberry pi 3 raspberry pi dpkp deb
    4
    32
    8.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • gjacobseG
      gjacobse
      last edited by scottalanmiller

      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.

      thwrT 1 Reply Last reply Reply Quote 3
      • gjacobseG
        gjacobse
        last edited by

        Changed topic as WGET works fine;

        1 Reply Last reply Reply Quote 0
        • stacksofplatesS
          stacksofplates
          last edited by

          Can you use gdebi?

          gjacobseG 1 Reply Last reply Reply Quote 0
          • gjacobseG
            gjacobse @stacksofplates
            last edited by

            @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.
            
            stacksofplatesS 1 Reply Last reply Reply Quote 0
            • stacksofplatesS
              stacksofplates @gjacobse
              last edited by

              @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.

              gjacobseG 1 Reply Last reply Reply Quote 0
              • gjacobseG
                gjacobse @stacksofplates
                last edited by

                @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,...

                1 Reply Last reply Reply Quote 1
                • stacksofplatesS
                  stacksofplates
                  last edited by

                  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'
                  
                  1 Reply Last reply Reply Quote 0
                  • gjacobseG
                    gjacobse
                    last edited by

                    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:~ $
                    
                    thwrT 1 Reply Last reply Reply Quote 0
                    • gjacobseG
                      gjacobse
                      last edited by

                      Guess it's not meant to be for now. Meh,.. come back tomorrow and poke at it. I hear the TV calling.

                      1 Reply Last reply Reply Quote 0
                      • thwrT
                        thwr @gjacobse
                        last edited by thwr

                        @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 😉

                        1 Reply Last reply Reply Quote 4
                        • thwrT
                          thwr @gjacobse
                          last edited by

                          @gjacobse said in Using dpkg to install on Raspberry Pi:

                          ...
                          Wrong architecture 'i386'
                          ...
                          

                          Oh, you already found the failure 😛

                          stacksofplatesS 1 Reply Last reply Reply Quote 2
                          • stacksofplatesS
                            stacksofplates @thwr
                            last edited by

                            @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.

                            1 Reply Last reply Reply Quote 1
                            • gjacobseG
                              gjacobse
                              last edited by

                              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

                              1 Reply Last reply Reply Quote 0
                              • A
                                aidan_walsh
                                last edited by

                                According to this article you should be able to compile it for ARM pretty easily on the Pi.

                                gjacobseG 1 Reply Last reply Reply Quote 1
                                • gjacobseG
                                  gjacobse @aidan_walsh
                                  last edited by

                                  @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.

                                  1 Reply Last reply Reply Quote 0
                                  • gjacobseG
                                    gjacobse
                                    last edited by

                                    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
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • A
                                      aidan_walsh
                                      last edited by

                                      Missing a dependency?

                                      gjacobseG 1 Reply Last reply Reply Quote 0
                                      • gjacobseG
                                        gjacobse @aidan_walsh
                                        last edited by

                                        @aidan_walsh said in Using dpkg to install on Raspberry Pi:

                                        Missing a dependency?

                                        Sudo apt-get update
                                        

                                        was run prior to starting

                                        1 Reply Last reply Reply Quote 0
                                        • A
                                          aidan_walsh
                                          last edited by

                                          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
                                          

                                          ?

                                          gjacobseG 1 Reply Last reply Reply Quote 0
                                          • gjacobseG
                                            gjacobse @aidan_walsh
                                            last edited by

                                            @aidan_walsh

                                            Yes - that was done. Went line by line.

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post