Install Error

After I run the install command: bash /tmp/sng_freepbx_debian_install.sh

I get this error:
2025-08-15 22:32:56 - Please refer to the /var/log/pbx/freepbx17-install-2025.08.15-22.32.56.log to know the process…
2025-08-15 22:32:56 - Making sure installation is sane
2025-08-15 22:33:00 - Setting up default configuration
2025-08-15 22:33:01 - Setting up repositories
2025-08-15 22:33:07 - Exiting script

Log file says:
Hit:1 Index of /debian bookworm InRelease
Hit:2 Index of /debian bookworm-updates InRelease
Hit:3 Index of /debian-security bookworm-security InRelease
Hit:4 Index of /download/newkey/repository stable InRelease
Hit:5 http://deb.freepbx.org/freepbx17-prod bookworm InRelease
Reading package lists…
Repository: ‘deb [arch=amd64] http://deb.freepbx.org/freepbx17-prod bookworm main’
Description:
Archive for codename: bookworm components: main
More info: http://deb.freepbx.org/freepbx17-prod
Adding repository.
Found existing deb entry in /etc/apt/sources.list.d/archive_uri-http_deb_freepbx_org_freepbx17-prod-bookworm.list
Adding deb entry to /etc/apt/sources.list.d/archive_uri-http_deb_freepbx_org_freepbx17-prod-bookworm.list
Found existing deb-src entry in /etc/apt/sources.list.d/archive_uri-http_deb_freepbx_org_freepbx17-prod-bookworm.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/archive_uri-http_deb_freepbx_org_freepbx17-prod-bookworm.list
Hit:1 Index of /debian-security bookworm-security InRelease
Hit:2 Index of /download/newkey/repository stable InRelease
Hit:3 Index of /debian bookworm InRelease
Hit:4 http://deb.freepbx.org/freepbx17-prod bookworm InRelease
Hit:5 Index of /debian bookworm-updates InRelease
Reading package lists…
Repository: ‘deb [arch=amd64] http://deb.freepbx.org/freepbx17-prod bookworm main’
Description:
Archive for codename: bookworm components: main
More info: http://deb.freepbx.org/freepbx17-prod
Adding repository.
Found existing deb entry in /etc/apt/sources.list.d/archive_uri-http_deb_freepbx_org_freepbx17-prod-bookworm.list
Adding deb entry to /etc/apt/sources.list.d/archive_uri-http_deb_freepbx_org_freepbx17-prod-bookworm.list
Found existing deb-src entry in /etc/apt/sources.list.d/archive_uri-http_deb_freepbx_org_freepbx17-prod-bookworm.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/archive_uri-http_deb_freepbx_org_freepbx17-prod-bookworm.list
Repository: ‘deb Index of /debian bookworm non-free main non-free-firmware’
Description:
Archive for codename: bookworm components: non-free,main,non-free-firmware
More info: Index of /debian
Adding repository.
Updating existing entry instead of using /etc/apt/sources.list.d/archive_uri-http_ftp_debian_org_debian-bookworm.list
Traceback (most recent call last):
File “/usr/bin/add-apt-repository”, line 362, in
sys.exit(0 if addaptrepo.main() else 1)
^^^^^^^^^^^^^^^^^
File “/usr/bin/add-apt-repository”, line 355, in main
shortcut.add()
File “/usr/lib/python3/dist-packages/softwareproperties/shortcuthandler.py”, line 221, in add
self.add_source()
File “/usr/lib/python3/dist-packages/softwareproperties/shortcuthandler.py”, line 287, in add_source
if srcentry.file != newentry.file:
^^^^^^^^^^^^^
AttributeError: ‘NoneType’ object has no attribute ‘file’
2025-08-15 22:20:41 - Exiting script

Just wondering if anyone has any clue what went wrong? Google turns up almost nothing. My server is a fresh install of Debian 12 and up to date.

Thanks.

The issue here is that the install script is trying to fix a problem that Debian already fixed on its own through its normal policies.

Before Trixie was released the install script had this:

deb http://deb.debian.org/debian stable main contrib non-free

Now it has this:

deb http://deb.debian.org/debian bookworm main contrib non-free

That error is happening because the install script is trying to add that last repo and your Debian install is already pointing to it.

Comment out the lines in the install script that try to set the repo to bookworm and try again.

Thanks for the reply, I edited the file and commented out with “#” those lines but for some reason the script wont execute now. I did “chmod x file.sh” but didnt help. I’m running the script as root.

What kind of errors are you getting? Any output from the script?

no, nothing, I run the script it just exits back to the prompt.

Thanks for your help. I did get it installed by disabling the Debian repositories, then download new install script and install without modifications, then re-enable the Debian repositories.

1 Like

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