NTP package cause system crashed

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.

Press Enter to continue.

Reloading system manager configuration

NIIIIFFHSAKHFHFISA*(……*HYFIOHASFLASHFKLAS?BCKLJHKLFHLKS

Starting default.target

Failed to start defaullt.target: Operation refused, unit maynot be isolated.

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.

1 Like

Are you even using TrueNAS?

1 Like

Installation ntp on truenas is a stupid behavior. I suggest everyone should not install it on truenas.

We are in agreement.

Agreed. So why did you?

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.

1 Like