From 9046979a9e92bb0303ef47da180b0af29f03332f Mon Sep 17 00:00:00 2001 From: Alan Baghumian Date: Wed, 28 Aug 2024 23:12:29 -0700 Subject: [PATCH] fix: ubuntu kernel installation failures (#259) ubuntu/scripts/setup-bootloader: - update package lists before attempting to install the kernel. - This ensures images built a while back do no fail to install the kernel due to outdated lists. - updated copyright year to 2024. --- ubuntu/scripts/setup-bootloader | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ubuntu/scripts/setup-bootloader b/ubuntu/scripts/setup-bootloader index d1a0a3e..7c9d8b6 100644 --- a/ubuntu/scripts/setup-bootloader +++ b/ubuntu/scripts/setup-bootloader @@ -4,7 +4,7 @@ # # Author: Alexsander de Souza # -# Copyright (C) 2023 Canonical +# Copyright (C) 2024 Canonical # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -25,6 +25,8 @@ export DEBIAN_FRONTEND=noninteractive rm /var/cache/debconf/config.dat dpkg --configure -a +# Update the package lists before attempting to install the kernel +apt-get update # Ensure the existence of linux-image-generic for non-cloudimg images. apt-get -y install linux-image-generic