当前主机名hostname为空无法安装宝塔面板
openeular系统安装宝塔报错:当前主机名hostname为空无法安装宝塔面板
hostnamectl --help
Query or change system hostname. Commands: status Show current hostname settings hostname [NAME] Get/set system hostname icon-name [NAME] Get/set icon name for host chassis [NAME] Get/set chassis type for host deployment [NAME] Get/set deployment environment for host location [NAME] Get/set location for host Options: -h --help Show this help --version Show package version --no-ask-password Do not prompt for password -H --host=[USER@]HOST Operate on remote host -M --machine=CONTAINER Operate on local container --transient Only set transient hostname --static Only set static hostname --pretty Only set pretty hostname --json=pretty|short|off Generate JSON output See the hostnamectl(1) man page for details.
hostnamectl set-hostname your-name
然后重新安装宝塔