2012-10-24 5 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. 

문제점을 해결하기위한 다음 단계는 무엇입니까?Heroku를 설치하면 패키지 관리자가 손상됩니다.


업데이트 : 다시 설치하고 아래 출력을 얻으려고했습니다. 설치 한 것 같지만 명령 줄에서 heroku을 시도하면 command not found: 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 rm /var/lib/apt/lists/* -vf

sudo apt-get update

+6

은 이해하기가 좋은 것 근무 : 당신은 다음과 같이 시도 할 수

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 

0

이 나를

sudo rm -r /var/lib/apt/lists 
sudo mkdir -p /var/lib/apt/lists/partial 
sudo aptitude update 
관련 문제