it-swarm-es.com

Error al usar apt-get

No soy muy experto en Linux. Solo estoy usando Ubuntu durante unos meses. Recientemente, me enfrento al mismo error cada vez que intento realizar cualquier tarea (principalmente tareas de apt-get). Por ejemplo, aquí estoy tratando de instalar htop para mi propósito y este es el error que estoy recibiendo. Parece que el error se produce debido a rsync, pero no estoy seguro del error ni de cómo puedo deshacerme de él.

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)

También intenté usar Sudo dpkg --configure -a y recibo el siguiente error

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

Sería realmente útil si alguien pudiera señalar qué debo hacer para eliminar este error. Estoy usando Ubuntu 15.04. Gracias por tu ayuda.

3
duttasankha

Quitaría rsync, intentaría resolver el problema relacionado con el script vpnagentd_init y reinstalaría rsync.

1) Elimine rsync usando Sudo apt-get remove rsync

2) Edite /etc/init.d/vpnagentd_init e inserte las siguientes etiquetas 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

Fuente: http://forums.debian.net/viewtopic.php?f=30&t=53192#p575807

3) Instale rsync usando Sudo apt-get install rsync

Si todo va bien, entonces no debería ver ninguna de esas advertencias vpnagentd_init y la secuencia de comandos posterior a la instalación de rsync debería ejecutarse sin fallas.

2
user516941