# Asterisk hang when trying to access console

**URL:** <https://community.asterisk.org/t/asterisk-hang-when-trying-to-access-console/111460>\
**Category:** Asterisk Support\
**Created:** [December 31, 2025, 4:41pm UTC](https://community.asterisk.org/t/asterisk-hang-when-trying-to-access-console/111460 "2025-12-31T16:41:52Z")\
**Posts on this page:** 17\
**Page:** 2

<div class="post-metadata">

**Author:** ![Pooh](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@Pooh](https://community.asterisk.org/u/Pooh)\
**Post date:** [January 4, 2026, 1:01pm UTC](https://community.asterisk.org/t/asterisk-hang-when-trying-to-access-console/111460/22 "2026-01-04T13:01:43Z")

</div>

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.

> **[The gpl-violations.org project](https://gpl-violations.org/)**
>
> The gpl-violations.org project tries to raise public awareness about past and
> present infringing use(r)s of GPL licensed software.
> The ultimate goal is to make companies engaging in the distribution o

---

<div class="post-metadata">

**Author:** ![Stephan](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@Stephan](https://community.asterisk.org/u/Stephan)\
**Post date:** [January 4, 2026, 1:09pm UTC](https://community.asterisk.org/t/asterisk-hang-when-trying-to-access-console/111460/23 "2026-01-04T13:09:25Z")

</div>

sudo asterisk -r

Hang the session

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

---

<div class="post-metadata">

**Author:** ![Stephan](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@Stephan](https://community.asterisk.org/u/Stephan)\
**Post date:** [January 4, 2026, 1:13pm UTC](https://community.asterisk.org/t/asterisk-hang-when-trying-to-access-console/111460/24 "2026-01-04T13:13:41Z")

</div>

I did try killall asterisk

it say no process found

then asterisk -r

Then it hang (freeze) the session

---

<div class="post-metadata">

**Author:** ![Stephan](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@Stephan](https://community.asterisk.org/u/Stephan)\
**Post date:** [January 4, 2026, 1:15pm UTC](https://community.asterisk.org/t/asterisk-hang-when-trying-to-access-console/111460/25 "2026-01-04T13:15:11Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![Pooh](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@Pooh](https://community.asterisk.org/u/Pooh)\
**Post date:** [January 4, 2026, 1:22pm UTC](https://community.asterisk.org/t/asterisk-hang-when-trying-to-access-console/111460/26 "2026-01-04T13:22:58Z")

</div>

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.

```

---

<div class="post-metadata">

**Author:** ![Pooh](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@Pooh](https://community.asterisk.org/u/Pooh)\
**Post date:** [January 4, 2026, 1:33pm UTC](https://community.asterisk.org/t/asterisk-hang-when-trying-to-access-console/111460/27 "2026-01-04T13:33:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Pooh](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@Pooh](https://community.asterisk.org/u/Pooh)\
**Post date:** [January 4, 2026, 1:40pm UTC](https://community.asterisk.org/t/asterisk-hang-when-trying-to-access-console/111460/28 "2026-01-04T13:40:58Z")

</div>

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.

```

---

<div class="post-metadata">

**Author:** ![Stephan](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@Stephan](https://community.asterisk.org/u/Stephan)\
**Post date:** [January 4, 2026, 2:01pm UTC](https://community.asterisk.org/t/asterisk-hang-when-trying-to-access-console/111460/29 "2026-01-04T14:01:20Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [January 4, 2026, 2:17pm UTC](https://community.asterisk.org/t/asterisk-hang-when-trying-to-access-console/111460/30 "2026-01-04T14:17:47Z")

</div>

> [@Status and perspectives of asterisk package on Debian Bookworm](https://community.asterisk.org/t/status-and-perspectives-of-asterisk-package-on-debian-bookworm/97087/3):
>
> Will never be in bookworm [https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1031046](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1031046)

---

<div class="post-metadata">

**Author:** ![Pooh](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@Pooh](https://community.asterisk.org/u/Pooh)\
**Post date:** [January 4, 2026, 2:32pm UTC](https://community.asterisk.org/t/asterisk-hang-when-trying-to-access-console/111460/31 "2026-01-04T14:32:11Z")

</div>

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](http://deb.debian.org/debian/) sid main contrib non-free deb-src [Index of /debian](http://deb.debian.org/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.

---

<div class="post-metadata">

**Author:** ![Stephan](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@Stephan](https://community.asterisk.org/u/Stephan)\
**Post date:** [January 4, 2026, 2:49pm UTC](https://community.asterisk.org/t/asterisk-hang-when-trying-to-access-console/111460/32 "2026-01-04T14:49:52Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![Pooh](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@Pooh](https://community.asterisk.org/u/Pooh)\
**Post date:** [January 4, 2026, 3:03pm UTC](https://community.asterisk.org/t/asterisk-hang-when-trying-to-access-console/111460/33 "2026-01-04T15:03:37Z")

</div>

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](http://deb.debian.org/debian/) sid main contrib non-free  
deb-src [Index of /debian](http://deb.debian.org/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.

---

<div class="post-metadata">

**Author:** ![Pooh](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@Pooh](https://community.asterisk.org/u/Pooh)\
**Post date:** [January 4, 2026, 3:12pm UTC](https://community.asterisk.org/t/asterisk-hang-when-trying-to-access-console/111460/34 "2026-01-04T15:12:34Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [January 4, 2026, 3:31pm UTC](https://community.asterisk.org/t/asterisk-hang-when-trying-to-access-console/111460/35 "2026-01-04T15:31:50Z")

</div>

> [@Pooh](#):
>
> The content you require is the following two lines
> 
> deb [Index of /debian](http://deb.debian.org/debian/) sid main contrib non-free  
> deb-src [Index of /debian](http://deb.debian.org/debian/) sid main contrib non-free

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.

---

<div class="post-metadata">

**Author:** ![Pooh](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@Pooh](https://community.asterisk.org/u/Pooh)\
**Post date:** [January 4, 2026, 4:28pm UTC](https://community.asterisk.org/t/asterisk-hang-when-trying-to-access-console/111460/36 "2026-01-04T16:28:23Z")

</div>

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

> > deb [Index of /debian](http://deb.debian.org/debian/) sid main contrib non-free  
> > deb-src [Index of /debian](http://deb.debian.org/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.

---

<div class="post-metadata">

**Author:** ![Stephan](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@Stephan](https://community.asterisk.org/u/Stephan)\
**Post date:** [January 4, 2026, 4:54pm UTC](https://community.asterisk.org/t/asterisk-hang-when-trying-to-access-console/111460/37 "2026-01-04T16:54:28Z")

</div>

I used another way

I did follow this page

> **[Sangoma Documentation](https://sangomakb.atlassian.net/wiki/spaces/OpenSource/pages/544079886/Open+Source+-+Asterisk+22+on+Debian+12+with+official+Sangoma+FreePBX+package+repository)**

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.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [February 3, 2026, 6:16pm UTC](https://community.asterisk.org/t/asterisk-hang-when-trying-to-access-console/111460/39 "2026-02-03T18:16:47Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

[Previous page](https://community.asterisk.org/t/asterisk-hang-when-trying-to-access-console/111460.md?page=1)
