# Bionic builds fail, getting Xenial instead

**URL:** <https://travis-ci.community/t/bionic-builds-fail-getting-xenial-instead/4899>\
**Category:** R\
**Created:** [August 28, 2019, 11:17am UTC](https://travis-ci.community/t/bionic-builds-fail-getting-xenial-instead/4899 "2019-08-28T11:17:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![richelbilderbeek](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/richelbilderbeek/32/328_2.png) [@richelbilderbeek](https://travis-ci.community/u/richelbilderbeek)\
**Post date:** [August 28, 2019, 11:17am UTC](https://travis-ci.community/t/bionic-builds-fail-getting-xenial-instead/4899/1 "2019-08-28T11:17:08Z")

</div>

Hi @jeroen and @jimhester,

Since approx 12:45 (UTC+1) Travis builds for Bionic fail.

For example, [from this Travis build log](https://travis-ci.org/richelbilderbeek/razzo/builds/577781232#L633) I read Xenial is used:

```auto
R session information
before_install.1

1.64s$ sudo add-apt-repository -y ppa:opencpu/imagemagick

6.94s$ sudo apt-get update

Hit:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:4 http://apt.postgresql.org/pub/repos/apt xenial-pgdg InRelease [56.4 kB]
...

```

At the top of my `.travis.yml` [file](https://travis-ci.org/richelbilderbeek/razzo/jobs/577781233/config) it can be found I use bionic:

```auto
language: r
dist: bionic
cache: packages

```

Also when I re-build a package that built successfully, I get the same error.

For completeness I add the error that I predict follow naturally from this problem:

```auto
Ign:15 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main i386 Packages

Get:14 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main amd64 Packages [115 kB]

Err:14 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main amd64 Packages

  Hash Sum mismatch

Fetched 149 kB in 0s (188 kB/s)

Reading package lists...

E: Failed to fetch http://apt.postgresql.org/pub/repos/apt/dists/xenial-pgdg/main/binary-amd64/Packages.bz2 Hash Sum mismatch

E: Failed to fetch http://apt.postgresql.org/pub/repos/apt/dists/xenial-pgdg/main/binary-i386/Packages.bz2 Writing more data than expected (209052 > 209044)

E: Some index files failed to download. They have been ignored, or old ones used instead.

```

Happy to help and good luck fixing this 👍

---

<div class="post-metadata">

**Author:** ![richelbilderbeek](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/richelbilderbeek/32/328_2.png) [@richelbilderbeek](https://travis-ci.community/u/richelbilderbeek)\
**Post date:** [August 28, 2019, 12:04pm UTC](https://travis-ci.community/t/bionic-builds-fail-getting-xenial-instead/4899/2 "2019-08-28T12:04:06Z")

</div>

I just found out, this is not specific to R, also [C++ projects fail](https://travis-ci.org/richelbilderbeek/the_richel_setup/builds/577776686#L188).

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [August 28, 2019, 12:05pm UTC](https://travis-ci.community/t/bionic-builds-fail-getting-xenial-instead/4899/3 "2019-08-28T12:05:44Z")

</div>

> [@For \`dist: bionic\`, Xenial VM is used instead with \`language: rust\`](https://travis-ci.community/t/for-dist-bionic-xenial-vm-is-used-instead-with-language-rust/4487/3):
>
> Without going into too much detail, I will say that there is currently no Bionic image capable of building languages other than Perl, Python and Ruby. (These are arbitrary choices, and we will work on expanding the list.)

---

<div class="post-metadata">

**Author:** ![richelbilderbeek](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/richelbilderbeek/32/328_2.png) [@richelbilderbeek](https://travis-ci.community/u/richelbilderbeek)\
**Post date:** [August 28, 2019, 2:22pm UTC](https://travis-ci.community/t/bionic-builds-fail-getting-xenial-instead/4899/4 "2019-08-28T14:22:55Z")

</div>

Problem is solved, everything builds successfully again.

Thanks!
