# Cannot apt-get install clang-5.0

**URL:** <https://travis-ci.community/t/cannot-apt-get-install-clang-5-0/3250>\
**Category:** Linux\
**Created:** [May 1, 2019, 9:51pm UTC](https://travis-ci.community/t/cannot-apt-get-install-clang-5-0/3250 "2019-05-01T21:51:38Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Farwaykorse](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/farwaykorse/32/762_2.png) [@Farwaykorse](https://travis-ci.community/u/Farwaykorse)\
**Post date:** [May 9, 2019, 9:14am UTC](https://travis-ci.community/t/cannot-apt-get-install-clang-5-0/3250/3 "2019-05-09T09:14:07Z")

</div>

The default build environment has been updated from Trusty to Xenial.

> **[Xenial as the default build environment - Travis CI changelog](https://changelog.travis-ci.com/xenial-as-the-default-build-environment-99476)**
>
> As announced two weeks ago, we've started incrementally updating the default build environment to Ubuntu Xenial...

To keep using Trusty you can set: `dist: trusty`  
Or use Xenial and remove the `llvm-toolchain-trusty-5.0` etc. since clang-5.0 (and 4.0 and 6.0) are available in the default Apt packages. [clang-5.0 @ packages.ubuntu.com](https://packages.ubuntu.com/search?suite=default&section=all&arch=any&keywords=clang-5.0&searchon=names).

Note that Trusty is EOL.

---

_[View the full topic](https://travis-ci.community/t/cannot-apt-get-install-clang-5-0/3250)._
