Ubuntu Precise to Ubuntu Trusty Migration Guide
As of July, 18th 2017, we’re switching the default Linux distribution on Travis CI from Ubuntu Precise 12.04 LTS to Ubuntu Trusty 14.04 LTS. Here are the most common issues our customers ran into and how you can fix them.
If you’d like to stay on Ubuntu Precise or need more time to set up your repository with Ubuntu Trusty, please explicitly set
dist: precisein your .travis.yml file as soon as possible.
APT Packages availability #
Some of the APT Packages available in Ubuntu Precise are no longer available in Ubuntu Trusty.
- The binary package
rubygemsis no longer available in Ubuntu Trusty and you can replace it with the
Oracle JDK 7 availability #
Oracle JDK 7 (i.e.
jdk: oraclejdk7) is unfortunately no longer available in Ubuntu Trusty. The current workarounds are the following:
- If it’s an option for you, Open JDK 7 is still available. You can use it in your builds by adding the following in your .travis.yml file:
- Stay on Ubuntu Precise by explicitly setting
dist: precisein your .travis.yml file.