Recurrence:
1.apt-get install ntp
2.reboot
crash
After crash:
You are in rescue mode. After logging in, type “journalctl -xb” to viewl system logs, “systemctl reboot” to reboot, “systemctl default” or “exit” to boot into default mode.
Cannot open access to console, the root account is locked. see sulogin(8) man page for more details.
NTP isn’t normally used in TrueNAS, it’s set up to use chrony instead.
If you’re able to run apt you’ve modified the base system in various ways. You are specifically warned against disabling the root system protection for reasons like this.
At this point I would revert to a backup configuration file combined with a reinstall.
We use chronyd to provide time services. When you apt-installed ntpd, it deinstalled chronyd and everything that depended on it (which includes our middleware and various system packages.
There is a reason why MOTD explicitly states that changes from shell can lead to a broken system and a reason why apt is disabled by default.