From cbd6b35c56011d6e2d75a68385bdc984fdf35317 Mon Sep 17 00:00:00 2001 From: Andrei Vagin Date: Wed, 13 Feb 2019 19:37:44 -0800 Subject: 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 --- kokoro/run_tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'kokoro') 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 -- cgit v1.2.3