Erro ao usar o apt-get

4

Eu não sou muito especialista em linux. Eu estou apenas usando o Ubuntu por alguns meses. Recentemente, estou enfrentando o mesmo erro sempre que estou tentando executar qualquer tarefa (principalmente tarefas apt-get). Por exemplo, aqui estou tentando instalar o htop para o meu propósito e este é o erro que estou recebendo. Parece que o erro está ocorrendo devido ao rsync, mas não tenho certeza sobre o erro nem como posso me livrar dele.

sudo apt-get install htop
Reading package lists... Done
Building dependency tree       
Reading state information... Done
htop is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 5 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] y
Setting up rsync (3.1.1-3ubuntu0.15.04.1) ...
insserv: warning: script 'K01vpnagentd_init' missing LSB tags and overrides
insserv: warning: script 'vpnagentd_init' missing LSB tags and overrides
insserv: Starting vpnagentd_init depends on rc.local and therefore on system facility '$all' which can not be true!
insserv: Starting vpnagentd_init depends on rc.local and therefore on system facility '$all' which can not be true!
insserv: Starting vpnagentd_init depends on rc.local and therefore on system facility '$all' which can not be true!
insserv: There is a loop between service vpnagentd_init and rc.local if started
insserv:  loop involving service rc.local at depth 7
insserv:  loop involving service vpnagentd_init at depth 1
insserv: Starting vpnagentd_init depends on rc.local and therefore on system facility '$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package rsync (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 rsync
E: Sub-process /usr/bin/dpkg returned an error code (1)

Eu também tentei usar sudo dpkg --configure -a e estou recebendo o seguinte erro

Setting up rsync (3.1.1-3ubuntu0.15.04.1) ...
insserv: warning: script 'K01vpnagentd_init' missing LSB tags and overrides
insserv: warning: script 'vpnagentd_init' missing LSB tags and overrides
insserv: Starting vpnagentd_init depends on rc.local and therefore on system facility '$all' which can not be true!
insserv: Starting vpnagentd_init depends on rc.local and therefore on system facility '$all' which can not be true!
insserv: Starting vpnagentd_init depends on rc.local and therefore on system facility '$all' which can not be true!
insserv: There is a loop between service vpnagentd_init and rc.local if started
insserv:  loop involving service rc.local at depth 7
insserv:  loop involving service vpnagentd_init at depth 1
insserv: Starting vpnagentd_init depends on rc.local and therefore on system facility '$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package rsync (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 rsync

Seria realmente útil se alguém pudesse apontar o que devo fazer para remover esse erro. Eu estou usando o Ubuntu 15.04. Obrigado pela sua ajuda.

    
por duttasankha 10.03.2016 / 09:44

1 resposta

2

Eu removeria o rsync, tentaria resolver o problema relacionado ao script vpnagentd_init e reinstalaria o rsync.

1) Remova o rsync usando sudo apt-get remove rsync

2) Edite /etc/init.d/vpnagentd_init e insira as seguintes tags LSB.

### BEGIN INIT INFO
# Provides: vpnagentd_init
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start Cisco vpn agent daemon at boot time
# Description: Cisco vpn agent daemon (believe installed by company ssl client)
### END INIT INFO

Fonte: link

3) Instale o rsync usando sudo apt-get install rsync

Se tudo correr bem, você não verá nenhum desses avisos vpnagentd_init e o script de pós-instalação do rsync deverá ser executado sem falhas.

    
por no_erasies 10.03.2016 / 11:14

Tags