incapaz de instalar qualquer coisa usando o apt-get por causa do insserv

18

Sempre que eu tento instalar algo usando apt-get , recebo as mensagens de erro envolvendo insserv . Eu tentei instalar muitos pacotes diferentes, mas tudo deu o mesmo erro. E aparentemente, o pacote CUPS está fazendo / fez algo porque cada mensagem de erro envolve isso. A seguir estão os erros exibidos quando eu corri sudo apt-get install wine1.8 winetricks :

After this operation, 716 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Extracting templates from packages: 100%
Preconfiguring packages ...
Setting up util-linux (2.27.1-6ubuntu3.1) ...
insserv: warning: script 'K01cups-browsed' missing LSB tags and overrides
insserv: warning: script 'cups-browsed' missing LSB tags and overrides
insserv: There is a loop at service plymouth if started
insserv: There is a loop between service plymouth and procps if started
insserv:  loop involving service procps at depth 2
insserv:  loop involving service udev at depth 1
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Max recursions depth 99 reached
insserv:  loop involving service speech-dispatcher at depth 1
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: There is a loop between service cups-browsed and hwclock if started
insserv:  loop involving service hwclock at depth 1
insserv: There is a loop at service cups-browsed if started
insserv:  loop involving service networking at depth 4
insserv: There is a loop between service plymouth and urandom if started
insserv:  loop involving service urandom at depth 4
insserv:  loop involving service mountdevsubfs at depth 2
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: There is a loop between service cups-browsed and dns-clean if started
insserv:  loop involving service dns-clean at depth 1
insserv: Starting cups-browsed depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth 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 util-linux (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 util-linux
E: Sub-process /usr/bin/dpkg returned an error code (1)

O conteúdo do /etc/insserv.conf é o seguinte:

#
# All local filesystems are mounted (done during boot phase)
#
$local_fs   +umountfs

#
# Low level networking (ethernet card)
#
$network    +networking

#
# Named is operational
#
$named      +named +dnsmasq +lwresd +bind9 +unbound $network

#
# All remote filesystems are mounted (note in some cases /usr may
# be remote. Most applications that care will probably require
# both $local_fs and $remote_fs)
#
$remote_fs  $local_fs +umountnfs +sendsigs

#
# System logger is operational
#
$syslog     +rsyslog +sysklogd +syslog-ng +dsyslog +inetutils-syslogd

#
# The system time has been set correctly
#
$time       +hwclock

#
# Services which need to be interactive
#
<interactive>   glibc udev console-screen keymap keyboard-setup console-setup cryptdisks cryptdisks-early checkfs-loop

saída para $ apt-cache policy cups-browsed plymouth dns-clean

cups-browsed:
  Installed: 1.8.3-2ubuntu3
  Candidate: 1.8.3-2ubuntu3
  Version table:
 *** 1.8.3-2ubuntu3 500
        500 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        100 /var/lib/dpkg/status
plymouth:
  Installed: 0.9.2-3ubuntu13
  Candidate: 0.9.2-3ubuntu13.1
  Version table:
     0.9.2-3ubuntu13.1 500
        500 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
 *** 0.9.2-3ubuntu13 500
        500 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        100 /var/lib/dpkg/status
N: Unable to locate package dns-clean

Não conheço nenhuma outra informação relevante que possa ser importante para resolver isso, por isso não a publiquei. Se você quiser mais informações, não hesite em perguntar.

    
por Pranjal 14.06.2016 / 13:55

1 resposta

20

Primeiro de tudo, o problema é que você está preso no seqüenciamento de inicialização.

O método de sequenciamento de inicialização é decidido durante a instalação ou atualizações. Se não houver loops nas dependências declaradas pelos cabeçalhos LSB de todos os scripts init.d instalados e nenhum script obsoleto , o sistema será convertido em sequência de inicialização baseada em dependência.

Nós temos que verificar
  1. Loop nas dependências : ocorre quando >

    • Faltam tags LSB em alguns scripts ou erro nas tags LSB, como falta de Required-Start: ou Required-Stop: tags
    • Alguns scripts dependem de outros scripts que dependem do recurso do sistema $all , que não pode ser verdadeiro. Porque os scripts que dependem de $all são carregados por último no início. Uma vez que carrega por último, nada pode depender disso. Assim, atrapalha a sequência de inicialização baseada em dependência.
  2. Scripts obsoletos : ocorrem quando

    • Alguns pacotes sendo atualizados para versões mais recentes que podem não usar um script em /etc/init.d/ e o mantenedor podem ter perdido o código para remover o script antigo. Não é nosso erro.

A causa é certamente estrangeira. Goto /etc/init.d e veja o arquivo correspondente a cups-browsed e confirme se ele tem um comentário de LSB com Provides , Required-Start / Required-Stop (pelo menos vazio), Default-Start / Default-Stop como abaixo .

### BEGIN INIT INFO
# Provides :          cups-browsed
# Required-Start :
# Required-Stop :
# Default-Start :     2 3 4 5
# Default-Stop  :     0 1 6
# Short-Description : Some info
# Description :       Some more info
### END INIT INFO

Se não estiver lá, você poderá adicionar o comentário do LSB ou remover completamente o programa e os scripts dos arquivos /etc/init.d/ e /etc/rc? . Espero que isso funcione.

Sinta-se à vontade para perguntar se você tem alguma dúvida.

    
por 22.07.2016 / 11:00