I'm developing a class for working with texts in C++ (training project). I connected a Travis CI to my git repository to test the code. First build broke with such an error:
The command "if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get install -y llvm-3.4 llvm-3.4-dev; fi" failed and exited with 100 during .
Could someone please explain to me for what caused this error and how to fix it?
You should actually read the full output that Travis gives you:
E: Unable to locate package llvm-3.4
E: Couldn't find any package by glob 'llvm-3.4'
E: Couldn't find any package by regex 'llvm-3.4'
E: Unable to locate package llvm-3.4-dev
E: Couldn't find any package by glob 'llvm-3.4-dev'
E: Couldn't find any package by regex 'llvm-3.4-dev'
The command "if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get install -y llvm-3.4 llvm-3.4-dev; fi" failed and exited with 100 during .
The packages llvm-3.4
and llvm-3.4-dev
are simply not available in the repository. If you check the build system information, you will see:
Operating System Details
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial
You can try to find out wich llvm packages are available in Ubuntu 16.04 by an online search. Alternatively, you can add apt-cache search --names-only llvm
as the first command in the before_install
section of your .travis.yml
to get a list of available llvm packages. The run will still fail until you replace the version numbers with one from the list.