diff --git a/scripts/build-vm.sh b/scripts/build-vm.sh
index aafdefa249bf4f077ac9802ce0339669c9db7fe6..0889463c86e7b6653789ddc97c5820c744c97790 100755
--- a/scripts/build-vm.sh
+++ b/scripts/build-vm.sh
@@ -15,12 +15,12 @@ unzip -o packer_${PACKER_V}_linux_amd64.zip
 rm packer_${PACKER_V}_linux_amd64.zip
 
 # update json file with debian netinst image"
-SUMS=`curl -s https://cdimage.debian.org/debian-cd/11.3.0/amd64/iso-cd/SHA512SUMS | grep -E 'debian-[0-9]*.[0-9]*.[0-9]*-amd64-netinst.iso'`
+SUMS=`curl -s https://cdimage.debian.org/cdimage/archive/11.3.0/amd64/iso-cd/SHA512SUMS | grep -E 'debian-[0-9]*.[0-9]*.[0-9]*-amd64-netinst.iso'`
 SHA512=`echo $SUMS | awk '{print $1}'`
 ISO=`echo $SUMS | awk '{print $2}'`
 echo "ISO: $ISO"
 
-ISO_PATH="https://cdimage.debian.org/debian-cd/11.3.0/amd64/iso-cd/$ISO"
+ISO_PATH="https://cdimage.debian.org/cdimage/archive/11.3.0/amd64/iso-cd/$ISO"
 
 TEMPFILE=`mktemp`
 
diff --git a/vm-provisioning-main.sh b/vm-provisioning-main.sh
index a461426b3932103d8eec15c95ae4fb61d8ae491f..d35afca9fb684e3f60df2742698e3410518af500 100755
--- a/vm-provisioning-main.sh
+++ b/vm-provisioning-main.sh
@@ -12,7 +12,49 @@ sudo apt-get -y upgrade
 
 
 echo "==> Installing things..."
-sudo apt-get install -y --no-install-recommends ipset autoconf build-essential dpkg-dev libssl-dev libyaml-dev libreadline6-dev linux-headers-$(uname -r) zlib1g-dev libncurses5-dev libffi-dev libgdbm6 libgdbm-dev liblzma-dev libpq-dev libsqlite3-dev git bison libgdbm-dev ruby postgresql postgresql-client vim zsh screen dnsutils dkms netcat redis-server unzip psmisc gawk tcpdump python3 python3-pip python3-venv python3-setuptools gnupg2 aptitude libsystemd-dev msitools
+sudo apt-get install -y --no-install-recommends \
+	ipset \
+	autoconf \
+	build-essential \
+	dpkg-dev \
+	libssl-dev \
+	libyaml-dev \
+	libreadline6-dev \
+	linux-headers-$(uname -r) \
+	zlib1g-dev \
+	libncurses5-dev \
+	libffi-dev \
+	libgdbm6 \
+	libgdbm-dev \
+	liblzma-dev \
+	libpq-dev \
+	libsqlite3-dev \
+	git \
+	bison \
+	libgdbm-dev \
+	ruby \
+	postgresql \
+	postgresql-client \
+	vim \
+	zsh \
+	screen \
+	dnsutils \
+	dkms \
+	netcat \
+	redis-server \
+	unzip \
+	psmisc \
+	gawk \
+	tcpdump \
+	python3 \
+	python3-pip \
+	python3-venv \
+	python3-setuptools \
+	gnupg2 \
+	aptitude \
+	libsystemd-dev \
+	msitools \
+	pkg-config
 
 
 echo "==> Building Ruby..."