The problem is that the build is linking against the manually installed version you have in /usr/local/lib.
You need to remove that manually installed version.
The problem is that the build is linking against the manually installed version you have in /usr/local/lib.
You need to remove that manually installed version.
I already have dump1090-fa built, installed and running successfully.
I never got following error (@lucpo1 got it) :
dpkg-shlibdeps: error: no dependency information found for /usr/local/lib/librtlsdr.so.0
Just tried to see what will be removed if I remove librtlsdr0
At the end when it asked âDo you want to continue? [Y/n]â, I said NO
abcd@ubuntu18:~$ sudo apt purge librtlsdr0
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
efibootmgr libfwup1 liblimesuite17.12-1 libosmosdr0 libwayland-egl1-mesa
limesuite-udev soapyosmo-common0.6 soapysdr0.6-module-lms7
soapysdr0.6-module-osmosdr
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
dump1090-fa* librtlsdr-dev* librtlsdr0* rtl-sdr* soapysdr-module-rtlsdr*
soapysdr0.6-module-all* soapysdr0.6-module-rtlsdr*
0 upgraded, 0 newly installed, 7 to remove and 116 not upgraded.
After this operation, 11.3 MB disk space will be freed.
Do you want to continue? [Y/n] n
My reply was about what to do if you get the error.
@lucpo1
Please proceed to remove librtlsdsr0
as advised by @obj , and then try to build.
Disregard my last post about my experiment to remove librtlsdr0
, as I never got dpkg-shlibdeps: error
message
Hi, @abcd567
Do you have a update to install on Ubuntu 20.04 ?
Regards
vsqz44
No, I have not tried it on Ubuntu 20.04, but feel that procedure for Ubuntu 19.10 (Disco) will also work on Ubuntu 20.04 (Focal Fossa). Cannot say with surety unless I try it.
EDIT: I have now checked piaware_builder/sensible-build.sh
. Focal Fossa is not yet included, so you may try by using sudo ./sensible-build.sh disco
Hi, @abcd567
Iâm stucked here: dump1090-fa depends on libbladerf1 (>= 0.2016.06);
libbladerf1 itâs not installed.
Iâm not able to install libbladerf1 on Ubuntu 20.04.
Any clue ?
Thanks
vsqz44
Just install readsb without BladeRF support.
Building readsb from source · wiedehopf/adsb-wiki Wiki · GitHub
Alternatively, this automatic script should work also.
Automatic installation for readsb · wiedehopf/adsb-scripts Wiki · GitHub
piaware works just fine with readsb (fork of dump1090-fa actually).
Hi, @wiedehopf
Iâll make a trial. But, now Iâm stucked with this:
dpkg-checkbuilddeps: erro: Unmet build dependencies: tcl8.6-dev python3-dev (>= 3.2) python3-venv libz-dev libboost-system-dev libboost-program-options-dev libboost-regex-dev libboost-filesystem-dev
dpkg-buildpackage: aviso: build dependencies/conflicts unsatisfied; aborting
(1) First delete the source code and the packages already built.
$ sudo rm -rf dump1090
$ sudo rm dump1090*.*
(2) Next repeat the process as follows
$ git clone https://github.com/flightaware/dump1090
## Workaround for non-available bladeRF package
$ cd dump1090
$ sudo sed -i 's/BLADERF=yes/BLADERF=no/' debian/rules
$ sudo sed -i 's/, libbladerf-dev//' debian/control
$ sudo sed -i 's/libbladerf1 (>= 0.2016.06), //' debian/control
## Build dump1090-fa package
$ sudo dpkg-buildpackage -b --no-sign
## Install dump1090-fa
$ cd ../
$ sudo dpkg -i dump1090-fa_3.8.1*.deb
(1) Did you issue all these 4 commands in the 1st post?
(2) Did these 4 succeed to install all dependencies?
Hi, @abcd567
Everything going OK, until this:
make[2]: Leaving directory â/home/evo2/piaware_builder/package-disco/dump1090â
pyvenv /home/evo2/piaware_builder/package-disco/debian/venv --without-pip
make[1]: pyvenv: Command not found
make[1]: *** [debian/rules:61: setup_venv] Error 127
make[1]: Leaving directory â/home/evo2/piaware_builder/package-discoâ
make: *** [debian/rules:95: build] Error 2
dpkg-buildpackage: erro: debian/rules build subprocess returned exit status 2
Install package virtualenv
, then again try to build piaware.
apt install virtualenv
In case of any problem, delete cloned source code and restart from cloning the source-code.
Nope. I got the same errors.
And, about the dump1090-fa, I got this:
sudo systemctl status dump1090-fa
â dump1090-fa.service
Loaded: masked (Reason: Unit dump1090-fa.service is masked.)
Active: inactive (dead)
@vsqz44
I am away from home, cant try it and find the bug now. Will do it tomorrow.
Meanwhile try this:
Install these two packages and try to build piaware again:
apt install python3 python-virtualenv
sudo systemctl unmask dump1090-fa
sudo systemctl enable dump1090-fa
sudo systemctl restart dump1090-fa
sudo apt install python3 python-virtualenv
Lendo listas de pacotes⊠Pronto
Construindo ĂĄrvore de dependĂȘncias
Lendo informação de estado⊠Pronto
O pacote python-virtualenv nĂŁo estĂĄ disponĂvel, mas Ă© referenciado por outro pacote.
Isto pode significar que o pacote estĂĄ faltando, ficou obsoleto ou
estĂĄ disponĂvel somente a partir de outra fonte
E: O pacote âpython-virtualenvâ nĂŁo tem candidato para instalação
~$ sudo systemctl unmask dump1090-fa
Removed /etc/systemd/system/dump1090-fa.service.
:~$ sudo systemctl enable dump1090-fa
Failed to enable unit: Unit file dump1090-fa.service does not exist.
~$ sudo systemctl restart dump1090-fa
Failed to restart dump1090-fa.service: Unit dump1090-fa.service not
Thanks. See you tomorrow
## Purge existing install of dump1090-fa
sudo dpkg --purge dump1090-fa
## Reinstall dump1090-fa
sudo dpkg -i dump1090-fa_3.8.1*.deb
sudo rm -rf dump1090
sudo rm dump1090*.*
$ git clone https://github.com/flightaware/dump1090
## Workaround for non-available bladeRF package
$ cd dump1090
$ sudo sed -i 's/BLADERF=yes/BLADERF=no/' debian/rules
$ sudo sed -i 's/, libbladerf-dev//' debian/control
$ sudo sed -i 's/libbladerf1 (>= 0.2016.06), //' debian/control
## Build and install dump1090-fa package
$ sudo dpkg-buildpackage -b --no-sign
$ cd ../
$ sudo dpkg -i dump1090-fa_3.8.1*.deb
Note: I have successfully installed dump1090-fa on Ubuntu 20 amd64 in VM (after bladeRF workaround), and it is working like a charm. However I could not try piaware, as I had to leave due to some urgent work.
pyvenv
(1) First delete all old stuff
sudo rm -rf piaware_builder
(2) Next clone piaware source code, build package, and install package as follows. Note that workaround for âpyvenv: command not foundâ is included in commands given below.
$ cd ~/
$ git clone http://github.com/flightaware/piaware_builder
$ cd piaware_builder
$ sudo ./sensible-build.sh disco
## Workaround for pyvenv:
$ cd package-disco
$ sudo sed -i 's/pyvenv $(VENV) --without-pip/$(PYTHON3) -m venv $(VENV) --without-pip/' debian/rules
$ sudo sed -i 's/python3-venv, //' debian/control
## After above Workaround, build the piaware package
$ sudo dpkg-buildpackage -b --no-sign
$ cd ../
$ sudo dpkg -i piaware_3.8.1~*.deb
Hi, @abcd567
You did the trick !!!
Working now dump1090-fa and piaware on Ubuntu 20.04 !
Thanks a lot !!
I got the planes on the map but, something is not working: Planes are not reported.
piaware.service - FlightAware ADS-B uploader
Loaded: loaded (/lib/systemd/system/piaware.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2020-07-09 06:35:39 -03; 36min ago
Docs: PiAware - ADS-B and MLAT Receiver - FlightAware
Main PID: 1400 (piaware)
Tasks: 2 (limit: 9328)
Memory: 15.8M
CGroup: /system.slice/piaware.service
ââ1400 /usr/bin/piaware -p /run/piaware/piaware.pid -plainlog -statusfile /run/piaware/status.json
jul 09 07:10:37 ubuntu2004 piaware[1400]: no ADS-B data program seen listening on port 30005 for 251 seconds, next check in 60s
jul 09 07:11:14 ubuntu2004 piaware[1400]: 0 msgs recvâd from dump1090 (0 in last 5m); 0 msgs sent to FlightAware
jul 09 07:11:25 ubuntu2004 sudo[3653]: piaware : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/netstat --program --tcp --wide --all --numeric
jul 09 07:11:25 ubuntu2004 sudo[3653]: pam_unix(sudo:session): session opened for user root by (uid=0)
jul 09 07:11:25 ubuntu2004 sudo[3653]: pam_unix(sudo:session): session closed for user root
jul 09 07:11:25 ubuntu2004 piaware[1400]: no ADS-B data program is serving on port 30005, not starting multilateration client yet
jul 09 07:11:37 ubuntu2004 sudo[3655]: piaware : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/netstat --program --tcp --wide --all --numeric
jul 09 07:11:37 ubuntu2004 sudo[3655]: pam_unix(sudo:session): session opened for user root by (uid=0)
jul 09 07:11:37 ubuntu2004 sudo[3655]: pam_unix(sudo:session): session closed for user root
jul 09 07:11:37 ubuntu2004 piaware[1400]: no ADS-B data program seen listening on port 30005 for 311 seconds, next check in 60s
~