Install Script Fails on Vagrant Ubuntu 14.04 (64)

Running the install script on a vagrant virtual machine using Ubuntu(64) 14.04. Following instructions from InstallGuide

Below is the output:


vagrant@vagrant-ubuntu-trusty-64:/vagrant$ sudo ./install_kaltura_all_in_1.sh 
--2015-06-03 19:49:08--  http://installrepo.kaltura.org/repo/apt/debian/kaltura-deb.gpg.key
Resolving installrepo.kaltura.org (installrepo.kaltura.org)... 54.230.4.224, 54.192.5.238, 54.230.4.126, ...
Connecting to installrepo.kaltura.org (installrepo.kaltura.org)|54.230.4.224|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1727 (1.7K) [text/plain]
Saving to: ‘STDOUT’

100%[==========================================================>] 1,727       --.-K/s   in 0s      

2015-06-03 19:49:09 (146 MB/s) - written to stdout [1727/1727]

OK
/usr/bin/aptitude
Ign http://security.ubuntu.com trusty-security InRelease
Ign http://archive.ubuntu.com trusty InRelease                                                      
Hit http://installrepo.kaltura.org jupiter InRelease                                                
Get: 1 http://security.debian.org wheezy/updates InRelease [104 kB]                                 
Get: 2 http://security.ubuntu.com trusty-security Release.gpg [933 B]                               
Ign http://archive.ubuntu.com trusty-updates InRelease                                              
Get: 3 http://security.ubuntu.com trusty-security Release [63.5 kB]             
Hit http://archive.ubuntu.com trusty Release.gpg                                                    
Hit http://installrepo.kaltura.org jupiter/main amd64 Packages                                      
Ign http://ftp.debian.org wheezy InRelease                                                          
Get: 4 http://archive.ubuntu.com trusty-updates Release.gpg [933 B]                                 
Hit http://archive.ubuntu.com trusty Release                                                        
Get: 5 http://ftp.debian.org wheezy Release.gpg [2,390 B]                                           
Get: 6 http://security.ubuntu.com trusty-security/main Sources [83.9 kB]                            
Get: 7 http://archive.ubuntu.com trusty-updates Release [63.5 kB]                                   
Ign http://security.debian.org wheezy/updates InRelease                                             
Hit http://ftp.debian.org wheezy Release                                                            
Ign http://ftp.debian.org wheezy Release                                                            
Get: 8 http://security.ubuntu.com trusty-security/universe Sources [25.2 kB]                        
Get: 9 http://security.ubuntu.com trusty-security/main amd64 Packages [284 kB]                      
Ign http://ftp.debian.org wheezy/main amd64 Packages/DiffIndex                                      
Hit http://archive.ubuntu.com trusty/main Sources                                                   
Hit http://archive.ubuntu.com trusty/universe Sources                                               
Get: 10 http://security.ubuntu.com trusty-security/universe amd64 Packages [107 kB]                 
Hit http://archive.ubuntu.com trusty/multiverse Sources                                             
Ign http://security.debian.org wheezy/updates/main amd64 Packages/DiffIndex                         
Hit http://ftp.debian.org wheezy/main Translation-en                                                
Hit http://security.ubuntu.com trusty-security/main Translation-en                                  
Hit http://archive.ubuntu.com trusty/main amd64 Packages                                            
Hit http://security.ubuntu.com trusty-security/universe Translation-en                              
Hit http://archive.ubuntu.com trusty/universe amd64 Packages                                        
Get: 11 http://security.debian.org wheezy/updates/main Translation-en [175 kB]          
Hit http://ftp.debian.org wheezy/main amd64 Packages                                                
Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages                                      
Hit http://archive.ubuntu.com trusty/main Translation-en                                            
Get: 12 http://security.debian.org wheezy/updates/main amd64 Packages [310 kB]                      
Ign http://installrepo.kaltura.org jupiter/main Translation-en_US                                   
Hit http://archive.ubuntu.com trusty/multiverse Translation-en                                      
Ign http://installrepo.kaltura.org jupiter/main Translation-en                                      
Hit http://archive.ubuntu.com trusty/universe Translation-en                                        
Ign http://ftp.debian.org wheezy/main Translation-en_US                      
Get: 13 http://archive.ubuntu.com trusty-updates/main Sources [207 kB]       
Ign http://security.debian.org wheezy/updates/main Translation-en_US                   
Get: 14 http://archive.ubuntu.com trusty-updates/universe Sources [118 kB]
Get: 15 http://archive.ubuntu.com trusty-updates/multiverse Sources [5,152 B]
Get: 16 http://archive.ubuntu.com trusty-updates/main amd64 Packages [532 kB]
Get: 17 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [283 kB]
Get: 18 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [11.9 kB]
Get: 19 http://archive.ubuntu.com trusty-updates/main Translation-en [252 kB]
Hit http://archive.ubuntu.com trusty-updates/multiverse Translation-en
Hit http://archive.ubuntu.com trusty-updates/universe Translation-en
Ign http://archive.ubuntu.com trusty/main Translation-en_US
Ign http://archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://archive.ubuntu.com trusty/universe Translation-en_US                                     
Fetched 2,630 kB in 6s (430 kB/s)                                                                   
W: GPG error: http://security.debian.org wheezy/updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9D6D8F6BC857C906 NO_PUBKEY 8B48AD6246925553
W: GPG error: http://ftp.debian.org wheezy Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010 NO_PUBKEY 6FB2A1C265FFB764

No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 113 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
                                         
The following NEW packages will be installed:
  kaltura-postinst libcurses-perl{ab} libcurses-ui-perl{a} sysv-rc-conf{a} unzip{a} 
0 packages upgraded, 5 newly installed, 0 to remove and 113 not upgraded.
Need to get 590 kB of archives. After unpacking 1,785 kB will be used.
The following packages have unmet dependencies:
 libcurses-perl : Depends: perlapi-5.14.2 which is a virtual package.
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     kaltura-postinst [Not Installed]                   
2)     libcurses-perl [Not Installed]                     
3)     libcurses-ui-perl [Not Installed]                  
4)     sysv-rc-conf [Not Installed]                       



No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 113 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
                                         
The following NEW packages will be installed:
  kaltura-base kaltura-postinst{a} libcurses-perl{ab} libcurses-ui-perl{a} libmcrypt4{a} 
  libopts25{a} monit{a} ntp{a} php5-curl{a} php5-mcrypt{ab} php5-mysql{a} sysv-rc-conf{a} 
  unzip{a} 
0 packages upgraded, 13 newly installed, 0 to remove and 113 not upgraded.
Need to get 80.9 MB of archives. After unpacking 195 MB will be used.
The following packages have unmet dependencies:
 php5-mcrypt : Depends: phpapi-20100525 which is a virtual package.
               Depends: php5-common (= 5.4.39-0+deb7u2) but 5.5.9+dfsg-1ubuntu4.9 is installed.
 libcurses-perl : Depends: perlapi-5.14.2 which is a virtual package.
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     kaltura-base [Not Installed]                       
2)     kaltura-postinst [Not Installed]                   
3)     libcurses-perl [Not Installed]                     
4)     libcurses-ui-perl [Not Installed]                  
5)     php5-mcrypt [Not Installed]                        
6)     sysv-rc-conf [Not Installed]                       



No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 113 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
                                         
The following NEW packages will be installed:
  kaltura-base{a} kaltura-clipapp{a} kaltura-kclip{a} kaltura-kcw{a} kaltura-kdp{a} 
  kaltura-kdp3{a} kaltura-kdp3wrapper{a} kaltura-kdpwrapper{a} kaltura-kmc{a} 
  kaltura-krecord{a} kaltura-kupload{a} kaltura-postinst{a} kaltura-widgets libcurses-perl{ab} 
  libcurses-ui-perl{a} libmcrypt4{a} libopts25{a} monit{a} ntp{a} php5-curl{a} php5-mcrypt{ab} 
  php5-mysql{a} sysv-rc-conf{a} unzip{a} 
0 packages upgraded, 24 newly installed, 0 to remove and 113 not upgraded.
Need to get 442 MB of archives. After unpacking 622 MB will be used.
The following packages have unmet dependencies:
 php5-mcrypt : Depends: phpapi-20100525 which is a virtual package.
               Depends: php5-common (= 5.4.39-0+deb7u2) but 5.5.9+dfsg-1ubuntu4.9 is installed.
 libcurses-perl : Depends: perlapi-5.14.2 which is a virtual package.
The following actions will resolve these dependencies:

      Keep the following packages at their current version:
1)      kaltura-base [Not Installed]                       
2)      kaltura-clipapp [Not Installed]                    
3)      kaltura-kclip [Not Installed]                      
4)      kaltura-kcw [Not Installed]                        
5)      kaltura-kdp [Not Installed]                        
6)      kaltura-kdp3 [Not Installed]                       
7)      kaltura-kdp3wrapper [Not Installed]                
8)      kaltura-kdpwrapper [Not Installed]                 
9)      kaltura-kmc [Not Installed]                        
10)     kaltura-krecord [Not Installed]                    
11)     kaltura-kupload [Not Installed]                    
12)     kaltura-postinst [Not Installed]                   
13)     kaltura-widgets [Not Installed]                    
14)     libcurses-perl [Not Installed]                     
15)     libcurses-ui-perl [Not Installed]                  
16)     php5-mcrypt [Not Installed]                        
17)     sysv-rc-conf [Not Installed]                       



No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 113 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
                                         
The following NEW packages will be installed:
  kaltura-base{a} kaltura-ffmpeg{a} kaltura-ffmpeg-aux{a} kaltura-front kaltura-postinst{a} 
  libapache2-mod-xsendfile{a} libass4{a} libcurses-perl{ab} libcurses-ui-perl{a} libfaac0{a} 
  libfdk-aac0{a} libjpeg62{a} libmcrypt4{a} libmediainfo0{a} libmemcached10{a} libmms0{a} 
  libopencore-amrnb0{a} libopencore-amrwb0{a} libopts25{a} libssh2-1{a} libssh2-php{a} 
  libtinyxml2-0.0.0{a} libvorbisfile3{a} libx264-123{a} libxslt1.1{a} libzen0{a} mediainfo{a} 
  memcached{a} monit{a} ntp{a} php5-curl{a} php5-gmp{a} php5-ldap{a} php5-mcrypt{ab} 
  php5-memcached{a} php5-mysql{a} php5-xsl{a} sshpass{a} sysv-rc-conf{a} unzip{a} 
0 packages upgraded, 40 newly installed, 0 to remove and 113 not upgraded.
Need to get 103 MB of archives. After unpacking 206 MB will be used.
The following packages have unmet dependencies:
 php5-mcrypt : Depends: phpapi-20100525 which is a virtual package.
               Depends: php5-common (= 5.4.39-0+deb7u2) but 5.5.9+dfsg-1ubuntu4.9 is installed.
 libcurses-perl : Depends: perlapi-5.14.2 which is a virtual package.
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     kaltura-base [Not Installed]                       
2)     kaltura-front [Not Installed]                      
3)     kaltura-postinst [Not Installed]                   
4)     libcurses-perl [Not Installed]                     
5)     libcurses-ui-perl [Not Installed]                  
6)     php5-mcrypt [Not Installed]                        
7)     sysv-rc-conf [Not Installed]                       



No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 113 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
                                         
The following NEW packages will be installed:
  kaltura-base{a} kaltura-postinst{a} kaltura-sphinx libcurses-perl{ab} libcurses-ui-perl{a} 
  libmcrypt4{a} libopts25{a} monit{a} ntp{a} php5-curl{a} php5-mcrypt{ab} php5-mysql{a} 
  sysv-rc-conf{a} unzip{a} 
0 packages upgraded, 14 newly installed, 0 to remove and 113 not upgraded.
Need to get 86.4 MB of archives. After unpacking 210 MB will be used.
The following packages have unmet dependencies:
 php5-mcrypt : Depends: phpapi-20100525 which is a virtual package.
               Depends: php5-common (= 5.4.39-0+deb7u2) but 5.5.9+dfsg-1ubuntu4.9 is installed.
 libcurses-perl : Depends: perlapi-5.14.2 which is a virtual package.
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     kaltura-base [Not Installed]                       
2)     kaltura-postinst [Not Installed]                   
3)     kaltura-sphinx [Not Installed]                     
4)     libcurses-perl [Not Installed]                     
5)     libcurses-ui-perl [Not Installed]                  
6)     php5-mcrypt [Not Installed]                        
7)     sysv-rc-conf [Not Installed]                       



No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 113 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
                                         
The following NEW packages will be installed:
  kaltura-base{a} kaltura-db kaltura-postinst{a} libcurses-perl{ab} libcurses-ui-perl{a} 
  libmcrypt4{a} libopts25{a} monit{a} ntp{a} php5-curl{a} php5-mcrypt{ab} php5-mysql{a} 
  sysv-rc-conf{a} unzip{a} 
0 packages upgraded, 14 newly installed, 0 to remove and 113 not upgraded.
Need to get 80.9 MB of archives. After unpacking 195 MB will be used.
The following packages have unmet dependencies:
 php5-mcrypt : Depends: phpapi-20100525 which is a virtual package.
               Depends: php5-common (= 5.4.39-0+deb7u2) but 5.5.9+dfsg-1ubuntu4.9 is installed.
 libcurses-perl : Depends: perlapi-5.14.2 which is a virtual package.
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     kaltura-base [Not Installed]                       
2)     kaltura-db [Not Installed]                         
3)     kaltura-postinst [Not Installed]                   
4)     libcurses-perl [Not Installed]                     
5)     libcurses-ui-perl [Not Installed]                  
6)     php5-mcrypt [Not Installed]                        
7)     sysv-rc-conf [Not Installed]                       



No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 113 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
                                         
The following NEW packages will be installed:
  kaltura-batch kaltura-ffmpeg{a} kaltura-ffmpeg-aux{a} libapache2-mod-xsendfile{a} libass4{a} 
  libfaac0{a} libfdk-aac0{a} libjpeg62{a} liblzo2-2{a} libmcrypt4{a} libmediainfo0{a} 
  libmemcached10{a} libmms0{a} libopencore-amrnb0{a} libopencore-amrwb0{a} libssh2-1{a} 
  libssh2-php{a} libtinyxml2-0.0.0{a} libvorbisfile3{a} libx264-123{a} libxslt1.1{a} libzen0{a} 
  mediainfo{a} mencoder{a} php5-curl{a} php5-gmp{a} php5-ldap{a} php5-mcrypt{ab} 
  php5-memcached{a} php5-mysql{a} php5-xsl{a} sshpass{a} 
0 packages upgraded, 32 newly installed, 0 to remove and 113 not upgraded.
Need to get 23.3 MB of archives. After unpacking 14.6 MB will be used.
The following packages have unmet dependencies:
 php5-mcrypt : Depends: phpapi-20100525 which is a virtual package.
               Depends: php5-common (= 5.4.39-0+deb7u2) but 5.5.9+dfsg-1ubuntu4.9 is installed.
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     kaltura-batch [Not Installed]                      
2)     php5-mcrypt [Not Installed]                        



No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 113 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
                                         
The following NEW packages will be installed:
  acl{a} at-spi2-core{a} ca-certificates-java{a} colord{a} dconf-gsettings-backend{a} 
  dconf-service{a} default-jre{a} default-jre-headless{a} desktop-file-utils{a} 
  fonts-dejavu-extra{a} gconf-service{a} gconf-service-backend{a} gconf2{a} gconf2-common{a} 
  gnome-mime-data{a} gvfs{a} gvfs-common{a} gvfs-daemons{a} gvfs-libs{a} java-common{a} 
  kaltura-base{a} kaltura-dwh kaltura-pentaho{a} kaltura-postinst{a} libatasmart4{a} 
  libatk-bridge2.0-0{a} libatk-wrapper-java{a} libatk-wrapper-java-jni{a} libatk1.0-0{a} 
  libatk1.0-data{a} libatspi2.0-0{a} libavahi-glib1{a} libbonobo2-0{a} libbonobo2-common{a} 
  libcairo-gobject2{a} libcanberra0{a} libcolord1{a} libcolorhug1{a} libcurses-perl{ab} 
  libcurses-ui-perl{a} libdconf1{a} libexif12{a} libfam0{a} libgconf-2-4{a} libgconf2-4{a} 
  libgnome2-0{a} libgnome2-bin{a} libgnome2-common{a} libgnomevfs2-0{a} libgnomevfs2-common{a} 
  libgnomevfs2-extra{a} libgphoto2-6{a} libgphoto2-l10n{a} libgphoto2-port10{a} libgtk-3-0{a} 
  libgtk-3-bin{a} libgtk-3-common{a} libgtk2.0-0{a} libgtk2.0-bin{a} libgtk2.0-common{a} 
  libgudev-1.0-0{a} libgusb2{a} libidl-common{a} libidl0{a} libieee1284-3{a} libldb1{a} 
  libmcrypt4{a} libnspr4{a} libnss3{a} libnss3-nssdb{a} libntdb1{a} libopts25{a} 
  liborbit-2-0{a} liborbit2{a} libpango1.0-0{a} libpangox-1.0-0{a} libpangoxft-1.0-0{a} 
  libsane{a} libsane-common{a} libsecret-1-0{a} libsecret-common{a} libsmbclient{a} 
  libtalloc2{a} libtdb1{a} libtevent0{a} libudisks2-0{a} libv4l-0{a} libv4lconvert0{a} 
  libvorbisfile3{a} libwayland-client0{a} libwayland-cursor0{a} libwbclient0{a} 
  libxcb-shape0{a} libxcursor1{a} libxft2{a} libxi6{a} libxkbcommon0{a} libxtst6{a} monit{a} 
  ntp{a} openjdk-7-jre{a} openjdk-7-jre-headless{a} php5-curl{a} php5-mcrypt{ab} php5-mysql{a} 
  policykit-1-gnome{a} python-talloc{a} samba-libs{a} sound-theme-freedesktop{a} 
  sysv-rc-conf{a} ttf-dejavu-extra{a} tzdata-java{a} udisks2{a} unzip{a} x11-utils{a} 
0 packages upgraded, 115 newly installed, 0 to remove and 113 not upgraded.
Need to get 443 MB of archives. After unpacking 838 MB will be used.
The following packages have unmet dependencies:
 php5-mcrypt : Depends: phpapi-20100525 which is a virtual package.
               Depends: php5-common (= 5.4.39-0+deb7u2) but 5.5.9+dfsg-1ubuntu4.9 is installed.
 libcurses-perl : Depends: perlapi-5.14.2 which is a virtual package.
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     kaltura-base [Not Installed]                       
2)     kaltura-dwh [Not Installed]                        
3)     kaltura-postinst [Not Installed]                   
4)     libcurses-perl [Not Installed]                     
5)     libcurses-ui-perl [Not Installed]                  
6)     php5-mcrypt [Not Installed]                        
7)     sysv-rc-conf [Not Installed]                       



No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 113 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
                                         
The following NEW packages will be installed:
  kaltura-nginx kaltura-postinst{a} libcurses-perl{ab} libcurses-ui-perl{a} sysv-rc-conf{a} 
  unzip{a} 
0 packages upgraded, 6 newly installed, 0 to remove and 113 not upgraded.
Need to get 1,106 kB of archives. After unpacking 3,024 kB will be used.
The following packages have unmet dependencies:
 libcurses-perl : Depends: perlapi-5.14.2 which is a virtual package.
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     kaltura-nginx [Not Installed]                      
2)     kaltura-postinst [Not Installed]                   
3)     libcurses-perl [Not Installed]                     
4)     libcurses-ui-perl [Not Installed]                  
5)     sysv-rc-conf [Not Installed]                       



No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 113 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
                                         
./install_kaltura_all_in_1.sh: 24: ./install_kaltura_all_in_1.sh: /etc/init.d/kaltura-nginx: not found

Hello,

What repos do you have in your sources.list?
Also, what’s the output for:
# dpkg -l “php

Problem was resolved after I uncommented a couple of Multiverse debian sources and ran an update on aptitude’s package list.

I’m using vagrant with “ubuntu/trusty64”

Now the install script works, but when I finish the installation instructions by running

sudo aptitude install kaltura-red5

I get the following errors:

vagrant@vagrant-ubuntu-trusty-64:~$ sudo aptitude install kaltura-red5
The following partially installed packages will be configured:
  kaltura-red5 red5-server 
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Setting up red5-server (1.0~svn4374-3) ...
 * Starting Flash streaming server  red5-server                                              [fail] 
invoke-rc.d: initscript red5-server, action "start" failed.
dpkg: error processing package red5-server (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of kaltura-red5:
 kaltura-red5 depends on red5-server; however:
  Package red5-server is not configured yet.

dpkg: error processing package kaltura-red5 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
      Errors were encountered while processing:
 red5-server
 kaltura-red5
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up red5-server (1.0~svn4374-3) ...
 * Starting Flash streaming server  red5-server                                              [fail] 
invoke-rc.d: initscript red5-server, action "start" failed.
dpkg: error processing package red5-server (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of kaltura-red5:
 kaltura-red5 depends on red5-server; however:
  Package red5-server is not configured yet.

dpkg: error processing package kaltura-red5 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 red5-server
 kaltura-red5

Hello,

Issue here starts with the red5-server package, which is not a Kalturian package but rather an official deb from the distro’s repo.
I would suggest you try to run /var/lib/dpkg/info/red-server.postinst configure from the shell after editing it and adding -x to the !#/bin/sh and see what it fails on.

I’m sorry, not sure I followed, but here’s what I tried.

I opened /var/lib/dpkg/info/red-server.postinst and appended +x to the !#/bin/sh line. I executed the same (edited) file and got the following output:

postinst called with unknown argument `'

Hey,

its -x not +x:)
then you should just run it
# /var/lib/dpkg/info/red5-server.postinst configure
As root and see what happens…

Maybe I should have tried this after a short nap. lol

Here’s what I got:

The following partially installed packages will be configured:
  kaltura-red5 red5-server 
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Setting up red5-server (1.0~svn4374-3) ...
+ set -e
+ DAEMONUSER=_red5
+ DAEMON=/usr/share/red5/red5.sh
+ id _red5
+ chown -R _red5:nogroup /var/log/red5 /var/cache/red5
+ chown -R _red5:adm /etc/red5
+ chown _red5:adm /var/log/red5 /var/cache/red5
+ chmod -R 770 /etc/red5
+ chmod 750 /var/log/red5 /etc/red5
+ chmod 700 /var/cache/red5
+ [ -x /etc/init.d/red5-server ]
+ [ ! -e /etc/init/red5-server.conf ]
+ update-rc.d red5-server defaults
+ invoke-rc.d red5-server start
 * Starting Flash streaming server  red5-server                                            [fail] 
invoke-rc.d: initscript red5-server, action "start" failed.
+ exit 1
dpkg: error processing package red5-server (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of kaltura-red5:
 kaltura-red5 depends on red5-server; however:
  Package red5-server is not configured yet.

dpkg: error processing package kaltura-red5 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
        Errors were encountered while processing:
 red5-server
 kaltura-red5
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up red5-server (1.0~svn4374-3) ...
+ set -e
+ DAEMONUSER=_red5
+ DAEMON=/usr/share/red5/red5.sh
+ id _red5
+ chown -R _red5:nogroup /var/log/red5 /var/cache/red5
+ chown -R _red5:adm /etc/red5
+ chown _red5:adm /var/log/red5 /var/cache/red5
+ chmod -R 770 /etc/red5
+ chmod 750 /var/log/red5 /etc/red5
+ chmod 700 /var/cache/red5
+ [ -x /etc/init.d/red5-server ]
+ [ ! -e /etc/init/red5-server.conf ]
+ update-rc.d red5-server defaults
+ invoke-rc.d red5-server start
 * Starting Flash streaming server  red5-server                                            [fail] 
invoke-rc.d: initscript red5-server, action "start" failed.
+ exit 1
dpkg: error processing package red5-server (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of kaltura-red5:
 kaltura-red5 depends on red5-server; however:
  Package red5-server is not configured yet.

dpkg: error processing package kaltura-red5 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 red5-server
 kaltura-red5

The same error occurs when I try the Chef Install Instructions.

try
# bash -x /etc/init.d/red5-server start
See what you’re getting.

As far as Chef, the instructions in question refer to installing on RPM based system so, they are not relevant to this case.

Thanks,

Same error for me! Ubuntu 14.04 - https://github.com/kaltura/platform-install-packages/blob/Jupiter-10.12.0/doc/install-kaltura-deb-based.md#upgrade-kaltura

root@media ~ # bash -x /etc/init.d/red5-server start

  • PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
  • NAME=red5-server
  • DAEMON=/usr/share/red5/red5.sh
  • DAEMON_STOP=/usr/share/red5/red5-shutdown.sh
  • RED5_MAINCLASS=org.red5.server.Bootstrap
  • DESC=‘Flash streaming server’
  • PIDFILE=/var/run/red5-server.pid
  • DEFAULT=/etc/default/red5-server
  • . /lib/lsb/init-functions
    +++ run-parts --lsbsysinit --list /lib/lsb/init-functions.d
    ++ for hook in ‘$(run-parts --lsbsysinit --list /lib/lsb/init-functions.d 2>/dev/null)’
    ++ ‘[’ -r /lib/lsb/init-functions.d/20-left-info-blocks ‘]’
    ++ . /lib/lsb/init-functions.d/20-left-info-blocks
    ++ for hook in ‘$(run-parts --lsbsysinit --list /lib/lsb/init-functions.d 2>/dev/null)’
    ++ ‘[’ -r /lib/lsb/init-functions.d/50-ubuntu-logging ‘]’
    ++ . /lib/lsb/init-functions.d/50-ubuntu-logging
    +++ LOG_DAEMON_MSG=
    ++ FANCYTTY=
    ++ ‘[’ -e /etc/lsb-base-logging.sh ‘]’
    ++ true
  • NO_START=0
  • DIETIME=30
  • STARTTIME=5
  • DAEMONUSER=_red5
  • JAVA_HOME=/usr/lib/jvm/default-java/
  • JAVA_OPTS=
  • RED5_HOME=/usr/share/red5/
  • RED5_OPTS=
  • ‘[’ -r /etc/default/red5-server ‘]’
  • . /etc/default/red5-server
  • export JAVA_HOME JAVA_OPTS RED5_HOME RED5_OPTS
  • test -x /usr/share/red5/red5.sh
  • ‘[’ -n _red5 ‘]’
  • getent passwd
  • grep -q ‘^_red5:’
    ++ getent passwd
    ++ grep ‘^_red5:’
    ++ awk -F : ‘{print $3}’
  • DAEMONUID=108
    ++ getent passwd
    ++ grep ‘^_red5:’
    ++ awk -F : ‘{print $4}’
  • DAEMONGID=65534
  • ‘[’ 0 ‘!=’ 0 -a start ‘!=’ stop ‘]’
  • set -e
  • case “$1” in
  • log_daemon_msg 'Starting Flash streaming server ’ red5-server
  • ‘[’ -z 'Starting Flash streaming server ’ ‘]’
  • log_use_fancy_output
  • TPUT=/usr/bin/tput
  • EXPR=/usr/bin/expr
  • ‘[’ -t 1 ‘]’
  • ‘[’ xxterm ‘!=’ x ‘]’
  • ‘[’ xxterm ‘!=’ xdumb ‘]’
  • ‘[’ -x /usr/bin/tput ‘]’
  • ‘[’ -x /usr/bin/expr ‘]’
  • /usr/bin/tput hpa 60
  • /usr/bin/tput setaf 1
  • ‘[’ -z ‘]’
  • FANCYTTY=1
  • case “$FANCYTTY” in
  • true
  • /usr/bin/tput xenl
    ++ /usr/bin/tput cols
  • COLS=80
  • ‘[’ 80 ‘]’
  • ‘[’ 80 -gt 6 ‘]’
    ++ /usr/bin/expr 80 - 7
  • COL=73
  • log_use_plymouth
  • ‘[’ n = y ‘]’
  • plymouth --ping
  • printf ’ * Starting Flash streaming server  red5-server       ’
     * Starting Flash streaming server  red5-server       ++ /usr/bin/expr 80 - 1
  • /usr/bin/tput hpa 79
                                                                                   + printf ’ ’
     + running
  • ‘[’ ‘!’ -f /var/run/red5-server.pid ‘]’
    ++ cat /var/run/red5-server.pid
  • pid=24424
  • running_pid 24424
  • pid=24424
  • ‘[’ -z 24424 ‘]’
  • ‘[’ ‘!’ -d /proc/24424 ‘]’
  • return 1
  • return 1
  • start_server
  • start-stop-daemon --start --quiet --pidfile /var/run/red5-server.pid --make-pidfile --chuid _red5 --background --chdir /usr/share/red5/ --name java --startas /usr/share/red5/red5.sh –
  • errcode=0
  • return 0
  • ‘[’ -n 5 ‘]’
  • sleep 5
  • running
  • ‘[’ ‘!’ -f /var/run/red5-server.pid ‘]’
    ++ cat /var/run/red5-server.pid
  • pid=25356
  • running_pid 25356
  • pid=25356
  • ‘[’ -z 25356 ‘]’
  • ‘[’ ‘!’ -d /proc/25356 ‘]’
  • return 1
  • return 1
  • log_end_msg 1
  • ‘[’ -z 1 ‘]’
  • ‘[’ 73 ‘]’
  • ‘[’ -x /usr/bin/tput ‘]’
  • log_use_plymouth
  • ‘[’ n = y ‘]’
  • plymouth --ping
  • printf ‘\r’
  • /usr/bin/tput hpa 73
                                                                             + ‘[’ 1 -eq 0 ‘]’
  • printf ‘[’
    [+ /usr/bin/tput setaf 1
  • printf fail
    fail+ /usr/bin/tput op
  • echo ‘]’
    ]
  • return 1
    root@media ~ #

I suggest you check the red5 log and see why it fails.
Another option is to try:
# bash -x /usr/share/red5/red5.sh

root@media ~ # bash -x /usr/share/red5/red5.sh

  • ‘[’ -z ‘’ ‘]’
    ++ pwd
  • export RED5_HOME=/root
  • RED5_HOME=/root
  • P=:
    ++ uname
  • OS=Linux
  • case “$OS” in
  • echo 'Running on ’ Linux
    Running on Linux
  • LOGGING_OPTS=’-Dlogback.ContextSelector=org.red5.logging.LoggingContextSelector -Dcatalina.useNaming=true’
  • SECURITY_OPTS=-Djava.security.debug=failure
  • export 'JAVA_OPTS=-Dlogback.ContextSelector=org.red5.logging.LoggingContextSelector -Dcatalina.useNaming=true -Djava.security.debug=failure ’
  • JAVA_OPTS=’-Dlogback.ContextSelector=org.red5.logging.LoggingContextSelector -Dcatalina.useNaming=true -Djava.security.debug=failure ’
  • ‘[’ -z ‘’ ‘]’
  • export RED5_MAINCLASS=org.red5.server.Bootstrap
  • RED5_MAINCLASS=org.red5.server.Bootstrap
  • JYTHON=-Dpython.home=lib
  • for JAVA in ‘"${JAVA_HOME}/bin/java"’ ‘"${JAVA_HOME}/Home/bin/java"’ ‘"/usr/bin/java"’ ‘"/usr/local/bin/java"’
  • ‘[’ -x /bin/java ‘]’
  • for JAVA in ‘"${JAVA_HOME}/bin/java"’ ‘"${JAVA_HOME}/Home/bin/java"’ ‘"/usr/bin/java"’ ‘"/usr/local/bin/java"’
  • ‘[’ -x /Home/bin/java ‘]’
  • for JAVA in ‘"${JAVA_HOME}/bin/java"’ ‘"${JAVA_HOME}/Home/bin/java"’ ‘"/usr/bin/java"’ ‘"/usr/local/bin/java"’
  • ‘[’ -x /usr/bin/java ‘]’
  • break
  • ‘[’ ‘!’ -x /usr/bin/java ‘]’
  • export RED5_CLASSPATH=/root/boot.jar:/root/conf:
  • RED5_CLASSPATH=/root/boot.jar:/root/conf:
  • echo 'Starting Red5’
    Starting Red5
  • exec /usr/bin/java -Dpython.home=lib -Dred5.root=/root -Dlogback.ContextSelector=org.red5.logging.LoggingContextSelector -Dcatalina.useNaming=true -Djava.security.debug=failure -cp /root/boot.jar:/root/conf: org.red5.server.Bootstrap
    Error: Could not find or load main class org.red5.server.Bootstrap
    root@media ~ #

Sounds like something you should report to Ubuntu’s red5-server maintainer.

Also, note that red5 is only needed if you wish to use the webcam recording capabilities.