diff --git a/.travis.yml b/.travis.yml
index 8ff5fa3cfbd152c891f7a6a2ceb265ecbb477128..c0faa62a4581596f3c905c61a7d704cbae422420 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,7 +4,7 @@ sudo: false
 matrix:
   include:
     - os: linux
-      dist: trusty
+      dist: xenial
       sudo: required
       go: 1.10.x
       script:
@@ -15,7 +15,7 @@ matrix:
       - go run build/ci.go test -coverage $TEST_PACKAGES
 
     - os: linux
-      dist: trusty
+      dist: xenial
       sudo: required
       go: 1.11.x
       script:
@@ -27,7 +27,7 @@ matrix:
 
     # These are the latest Go versions.
     - os: linux
-      dist: trusty
+      dist: xenial
       sudo: required
       go: 1.12.x
       script:
@@ -54,7 +54,7 @@ matrix:
 
     # This builder only tests code linters on latest version of Go
     - os: linux
-      dist: trusty
+      dist: xenial
       go: 1.12.x
       env:
         - lint
@@ -66,7 +66,7 @@ matrix:
     # This builder does the Ubuntu PPA upload
     - if: repo = ethereum/go-ethereum AND type = push
       os: linux
-      dist: trusty
+      dist: xenial
       go: 1.12.x
       env:
         - ubuntu-ppa
@@ -88,7 +88,7 @@ matrix:
     # This builder does the Linux Azure uploads
     - if: repo = ethereum/go-ethereum AND type = push
       os: linux
-      dist: trusty
+      dist: xenial
       sudo: required
       go: 1.12.x
       env:
@@ -122,7 +122,7 @@ matrix:
     # This builder does the Linux Azure MIPS xgo uploads
     - if: repo = ethereum/go-ethereum AND type = push
       os: linux
-      dist: trusty
+      dist: xenial
       services:
         - docker
       go: 1.12.x
@@ -150,7 +150,7 @@ matrix:
     # This builder does the Android Maven and Azure uploads
     - if: repo = ethereum/go-ethereum AND type = push
       os: linux
-      dist: trusty
+      dist: xenial
       addons:
         apt:
           packages:
@@ -216,7 +216,7 @@ matrix:
     # This builder does the Azure archive purges to avoid accumulating junk
     - if: repo = ethereum/go-ethereum AND type = cron
       os: linux
-      dist: trusty
+      dist: xenial
       go: 1.12.x
       env:
         - azure-purge
@@ -228,7 +228,7 @@ matrix:
     - name: Race Detector for Swarm
       if: repo = ethersphere/go-ethereum
       os: linux
-      dist: trusty
+      dist: xenial
       go: 1.12.x
       git:
         submodules: false # avoid cloning ethereum/tests
diff --git a/appveyor.yml b/appveyor.yml
index 0eb9163d75be4994b9a72bc38ff730d78f555988..631808df4f9ffb186b3ba406d5a4afca0ea347ff 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -23,8 +23,8 @@ environment:
 install:
   - git submodule update --init
   - rmdir C:\go /s /q
-  - appveyor DownloadFile https://dl.google.com/go/go1.12.1.windows-%GETH_ARCH%.zip
-  - 7z x go1.12.1.windows-%GETH_ARCH%.zip -y -oC:\ > NUL
+  - appveyor DownloadFile https://dl.google.com/go/go1.12.2.windows-%GETH_ARCH%.zip
+  - 7z x go1.12.2.windows-%GETH_ARCH%.zip -y -oC:\ > NUL
   - go version
   - gcc --version