Kurento服务器安装

来源:互联网 发布:超星电子图书馆数据库 编辑:程序博客网 时间:2024/06/05 06:46

Kurento服务器安装

Kurento媒体服务器(Kurento Media Server ,KMS)必须安装在Ubuntu 14.04 LTS (64 bits)系统上。安装过程中如果遇到一些意料之外的问题,通常重启可以有效解决。
在终端中键入下列命令:

echo "deb http://ubuntu.kurento.org trusty kms6" | sudo tee /etc/apt/sources.list.d/kurento.listwget -O - http://ubuntu.kurento.org/kurento.gpg.key | sudo apt-key add -sudo apt-get updatesudo apt-get install kurento-media-server-6.0

现在Kurento媒体服务器已经安装好了,键入下列命令来启动和停止Kurento媒体服务器:

sudo service kurento-media-server-6.0 startsudo service kurento-media-server-6.0 stop

官网链接

以上是Kurento官方网站中的文档里关于Kurento媒体服务器安装中的第一段的中文翻译。但其中的部分描写与我实际安装过程有些区别。例如,现在的Kurento服务器并不需要必须安装在Ubuntu 14.04 LTS (64 bits),我安装的系统为Ubuntu 16.04 LTS (64 bits)。
以及在进行键入上面的安装命令过程中,在进行到sudo apt-get install kurento-media-server-6.0时,报出了下述错误提示:

Reading package lists... DoneBuilding dependency tree       Reading state information... DoneSome packages could not be installed. This may mean that you haverequested an impossible situation or if you are using the unstabledistribution that some required packages have not yet been createdor been moved out of Incoming.The following information may help to resolve the situation:The following packages have unmet dependencies:kurento-media-server-6.0 : Depends: kms-core-6.0 (>= 6.6.2) but it is not going to be installed                            Depends: libboost-filesystem1.54.0 but it is not installable                            Depends: libboost-log1.54.0 but it is not installable                            Depends: libboost-program-options1.54.0 but it is not installable                            Depends: libboost-system1.54.0 but it is not installable                            Depends: libboost-thread1.54.0 but it is not installable                            Depends: libglibmm-2.4-1c2a (>= 2.36.2) but it is not installable                            Depends: libsigc++-2.0-0c2a (>= 2.0.2) but it is not installable                            Depends: gstreamer1.5-plugins-bad (>= 1.7.0~0) but it is not going to be installed                            Depends: gstreamer1.5-plugins-good (>= 1.7.0~0) but it is not going to be installed                            Depends: gstreamer1.5-plugins-ugly (>= 1.7.0~0) but it is not going to be installed                            Depends: kms-elements-6.0 (>= 6.6.2) but it is not going to be installed                            Depends: kms-filters-6.0 (>= 6.6.2) but it is not going to be installedE: Unable to correct problems, you have held broken packages.

通过搜索查询,获取到以下信息:

Your are probably using trusty repositories, because there are the ones indicated by the documentation.

If you are using xenial, you should change your configuration file /etc/apt/sources.list.d/kurento.list

deb http://ubuntu.kurento.org xenial kms6

Then try sudo apt-get update && sudo apt-get install kurento-media-server-6.0 again.

By the way, take into account that kurento officially supports only trusty (14.04). xenial works, but documentation is done for trusty only.
回答链接

在按照回答中修改了/etc/apt/sources.list.d/kurento.list文件后,再次尝试安装时就安装成功了。

原创粉丝点击