From 9ed8f0c20576259783346d46a4c2b681ff022e7c Mon Sep 17 00:00:00 2001 From: Abe Voelker Date: Sat, 4 Jan 2014 16:03:59 -0600 Subject: [PATCH] Fix apt-get error when building Ubuntu boxes --- boxes/build-ubuntu-box.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/boxes/build-ubuntu-box.sh b/boxes/build-ubuntu-box.sh index ef2d813..a0ba1de 100755 --- a/boxes/build-ubuntu-box.sh +++ b/boxes/build-ubuntu-box.sh @@ -89,6 +89,7 @@ chmod 0440 ${ROOTFS}/etc/sudoers.d/vagrant # 4 - Add some goodies and update packages PACKAGES=(vim curl wget man-db bash-completion python-software-properties software-properties-common) +chroot ${ROOTFS} apt-get update chroot ${ROOTFS} apt-get install ${PACKAGES[*]} -y --force-yes chroot ${ROOTFS} apt-get upgrade -y --force-yes