Installation Issues
A clear and concise description of what the bug is. I am haveing issues installing BirdNET-Pi on Raspberry Pi 4. Raspbien-OS Lite 64. This is a fresh OS install
Steps to reproduce the behavior:
curl -s https://raw.githubusercontent.com/mcguirepr89/BirdNET-Pi/main/newinstaller.sh | bash
Hit:1 http://deb.debian.org/debian bookworm InRelease
Get:2 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:3 http://deb.debian.org/debian bookworm-updates InRelease [52.1 kB]
Get:4 http://archive.raspberrypi.com/debian bookworm InRelease [23.8 kB]
Get:5 http://deb.debian.org/debian-security bookworm-security/main arm64 Packages [132 kB]
Get:6 http://deb.debian.org/debian-security bookworm-security/main armhf Packages [129 kB]
Get:7 http://deb.debian.org/debian-security bookworm-security/main Translation-en [80.0 kB]
Get:8 http://deb.debian.org/debian bookworm-updates/main armhf Packages [12.1 kB]
Get:9 http://deb.debian.org/debian bookworm-updates/main arm64 Packages [12.5 kB]
Get:10 http://deb.debian.org/debian bookworm-updates/main Translation-en [13.8 kB]
Get:11 http://archive.raspberrypi.com/debian bookworm/main armhf Packages [360 kB]
Get:12 http://archive.raspberrypi.com/debian bookworm/main arm64 Packages [351 kB]
Fetched 1,214 kB in 2s (712 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
14 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
git-man liberror-perl libjq1 libonig5
Suggested packages:
git-daemon-run | git-daemon-sysvinit git-doc git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
git git-man jq liberror-perl libjq1 libonig5
0 upgraded, 6 newly installed, 0 to remove and 14 not upgraded.
Need to get 9,466 kB of archives.
After this operation, 49.0 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bookworm/main arm64 liberror-perl all 0.17029-2 [29.0 kB]
Get:2 http://deb.debian.org/debian bookworm/main arm64 git-man all 1:2.39.2-1.1 [2,049 kB]
Get:3 http://deb.debian.org/debian bookworm/main arm64 git arm64 1:2.39.2-1.1 [7,023 kB]
Get:4 http://deb.debian.org/debian bookworm/main arm64 libonig5 arm64 6.9.8-1 [179 kB]
Get:5 http://deb.debian.org/debian bookworm/main arm64 libjq1 arm64 1.6-2.1 [121 kB]
Get:6 http://deb.debian.org/debian bookworm/main arm64 jq arm64 1.6-2.1 [64.5 kB]
Fetched 9,466 kB in 9s (1,110 kB/s)
Selecting previously unselected package liberror-perl.
(Reading database ... 54974 files and directories currently installed.)
Preparing to unpack .../0-liberror-perl_0.17029-2_all.deb ...
Unpacking liberror-perl (0.17029-2) ...
Selecting previously unselected package git-man.
Preparing to unpack .../1-git-man_1%3a2.39.2-1.1_all.deb ...
Unpacking git-man (1:2.39.2-1.1) ...
Selecting previously unselected package git.
Preparing to unpack .../2-git_1%3a2.39.2-1.1_arm64.deb ...
Unpacking git (1:2.39.2-1.1) ...
dpkg-deb (subprocess): decompressing archive '/tmp/apt-dpkg-install-IoIcL4/2-git_1%3a2.39.2-1.1_arm64.deb' (size=7023172) member 'data.tar': lzma error: compressed data is corrupt
dpkg-deb: error:
Steps to fix: sudo rm /var/cache/apt/archive/* sudo apt-get install git
From what I gather the install_services.sh has php before php-fpm and php requires apache2 which is a new debian version thing, unless you install bullseye
so moving it after php-fpm doesn't install apache:
Are you able to test this:
https://github.com/sarvesh-lad/BirdNET-Pi/
curl -s https://raw.githubusercontent.com/sarvesh-lad/BirdNET-Pi/main/newinstaller.sh | bash
Notes on my fork:
- it assumes 0 as LATTITUDE and LONGITUDE cause that IP-API site is finicky, you can always change that in settings
- it installs tfruntime directly from pip
- Has the install services fix I mentioned above.