Linux

[Ubuntu] E: Encountered a section with no Package: header 에러 발생

chbae 2023. 4. 19. 02:34
728x90

Ubuntu 12.04 64bit를 사용하고 있는데, 언제부터인지 apt-get 명령어를 실행하면 다음과 같은 에러가 발생한다.

 

E: Encountered a section with no Package: header  
E: Problem with MergeList /var/lib/apt/lists/kr.archive......  
E: The package lists or status file could not be parsed or opened.

 

다음과 같이 특정 디렉토리를 삭제한 후, apt-get update를 sudo로 실행하면 해결된다.

$ sudo rm /var/lib/apt/lists/* -vf
$ sudo apt-get update

Reference: http://ubuntuforums.org/showthread.php?t=863742