The kali template update this morning broke again. I was lucky I had a backup and saw what was updated before it broke. For anybody using kali templates, mark as hold all xserver-* packages before updating as the latest updates to those packages break the template
apt-mark hold xserver-*
Hope this helps someone