Core won't connect, and the usual restore/reset methods aren't working

Hmm try using sudo to install spark-cli or see this: