Max Trinidad has a post showing how to fix a busted master database in SQL Server on Linux:
For some reason, I finished doing an “sudo apt update” follow by the “sudo apt upgrade“, and after doing some OS updates “my SQL Server stopped working”. The following message was logged in the log event: (see Image)
Click through to see how to force a rebuild of master.