sudo apt-get ठीक से काम नहीं करना


0

दौड़ते समय sudo apt-get upgradeमुझे निम्नलिखित त्रुटि हुई

$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.10.0-32 linux-headers-4.10.0-32-generic linux-image-4.10.0-32-generic linux-image-extra-4.10.0-32-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
Setting up grub-pc (2.02~beta2-36+elementary11+r6~ubuntu16.04.1) ...
dpkg: error processing package grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 10
dpkg: dependency problems prevent configuration of grub-gfxpayload-lists:
 grub-gfxpayload-lists depends on grub-pc (>= 1.99~20101210-1ubuntu2); however:
  Package grub-pc is not configured yet.

dpkg: error processing package grub-gfxpayload-lists (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 grub-pc
 grub-gfxpayload-lists
E: Sub-process /usr/bin/dpkg returned an error code (1)

क्या कोई बता सकता है कि क्या गलत है और इसे कैसे ठीक किया जाए।

मैं इस त्रुटि के कारण किसी भी पैकेज को स्थापित नहीं कर सकता।

sudo apt-get -f install उत्पादन

$ sudo apt-get -f install
[sudo] password for pi:  
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up grub-pc (2.02~beta2-36+elementary11+r6~ubuntu16.04.1) ...
dpkg: error processing package grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 10
dpkg: dependency problems prevent configuration of grub2:
 grub2 depends on grub-pc (= 2.02~beta2-36+elementary11+r6~ubuntu16.04.1); however:
  Package grub-pc is not configured yet.

dpkg: error processing package grub2 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          dpkg: dependency problems prevent configuration of grub-gfxpayload-lists:
 grub-gfxpayload-lists depends on grub-pc (>= 1.99~20101210-1ubuntu2); however:
  Package grub-pc is not configured yet.

dpkg: error processing package grub-gfxpayload-lists (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 grub-pc
 grub2
 grub-gfxpayload-lists
E: Sub-process /usr/bin/dpkg returned an error code (1)

क्या यह मदद करता है? askubuntu.com/q/774663/17529
slhck

मैंने प्रदर्शन किया sudo dpkg --purge grub-pc grub2 grub-gfxpayload-listsऔर त्रुटि अभी भी बनी हुई है क्योंकि मैं नहीं सोचता कि मैं अब अपने सिस्टम को बूट नहीं कर पाऊंगा, अगर मैं हेहैड को बंद नहीं कर पाऊंगा।
कोडेनट

इस लाइन का क्या अर्थ हैSetting up grub-pc (2.02~beta2-36+elementary11+r6~ubuntu16.04.1) ...
कोडेनट

यह वास्तव में एक ही है लेकिन मैंने जैसा प्रदर्शन किया है उसमें आउटपुट में बहुत कम बदलाव है sudo dpkg --purge grub-pc grub2 grub-gfxpayload-lists
कोडेनट

वास्तव में स्थापित करते समय कुछ विफल होने जैसा दिखता है। आप कोशिश कर सकते हैं sudo mv /var/lib/dpkg/info/grub-pc.postinst /var/lib/dpkg/info/grub-pc.postinst-badऔर फिर फिर से चला सकते हैं sudo apt-get install grub-c? (विचार इस पोस्ट से आता है , लेकिन मुझे यकीन नहीं है कि अंतर्निहित समस्या क्या है ...)
slhck
हमारी साइट का प्रयोग करके, आप स्वीकार करते हैं कि आपने हमारी Cookie Policy और निजता नीति को पढ़ और समझा लिया है।
Licensed under cc by-sa 3.0 with attribution required.