主机名更改错误

主机名更改错误

我有一个属于 sudo 组的用户。当我尝试更改主机名时,我收到此错误mesg: ttyname failed: Inappropriate ioctl for device ,同样,当我尝试重新启动时,我也收到此错误

Failed to set wall message, ignoring: Interactive authentication required.
Failed to reboot system via logind: Interactive authentication required.
Failed to start reboot.target: Interactive authentication required.
See system logs and 'systemctl status reboot.target' for details.

相关内容