[RESOLVED] Installation issue
  • Hi

    I am trying to install airtime on my server which is running debian squeeze

    when i type

    sudo apt-get install airtime
      
    at the end i get 
    Setting up icecast2 (2.3.2-6) ...
    Adding group `icecast' (GID 120) ...
    Done.
    Adding system user `icecast2' (UID 115) ...
    Adding new user `icecast2' (UID 115) with group `icecast' ...
    Not creating home directory `/usr/share/icecast2'.
    icecast2 daemon disabled - read /etc/default/icecast2.
    Setting up libsctp1 (1.0.11+dfsg-1) ...
    Setting up lksctp-tools (1.0.11+dfsg-1) ...
    Setting up mp3gain (1.5.1-4) ...
    Setting up python-pip (0.7.2-1) ...
    Setting up vorbisgain (0.36-3.1) ...
    Errors were encountered while processing:
     airtime
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    when i retry to install airtime i get

    * Making sure /etc/default/locale is set properly
     * Fail

    A non UTF-8 default locale found in /etc/default/locale. Airtime requires
    a UTF-8 locale to run. To fix this please do the following:

    Ubuntu:
    Put line 'en_US.UTF-8 UTF-8' (or similar) without quotes to '/var/lib/locales/supported.d/local',
    replacing any existing lines.
    A list of supported locales is available in '/usr/share/i18n/SUPPORTED'
    Then run 'sudo dpkg-reconfigure locales'

    Debian:
    Run 'sudo dpkg-reconfigure locales' and use the interface to select 'en_US.UTF-8 UTF-8' (or similar).
    On the second page select this new locale as the default.

    After these changes have been made simply run install again.

    Now exiting install...

    dpkg: error processing airtime (--configure):
     subprocess installed post-installation script returned error exit status 1
    configured to not write apport reports
                                          Errors were encountered while processing:
     airtime
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    Thanks
    Post edited by lechevo at 2012-08-17 10:26:51
  • 13 Comments sorted by
  • Hi,

    One of the third party package repositories that Airtime depends on has seen a change in it's domain name, and this causes your install to fail. Please do the following:

    Open 

    /etc/apt/sources.list 

    as root and change

    deb http://www.debian-multimedia.org squeeze main non-free

    to 

    deb http://www.deb-multimedia.org squeeze main non-free

    Then re-run the Airtime install. 


    We will fix this in an official manner soon.
    Airtime Pro Hosting: http://airtime.pro
  • getting the same error with ubuntu. its very very weird.
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    perhaps your installation of linux is not good...
    choose by default utf-8 during install and try again
  • Hi

    One thing to know : i am already hosting a website with apache

    There was no 
    deb http://www.debian-multimedia.org squeeze main non-free

    so i added 
    deb http://www.deb-multimedia.org squeeze main non-free

    and then

    # sudo apt-get install airtime
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    airtime is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
    1 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Setting up airtime (2.1.3-1) ...
    Site airtime-vhost disabled.
    Run '/etc/init.d/apache2 reload' to activate new configuration!
    Setting up apache2...
    Enabling site airtime-vhost.
    Run '/etc/init.d/apache2 reload' to activate new configuration!
    Module rewrite already enabled
    Configuring php5...
    Setting up monit configuration...
    Stopping daemon monitor: monit.
    Starting daemon monitor: monit.
    Warning: rabbitmq-server is not configured to start after a reboot!
    Fix Default-Start and Default-Stop lines in /etc/init.d/rabbitmq-server
    then run this command as root: update-rc.d rabbitmq-server defaults
    www-data www-data 750 /srv/airtime
    dpkg-statoverride: warning: An override for '/srv/airtime' already exists, but --force specified so will be ignored.
    Restarting web server: apache2 ... waiting .
    Liquidsoap symlink points to the right place!

    Debian package of Airtime detected...

    * Making sure /etc/default/locale is set properly
     * Fail

    A non UTF-8 default locale found in /etc/default/locale. Airtime requires
    a UTF-8 locale to run. To fix this please do the following:

    Ubuntu:
    Put line 'en_US.UTF-8 UTF-8' (or similar) without quotes to '/var/lib/locales/supported.d/local',
    replacing any existing lines.
    A list of supported locales is available in '/usr/share/i18n/SUPPORTED'
    Then run 'sudo dpkg-reconfigure locales'

    Debian:
    Run 'sudo dpkg-reconfigure locales' and use the interface to select 'en_US.UTF-8 UTF-8' (or similar).
    On the second page select this new locale as the default.

    After these changes have been made simply run install again.

    Now exiting install...

    dpkg: error processing airtime (--configure):
     subprocess installed post-installation script returned error exit status 1
    configured to not write apport reports
                                          Errors were encountered while processing:
     airtime
    E: Sub-process /usr/bin/dpkg returned an error code (1)


    Thanks for your help
    Post edited by lechevo at 2012-08-16 09:45:39
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    before trying to reinstall airtime do this :

    apt-get purge airtime
    apt-get update
    apt-get dist-upgrade
    apt-get install airtime
  • After doing this
    apt-get purge airtime 
    apt-get update 
    apt-get dist-upgrade 

    # apt-get install airtime
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Suggested packages:
      airtime-audio-samples alsa-utils
    The following NEW packages will be installed:
      airtime
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0 B/8641 kB of archives.
    After this operation, 36.9 MB of additional disk space will be used.
    Preconfiguring packages ...
    Selecting previously deselected package airtime.
    (Reading database ... 45092 files and directories currently installed.)
    Unpacking airtime (from .../airtime_2.1.3-1_all.deb) ...
    Setting up airtime (2.1.3-1) ...
    Site airtime-vhost already disabled
    Setting up apache2...
    Enabling site airtime-vhost.
    Run '/etc/init.d/apache2 reload' to activate new configuration!
    Module rewrite already enabled
    Configuring php5...
    Setting up monit configuration...
    Stopping daemon monitor: monit.
    Starting daemon monitor: monit.
    Warning: rabbitmq-server is not configured to start after a reboot!
    Fix Default-Start and Default-Stop lines in /etc/init.d/rabbitmq-server
    then run this command as root: update-rc.d rabbitmq-server defaults
    Restarting web server: apache2 ... waiting .
    Creating symlink for Liquidsoap...

    Debian package of Airtime detected...

    * Making sure /etc/default/locale is set properly
     * Fail

    A non UTF-8 default locale found in /etc/default/locale. Airtime requires
    a UTF-8 locale to run. To fix this please do the following:

    Ubuntu:
    Put line 'en_US.UTF-8 UTF-8' (or similar) without quotes to '/var/lib/locales/supported.d/local',
    replacing any existing lines.
    A list of supported locales is available in '/usr/share/i18n/SUPPORTED'
    Then run 'sudo dpkg-reconfigure locales'

    Debian:
    Run 'sudo dpkg-reconfigure locales' and use the interface to select 'en_US.UTF-8 UTF-8' (or similar).
    On the second page select this new locale as the default.

    After these changes have been made simply run install again.

    Now exiting install...

    dpkg: error processing airtime (--configure):
     subprocess installed post-installation script returned error exit status 1
    configured to not write apport reports
                                          Errors were encountered while processing:
     airtime
    E: Sub-process /usr/bin/dpkg returned an error code (1)

  • Hi

    I have manually edited the local file so i added in /etc/default/locale.


    LANG=fr_FR.UTF-8
    LC_MESSAGES=POSIX
    Here is my locale output :

    locale
    LANG=
    LANGUAGE=
    LC_CTYPE="POSIX"
    LC_NUMERIC="POSIX"
    LC_TIME="POSIX"
    LC_COLLATE="POSIX"
    LC_MONETARY="POSIX"
    LC_MESSAGES="POSIX"
    LC_PAPER="POSIX"
    LC_NAME="POSIX"
    LC_ADDRESS="POSIX"
    LC_TELEPHONE="POSIX"
    LC_MEASUREMENT="POSIX"
    LC_IDENTIFICATION="POSIX"
    LC_ALL=

    then i removed postgresql and airtime and then :

    # apt-get install airtime
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following extra packages will be installed:
      odbc-postgresql
    Suggested packages:
      airtime-audio-samples alsa-utils unixodbc-bin
    The following NEW packages will be installed:
      airtime odbc-postgresql
    0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0 B/9149 kB of archives.
    After this operation, 38.1 MB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Preconfiguring packages ...
    Selecting previously deselected package odbc-postgresql.
    (Reading database ... 45064 files and directories currently installed.)
    Unpacking odbc-postgresql (from .../odbc-postgresql_1%3a08.03.0200-1.2_amd64.deb) ...
    Selecting previously deselected package airtime.
    Unpacking airtime (from .../airtime_2.1.3-1_all.deb) ...
    Setting up odbc-postgresql (1:08.03.0200-1.2) ...
    Setting up airtime (2.1.3-1) ...
    Site airtime-vhost already disabled
    Setting up apache2...
    Enabling site airtime-vhost.
    Run '/etc/init.d/apache2 reload' to activate new configuration!
    Module rewrite already enabled
    Configuring php5...
    Setting up monit configuration...
    Stopping daemon monitor: monit.
    Starting daemon monitor: monit.
    Warning: rabbitmq-server is not configured to start after a reboot!
    Fix Default-Start and Default-Stop lines in /etc/init.d/rabbitmq-server
    then run this command as root: update-rc.d rabbitmq-server defaults
    Restarting web server: apache2[Thu Aug 16 17:02:13 2012] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
     ... waiting [Thu Aug 16 17:02:14 2012] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
    .
    Creating symlink for Liquidsoap...

    Debian package of Airtime detected...

    * Making sure /etc/default/locale is set properly
    LANG=fr_FR.UTF-8
     * None found.
    * Temporarily stopping any previous running services

    ******************************** Install Begin *********************************
    Ensuring python-virtualenv version > 1.4.8...Success!

    *** Creating Virtualenv for Airtime ***
    Already using interpreter /usr/bin/python
    New python executable in /usr/lib/airtime/airtime_virtualenv/bin/python
    Installing distribute.................................................................................................................................................................................done.

    *** Installing Python Libraries ***
    Unpacking /var/lib/airtime/tmp/python_apps/python-virtualenv/airtime_virtual_env.pybundle
    Downloading/unpacking pyinotify
      Running setup.py egg_info for package pyinotify
    Downloading/unpacking pytz
      Running setup.py egg_info for package pytz
        warning: no files found matching '*.pot' under directory 'pytz'
        warning: no previously-included files found matching 'test_zdump.py'
    Downloading/unpacking mutagen
      Running setup.py egg_info for package mutagen
    Downloading/unpacking anyjson
      Running setup.py egg_info for package anyjson
    Downloading/unpacking configobj
      Running setup.py egg_info for package configobj
    Downloading/unpacking amqplib
      Running setup.py egg_info for package amqplib
    Downloading/unpacking kombu
      Running setup.py egg_info for package kombu
    Downloading/unpacking poster
      Running setup.py egg_info for package poster
    Installing collected packages: amqplib, anyjson, configobj, kombu, mutagen, poster, pyinotify, pytz
      Running setup.py install for amqplib
      Running setup.py install for anyjson
      Running setup.py install for configobj
      Running setup.py install for kombu
      Running setup.py install for mutagen
        changing mode of build/scripts-2.6/mutagen-inspect from 644 to 755
        changing mode of build/scripts-2.6/mutagen-pony from 644 to 755
        changing mode of build/scripts-2.6/moggsplit from 644 to 755
        changing mode of build/scripts-2.6/mid3iconv from 644 to 755
        changing mode of build/scripts-2.6/mid3v2 from 644 to 755
        changing mode of /usr/lib/airtime/airtime_virtualenv/bin/mutagen-inspect to 755
        changing mode of /usr/lib/airtime/airtime_virtualenv/bin/mutagen-pony to 755
        changing mode of /usr/lib/airtime/airtime_virtualenv/bin/moggsplit to 755
        changing mode of /usr/lib/airtime/airtime_virtualenv/bin/mid3iconv to 755
        changing mode of /usr/lib/airtime/airtime_virtualenv/bin/mid3v2 to 755
      Running setup.py install for poster
      Running setup.py install for pyinotify
      Running setup.py install for pytz
        warning: no files found matching '*.pot' under directory 'pytz'
        warning: no previously-included files found matching 'test_zdump.py'
    Successfully installed amqplib anyjson configobj kombu mutagen poster pyinotify pytz
    Cleaning up...

    *** Patching Python Libraries ***
     * Patching virtualenv libraries in /usr/lib/airtime/airtime_virtualenv/lib/python2.6

       ---Applying Patches for mutagen---
    patching file site-packages/mutagen/mp3.py
    Hunk #1 succeeded at 205 (offset -4 lines).
    patching file site-packages/mutagen/mp3.py
    Hunk #2 succeeded at 169 (offset -4 lines).
    * Checking for user pypo
     * Creating user pypo
    * Creating INI files
    * Initializing INI files
    * Airtime Version: 2.1.3
    * Storage directory setup
    * Skipping directory already exists: /srv/airtime/stor
    * Giving Apache permission to access /srv/airtime/stor
    * Skipping directory already exists: /srv/airtime/stor/organize
    * Giving Apache permission to access /srv/airtime/stor/organize
    * Checking database for correct encoding
     * Unfortunately your postgresql database has not been created using a UTF-8 encoding.
     * As of Airtime 2.1, installs will fail unless the encoding has been set to UTF-8. Please verify this is the case
     * and try the install again
    There was an error during install. Exit code 1
    dpkg: error processing airtime (--configure):
     subprocess installed post-installation script returned error exit status 1
    configured to not write apport reports
                                          Errors were encountered while processing:
     airtime
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    Post edited by lechevo at 2012-08-16 11:07:58
  • LANG=
    LANGUAGE=
    LC_CTYPE="POSIX"
    LC_NUMERIC="POSIX"
    LC_TIME="POSIX"
    LC_COLLATE="POSIX"
    LC_MONETARY="POSIX"
    LC_MESSAGES="POSIX"
    LC_PAPER="POSIX"
    LC_NAME="POSIX"
    LC_ADDRESS="POSIX"
    LC_TELEPHONE="POSIX"
    LC_MEASUREMENT="POSIX"
    LC_IDENTIFICATION="POSIX"
    LC_ALL=

    This is one of the problems. My locale:

    LANG=en_CA.utf8
    LANGUAGE=
    LC_CTYPE="en_CA.utf8"
    LC_NUMERIC="en_CA.utf8"
    LC_TIME="en_CA.utf8"
    LC_COLLATE="en_CA.utf8"
    LC_MONETARY="en_CA.utf8"
    LC_MESSAGES="en_CA.utf8"
    LC_PAPER="en_CA.utf8"
    LC_NAME="en_CA.utf8"
    LC_ADDRESS="en_CA.utf8"
    LC_TELEPHONE="en_CA.utf8"
    LC_MEASUREMENT="en_CA.utf8"
    LC_IDENTIFICATION="en_CA.utf8"
    LC_ALL=

    Airtime Pro Hosting: http://airtime.pro
  • How do i change it ? 
  • sudo dpkg-reconfigure locales

    I does more than just modify /etc/default/locale
    Airtime Pro Hosting: http://airtime.pro
  • When i do 

    sudo dpkg-reconfigure locales

    then the local output is the same as before :
    LANG=
    LANGUAGE=
    LC_CTYPE="POSIX"
    LC_NUMERIC="POSIX"
    LC_TIME="POSIX"
    LC_COLLATE="POSIX"
    LC_MONETARY="POSIX"
    LC_MESSAGES="POSIX"
    LC_PAPER="POSIX"
    LC_NAME="POSIX"
    LC_ADDRESS="POSIX"
    LC_TELEPHONE="POSIX"
    LC_MEASUREMENT="POSIX"
    LC_IDENTIFICATION="POSIX"
    LC_ALL=
     
  • Thanks for your help

    It's fixex now , i did this 

    export LANGUAGE=en_US.UTF-8
    export LANG=en_US.UTF-8
    export LC_ALL=en_US.UTF-8
    locale-gen en_US.UTF-8
    sudo dpkg-reconfigure locales
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    mark as [RESOLVED]
    :D