首页 > 代码库 > freeradius 安装出错的解决办法

freeradius 安装出错的解决办法

sudo apt-get install freeradius-mysqlSelecting previously unselected package freeradius-mysql.(Reading database ... 65261 files and directories currently installed.)Preparing to unpack .../freeradius-mysql_2.1.12+dfsg-1.2ubuntu8_amd64.deb ...Unpacking freeradius-mysql (2.1.12+dfsg-1.2ubuntu8) ...Setting up freeradius-mysql (2.1.12+dfsg-1.2ubuntu8) ...reload: Unknown instance: invoke-rc.d: initscript freeradius, action "force-reload" failed.dpkg: error processing package freeradius-mysql (--configure): subprocess installed post-installation script returned error exit status 1Errors were encountered while processing: freeradius-mysqlE: Sub-process /usr/bin/dpkg returned an error code (1)

解决办法,先启动,再安装

sudo service freeradius startfreeradius start/running, process 28089sudo apt-get install freeradius-mysqlReading package lists... DoneBuilding dependency tree       Reading state information... Donefreeradius-mysql is already the newest version.0 upgraded, 0 newly installed, 0 to remove and 87 not upgraded.1 not fully installed or removed.After this operation, 0 B of additional disk space will be used.Do you want to continue? [Y/n] ySetting up freeradius-mysql (2.1.12+dfsg-1.2ubuntu8) ...