When I typed sudo dpkg-reconfigure resolvconf this was the error.
dpkg-query: package `resolvconf' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
/usr/bin/dpkg-reconfigure: resolvconf is not installed