adsb-receiver icon indicating copy to clipboard operation
adsb-receiver copied to clipboard

Bug Fix for installation of ver 3.7.1 of dump1090-fa and piaware

Open abcd567a opened this issue 6 years ago • 0 comments

THE SCRIPT FAILS TO INSTALL dump1090-fa.

Reason: the script builds package of dump1090-fa ver 3.6.3, then tries to install ver 3.7.1, which does not exist, and installation command fails.

cd ${RECEIVER_BUILD_DIRECTORY}/dump1090-fa 2>&1
git clone https://github.com/flightaware/dump1090.git
cd ${RECEIVER_BUILD_DIRECTORY}/dump1090-fa/dump1090 2>&1
dpkg-buildpackage -b
dpkg-deb --build debian/dump1090-fa ..
dpkg-deb: building package 'dump1090-fa' in '../dump1090-fa_3.6.3_armhf.deb'.
... ... ... 
  Entering the dump1090-fa build directory...
  Installing the dump1090-fa package...
dpkg: error: cannot access archive 'dump1090-fa_3.7.1_*.deb': No such file or directory
  Checking that the dump1090-fa package was installed properly...
  INSTALLATION HALTED!
  UNABLE TO INSTALL A REQUIRED PACKAGE.
  SETUP HAS BEEN TERMINATED!
The package "dump1090-fa" could not be installed.
  ------------------------------------------------------------------------------
  Dump1090-fa setup halted.

. .

WORKAROUND

(1) First execute following 3 commands:

sudo apt-get update
sudo apt-get install git
git clone https://github.com/jprochazka/adsb-receiver.git ~/adsb-receiver

.

(2) Next carry out following workaround for dump1090-fa sudo nano ~/adsb-receiver/bash/decoders/dump1090-fa.sh

  1. Ctrl+w, type git pull, press Enter key. Cursor will jump to: git pull Below this line, add following lines: cd ~/adsb-receiver/build/dump1090-fa/dump1090 git checkout v3.7.1 cd ~/adsb-receiver

  2. Ctrl+w, type git clone, press Enter key. Cursor will jump to: git clone https://github.com/flightaware/dump1090.git Below this line, add following 3 lines: cd ~/adsb-receiver/build/dump1090-fa/dump1090 git checkout v3.7.1 cd ~/adsb-receiver

Save (Ctrl+o) and close (Ctrl+x)

. image

.

(3) Next carry out following workaround for Piaware sudo nano ~/adsb-receiver/bash/feeders/piaware.sh

  1. Ctrl+w, type git pull, press Enter key. Cursor will jump to: git pull Below this line, add following lines: cd ~/adsb-receiver/build/piaware_builder git checkout v3.7.1 cd ~/adsb-receiver

  2. Ctrl+w, type git clone, press Enter key. Cursor will jump to: git clone https://github.com/flightaware/piaware_builder.git Below this line, add following 3 lines: cd ~/adsb-receiver/build/piaware_builder git checkout v3.7.1 cd ~/adsb-receiver

Save (Ctrl+o) and close (Ctrl+x)

image

.

(4) Last execute the following commands:

cd ~/adsb-receiver
chmod +x install.sh
./install.sh

.

RESULTS

pi@raspberrypi:~ $ apt-cache policy dump1090-fa
dump1090-fa:
  Installed: 3.7.1
  Candidate: 3.7.1
  Version table:
 *** 3.7.1 100
        100 /var/lib/dpkg/status
pi@raspberrypi:~ $ apt-cache policy piaware
piaware:
  Installed: 3.7.1
  Candidate: 3.7.1
  Version table:
 *** 3.7.1 100
        100 /var/lib/dpkg/status

.

.

abcd567a avatar May 24 '19 11:05 abcd567a