diff options
author | Andrei Vagin <avagin@google.com> | 2019-02-13 19:37:44 -0800 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-02-13 19:38:44 -0800 |
commit | cbd6b35c56011d6e2d75a68385bdc984fdf35317 (patch) | |
tree | 247e440bc41a52e5595e25247acea72faf8b163c /kokoro/run_tests.sh | |
parent | e0b3d3323fbb4b27280f0087427bb04c3e71238b (diff) |
gvisor/kokoro: run apt-get update before apt-get install
We need to update the package lists, otherwise apt-get
install can request an old package which has been
removed from repositories.
PiperOrigin-RevId: 233879031
Change-Id: I2e1b3afd9d01008f774f10efd8852fd3f5e1c882
Diffstat (limited to 'kokoro/run_tests.sh')
-rwxr-xr-x | kokoro/run_tests.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kokoro/run_tests.sh b/kokoro/run_tests.sh index 81d428d59..648e72a90 100755 --- a/kokoro/run_tests.sh +++ b/kokoro/run_tests.sh @@ -99,7 +99,8 @@ install_runtime() { install_crictl_test_deps() { # Install containerd. # libseccomp2 needs to be downgraded in order to install libseccomp-dev. - sudo -n -E apt-get install -y --force-yes libseccomp2=2.1.1-1ubuntu1~trusty4 + sudo -n -E apt-get update + sudo -n -E apt-get install -y --force-yes libseccomp2=2.1.1-1ubuntu1~trusty5 sudo -n -E apt-get install -y btrfs-tools libseccomp-dev # go get will exit with a status of 1 despite succeeding, so ignore errors. go get -d github.com/containerd/containerd || true |