nemerald-voip / fspbx

FS PBX is a beautiful front end based on Laravel + Vue.js for Freeswitch
Apache License 2.0
25 stars 8 forks source link

Installation issue on debian 11 #25

Closed md-riaz closed 3 weeks ago

md-riaz commented 4 weeks ago

System info:

Distributor ID: Debian Description: Debian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye

Error occured during command: sh install.sh

-e Welcome to FS PBX installation script Hit:1 http://security.debian.org/debian-security bullseye-security InRelease Hit:2 http://deb.debian.org/debian bullseye InRelease Hit:3 http://deb.debian.org/debian bullseye-updates InRelease Hit:4 http://deb.debian.org/debian bullseye-backports InRelease Ign:5 http://ppa.launchpad.net/ondrej/php/ubuntu oracular InRelease Hit:6 https://packages.sury.org/php bullseye InRelease Err:7 http://ppa.launchpad.net/ondrej/php/ubuntu oracular Release 404 Not Found [IP: 185.125.190.80 80] Hit:8 http://apt.postgresql.org/pub/repos/apt bullseye-pgdg InRelease Reading package lists... Done E: The repository 'http://ppa.launchpad.net/ondrej/php/ubuntu oracular Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. -e Error occurred during update and upgrade.

nemerald-voip commented 3 weeks ago

The error message indicates that the PPA repository for PHP on Ubuntu (http://ppa.launchpad.net/ondrej/php/ubuntu) does not exist or is not compatible with Debian Bullseye. This is causing the script to fail during the apt update step. Debian and Ubuntu use different package repositories, and the script is trying to use a PPA intended for Ubuntu, which is not available for Debian.

To fix this issue, you should remove the problematic PPA from your system. Here's what you can do:

1. Remove the problematic PPA

Since you are using Debian Bullseye, you should not be using Ubuntu PPAs. To remove the PPA, follow these steps:

Open the terminal and remove the PPA from your system:

sudo add-apt-repository --remove ppa:ondrej/php

Alternatively, you can manually remove it by editing the sources list:

Edit /etc/apt/sources.list.d and remove or comment out the lines containing the PPA:

sudo nano /etc/apt/sources.list.d/ondrej-php.list

2. Use the correct PHP repository for Debian

The recommended repository for PHP on Debian is provided by Sury, so you don't need to add the PPA. You can ensure it's set up correctly with the following commands:

sudo apt-get update
sudo apt-get install -y lsb-release ca-certificates apt-transport-https software-properties-common
wget -qO - https://packages.sury.org/php/apt.gpg | sudo tee /etc/apt/trusted.gpg.d/sury-keyring.gpg > /dev/null
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php.list
sudo apt-get update

3. Continue with the script

Once the PPA issue is resolved, the script should be able to complete the rest of the installation process.

md-riaz commented 3 weeks ago

As the readme says, it's for debian 11/12, Why is the installation code trying to use Ubuntu??

I think you should update the installation script to use the proper repository.

nemerald-voip commented 3 weeks ago

It's not the script that has an issue. It's your system trying to use Ubuntu repositories. I gave you instructions on how to try to mitigate this issue. if you open the script you will see that the very first thing it's doing is trying to update your system.

apt update && apt upgrade -y

You can run those manually and you will probably get the same error. If you resolve the issue with the updates you should not have any issues to continue with the rest of the script.

md-riaz commented 3 weeks ago

Ok thanks, Great work by the way👍

nemerald-voip commented 3 weeks ago

Thank you. I hope you enjoy it.