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
This commit is contained in:
Andrei Vagin
2019-02-13 19:38:44 -08:00
committed by Shentubot
parent e0b3d3323f
commit cbd6b35c56
+2 -1
View File
@@ -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