We have several questions about a
debconf: apt-extracttemplates failed: No such file or directory
error when trying to install packages. None are solved. If you have insight into how to solve it, you might want to answer
this one which is being actively worked on (or, if it's duped, then answer whatever the master question is). See
this for details.