Installing FreePBX 17

Hello everyone. I’m installing Freepbx 17 on Debian using the official script; after installing some packages, an error occurs and the process stops.

“The connection timeout has been reached [IP: 65.9.46.51 80]
E: Failed to retrieve http://deb.freepbx.org/freepbx17-prod/pool/main/a/asteris k22-addons-ooh323/asterisk22-addons-ooh323_22.10.1-1.sng12_amd64.deb Connection timeout expired [IP: 65.9.46.51 80]
E: Internal Error, ordering was unable to handle the media swap
2026-08-04 14:28:29 - Exiting script”

65.9.46.51 - Pings normally. How to fix the error. Thanks

I’m unable to replicate your issue. I installed successfully with IN1CLICK 1.3.3 shortly after your post, which carries out a bunch of pre-flight checks and then the official FreePBX 17 installation script, before cleaning up.

The README For 20telecom/IN1CLICK is here: IN1CLICK/freepbx17-on-debian12_README.md at main · 20telecom/IN1CLICK · GitHub

If you’re happy to proceed, run this wget command as root on a fresh Debian 12 installation:
wget https://raw.githubusercontent.com/20telecom/IN1CLICK/main/freepbx17-on-debian12 -O /tmp/IN1CLICK && chmod +x /tmp/IN1CLICK && /tmp/IN1CLICK

Disclaimer: this is an open-source, third-party installation method. If it fails again, IN1CLICK might provide clues for what’s wrong.

The fact that the IP responds to ping only confirms basic connectivity. This looks more like an HTTP download timeout while accessing the package repository. I’d check firewall rules, DNS resolution, proxy settings (if any), and try running the package update manually before rerunning the installer.

Hello. Thanks for trying IN1CLICK for FreePBX 17 on Debian 12 (bookworm).

In case you need support from 20tele.com, this is IN1CLICK version 1.3.3.

Disabling unattended-upgrades for this session...

Failed to execute /usr/bin/pkttyagent: No such file or directory
Failed to execute /usr/bin/pkttyagent: No such file or directory
Failed to execute /usr/bin/pkttyagent: No such file or directory
Failed to execute /usr/bin/pkttyagent: No such file or directory
Failed to execute /usr/bin/pkttyagent: No such file or directory
Unattended upgrades disabled for this session. OK to proceed.

Checking if this is the Heqet ISO...

Not the Heqet ISO. OK to proceed.

Checking if this is Debian 12...

Debian 12 confirmed. OK to proceed.

Checking available disk space...

Disk space available: 43.98 GB. OK to proceed.

Checking available memory and swap...

Memory: 3886 MB, Swap: 974 MB. OK to proceed.

Checking system architecture...

Architecture is 64-bit. OK to proceed.

Checking hostname label format...

Hostname label appears valid. OK to proceed.

Checking for desktop environment...

No desktop environment detected. OK to proceed.

Checking /tmp permissions...

/tmp is writable and executable. OK to proceed.

Checking for existing FreePBX installation...

No existing FreePBX found. OK to proceed.

Checking for existing Asterisk installation...

No existing Asterisk found. OK to proceed.

Checking for existing MariaDB installation...

No existing MariaDB found. OK to proceed.

Checking for existing Node.js installation...

No existing Node.js installation found. OK to proceed.

Checking APT sources and fixing if necessary...

APT sources already point to official Debian mirrors. OK to proceed.

Checking and fixing forbidden APT sources (stable/trixie)...

APT sources do not contain forbidden entries. OK to proceed.

Checking for APT locks before updating packages...

No APT locks detected. OK to proceed.

Updating package lists...

I’m not sure what you are showing me. Does it hang there?

Yes, and then it displays the user and prompts for command input: user@debian2:~$

Ok, try running apt update

EDIT: Also, are you root? Run whoami

sudo whoami
root

sudo apt update - All packages have the latest versions.

Does this complete its mirror checks ok? curl https://in1.click/mirrors/cli.sh | sh
curl -fsSL https://in1.click/mirrors/cli.sh | bash

Be careful executing curl commands, no matter what the source :warning: If you prefer to inspect the contents before running it, or your organisation prohibits executing remote scripts directly, you can download the script, review it, and execute it manually instead:
https://in1.click/mirrors/cli.sh

-bash: curl: command not found

apt install curl

Be careful executing curl commands, no matter what the source :warning: If you prefer to inspect the contents before running it, or your organisation prohibits executing remote scripts directly, you can download the script, review it, and execute it manually instead:
https://in1.click/mirrors/cli.sh

Installed curl. Response: " % Total % Received % Xferd Average speed, Time, Current time"
Upload, download, Total amount spent, Remaining speed
100 18178 100 18178 0 0 30072 sh: 9: Syntax error: “(” unexpected 0
0 --:–:-- --:–:-- --:–:-- 30096
"

Installed curl. Response:

I run curl https://in1.click/mirrors/cli.sh | sh, and it returns the response.

" % Total % Received % Xferd Average speed, Time, Current time"
Upload, download, Total amount spent, Remaining speed
100 18178 100 18178 0 0 30072 sh: 9: Syntax error: “(” unexpected 0
0 --:–:-- --:–:-- --:–:-- 30096
"

Try curl -fsSL https://in1.click/mirrors/cli.sh | bash

user@debian2:~$ curl -fsSL https://in1.click/mirrors/cli.sh | bash

FreePBX Mirror Status (CLI)
for IN1CLICK by 20tele.com

Right then, let’s see what the mirrors are up to…

Checking server baseline (Cloudflare & Google DNS)…
Baseline: CF 1.1.1.1=FAILms, 1.0.0.1=FAILms | GG 8.8.8.8=FAILms, 8.8.4.4=FAILms
Average baseline latency: 0ms

mirror.freepbx.org


mirror.freepbx.org — DNS resolved to “172.66.168.146, 104.20.22.216” in 0,001s.
Looking good.

mirror.freepbx.org — TCP handshake on port 443 completed in 0,008s.
The Door is open.

mirror.freepbx.org — SSL cert valid (Google Trust Services), 40 days until expiry.
mirror.freepbx.org — FreePBX 17 XML: 60 standard, 15 extended, 2147s.
All looking healthy.

XML downloaded (300,8 KB), parsed server-side from Netwise East, London (UK)
mirror.freepbx.org — FreePBX 16 XML: 62 standard, 18 extended, 2306.3s.
All looking healthy.

XML downloaded (407,6 KB), parsed server-side from Netwise East, London (UK)

mirror.freepbx.org — Starting with a clean 100.
mirror.freepbx.org — FreePBX 17 took 2,15s. Over 2,0s threshold, -1 point.
mirror.freepbx.org — FreePBX 16 took 2,31s. Over 2,0s threshold, -1 point.
mirror.freepbx.org — Final score: 98%.

mirror1.freepbx.org


mirror1.freepbx.org — DNS resolved to “104.20.22.216, 172.66.168.146” in 0,001s.
Looking good.

mirror1.freepbx.org — TCP handshake on port 443 completed in 0,016s.
The Door is open.

mirror1.freepbx.org — SSL cert valid (Google Trust Services), 39 days until expiry.
mirror1.freepbx.org — FreePBX 17 XML: 60 standard, 15 extended, 2060.4s.
All looking healthy.

XML downloaded (300,8 KB), parsed server-side from Netwise East, London (UK)
awk: line 1: syntax error at or near +
user@debian2:~$

If you want to open a separate issue about this, please do so here: Issues · 20telecom/IN1CLICK · GitHub

There is no point this thread turning into a discussion about syntax issues you’re hitting with some tools I’ve offered as help to try and establish your problem. It’s an edge case and not something I can keep troubleshooting tonight.

Revert to your original attempts to install FreePBX 17 following this user guide and provide the output for someone else to pick up, please:

Thank you for your time)