Default to https:// urls for repositories, remove apt-transport-https (#1610)

As of apt 1.5 (released 2017), the package apt-transport-https is no longer required because https:// is supported out of the box.
Reference: https://packages.debian.org/bullseye/apt-transport-https "This is a dummy transitional package - https support has been moved into the apt package in 1.5. It can be safely removed."  Apt is currently at 2.2.4.

Use a sed one-liner to convert all repos in /etc/apt/sources.list and /etc/apt/sources.list.d/*.list that are http:// to https:// (https:// is available for all http:// URLs currently referenced in EmbassyOS).
This commit is contained in:
gStart9
2022-07-05 19:45:10 +00:00
committed by GitHub
parent 88afb756f5
commit b365a60c00

View File

@@ -22,9 +22,11 @@ mount -o remount,rw /boot
apt-mark hold raspberrypi-bootloader
apt-mark hold raspberrypi-kernel
# Convert all repos to use https:// before apt update
sed -i "s/http:/https:/g" /etc/apt/sources.list /etc/apt/sources.list.d/*.list
apt-get update
apt-get install -y \
apt-transport-https \
nginx \
libavahi-client3 \
avahi-daemon \