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