Failed to restart smbd.service: Unit smbd.service is masked
1 min read

Failed to restart smbd.service: Unit smbd.service is masked

pi@raspberrypi:~$ sudo systemctl restart smbd
Failed to restart smbd.service: Unit smbd.service is masked.

解决:

pi@raspberrypi:~$ sudo systemctl unmask smbd.service
Removed /etc/systemd/system/smbd.service.
pi@raspberrypi:~$ sudo systemctl unmask nmbd.service
Removed /etc/systemd/system/nmbd.service.
pi@raspberrypi:~$ sudo systemctl restart smbd.service