Airtime install on Ubuntu 18.04 - Help?
  • Hey guys,

    Been using Airtime for about 6 years but my current server build (deb 7) has just died - problems with the machine (not airtime).

    I've grabbed a new VPS but as Deb 7 is so old it's no longer supported as an installable OS with my host.
    I installed Deb 9 (the oldest version they offer) but the airtime install got nowhere.

    So I wiped the new machine and installed UB 18.04.

    I've done the following to try and install airtime-2.5.2.1 but I'm still getting a ton of errors.

    - sudo nano /etc/apt/sources.list
    (and added) deb https://apt.sourcefabric.org/ bionic main

    - sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0888FE5B174C1854
    - sudo apt-get install sourcefabric-keyring
    - sudo add-apt-repository ppa:ondrej/php (for the old version 5 of PHP which is no longer supported)
    - sudo apt-get install -y php5.6

    But when I try to run ./install I get the following errors :

    Package mp3gain 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

    Package php5-curl 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

    Package php5 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

    Package php5-pgsql 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

    Package libapache2-mod-php5 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

    Package php-apc 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

    Package php5-gd 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

    W: --force-yes is deprecated, use one of the options starting with --allow instead.
    E: Package 'libapache2-mod-php5' has no installation candidate
    E: Package 'php5' has no installation candidate
    E: Package 'php5-gd' has no installation candidate
    E: Package 'php5-pgsql' has no installation candidate
    E: Package 'php5-curl' has no installation candidate
    E: Package 'mp3gain' has no installation candidate
    E: Package 'php-apc' has no installation candidate

    Can somebody please advise how to manually install the missing files? Where are they located?

    Or is there an updated install script that can be downloaded from anywhere?

    Many thanks!
    Post edited by DaveSpicer at 2020-06-18 06:02:47
  • 3 Comments sorted by
  • First of all, install git to be able to clone a repo

    apt-get install git
    git clone https://github.com/sourcefabric/Airtime.git

    If you get any error, download and install manually Airtime:
    Download the newest version of Airtime from sourcefabric website (today, this version is 2.5.2.1)
    Go to https://github.com/sourcefabric/Airtime/releases , and wget the latest.

    wget https://github.com/sourcefabric/Airtime/archive/airtime-2.5.2.1.tar.gz

    There is an error in sourcefabric installation script about the database. You have to manually install PostgreSQL berore running the install script. If you first run the install, don’t worry, just install porstgre and rerun airtime installation

    apt-get install postgresql postgresql-contrib

    Now, you are ready to install Airtime:

    sudo ~/airtime-2.5.2.1/install -fiap

    or go to airtime folder and install

    sudo ./install -fiap

    Open your browser to your ip or domain, no special ports needed, and follow the instructions.
    Follow all the details from airtime installation, it is pretty forward! You probably will se an error in the end, stating that some services are not running. Just rerun those services following those commands:

    service airtime-media-monitor start
    service airtime-liquidsoap restart
    service airtime-playout restart

    There is no statement about the default login and password for your server. Enter in both fields “admin” and when logged in, don’t forget to change the values :P

    Post edited by Matt.Waller at 2020-09-21 09:12:08
  • i hope it was helpful !
    Post edited by Matt.Waller at 2020-10-01 08:16:58
  • The issue is that php5 is not available by default on Ubuntu 18.04.

    There is also no issue with the install script. It works just fine if you exclude the -fiap tags. Just answer 'y' to all questions when prompted and it will even take care of the postures installation. That is assuming you are installing on a version that has php5 available.

    I have been working on updating some of the source to make it run on Ubuntu 18 and have made great progress so far.