In the meantime I wrote a script that updates cloud-init to the latest version.
It looks to work alright right now, feel free to use it.
Michael Kanchuker.
##################################################################################################
#uninstall old version and install dependencies for new version
apt-get purge -y cloud-init
apt install-get -y git python3-pip python3-jsonschema net-tools python3-blinker python3-configobj python3-json-pointer python3-jsonpatch python3-jwt python3-oauthlib python3-prettytable
reboot
#clone repository and build it
cd /usr/src
git clone
https://github.com/canonical/cloud-init.gitcd cloud-init/
pip3 install -r requirements.txt
pip3 install --upgrade six
python3 setup.py build
python3 setup.py install --init-system systemd
cloud-init init --local
ln -s /usr/local/bin/cloud-init /usr/bin/cloud-init
#Change ExecStart to /usr/local/bin in the systemd files
sed -i -e "s%/usr/bin%/usr/local/bin%g" /lib/systemd/system/cloud*
systemctl daemon-reload
systemctl unmask cloud-*.service
systemctl enable cloud-*.service
#clean up
cd ~
rm -rf /usr/src/cloud-init
cloud-init clean
cloud-init status
echo "" > /var/log/cloud-init.log
echo "" > /var/log/cloud-init-output.log
##################################################################################################