# Github Pages deploy failing on Trusty: dependency install error

**URL:** <https://travis-ci.community/t/github-pages-deploy-failing-on-trusty-dependency-install-error/1528>\
**Category:** Deployment\
**Tags:** github\
**Created:** [December 20, 2018, 4:50am UTC](https://travis-ci.community/t/github-pages-deploy-failing-on-trusty-dependency-install-error/1528 "2018-12-20T04:50:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CallumDev](https://avatars.discourse-cdn.com/v4/letter/c/7ba0ec/32.png) [@CallumDev](https://travis-ci.community/u/CallumDev)\
**Post date:** [December 20, 2018, 4:50am UTC](https://travis-ci.community/t/github-pages-deploy-failing-on-trusty-dependency-install-error/1528/1 "2018-12-20T04:50:22Z")

</div>

Failing under the csharp bot (trusty?)

**Configuration:**

```
language: csharp
addons:
  apt:
    sources:
    - deadsnakes
    - ubuntu-toolchain-r-test
    packages:
    - gcc-4.9
    - g++-4.9
    - cmake
script:
 - ./build.sh --target=LinuxDaily
deploy:
    edge:
        branch: v1.8.47
    provider: pages
    skip-cleanup: true
    github-token: $GITHUB_TOKEN
    on:
        branch: master
    local-dir: packaging/packages
repo: Librelancer/daily-builds

```

**Relevant Log:**  
`
Installing deploy dependencies`

ERROR: While executing gem … (OptionParser::InvalidOption)

invalid option: --no-ri

/home/travis/.rvm/rubies/ruby-2.4.1/lib/ruby/site\_ruby/2.4.0/rubygems/core\_ext/kernel\_require.rb:54:in `require’: cannot load such file – octokit (LoadError)

from /home/travis/.rvm/rubies/ruby-2.4.1/lib/ruby/site\_ruby/2.4.0/rubygems/core\_ext/kernel\_require.rb:54:in `require’

from /home/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.48.travis.241.1/lib/dpl/provider.rb:85:in `requires’

from /home/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.48.travis.241.1/lib/dpl/provider/pages.rb:26:in `\<class:Pages\>’

from /home/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.48.travis.241.1/lib/dpl/provider/pages.rb:3:in `\<class:Provider\>’

from /home/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.48.travis.241.1/lib/dpl/provider/pages.rb:2:in `\<module:DPL\>’

from /home/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.48.travis.241.1/lib/dpl/provider/pages.rb:1:in `\<top (required)\>’

from /home/travis/.rvm/rubies/ruby-2.4.1/lib/ruby/site\_ruby/2.4.0/rubygems/core\_ext/kernel\_require.rb:54:in `require’

from /home/travis/.rvm/rubies/ruby-2.4.1/lib/ruby/site\_ruby/2.4.0/rubygems/core\_ext/kernel\_require.rb:54:in `require’

from /home/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.48.travis.241.1/lib/dpl/provider.rb:59:in `const\_get’

from /home/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.48.travis.241.1/lib/dpl/provider.rb:59:in `block in new’

from /home/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.48.travis.241.1/lib/dpl/cli.rb:41:in `fold’

from /home/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.48.travis.241.1/lib/dpl/provider.rb:56:in `new’

from /home/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.48.travis.241.1/lib/dpl/cli.rb:31:in `run’

from /home/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.48.travis.241.1/lib/dpl/cli.rb:7:in `run’

from /home/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.48.travis.241.1/bin/dpl:5:in `\<top (required)\>’

from /home/travis/.rvm/gems/ruby-2.4.1/bin/dpl:23:in `load’

from /home/travis/.rvm/gems/ruby-2.4.1/bin/dpl:23:in `\<main\>’

failed to deploy

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [December 20, 2018, 11:10am UTC](https://travis-ci.community/t/github-pages-deploy-failing-on-trusty-dependency-install-error/1528/2 "2018-12-20T11:10:37Z")

</div>

Why are you using an old version of `dpl`?

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [December 20, 2018, 1:15pm UTC](https://travis-ci.community/t/github-pages-deploy-failing-on-trusty-dependency-install-error/1528/3 "2018-12-20T13:15:03Z")

</div>

`--no-ri` being an invalid option is a different issue.

---

<div class="post-metadata">

**Author:** ![jesskie](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/jesskie/32/850_2.png) [@jesskie](https://travis-ci.community/u/jesskie)\
**Post date:** [December 29, 2018, 8:03am UTC](https://travis-ci.community/t/github-pages-deploy-failing-on-trusty-dependency-install-error/1528/4 "2018-12-29T08:03:56Z")

</div>

Can u help me fixed it
