我正在开发一个用于在C ++中处理文本的类(培训项目)。我将Travis CI连接到我的git存储库以测试代码。首次构建因此类错误而中断:
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 .
有人可以向我解释一下导致此错误的原因及其解决方法吗?
如果需要,这是我的存储库:https://github.com/SemenutaEgor/Text
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 .
软件包llvm-3.4
和llvm-3.4-dev
在存储库中根本不可用。如果检查构建系统信息,将看到:
Operating System Details
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial
您可以尝试通过在线搜索找出在Ubuntu 16.04中可用的llvm软件包。或者,您可以在apt-cache search --names-only llvm
的before_install
部分中将.travis.yml
添加为第一个命令,以获取可用的llvm软件包的列表。在将版本号替换为列表中的一个之前,运行仍将失败。