2012-10-24 25 views
8
sudo apt-get install <anything> 

Reading package lists... Error! 
E: Encountered a section with no Package: header 
E: Problem with MergeList /var/lib/apt/lists/toolbelt.heroku.com_ubuntu_._en 
E: The package lists or status file could not be parsed or opened. 

स्थापित करने के लिए मेरे अगले चरण क्या हैं, तो मेरा पैकेज मैनेजर तोड़ दिया?जब मैंने हेरोकू


अपडेट: मैंने पुनः स्थापित करने और नीचे आउटपुट प्राप्त करने का प्रयास किया। ऐसा लगता है जैसे यह स्थापित है, लेकिन मुझे command not found: heroku मिलता है जब मैं कमांड लाइन से heroku आज़माता हूं। इंस्टॉल कमांड [Waiting for Headers] पर लंबे समय तक लटका हुआ है।

इन त्रुटि संदेशों के आधार पर मेरा अगला कदम क्या है?

W: GPG error: http://us.archive.ubuntu.com precise Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <[email protected]> 
W: GPG error: http://us.archive.ubuntu.com precise-backports Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <[email protected]> 
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://extras.ubuntu.com precise Release: The following signatures were invalid: BADSIG 16126D3A3E5C1192 Ubuntu Extras Archive Automatic Signing Key <[email protected]> 

W: GPG error: http://dl.google.com stable Release: The following signatures were invalid: BADSIG A040830F7FAC5991 Google, Inc. Linux Package Signing Key <[email protected]> 
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/precise/Release 

W: Some index files failed to download. They have been ignored, or old ones used instead. 
Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
heroku-toolbelt is already the newest version. 

उत्तर

21

निम्नलिखित इस त्रुटि को ठीक होगा:

sudo apt-get clean 
cd /var/lib/apt 
sudo mv lists lists.old 
sudo mkdir -p lists/partial 
sudo apt-get clean 
sudo apt-get update 
+6

यह समझना अच्छा होगा के लिए काम किया यह क्यों काम करता है! –

0

आप इस प्रकार की कोशिश कर सकते हैं:

sudo rm /var/lib/apt/lists/* -vf

sudo apt-get update

0

यह मैं

sudo rm -r /var/lib/apt/lists 
sudo mkdir -p /var/lib/apt/lists/partial 
sudo aptitude update