Upgrade to latest via APT gives error on configure first time

Try sudo apt install --reinstall mattermost