Skip to content
Snippets Groups Projects
Commit 87c39bea authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Install apt-transport-https before setting apt proxy.

parent f688815c
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
source /root/envsetup/global-conf.sh
DEBIAN_FRONTEND=noninteractive
export DEBIAN_FRONTEND
apt-get update
apt-get install -y apt-transport-https
# move 50unattended-upgrades conf if any
if [ -f /etc/apt/apt.conf.d/50unattended-upgrades.ucf-dist ]; then
mv /etc/apt/apt.conf.d/50unattended-upgrades.ucf-dist /etc/apt/apt.conf.d/50unattended-upgrades
......@@ -23,8 +29,6 @@ if ( ! test -z ${APT_CACHE_URL} ); then
fi
# update packages
DEBIAN_FRONTEND=noninteractive
export DEBIAN_FRONTEND
apt-get update
apt-get install -f -y -o Dpkg::Options::="--force-confold"
apt-get dist-upgrade -y -o Dpkg::Options::="--force-confold"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment