![Ubuntu Trusty red5-server 安装启动失败](https://linux22.com/image/1129368/Ubuntu%20Trusty%20red5-server%20%E5%AE%89%E8%A3%85%E5%90%AF%E5%8A%A8%E5%A4%B1%E8%B4%A5.png)
我已经安装了 Ubuntu Trusty 最新版本(已更新)作为 Web 服务器运行。我需要安装 red5-server,我执行了以下步骤,但安装成功后,当 red5-server 尝试启动它时,提示失败!
首先检查软件包列表中是否存在已启用的软件包
sudo nano /etc/apt/sources.list
然后添加以下包:
deb http://us.archive.ubuntu.com/ubuntu trusty main universe
然后更新
sudo apt-get update
然后安装red5-server;
sudo apt-get install red5-server
以下是发生的结果的详细列表
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
aspectj glassfish-activation glassfish-javaee glassfish-mail groovy ivy
junit4 libaopalliance-java libaspectj-java libbcprov-java libc3p0-java
libcglib-java libcommons-beanutils-java libcommons-cli-java
libcommons-codec-java libcommons-digester-java libcommons-lang-java
libcommons-lang3-java libcommons-modeler-java libcommons-validator-java
libehcache-java libgeronimo-ejb-3.0-spec-java libgeronimo-jms-1.1-spec-java
libgeronimo-jpa-2.0-spec-java libgeronimo-osgi-support-java
libgeronimo-validation-1.0-spec-java libhamcrest-java
libhawtjni-runtime-java libhttpclient-java libhttpcore-java libjansi-java
libjansi-native-java libjaudiotagger-java libjavassist-java
libjsr107cache-java libjzlib-java liblogback-java libmina2-java
libmockobjects-java libmx4j-java libognl-java libosgi-compendium-java
libosgi-core-java libosgi-foundation-ee-java libquartz-java libred5-java
librhino-java libslf4j-java libspring-aop-java libspring-beans-java
libspring-context-java libspring-context-support-java libspring-core-java
libspring-expression-java libspring-instrument-java libspring-jdbc-java
libspring-oxm-java libspring-transaction-java libspring-web-java
libstax-java libws-commons-util-java libxmlrpc3-common-java
libxmlrpc3-server-java libxpp3-java libxstream-java
Suggested packages:
groovy-doc libjsch-java libbcpg-java ivy-doc libaopalliance-java-doc
libbcprov-java-doc libcommons-beanutils-java-doc
libcommons-digester-java-doc libcommons-lang3-java-doc
libgeronimo-jpa-2.0-spec-java-doc libgeronimo-osgi-support-java-doc
libgeronimo-validation-1.0-spec-java-doc libjanino-java libmina-java-doc
libgnumail-java libjetty-java libhessian-java libosgi-compendium-java-doc
libosgi-core-java-doc libosgi-foundation-ee-java-doc libquartz-java-doc
rhino libjamon-java jruby bsh libjasperreports-java libfreemarker-java
velocity libgeronimo-commonj-spec-java libjboss-vfs-java libjibx1.2-java
libxmlbeans-java libcastor-xml-java libcommons-httpclient-java libaxis-java
libcommons-fileupload-java libjackson-json-java libstax-java-doc
libdom4j-java libjdom1-java libjdom2-java libjettison-java libjoda-time-java
libkxml2-java libstax2-api-java libwoodstox-java libxom-java
Recommended packages:
libtomcat7-java libjodatime-java
The following NEW packages will be installed:
aspectj glassfish-activation glassfish-javaee glassfish-mail groovy ivy
junit4 libaopalliance-java libaspectj-java libbcprov-java libc3p0-java
libcglib-java libcommons-beanutils-java libcommons-cli-java
libcommons-codec-java libcommons-digester-java libcommons-lang-java
libcommons-lang3-java libcommons-modeler-java libcommons-validator-java
libehcache-java libgeronimo-ejb-3.0-spec-java libgeronimo-jms-1.1-spec-java
libgeronimo-jpa-2.0-spec-java libgeronimo-osgi-support-java
libgeronimo-validation-1.0-spec-java libhamcrest-java
libhawtjni-runtime-java libhttpclient-java libhttpcore-java libjansi-java
libjansi-native-java libjaudiotagger-java libjavassist-java
libjsr107cache-java libjzlib-java liblogback-java libmina2-java
libmockobjects-java libmx4j-java libognl-java libosgi-compendium-java
libosgi-core-java libosgi-foundation-ee-java libquartz-java libred5-java
librhino-java libslf4j-java libspring-aop-java libspring-beans-java
libspring-context-java libspring-context-support-java libspring-core-java
libspring-expression-java libspring-instrument-java libspring-jdbc-java
libspring-oxm-java libspring-transaction-java libspring-web-java
libstax-java libws-commons-util-java libxmlrpc3-common-java
libxmlrpc3-server-java libxpp3-java libxstream-java red5-server
0 upgraded, 66 newly installed, 0 to remove and 8 not upgraded.
Need to get 0 B/44.3 MB of archives.
After this operation, 56.2 MB of additional disk space will be used.
Extracting templates from packages: 100%
Selecting previously unselected package libaspectj-java.
(Reading database ... 186003 files and directories currently installed.)
Preparing to unpack .../libaspectj-java_1.6.12+dfsg-3_all.deb ...
Unpacking libaspectj-java (1.6.12+dfsg-3) ...
Selecting previously unselected package aspectj.
Preparing to unpack .../aspectj_1.6.12+dfsg-3_all.deb ...
Unpacking aspectj (1.6.12+dfsg-3) ...
Selecting previously unselected package glassfish-activation.
Preparing to unpack .../glassfish-activation_1%3a2.1.1-b31g-3_all.deb ...
Unpacking glassfish-activation (1:2.1.1-b31g-3) ...
Selecting previously unselected package glassfish-javaee.
Preparing to unpack .../glassfish-javaee_1%3a2.1.1-b31g-3_all.deb ...
Unpacking glassfish-javaee (1:2.1.1-b31g-3) ...
Selecting previously unselected package glassfish-mail.
Preparing to unpack .../glassfish-mail_1%3a2.1.1-b31g-3_all.deb ...
Unpacking glassfish-mail (1:2.1.1-b31g-3) ...
Selecting previously unselected package libcommons-lang-java.
Preparing to unpack .../libcommons-lang-java_2.6-3ubuntu2_all.deb ...
Unpacking libcommons-lang-java (2.6-3ubuntu2) ...
Selecting previously unselected package libcommons-cli-java.
Preparing to unpack .../libcommons-cli-java_1.2-3ubuntu1_all.deb ...
Unpacking libcommons-cli-java (1.2-3ubuntu1) ...
Selecting previously unselected package libhamcrest-java.
Preparing to unpack .../libhamcrest-java_1.3-4_all.deb ...
Unpacking libhamcrest-java (1.3-4) ...
Selecting previously unselected package junit4.
Preparing to unpack .../archives/junit4_4.11-2_all.deb ...
Unpacking junit4 (4.11-2) ...
Selecting previously unselected package libmockobjects-java.
Preparing to unpack .../libmockobjects-java_0.09-5_all.deb ...
Unpacking libmockobjects-java (0.09-5) ...
Selecting previously unselected package libxpp3-java.
Preparing to unpack .../libxpp3-java_1.1.4c-2build1_all.deb ...
Unpacking libxpp3-java (1.1.4c-2build1) ...
Selecting previously unselected package libxstream-java.
Preparing to unpack .../libxstream-java_1.4.7-1_all.deb ...
Unpacking libxstream-java (1.4.7-1) ...
Selecting previously unselected package ivy.
Preparing to unpack .../archives/ivy_2.3.0-3_all.deb ...
Unpacking ivy (2.3.0-3) ...
Selecting previously unselected package libhawtjni-runtime-java.
Preparing to unpack .../libhawtjni-runtime-java_1.0~+git0c502e20c4-3_all.deb ...
Unpacking libhawtjni-runtime-java (1.0~+git0c502e20c4-3) ...
Selecting previously unselected package libjansi-native-java.
Preparing to unpack .../libjansi-native-java_1.0-4_all.deb ...
Unpacking libjansi-native-java (1.0-4) ...
Selecting previously unselected package libjansi-java.
Preparing to unpack .../libjansi-java_1.4-3_all.deb ...
Unpacking libjansi-java (1.4-3) ...
Selecting previously unselected package groovy.
Preparing to unpack .../groovy_2.0.0~beta2+isreally1.8.6-0ubuntu1_all.deb ...
Unpacking groovy (2.0.0~beta2+isreally1.8.6-0ubuntu1) ...
Selecting previously unselected package libbcprov-java.
Preparing to unpack .../libbcprov-java_1.49+dfsg-2_all.deb ...
Unpacking libbcprov-java (1.49+dfsg-2) ...
Selecting previously unselected package libc3p0-java.
Preparing to unpack .../libc3p0-java_0.9.1.2-9_all.deb ...
Unpacking libc3p0-java (0.9.1.2-9) ...
Selecting previously unselected package libcglib-java.
Preparing to unpack .../libcglib-java_2.2.2+dfsg-5_all.deb ...
Unpacking libcglib-java (2.2.2+dfsg-5) ...
Selecting previously unselected package libcommons-beanutils-java.
Preparing to unpack .../libcommons-beanutils-java_1.9.1-1_all.deb ...
Unpacking libcommons-beanutils-java (1.9.1-1) ...
Selecting previously unselected package libcommons-codec-java.
Preparing to unpack .../libcommons-codec-java_1.9-1_all.deb ...
Unpacking libcommons-codec-java (1.9-1) ...
Selecting previously unselected package libcommons-digester-java.
Preparing to unpack .../libcommons-digester-java_1.8.1-4_all.deb ...
Unpacking libcommons-digester-java (1.8.1-4) ...
Selecting previously unselected package libcommons-lang3-java.
Preparing to unpack .../libcommons-lang3-java_3.2.1-1_all.deb ...
Unpacking libcommons-lang3-java (3.2.1-1) ...
Selecting previously unselected package libmx4j-java.
Preparing to unpack .../libmx4j-java_3.0.2-13ubuntu1_all.deb ...
Unpacking libmx4j-java (3.0.2-13ubuntu1) ...
Selecting previously unselected package libcommons-modeler-java.
Preparing to unpack .../libcommons-modeler-java_2.0.1-6_all.deb ...
Unpacking libcommons-modeler-java (2.0.1-6) ...
Selecting previously unselected package libcommons-validator-java.
Preparing to unpack .../libcommons-validator-java_1%3a1.4.0-2_all.deb ...
Unpacking libcommons-validator-java (1:1.4.0-2) ...
Selecting previously unselected package libjsr107cache-java.
Preparing to unpack .../libjsr107cache-java_1.0.dfsg.1-4_all.deb ...
Unpacking libjsr107cache-java (1.0.dfsg.1-4) ...
Selecting previously unselected package libehcache-java.
Preparing to unpack .../libehcache-java_2.6.8-1_all.deb ...
Unpacking libehcache-java (2.6.8-1) ...
Selecting previously unselected package libgeronimo-ejb-3.0-spec-java.
Preparing to unpack .../libgeronimo-ejb-3.0-spec-java_1.0.1-1fakesync1_all.deb ...
Unpacking libgeronimo-ejb-3.0-spec-java (1.0.1-1fakesync1) ...
Selecting previously unselected package libgeronimo-jms-1.1-spec-java.
Preparing to unpack .../libgeronimo-jms-1.1-spec-java_1.1-1.2ubuntu3_all.deb ...
Unpacking libgeronimo-jms-1.1-spec-java (1.1-1.2ubuntu3) ...
Selecting previously unselected package libosgi-core-java.
Preparing to unpack .../libosgi-core-java_4.3.0-4_all.deb ...
Unpacking libosgi-core-java (4.3.0-4) ...
Selecting previously unselected package libosgi-foundation-ee-java.
Preparing to unpack .../libosgi-foundation-ee-java_4.2.0-1_all.deb ...
Unpacking libosgi-foundation-ee-java (4.2.0-1) ...
Selecting previously unselected package libosgi-compendium-java.
Preparing to unpack .../libosgi-compendium-java_4.3.0-1_all.deb ...
Unpacking libosgi-compendium-java (4.3.0-1) ...
Selecting previously unselected package libgeronimo-osgi-support-java.
Preparing to unpack .../libgeronimo-osgi-support-java_1.0-2_all.deb ...
Unpacking libgeronimo-osgi-support-java (1.0-2) ...
Selecting previously unselected package libgeronimo-jpa-2.0-spec-java.
Preparing to unpack .../libgeronimo-jpa-2.0-spec-java_1.1-2_all.deb ...
Unpacking libgeronimo-jpa-2.0-spec-java (1.1-2) ...
Selecting previously unselected package libgeronimo-validation-1.0-spec-java.
Preparing to unpack .../libgeronimo-validation-1.0-spec-java_1.1-2_all.deb ...
Unpacking libgeronimo-validation-1.0-spec-java (1.1-2) ...
Selecting previously unselected package libhttpcore-java.
Preparing to unpack .../libhttpcore-java_4.3.2-2_all.deb ...
Unpacking libhttpcore-java (4.3.2-2) ...
Selecting previously unselected package libhttpclient-java.
Preparing to unpack .../libhttpclient-java_4.3.3-1_all.deb ...
Unpacking libhttpclient-java (4.3.3-1) ...
Selecting previously unselected package libjaudiotagger-java.
Preparing to unpack .../libjaudiotagger-java_2.0.3-1_all.deb ...
Unpacking libjaudiotagger-java (2.0.3-1) ...
Selecting previously unselected package libjavassist-java.
Preparing to unpack .../libjavassist-java_1%3a3.12.1.ga-2_all.deb ...
Unpacking libjavassist-java (1:3.12.1.ga-2) ...
Selecting previously unselected package libjzlib-java.
Preparing to unpack .../libjzlib-java_1.1.3-1_all.deb ...
Unpacking libjzlib-java (1.1.3-1) ...
Selecting previously unselected package libslf4j-java.
Preparing to unpack .../libslf4j-java_1.7.5-2_all.deb ...
Unpacking libslf4j-java (1.7.5-2) ...
Selecting previously unselected package liblogback-java.
Preparing to unpack .../liblogback-java_1%3a1.0.13-1_all.deb ...
Unpacking liblogback-java (1:1.0.13-1) ...
Selecting previously unselected package libmina2-java.
Preparing to unpack .../libmina2-java_2.0.7+dfsg-1_all.deb ...
Unpacking libmina2-java (2.0.7+dfsg-1) ...
Selecting previously unselected package libognl-java.
Preparing to unpack .../libognl-java_2.7.3-5_all.deb ...
Unpacking libognl-java (2.7.3-5) ...
Selecting previously unselected package libquartz-java.
Preparing to unpack .../libquartz-java_1%3a1.7.3-3_all.deb ...
Unpacking libquartz-java (1:1.7.3-3) ...
Selecting previously unselected package libaopalliance-java.
Preparing to unpack .../libaopalliance-java_20070526-5_all.deb ...
Unpacking libaopalliance-java (20070526-5) ...
Selecting previously unselected package librhino-java.
Preparing to unpack .../librhino-java_1.7R4-2_all.deb ...
Unpacking librhino-java (1.7R4-2) ...
Selecting previously unselected package libspring-core-java.
Preparing to unpack .../libspring-core-java_3.0.6.RELEASE-13_all.deb ...
Unpacking libspring-core-java (3.0.6.RELEASE-13) ...
Selecting previously unselected package libspring-beans-java.
Preparing to unpack .../libspring-beans-java_3.0.6.RELEASE-13_all.deb ...
Unpacking libspring-beans-java (3.0.6.RELEASE-13) ...
Selecting previously unselected package libspring-aop-java.
Preparing to unpack .../libspring-aop-java_3.0.6.RELEASE-13_all.deb ...
Unpacking libspring-aop-java (3.0.6.RELEASE-13) ...
Selecting previously unselected package libspring-expression-java.
Preparing to unpack .../libspring-expression-java_3.0.6.RELEASE-13_all.deb ...
Unpacking libspring-expression-java (3.0.6.RELEASE-13) ...
Selecting previously unselected package libspring-context-java.
Preparing to unpack .../libspring-context-java_3.0.6.RELEASE-13_all.deb ...
Unpacking libspring-context-java (3.0.6.RELEASE-13) ...
Selecting previously unselected package libspring-context-support-java.
Preparing to unpack .../libspring-context-support-java_3.0.6.RELEASE-13_all.deb ...
Unpacking libspring-context-support-java (3.0.6.RELEASE-13) ...
Selecting previously unselected package libspring-web-java.
Preparing to unpack .../libspring-web-java_3.0.6.RELEASE-13_all.deb ...
Unpacking libspring-web-java (3.0.6.RELEASE-13) ...
Selecting previously unselected package libstax-java.
Preparing to unpack .../libstax-java_1.2.0-3build1_all.deb ...
Unpacking libstax-java (1.2.0-3build1) ...
Selecting previously unselected package libws-commons-util-java.
Preparing to unpack .../libws-commons-util-java_1.0.1-9_all.deb ...
Unpacking libws-commons-util-java (1.0.1-9) ...
Selecting previously unselected package libxmlrpc3-common-java.
Preparing to unpack .../libxmlrpc3-common-java_3.1.3-6_all.deb ...
Unpacking libxmlrpc3-common-java (3.1.3-6) ...
Selecting previously unselected package libxmlrpc3-server-java.
Preparing to unpack .../libxmlrpc3-server-java_3.1.3-6_all.deb ...
Unpacking libxmlrpc3-server-java (3.1.3-6) ...
Selecting previously unselected package libred5-java.
Preparing to unpack .../libred5-java_1.0~svn4374-3_all.deb ...
Unpacking libred5-java (1.0~svn4374-3) ...
Selecting previously unselected package red5-server.
Preparing to unpack .../red5-server_1.0~svn4374-3_all.deb ...
Unpacking red5-server (1.0~svn4374-3) ...
Selecting previously unselected package libspring-instrument-java.
Preparing to unpack .../libspring-instrument-java_3.0.6.RELEASE-13_all.deb ...
Unpacking libspring-instrument-java (3.0.6.RELEASE-13) ...
Selecting previously unselected package libspring-transaction-java.
Preparing to unpack .../libspring-transaction-java_3.0.6.RELEASE-13_all.deb ...
Unpacking libspring-transaction-java (3.0.6.RELEASE-13) ...
Selecting previously unselected package libspring-jdbc-java.
Preparing to unpack .../libspring-jdbc-java_3.0.6.RELEASE-13_all.deb ...
Unpacking libspring-jdbc-java (3.0.6.RELEASE-13) ...
Selecting previously unselected package libspring-oxm-java.
Preparing to unpack .../libspring-oxm-java_3.0.6.RELEASE-13_all.deb ...
Unpacking libspring-oxm-java (3.0.6.RELEASE-13) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for doc-base (0.10.5) ...
Processing 4 added doc-base files...
Processing triggers for sgml-base (1.26+nmu4ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up libaspectj-java (1.6.12+dfsg-3) ...
Setting up aspectj (1.6.12+dfsg-3) ...
Setting up glassfish-activation (1:2.1.1-b31g-3) ...
Setting up glassfish-javaee (1:2.1.1-b31g-3) ...
Setting up glassfish-mail (1:2.1.1-b31g-3) ...
Setting up libcommons-lang-java (2.6-3ubuntu2) ...
Setting up libcommons-cli-java (1.2-3ubuntu1) ...
Setting up libhamcrest-java (1.3-4) ...
Setting up junit4 (4.11-2) ...
Setting up libmockobjects-java (0.09-5) ...
Setting up libxpp3-java (1.1.4c-2build1) ...
Setting up libxstream-java (1.4.7-1) ...
Setting up ivy (2.3.0-3) ...
Setting up libhawtjni-runtime-java (1.0~+git0c502e20c4-3) ...
Setting up libjansi-native-java (1.0-4) ...
Setting up libjansi-java (1.4-3) ...
Setting up groovy (2.0.0~beta2+isreally1.8.6-0ubuntu1) ...
Setting up libbcprov-java (1.49+dfsg-2) ...
Setting up libc3p0-java (0.9.1.2-9) ...
Setting up libcglib-java (2.2.2+dfsg-5) ...
Setting up libcommons-beanutils-java (1.9.1-1) ...
Setting up libcommons-codec-java (1.9-1) ...
Setting up libcommons-digester-java (1.8.1-4) ...
Setting up libcommons-lang3-java (3.2.1-1) ...
Setting up libmx4j-java (3.0.2-13ubuntu1) ...
Setting up libcommons-modeler-java (2.0.1-6) ...
Setting up libcommons-validator-java (1:1.4.0-2) ...
Setting up libjsr107cache-java (1.0.dfsg.1-4) ...
Setting up libehcache-java (2.6.8-1) ...
Setting up libgeronimo-ejb-3.0-spec-java (1.0.1-1fakesync1) ...
Setting up libgeronimo-jms-1.1-spec-java (1.1-1.2ubuntu3) ...
Setting up libosgi-core-java (4.3.0-4) ...
Setting up libosgi-foundation-ee-java (4.2.0-1) ...
Setting up libhttpcore-java (4.3.2-2) ...
Setting up libhttpclient-java (4.3.3-1) ...
Setting up libjaudiotagger-java (2.0.3-1) ...
Setting up libjavassist-java (1:3.12.1.ga-2) ...
Setting up libjzlib-java (1.1.3-1) ...
Setting up libslf4j-java (1.7.5-2) ...
Setting up liblogback-java (1:1.0.13-1) ...
Setting up libmina2-java (2.0.7+dfsg-1) ...
Setting up libognl-java (2.7.3-5) ...
Setting up libquartz-java (1:1.7.3-3) ...
Setting up libaopalliance-java (20070526-5) ...
Setting up librhino-java (1.7R4-2) ...
Setting up libspring-core-java (3.0.6.RELEASE-13) ...
Setting up libspring-beans-java (3.0.6.RELEASE-13) ...
Setting up libspring-aop-java (3.0.6.RELEASE-13) ...
Setting up libspring-expression-java (3.0.6.RELEASE-13) ...
Setting up libspring-context-java (3.0.6.RELEASE-13) ...
Setting up libspring-context-support-java (3.0.6.RELEASE-13) ...
Setting up libspring-web-java (3.0.6.RELEASE-13) ...
Setting up libstax-java (1.2.0-3build1) ...
Setting up libws-commons-util-java (1.0.1-9) ...
Setting up libxmlrpc3-common-java (3.1.3-6) ...
Setting up libxmlrpc3-server-java (3.1.3-6) ...
Setting up libred5-java (1.0~svn4374-3) ...
Setting up red5-server (1.0~svn4374-3) ...
Allowing use of questionable username.
Adding system user `_red5' (UID 121) ...
Adding new user `_red5' (UID 121) with group `nogroup' ...
Not creating home directory `/usr/share/red5'.
* 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
Setting up libspring-instrument-java (3.0.6.RELEASE-13) ...
Setting up libspring-transaction-java (3.0.6.RELEASE-13) ...
Setting up libspring-jdbc-java (3.0.6.RELEASE-13) ...
Setting up libspring-oxm-java (3.0.6.RELEASE-13) ...
Setting up libgeronimo-jpa-2.0-spec-java (1.1-2) ...
Setting up libosgi-compendium-java (4.3.0-1) ...
Setting up libgeronimo-osgi-support-java (1.0-2) ...
Setting up libgeronimo-validation-1.0-spec-java (1.1-2) ...
Processing triggers for ureadahead (0.100.0-16) ...
Errors were encountered while processing:
red5-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
有什么解决办法吗?
答案1
这是错误介绍这里和这里. 它可以与旧版本一起使用,但在 14.04 之后出现问题。
解决方案 :
注意:在启动之前需要java
安装,运行后你必须打开浏览器,你将看到 red5 页面。另外不要终止命令,它将在终端上连续运行,如果你终止,那么你将无法看到 Red5 网页,然后你必须再次运行 red5.sh 脚本。如果你不想每次都这样做,那么你可以创建 upstart 脚本。以上所有步骤均在 ubuntu 14.04 上测试。java
red5.sh
red5.sh
yourip:5080
red5.sh
对于 upstart 脚本你可以查看我的另一个答案如何在 Ubuntu 14.04 上添加 Red5 后台启动?