इनसर्व के कारण 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

@ माइकलकॉर्जलिंग I ने /etc/insserv.conf
प्रांजल

उबंटू का क्या संस्करण? क्या आपने कोई ऐसा सॉफ्टवेयर जोड़ा है जो "मानक" रिपॉजिटरी से पैकेज नहीं है? सिस्टम फ़ाइलों के हाल के संपादन के बारे में क्या?
रोआमा

1
आपको फ़ाइलों को देखने की आवश्यकता है /etc/insserv.conf.d। किसी भी फ़ाइल की सामग्री पोस्ट करें जिसका नाम है dns, plymouthया cups। या शायद अन्य फाइलें, समस्या एक फाइल के साथ नहीं है, लेकिन उनके साथ संयोजन में, वे एक लूप बनाते हैं जहां A को B से पहले शुरू किया जाना चाहिए, C से पहले शुरू किया जाना चाहिए ... A से पहले शुरू किया जाना चाहिए
Gilles 'SO- बुराई को रोकें '

1
@ गिल्स कोई फाइल नहीं हैं/etc/insserv.conf.d
प्रांजल

जवाबों:


21

सबसे पहले, समस्या यह है कि आप बूट अनुक्रमण पर अटक गए हैं।


बूट अनुक्रमण विधि को स्थापना या उन्नयन के दौरान तय किया जाता है। यदि सभी स्थापित स्क्रिप्ट्स के LSB हेडर और कोई अप्रचलित स्क्रिप्ट द्वारा घोषित निर्भरता में कोई लूपinit.d नहीं हैं , तो सिस्टम निर्भरता आधारित बूट अनुक्रम में परिवर्तित हो जाता है।


हमें जांच करनी होगी

  1. निर्भरता में पाश : कब> होता है

    • कुछ लिपियों में एलएसबी टैग गायब हैं Required-Start:या एलएसबी टैग में त्रुटि या मिसिंग जैसे Required-Stop:टैग हैं
    • कुछ स्क्रिप्ट अन्य स्क्रिप्ट पर निर्भर करती हैं जो सिस्टम सुविधा पर निर्भर करती हैं $allजो सच नहीं हो सकती हैं। क्योंकि स्क्रिप्ट के आधार पर $allशुरू में पिछले लोड किया जाता है। चूंकि यह अंतिम भार है, कुछ भी इस पर निर्भर नहीं कर सकता है। इसलिए, निर्भरता आधारित बूट अनुक्रम को गड़बड़ कर देता है।
  2. अप्रचलित लिपियाँ : कब

    • कुछ पैकेजों को नए संस्करणों में अपग्रेड किया जा रहा है, जो स्क्रिप्ट का उपयोग नहीं /etc/init.d/कर सकते हैं और अनुचर पुरानी स्क्रिप्ट को हटाने के लिए कोड को याद कर सकते हैं। हमारी गलती नहीं।

कारण निश्चित रूप से विदेशी है। गोटो /etc/init.dऔर फ़ाइल को उसी के अनुरूप देखें cups-browsedऔर पुष्टि करें कि उसके साथ एक एलएसबी टिप्पणी है 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

यदि यह नहीं है, तो आपके पास एलएसबी टिप्पणी जोड़ने या प्रोग्राम और स्क्रिप्ट को पूरी तरह से /etc/init.d/और /etc/rc?फाइलों से शुद्ध करने का विकल्प है। उम्मीद है कि यह काम करेगा।

अगर आपको कोई संदेह हो तो बेझिझक पूछें।


प्रश्न पोस्ट करने के एक महीने से अधिक समय हो चुका है। जैसा कि मुझे उस समय कोई जवाब नहीं मिला, मैंने कार्यक्रम को शुद्ध कर लिया और सब कुछ काम कर गया। अब मैंने फिर से स्थापित किया है cupsऔर रहस्यमय तरीके से सब कुछ ठीक काम कर रहा है। मैं अभी भी आपको सही उत्तर के रूप में स्वीकार कर रहा हूं क्योंकि आपने इसमें शुद्ध कार्यक्रम कार्यक्रम का उल्लेख किया है।
प्रांजल

1
मुझे भी वही समस्या हो रही है। मैंने /etc/init.d/cups-browsedफ़ाइल की जाँच की और इसमें पहले से ही टिप्पणी है जैसा कि आपने उल्लेख किया है। मैं कार्यक्रम और लिपियों को कैसे शुद्ध करूं?
मोहन

ठीक है, मैं समझता हूं, लेकिन जो मुझे समझ में नहीं आता वह क्यों है? ये INIT INFO हेडर एक दशक से अधिक समय से मौजूद थे लेकिन किसी को इनकी परवाह नहीं थी। मानव दृष्टिकोण से 0 से 99 तक दो अंक होना स्टार्टअप ऑर्डर को स्थापित करने का एक बहुत ही स्पष्ट तरीका है, लेकिन अब मुझे आवश्यक-प्रारंभ हेडर का पता लगाना है? क्यों? कभी - कभी थोड़ा ही बहुत होता है।
soger

1
कॉलोनों से पहले रिक्त स्थान उबंटू को पसंद नहीं है।
ताक ३
हमारी साइट का प्रयोग करके, आप स्वीकार करते हैं कि आपने हमारी Cookie Policy और निजता नीति को पढ़ और समझा लिया है।
Licensed under cc by-sa 3.0 with attribution required.