From 838f028adc474b3fc33b2a60b45e8607c9bcb44d Mon Sep 17 00:00:00 2001 From: Zhang Tianyang Date: Tue, 16 Jan 2024 10:34:15 +0800 Subject: [PATCH] build: Update repo before installation Signed-off-by: Zhang Tianyang --- vmm/scripts/image/build_image.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmm/scripts/image/build_image.sh b/vmm/scripts/image/build_image.sh index 0448c58e..1eea1179 100644 --- a/vmm/scripts/image/build_image.sh +++ b/vmm/scripts/image/build_image.sh @@ -450,7 +450,7 @@ install_prerequisites() { os_distro=$ID fi case "${os_distro}" in - ubuntu) apt-get install -y qemu-utils parted ;; + ubuntu) apt-get update && apt-get install -y qemu-utils parted ;; centos) yum install -y qemu-img parted ;; euleros) yum install -y qemu-img parted ;; openEuler) yum install -y qemu-img parted ;;