Skip to content

Commit e16a796

Browse files
committed
Switch bionic to use https for packages, we are having
issues updating over http.
1 parent 6878ae2 commit e16a796

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/ft-apt-get-update.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,13 @@ set -x
77
. $(dirname $0)/build/build.conf.sub
88

99
${SUDO} apt-get update -y --fix-missing
10+
11+
if test -f /etc/apt/sources.list && grep -q bionic /etc/apt/sources.list
12+
then
13+
${SUDO} apt-get install -y ca-certificates
14+
${SUDO} perl -pi -e 's|http://|https://|g' /etc/apt/sources.list
15+
${SUDO} apt-get update -y --fix-missing
16+
fi
17+
1018
${SUDO} apt-mark hold grub-efi-amd64-signed
1119
${SUDO} apt-get autoclean

0 commit comments

Comments
 (0)