重建时出现 "undefined method `deprecated?' for nil:NilClass"

Ugh. This is happening to me right now too. I am on

Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-37-generic x86_64)

System information as of Wed Jan 18 08:37:37 EST 2023

System load: 0.0 Memory usage: 5% Processes: 54
Usage of /: 69.8% of 29.40GB Swap usage: 0% Users logged in: 0

Graph this data and manage this system at:
https://landscape.canonical.com/

New release ‘16.04.7 LTS’ available.
Run ‘do-release-upgrade’ to upgrade to it.

Would running that last line solve my problem for the moment, to get the site back up quickly, or should I skip that and do the new server setup as recommended here?