I had a similar issue recently, try running the following command, then attempt to rebuild.
sudo apt-get update && sudo apt-get upgrade -y
Another option, if the rebuild fails, would be ./discourse-doctor
I had a similar issue recently, try running the following command, then attempt to rebuild.
sudo apt-get update && sudo apt-get upgrade -y
Another option, if the rebuild fails, would be ./discourse-doctor