TravisCI。无法找到gstreamer包

时间:2016-05-25 10:46:01

标签: debian gstreamer travis-ci

突然间,我的CI脚本破了。我的commit changes与Travis服务器设置无关,而问题是缺少包,导致服务器无法started

2.44s$ sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install libqtwebkit-dev gstreamer1.0-plugins-base gstreamer1.0-tools gstreamer1.0-x
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package gstreamer1.0-plugins-base
E: Couldn't find any package by regex 'gstreamer1.0-plugins-base'
E: Unable to locate package gstreamer1.0-tools
E: Couldn't find any package by regex 'gstreamer1.0-tools'
E: Unable to locate package gstreamer1.0-x
E: Couldn't find any package by regex 'gstreamer1.0-x'

这些软件包成功安装了另一个commit后面的

我的.travis.yml:

language: ruby
services:
  - postgresql
  - rack
script: xvfb-run bundle exec rspec
#env: QMAKE=/usr/lib/x86_64-linux-gnu/qt5/bin/qmake
addons:
  apt:
    sources:
      - ubuntu-sdk-team
    packages:
      - libqtwebkit-dev
      - gstreamer1.0-plugins-base
      - gstreamer1.0-tools
      - gstreamer1.0-x
#      - libqt5webkit5-dev
#      - qtdeclarative5-dev
before_script:
  - bundle exec rackup private_pub.ru -s thin -E production &
  - cp config/database.yml.travis config/database.yml
  - cp config/private_pub.yml.sample config/private_pub.yml
  - psql -c 'create database travis_ci_test;' -U postgres

我怎么能替代他们?

2 个答案:

答案 0 :(得分:0)

如果travis无法访问它通常使用的ubuntu gce镜像,这可能是暂时的失败。您是否尝试通过travis页面重新启动?

答案 1 :(得分:0)

看起来上游有些变化了。如果我们查看succeeding build,很明显gstreamer*软件包是从ppa:ubuntu-sdk-team/ppa安装的。显然,这些包裹已经不存在了。

另外,从它的外观来看,gstreamer1*似乎是对Precise的一种破解。在Trusty图像上你会更好,默认情况下它们是可用的。目前,集装箱基础设施上没有可用的Trusty,但这会有所改变。请参阅different available virtualization环境中的此文档。

如果一个完整的,启用了sudo的VM符合您的目的,您可以更改您的配置以包括:

sudo: required
dist: trusty
before-install:
  - sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install gstreamer1.0-plugins-base gstreamer1.0-tools gstreamer1.0-x

(注意:从此列表中删除了libqtwebkit-dev包。您需要自己检查一下如何添加。)