Manual installation in Raspian fail

The manual installation in Raspian fail, please anyone can do it ? I cannot use the image because I have a Raspberry Pi4 dedicated to more services, and I want included Allstarlink

Can you say what version asl-Pi you are installing manual?
Version of raspbian native to your Pi4 ?
What instructions were you following for the install ?
What was the first error message of the install ?

Hey thx for the reply, my raspi

OS: Raspbian GNU/Linux 11 (bullseye) aarch64
Host: Raspberry Pi 4 Model B Rev 1.4
Kernel: 6.1.21-v8+
CPU: BCM2835 (4) @ 1.800GHz
Memory: 327MiB / 3793MiB

I followed instructions pasted in Beginners Guide - AllStarLink Wiki
Repositories installed ok, but the first command line was failed

root@raspberrypi:/tmp# apt -y install linux-headers-$(uname -r)
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
E: Unable to locate package linux-headers-6.1.21-v8
E: Couldn’t find any package by glob ‘linux-headers-6.1.21-v8’

Ok anyway I use the rpi-update and it seems the kernel headers was installed but the second step was failed again

root@raspberrypi:/tmp# apt -y install asl-asterisk
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
asl-asterisk : Depends: libsnmp30 (>= 5.7.3+dfsg) but it is not installable
E: Unable to correct problems, you have held broken packages.

Ok anyway an use rpi-update and It seems the kernel headers was installed, so I go the seconds package and this is a result

root@raspberrypi:/tmp# apt -y install asl-asterisk
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
asl-asterisk : Depends: libsnmp30 (>= 5.7.3+dfsg) but it is not installable
E: Unable to correct problems, you have held broken packages.

Raspbian GNU/Linux 11 (bullseye) is not yet supported.

Ok, it’s a shame, I have only one raspberry and I already installed a dvswtich server and ysf reflector and I want add the asl-asterisk (allstarlink), ok i hope this issue can be resolved, thanks for the reply, have a nice weekend

You can do all of that on Buster/10
I do it on a x86 cloud based machine

Where is the image ?

https://wiki.allstarlink.org/wiki/Beginners_Guide#Beta_Download
https://downloads.allstarlink.org/ASL_Images_Beta/Raspberry_Pi2_3_4/
The image is better known as asl2.0 beta6

Hi,

Maybe you can try this :slight_smile : https://github.com/F4HWD/ASL-Asterisk

The guy seems to succeed to compile ASL 2 on Debian 11.

73 Patrick TK5EP

Hey good morning,

The first step failed :smile:

hc1lnm@raspberrypi:~ $ sudo apt install linux-headers-$(dpkg --print-architecture)
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
E: Unable to locate package linux-headers-armhf

And, not working sorry there you are

root@raspberrypi:/tmp/ASL-Asterisk/asterisk# debuild -b -us -uc
dpkg-buildpackage -us -uc -ui -b
dpkg-buildpackage: info: source package asl-asterisk
dpkg-buildpackage: info: source version 1:1.4.23-9
dpkg-buildpackage: info: source distribution UNRELEASED
dpkg-buildpackage: info: source changed by Rob Vella me@robvella.com
dpkg-source --before-build .
dpkg-buildpackage: info: host architecture armhf
dpkg-checkbuilddeps: warning: can’t parse dependency analog_bridge
dpkg-checkbuilddeps: warning: can’t parse dependency mmdvm_bridge
dpkg-checkbuilddeps: warning: can’t parse dependency quantar_bridge
dpkg-checkbuilddeps: error: Unmet build dependencies: libreadline-dev libsqlite3-dev
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui -b failed

Not sure what is it you are trying to install now ? What instruction?

You asked for a image (ready to go) and I did point to a deb 10 image .
Put it on a sd card and go

To be exact
https://downloads.allstarlink.org/ASL_Images_Beta/Raspberry_Pi2_3_4/asl-2.0.0-beta.6-kc1kcc-20210324-rpi-armhf.img.zip

Get the file
Go to the flashing part of the beginners guide. Plug in, turn on, you are installed. Just set-up at that point.

Hey

The instructions that I followed are in the page you pasted me

The page said

  • Install DAHDI modules First, you will need DAHDI modules for your kernel. For the moment, there is no known method to succeed the compilation. You can use a pre-compiled package instead For the linux-headers, I will use classic Debian. If you have a Raspberry Pi or if the command fails, please refer to the documentation of your distribution.
sudo apt install linux-headers-$(dpkg --print-architecture)
cd ~/
wget http://dvswitch.org/buster
chmod +x buster
sudo ./buster
rm buster
sudo apt install -y allstar-dahdi-linux-dkms

Compiling

Packaging (.deb)

This will compile and package AllStar into .deb files. You do not need to run configure or make before doing this.

git clone https://github.com/F4HWD/ASL-Asterisk.git
cd ASL-Asterisk/asterisk
debuild -b -us -uc

And I already have an image installed and working, in separate raspberry, but I need to install in other raspberry but without image.

Well, your error starts here.
It might suggest something not right in your sources.list ?

I did not send a page link with those instructions.

But I am no help for a manual install from git or on debian 11.
Perhaps someone will chime in.

Ok TK5EP sent the page, read above,

I cannot use
https://downloads.allstarlink.org/ASL_Images_Beta/Raspberry_Pi2_3_4/asl-2.0.0-beta.6-kc1kcc-20210324-rpi-armhf.img.zip

That’s an image I need to install manually, so thx for the reply, I still not found a solution.

The correct way to install kernel headers on raspberry pi is to issue the command
apt install raspberrypi-kernel-headers.
All of the generic commands for other distributions will not work, as you saw.

The other errors you encountered are also easy to remedy.

You need to install the two packages listed. apt install libreadline-dev libsqlite3-dev. Then rerun the debbuild command.

Hey
I already followed all your instructions, kernel headers ok and the two libs ok too, but, still failing, now with a new error

make[2]: Leaving directory ‘/tmp/ASL-Asterisk/asterisk/channels’
make[1]: *** [Makefile:361: channels] Error 2
make[1]: Leaving directory ‘/tmp/ASL-Asterisk/asterisk’
make: *** [debian/rules:101: build-arch-stamp] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui -b failed

Have you a debs packages compiled for Raspbian GNU/Linux 11 (bullseye) aarch64 ?

Were there any other errors above the make[2]? It seems like maybe the log is cut off. From this I can only see that the Makefile in asterisk/channel failed, but not at what line it failed.

Just checking, but did you already follow the Prerequisites steps on F4HWD’s Readme page? For instance there is the part that says Debian 11 Bullseye, Install apt dependencies, and there is a long command that begins with sudo apt -y install

Running that command would have installed the readline and sqlite3 development packages that gave you the previous errors. I’m wondering if you missed something else in tthere such as the libusb-dev package which is necessary for building channel, but appears to not have been marked in the debian control file as a build dependency of the package.

Hey

No definitely not working for me, i don’t try anymore, I spend too much time in this, thx to everyone.

The link I provided had the manual install instruction for deb10. Official install.
I do not understand why you would prefer to do without than take the ‘known beaten supported path’.

There is nothing I can think of that deb 11 will do for the software that deb 10 can not. Even with DVS server. Both asl 2.0b and DVS server were designed to run on deb10. But you don’t want to use it ?

If you were more experienced with the software first, it might be an avenue to take to be on the bleeding edge of what is happening. But there is no advantage for the hard work at this point.

But Don’t let me stop you from giving up and doing without.