Asterisk hang when trying to access console

On Sunday 04 January 2026 at 13:50:28, Stephan via Asterisk Community wrote:

Asterisk already running on /var/run/asterisk/asterisk.ctl. Use ‘asterisk -
r’ to connect.

a) did you try “asterisk -r” to see whether it appears to be running happily?

b) did you try “ps aux | grep asterisk” to see which user the currently-
running instance is running as?

c) did you try “killall asterisk” before trying to start a new instance?

Antony.


The GPL-Violations project was formed on this day in 2004.

sudo asterisk -r

Hang the session

I cannot type the rest of it, I never have access to the cli

I did try killall asterisk

it say no process found

then asterisk -r

Then it hang (freeze) the session

how does this remove all traces ?

sudo find / -xdev |& grep --ignore-case asterisk

It doesn’t remove anything - it tells you where things need to be removed
from.

then how do I remove them ?

On Sunday 04 January 2026 at 14:20:14, Stephan via Asterisk Community wrote:

sudo asterisk -r

Hang the session

I cannot ype the rest of it, I never have access to the cli

Surely you can use another console (Ctrl-Alt-F2 for example) to:

a) run other commands

b) kill the process which is stuck

Antony.


Never automate fully anything that does not have a manual override capability.
Never design anything that cannot work under degraded conditions in emergency.

                                               Please reply to the list;
                                                     please don't CC me.

On Sunday 04 January 2026 at 14:25:57, Stephan via Asterisk Community wrote:

how does this remove all traces ?

sudo find / -xdev |& grep --ignore-case asterisk

It doesn’t remove anything - it tells you where things need to be removed
from.

then how do I remove them ?

The traditional Linux command to delete things is “rm”.

It has (at least) two useful options: “-r” will delete a directory and all its
contents (files and further sub-directories); “-f” will delete without
prompting, depending on the permissions of what you are deleting.

Antony.


There are 10 types of people in the world:
those who understand binary notation,
and those who don’t.

On Sunday 04 January 2026 at 14:20:14, Stephan via Asterisk Community wrote:

sudo asterisk -r

Surely that should be “sudo -u asterisk asterisk -r”?

You said earlier you were logged in as root, therefore using “sudo” without
another username is redundant.

Antony.


“Can you keep a secret?”
“Well, I shouldn’t really tell you this, but… no.”

                                               Please reply to the list;
                                                     please don't CC me.

I did remove anything called asterisk with rm -r

now

sudo find / -xdev |& grep --ignore-case asterisk

give no result

I tryed

sudo apt install asterisk

Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Package asterisk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package ‘asterisk’ has no installation candidate

What should I do ?
Is there a file somewhere where I should write where the package is ?

On Sunday 04 January 2026 at 15:11:59, Stephan via Asterisk Community wrote:

Package asterisk is not available, but is referred to by another package.

Assuming you are using a current version of Debian (Bullseye or Bookworm) you
will need to add the “sid” repository to your apt sources and then specify
this when installing asterisk from it.

I suggest you create a file called “sid.list” under /etc/apt/sources.list.d
with the following content, and then install asterisk using “aptitude install
-t sid asterisk” or “apt-get install -t sid asterisk” (depending on your
preferred command for installing packages).


deb Index of /debian sid main contrib non-free
deb-src Index of /debian sid main contrib non-free

Antony.


Schrödinger’s rule of data integrity: the condition of any backup is unknown
until a restore is attempted.

I suggest you create a file called “sid.list” under /etc/apt/sources.list.d
with the following content, and then install asterisk using “aptitude install
-t sid asterisk” or “apt-get install -t sid asterisk” (depending on your
preferred command for installing packages).

what is the following content ? you forgot something or I misunderstood ?

On Sunday 04 January 2026 at 16:00:37, Stephan via Asterisk Community wrote:

I suggest you create a file called “sid.list” under /etc/apt/sources.list.d
with the following content, and then install asterisk using “aptitude
install -t sid asterisk” or “apt-get install -t sid asterisk” (depending
on your preferred command for installing packages).

what is the following content ? you forgot something or I misunderstood ?

The content you require is the following two lines

deb Index of /debian sid main contrib non-free
deb-src Index of /debian sid main contrib non-free

Also, don’t forget to do “apt-get update” or “aptitude update” after creating
the file, so that the package manager knows about the new repository.

Antony.

On Wednesday 31 December 2025 at 18:29:57, Stephan via Asterisk Community
wrote:

it is Debian 6.1.158-1 (2025-11-09) x86_64 GNU/Linux

I builded asterisk from sources yes

Out of interest, what documentation did you follow in order to build it?

Antony.

This is more than you actually need, although the only real harm would be if you operate a policy of only using open source code (because of the non-free setting, that allows closed source code). You shouldn’t be installing source packages except delibeartely.

On Sunday 04 January 2026 at 16:42:33, david551 via Asterisk Community wrote:

deb Index of /debian sid main contrib non-free
deb-src Index of /debian sid main contrib non-free

This is more than you actually need

Agreed, however:

a) it’ll do the job,

b) it doesn’t affect which categories are available from the current standard
release (whichever one is in use), so a Pure Open Source system isn’t going to
get contaminated, and

c) nothing will get installed from sid without being explicitly requested by
the user, so it’s not going to result in anything surprising when you just
install further new packages as normal.

Antony.


Wanted: telepath. You know where to apply.

I used another way

I did follow this page

the advice was to add add-apt-repository -y -S "deb [ arch=amd64 ] http://deb.freepbx.org/freepbx17-prod bookworm main"

and then install asterisk with

apt-get -y install asterisk22 asterisk22-core asterisk22-configs libxslt1.1 liburiparser1

I did that

it now works

thank to all who have spend sometime trying to help.