insserv로 인해 apt-get을 사용하여 아무것도 설치할 수 없습니다.


18

를 사용하여 무언가를 설치하려고 할 때마다 apt-get관련 오류 메시지가 나타납니다 insserv. 많은 다른 패키지를 설치하려고 시도했지만 모두 동일한 오류가 발생합니다. 분명히 CUPS 패키지는 모든 오류 메시지에 관련되어 있기 때문에 수행하고 있거나 수행 한 것입니다. 내가 실행할 때 표시되는 오류는 다음과 같습니다 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)

/etc/insserv.conf의 내용은 다음과 같습니다.

#
# 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

에 대한 출력 $ 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

이 문제를 해결하는 데 중요한 다른 관련 정보를 모르므로 게시하지 않은 이유입니다. 더 자세한 정보를 원하시면 언제든지 문의하십시오.


insserv 구성에 구피가 없는지, 특히 /etc/insserv.conf 및 /etc/insserv.conf.d/*가 없는지 확인하십시오. 확실하지 않으면 해당 파일의 내용을 질문에 추가하십시오.
CVn

@ MichaelKjörling/etc/insserv.conf
Pranjal

우분투의 어떤 버전? "표준"리포지토리의 패키지가 아닌 소프트웨어를 추가 했습니까? 최근 시스템 파일 편집은 어떻습니까?
roaima

1
의 파일을 확인해야합니다 /etc/insserv.conf.d. 이름이 포함 된 모든 파일의 내용을 게시 dns, plymouth또는 cups. 또는 다른 파일 일 수도 있지만, 문제는 단일 파일이 아니라 조합하여, C가 시작되기 전에 B를 시작하기 전에 A를 시작해야하는 루프를 만듭니다.… A보다 먼저 시작해야합니다.
Gilles 'SO- 악의

1
@Gilles 파일이 없습니다/etc/insserv.conf.d
Pranjal

답변:


21

우선, 문제는 부팅 시퀀싱에 갇혀 있다는 것입니다.


부팅 시퀀싱 방법은 설치 또는 업그레이드 중에 결정됩니다. 설치된 모든 스크립트 의 LSB 헤더에 의해 선언 된 종속성에 루프 가없고 init.d이상 사용 되지 않는 스크립트없는 경우 시스템은 종속성 기반 부팅 순서로 변환됩니다.


우리는 확인해야

  1. 종속성 루프 :>

    • 일부 스크립트에 누락 된 LSB 태그가 있거나 누락 Required-Start:또는 Required-Stop:태그 와 같은 LSB 태그에 오류가 있습니다
    • 일부 스크립트 $all는 사실이 될 수없는 시스템 기능에 따라 다른 스크립트에 의존 합니다. 에 따라 스크립트 $all가 시작시 마지막으로로드 되기 때문 입니다. 마지막으로로드되므로 아무것도 의존 할 수 없습니다. 따라서 종속성 기반 부팅 순서를 엉망으로 만듭니다.
  2. 사용되지 않는 스크립트 : 언제 발생

    • 일부 패키지는 최신 버전으로 업그레이드되어 스크립트를 사용하지 않을 /etc/init.d/수 있으며 관리자는 이전 스크립트를 제거하는 코드를 놓쳤을 수 있습니다. 우리의 실수는 아닙니다.

원인은 분명히 외국입니다. 고토 /etc/init.d와는에 해당하는 파일보기 cups-browsed가 가진 LSB 주석이 있고 확인을 Provides, Required-Start/ Required-Stop(적어도 빈), Default-Start/ Default-Stop그 안에 아래 좋아합니다.

### 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

거기 아니라면 당신은 LSB 주석을 추가하거나 완전히에서 프로그램 및 스크립트를 제거하기 위해 선택해야 /etc/init.d/하고 /etc/rc?파일을. 이것이 효과가 있기를 바랍니다.

궁금한 점이 있으면 언제든지 문의하십시오.


질문을 게시 한 지 한 달이 지났습니다. 그 당시에는 답을 얻지 못했지만 프로그램을 제거하고 모든 것이 작동했습니다. 이제 다시 설치 cups했으며 신비스럽게 모든 것이 잘 작동합니다. 퍼지 프로그램 제안을 언급 했으므로 여전히 정답으로 귀하를 수락하고 있습니다.
Pranjal

1
같은 문제가 있습니다. /etc/init.d/cups-browsed파일을 확인했으며 이미 언급 한대로 주석이 있습니다. 프로그램과 스크립트를 어떻게 제거합니까?
Mohan

좋아, 이해하지만 이해하지 못하는 것은 왜입니까? 이 INIT INFO 헤더는 10 년 이상 존재했지만 아무도 신경 쓰지 않았습니다. 인간의 관점에서 0에서 99 사이의 두 자리 숫자는 시작 순서를 설정하는 매우 명확한 방법이지만 이제 필수 시작 헤더를 추적해야합니까? 왜? 때로는 더 적은 것이 더 많습니다.
soger

1
우분투는 콜론 앞의 공백을 좋아하지 않습니다.
tak3shi
당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.