Erros foram encontrados durante o processamento: freeradius [closed]

0

Versão do Ubuntu: 13.10

Não consigo remover ou reparar o freeradius do centro de software. Por favor me ajude !!

Clique em remover:
Exibição:

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
    
por LilyC 18.09.2015 / 05:09

1 resposta

0

Por algum motivo, o script /etc/init.d/freeradius não está disponível em sua instalação. Desde que você quer remover o pacote de qualquer maneira…

... abra o arquivo /var/lib/dpkg/info/freeradius.prerm via

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

e substitua

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

com

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

Agora remova o pacote novamente.

    
por A.B. 18.09.2015 / 08:13