साझा-माइम-info.postinst त्रुटि के कारण sudo एप-गेट अपग्रेड विफल हो जाता है


10

मेरे सर्वर पर मुझे निम्नलिखित समस्या मिल रही है। sudo apt-get update काम सफलतापूर्वक लेकिन sudo apt-get upgrade निम्नलिखित त्रुटि के साथ विफल हो जाता है। कृपया इस मुद्दे को हल करने में मेरी मदद करें।

administrator@myserver:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have been kept back:
  firefox linux-headers-server linux-image-server linux-server
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
21 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up shared-mime-info (0.71-1ubuntu2) ...
/var/lib/dpkg/info/shared-mime-info.postinst: line 13: 17650 Segmentation fault      update-mime-database.real /usr/share/mime
dpkg: error processing shared-mime-info (--configure):
 subprocess installed post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of libgtk2.0-0:
 libgtk2.0-0 depends on shared-mime-info; however:
  Package shared-mime-info is not configured yet.
dpkg: error processing libgtk2.0-0 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of chromium-browser:
 chromium-browser depends on libgtk2.0-0 (>= 2.18.0); however:
  Package libgtk2.0-0 is not configured yet.
dpkg: error processing chromium-browser (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of chromium-codecs-ffmpeg:
 chromium-codecs-ffmpeg depends on chromium-browser (>= 4.0.203.0~); however:
  Package chromium-browser is not configured yet.
dpkg: error processing chromium-codecs-ffmpeg (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of chromium-browser-l10n:
 chromium-browser-l10n depends on chromium-browser (= 16.0.912.77~r118311-0ubuntu0.10.04.1)No apport report written because the error message indicates its a followup error from a previous failure.
             No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                                       No apport report written because MaxReports is reached already
                                                                                                                                                                                     No apport report written because MaxReports is reached already
                                                           No apport report written because MaxReports is reached already
                                                                                                                         No apport report written because MaxReports is reached already
                                                                                                                                                                                       No apport report written because MaxReports is reached already
                                                             No apport report written because MaxReports is reached already
                                                                                                                           No apport report written because MaxReports is reached already
 No apport report written because MaxReports is reached already
                                                               No apport report written because MaxReports is reached already
                                                                                                                             No apport report written because MaxReports is reached already
   No apport report written because MaxReports is reached already
                                                                 ; however:
  Package chromium-browser is not configured yet.
dpkg: error processing chromium-browser-l10n (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libevdocument2:
 libevdocument2 depends on libgtk2.0-0 (>= 2.14.0); however:
  Package libgtk2.0-0 is not configured yet.
dpkg: error processing libevdocument2 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libevview2:
 libevview2 depends on libevdocument2 (>= 2.29.5); however:
  Package libevdocument2 is not configured yet.
 libevview2 depends on libgtk2.0-0 (>= 2.20.0); however:
  Package libgtk2.0-0 is not configured yet.
dpkg: error processing libevview2 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of evince:
 evince depends on libevdocument2 (>= 2.29.5); however:
  Package libevdocument2 is not configured yet.
 evince depends on libevview2 (>= 2.29.5)No apport report written because MaxReports is reached already
                                                                                                       ; however:
  Package libevview2 is not configured yet.
 evince depends on libgtk2.0-0 (>= 2.16.0); however:
  Package libgtk2.0-0 is not configured yet.
 evince depends on shared-mime-info; however:
  Package shared-mime-info is not configured yet.
dpkg: error processing evince (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gcalctool:
 gcalctool depends on libgtk2.0-0 (>= 2.18.0); however:
  Package libgtk2.0-0 is not configured yet.
dpkg: error processing gcalctool (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgdict-1.0-6:
 libgdict-1.0-6 depends on libgtk2.0-0 (>= 2.18.0); however:
  Package libgtk2.0-0 is not configured yet.
dpkg: error processing libgdict-1.0-6 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnome-utils:
 gnome-utils depends on libgdict-1.0-6 (>= 2.23.90); however:
  Package libgdict-1.0-6 is not configured yet.
 gnome-utils depends on libgtk2.0-0 (>= 2.18.0); however:
  Package libgtk2.0-0 is not configured yet.
dpkg: error processing gnome-utils (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gtk2-engines-pixbuf:
 gtk2-engines-pixbuf depends on gtk2.0-binver-2.10.0; however:
  Package gtk2.0-binver-2.10.0 is not installed.
  Package libgtk2.0-0 which provides gtk2.0-binver-2.10.0 is not configured yet.
 gtk2-engines-pixbuf depends on libgtk2.0-0 (= 2.20.1-0ubuntu2.1); however:
  Package libgtk2.0-0 is not configured yet.
dpkg: error processing gtk2-engines-pixbuf (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgail18:
 libgail18 depends on libgtk2.0-0 (= 2.20.1-0ubuntu2.1); however:
  Package libgtk2.0-0 is not configured yet.
dpkg: error processing libgail18 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgtk2.0-bin:
 libgtk2.0-bin depends on libgtk2.0-0 (>= 2.20.1-0ubuntu2.1); however:
  Package libgtk2.0-0 is not configured yet.
dpkg: error processing libgtk2.0-bin (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pidgin:
 pidgin depends on libgtk2.0-0 (>= 2.18.0); however:
  Package libgtk2.0-0 is not configured yet.
dpkg: error processing pidgin (--configure):
 dependency problems - leaving unconfigured
Setting up update-manager (1:0.134.11.1) ...
dpkg: error processing update-manager (--configure):
 subprocess installed post-installation script returned error exit status 245
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of update-notifier:
 update-notifier depends on libgtk2.0-0 (>= 2.14.0); however:
  Package libgtk2.0-0 is not configured yet.
 update-notifier depends on update-manager; however:
  Package update-manager is not configured yet.
dpkg: error processing update-notifier (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of xulrunner-1.9.2:
 xulrunner-1.9.2 depends on libgtk2.0-0 (>= 2.18.0); however:
  Package libgtk2.0-0 is not configured yet.
dpkg: error processing xulrunner-1.9.2 (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of icedtea6-plugin:
 icedtea6-plugin depends on xulrunner-1.9.2; however:
  Package xulrunner-1.9.2 is not configured yet.
 icedtea6-plugin depends on libgtk2.0-0 (>= 2.8.0); however:
  Package libgtk2.0-0 is not configured yet.
dpkg: error processing icedtea6-plugin (--configure):
 dependency problems - leaving unconfigured
Setting up libgweather-common (2.30.0-0ubuntu1.1) ...
No apport report written because MaxReports is reached already
                                                              dpkg: error processing libgweather-common (--configure):
 subprocess installed post-installation script returned error exit status 245
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of libgweather1:
 libgweather1 depends on libgtk2.0-0 (>= 2.11.0); however:
  Package libgtk2.0-0 is not configured yet.
 libgweather1 depends on libgweather-common (>= 2.24.0); however:
  Package libgweather-common is not configured yet.
dpkg: error processing libgweather1 (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 shared-mime-info
 libgtk2.0-0
 chromium-browser
 chromium-codecs-ffmpeg
 chromium-browser-l10n
 libevdocument2
 libevview2
 evince
 gcalctool
 libgdict-1.0-6
 gnome-utils
 gtk2-engines-pixbuf
 libgail18
 libgtk2.0-bin
 pidgin
 update-manager
 update-notifier
 xulrunner-1.9.2
 icedtea6-plugin
 libgweather-common
 libgweather1
E: Sub-process /usr/bin/dpkg returned an error code (1)
administrator@myserver:~$ 

धन्यवाद, एविन


आपका /var/lib/dpkg/info/sared-mime-info.postinst भ्रष्ट हो सकता है। क्या आप यह सामग्री पोस्ट कर सकते हैं?
रिचर्ड अयोटे

जवाबों:


7

यदि "डिस्ट-अपग्रेड" समाधान काम नहीं करता है, तो पैकेज साझा-माइम-इंफो की जबरन पुनर्स्थापना का प्रयास करें:

sudo apt-get update
sudo dpkg -P --force-all shared-mime-info
sudo apt-get install shared-mime-info
sudo apt-get -f install
sudo apt-get dist-upgrade
  • यदि यह फिर से विफल होता है, तो मुझे उपरोक्त आदेशों के पूर्ण आउटपुट की आवश्यकता है। यदि यह बहुत बड़ा है, तो http://www.pastebin.com का उपयोग करें और यहां लिंक साझा करें।
  • मुझे इसके आउटपुट की भी आवश्यकता है:

    apt-cache policy shared-mime-info
    sudo gdb update-mime-database.real -ex 'r /usr/share/mime'
    

इस कीड़े से मुझे कुछ कहना है: https://bugs.launchpad.net/ubuntu/+source/libxml2/+bug/759525


उत्तर के लिए धन्यवाद ... pastebin पर आउटपुट की जाँच करें pastebin.com/HNEnaedU
Avin Tokade

कैश निकालने का प्रयास करें: sudo rm -fv /usr/share/mime/mime.cache ~/.local/share/mime/mime.cache; sudo update-mime-database /usr/share/mime- क्या आपको फिर से विभाजन की गलती है?
सव्व्स राड्विक

हाँ, मुझे सेगमेंटेशन फ़ॉल्ट एरर एडमिनिस्ट्रेटर @ myserver मिल रहा है: ~ $ sudo update-mime-database / usr / share / mime [sudo] एडमिनिस्ट्रेटर के लिए पासवर्ड: सेगमेंटेशन
फ़ॉल्ट

कोशिश करें sudo gdb update-mime-database.real -ex 'r /usr/share/mime'- आउटपुट को www.pastebin.com पर फिर से चिपकाएँ। मैं इस प्रश्न के लिए एक इनाम शुरू करूँगा।
सेवव्स राड्विक

3

अगर यह शो त्रुटियां अभी भी सिनैप्टिक> एडिट> फिक्स टूटे हुए पैकेज को पुनः लोड करें और सभी अपग्रेड को चिह्नित करें तो sudo apt-get update && sudo apt-get dist-upgrade करें।


काम नहीं किया है..प्लीज चेक कमांड्स आउटपुट pastebin.com/HNEnaed
Avin Tokade

3

यह समस्या इस StackOverflow प्रश्न के समान उल्लेखनीय रूप से दिखती है कि एक ही पैकेज के लिए एक विभाजन दोष थाshared-mime-info

समाधान को टिप्पणी में वापस दफन किए जाने से पहले दफन कर दिया गया था (!) - Maverick libxml2पैकेज डाउनलोड करें और इसे चलाने से पहले स्थापित करें:

sudo apt-get update && sudo apt-get upgrade

अपनी वास्तुकला के लिए .deb फ़ाइल डाउनलोड करें (32 बिट i386 है और 64bt amd64 है)

वाक्यविन्यास के माध्यम से पैकेज स्थापित करें:

sudo dpkg -i [foo].deb

जहां [foo] पैकेज फ़ाइल नाम है जिसे डाउनलोड किया गया था।

उदाहरण के लिए कुछ का उपयोग करें:

sudo dpkg -i libxml2_2.7.7.dfsg-4ubuntu0.3_i386.deb

2

मुझे पता है कि यह पुराना है लेकिन मुझे त्रुटि मिली और मैंने इसे ठीक कर लिया। मैंने ऐसा करने के लिए एप्टीट्यूड का इस्तेमाल किया।

पहले जाओ और एप्टीट्यूड दोनों को हटाने के लिए कहें shared-mime-infoऔरlibxml2

sudo एप्टीट्यूड साझा-माइम-जानकारी libxml2 को हटा दें

फिर एप्टीट्यूड आपको बताएगा कि यह कई आवश्यक सिस्टम पैकेज को हटा देगा:

इस समाधान को स्वीकार करें? [हां / नहीं / q /?]

आप का जवाब होना चाहिए नहीं n। यह आपको एक अन्य समाधान देगा

निम्नलिखित क्रियाएं इन निर्भरताओं को हल करेंगी:

 Install the following packages: 1)     shared-mime-info:i386 [1.0-0ubuntu4.1 (precise-updates)]

 Keep the following packages at their current version: 2)    libxml2 [2.7.8.dfsg-5.1ubuntu4.13 (now, precise-security, precise-updates)]

इस समाधान को स्वीकार करें? [हां / नहीं / q /?]

इसके लिए, एक हाँ कहते हैं। फिर, यह उचित संस्करण स्थापित करेगा।

sudo apt-get update

sudo apt-get उन्नयन

इसने मेरे लिए पूरी तरह से काम किया। सौभाग्य।


0

मैंने इसे काम करने के लिए निम्नलिखित किया।

cd /var/lib/dpkg/info
sudo rm shared-mime*
sudo apt-get install shared-mime-info
हमारी साइट का प्रयोग करके, आप स्वीकार करते हैं कि आपने हमारी Cookie Policy और निजता नीति को पढ़ और समझा लिया है।
Licensed under cc by-sa 3.0 with attribution required.