ho seguito questi passaggi per vedere cosa c'era che non andava.
Codice: Seleziona tutto
:~$ systemctl status
● mio hostname
State: degraded
Jobs: 0 queued
Failed: 1 units
ho dato questo comando per scoprire il pacchetto di servizio failed
Codice: Seleziona tutto
:~$ systemctl --state=failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● rc-local.service loaded failed failed /etc/rc.local Compatibility
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
1 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
Codice: Seleziona tutto
:~$ systemctl status -l rc-local.service
● rc-local.service - /etc/rc.local Compatibility
Loaded: loaded (/lib/systemd/system/rc-local.service; static; vendor preset:
Drop-In: /lib/systemd/system/rc-local.service.d
└─debian.conf
Active: failed (Result: exit-code) since sab 2016-11-05 09:34:30 CET; 2h 36mi
Process: 1715 ExecStart=/etc/rc.local start (code=exited, status=1/FAILURE)
nov 05 09:34:30 pc systemd[1]: Starting /etc/rc.local Compatibility...
nov 05 09:34:30 pc rc.local[1715]: Error opening display!
nov 05 09:34:30 pc systemd[1]: rc-local.service: Control process exited,
nov 05 09:34:30 pc systemd[1]: Failed to start /etc/rc.local Compatibilit
nov 05 09:34:30 pc systemd[1]: rc-local.service: Unit entered failed stat
nov 05 09:34:30 pc systemd[1]: rc-local.service: Failed with result 'exit
edit: Risolto il problema. Era il file /etc/rc.local che era impostato manualmente. Pensando che la stessa procedura dalla 14.04 funzionasse anche su Xenial. Ho cancellato il contenuto che avevo modificato
Codice: Seleziona tutto
systemctl --state=failed
0 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.