BirdNET-Pi icon indicating copy to clipboard operation
BirdNET-Pi copied to clipboard

Installation Issues

Open alecjcook opened this issue 2 years ago • 1 comments

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: subprocess returned error exit status 2 dpkg: error processing archive /tmp/apt-dpkg-install-IoIcL4/2-git_1%3a2.39.2-1.1_arm64.deb (--unpack): cannot copy extracted data for './usr/share/doc/git/RelNotes/1.7.4.2.txt' to '/usr/share/doc/git/RelNotes/1.7.4.2.txt.dpkg-new': unexpected end of file or stream Selecting previously unselected package libonig5:arm64. Preparing to unpack .../3-libonig5_6.9.8-1_arm64.deb ... Unpacking libonig5:arm64 (6.9.8-1) ... Selecting previously unselected package libjq1:arm64. Preparing to unpack .../4-libjq1_1.6-2.1_arm64.deb ... Unpacking libjq1:arm64 (1.6-2.1) ... Selecting previously unselected package jq. Preparing to unpack .../5-jq_1.6-2.1_arm64.deb ... Unpacking jq (1.6-2.1) ... Errors were encountered while processing: /tmp/apt-dpkg-install-IoIcL4/2-git_1%3a2.39.2-1.1_arm64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) bash: line 36: git: command not found The installation exited unsuccessfully.

Steps to fix: sudo rm /var/cache/apt/archive/* sudo apt-get install git

alecjcook avatar Jan 22 '24 10:01 alecjcook

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:

  1. it assumes 0 as LATTITUDE and LONGITUDE cause that IP-API site is finicky, you can always change that in settings
  2. it installs tfruntime directly from pip
  3. Has the install services fix I mentioned above.

sarvesh-lad avatar Feb 16 '24 23:02 sarvesh-lad