# 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:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericniebler](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/ericniebler/32/1732_2.png) [@ericniebler](https://travis-ci.community/u/ericniebler)\
**Post date:** [May 1, 2019, 9:51pm UTC](https://travis-ci.community/t/cannot-apt-get-install-clang-5-0/3250/1 "2019-05-01T21:51:38Z")

</div>

This only stopped working recently. I cannot install clang-5.0 from llvm-toolchain-trusty-5.0. The error I get is:

```auto
The following packages have unmet dependencies:
 clang-5.0 : Depends: libjsoncpp0 (>= 0.6.0~rc2) but it is not installable
E: Unable to correct problems, you have held broken packages.

```

The full command and error can be found here: [https://travis-ci.org/ericniebler/range-v3/jobs/526944526](https://travis-ci.org/ericniebler/range-v3/jobs/526944526)

Did something change recently? Any workarounds?

Thanks,  
Eric

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [May 2, 2019, 5:16am UTC](https://travis-ci.community/t/cannot-apt-get-install-clang-5-0/3250/2 "2019-05-02T05:16:07Z")

</div>

Related: [https://askubuntu.com/questions/223237/unable-to-correct-problems-you-have-held-broken-packages](https://askubuntu.com/questions/223237/unable-to-correct-problems-you-have-held-broken-packages), [https://askubuntu.com/questions/441537/apt-returns-e-unmet-dependencies-when-i-try-to-install-a-package-how-can-i-d](https://askubuntu.com/questions/441537/apt-returns-e-unmet-dependencies-when-i-try-to-install-a-package-how-can-i-d)

---

<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.
