处理时遇到错误:freeradius

处理时遇到错误:freeradius

Ubuntu 版本:13.10

我无法从软件中心删除或修复 freeradius。请帮帮我!!

点击删除:
显示:

Package operation failed
installArchives() failed: 
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 215535 files and directories currently installed.)
Removing freeradius ...
invoke-rc.d: unknown initscript, /etc/init.d/freeradius not found.
dpkg: error processing freeradius (--remove):
 subprocess installed pre-removal script returned error exit status 100
invoke-rc.d: unknown initscript, /etc/init.d/freeradius not found.
dpkg: libfreeradius2: dependency problems, but removing anyway as you requested:
 freeradius depends on libfreeradius2 (= 2.1.12+dfsg-1.2ubuntu5.1).

Removing libfreeradius2 ...
dpkg: freeradius-common: dependency problems, but removing anyway as you requested:
 freeradius depends on freeradius-common; however:
  Package freeradius-common is to be removed.

Removing freeradius-common ...
Processing triggers for man-db ...
Errors were encountered while processing:
 freeradius

答案1

由于某种原因,该脚本/etc/init.d/freeradius在您的安装中不可用。由于您无论如何都想删除该包……

/var/lib/dpkg/info/freeradius.prerm…通过以下方式打开文件

sudo nano /var/lib/dpkg/info/freeradius.prerm 

并替换

case "$1" in
  remove)
        if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
                invoke-rc.d freeradius stop
        else
                /etc/init.d/freeradius stop
        fi

case "$1" in
  remove)
        # if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
        #         invoke-rc.d freeradius stop
        # else
        #         /etc/init.d/freeradius stop
        # fi

现在再次移除包裹。

相关内容