오류 업데이트하는 동안 패키지 목록 또는 상태 파일을 구문 분석하거나 열 수 없습니다.

오류 업데이트하는 동안 패키지 목록 또는 상태 파일을 구문 분석하거나 열 수 없습니다.

나는 다음을 시도하고 있었다:

sudo apt-get update

오류가 발생하여 작동하지 않았습니다.

Hit:1 http://security.debian.org buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster-backports InRelease
Hit:3 http://ftp.hu.debian.org/debian buster-updates InRelease
Hit:4 http://ftp.hu.debian.org/debian buster InRelease
Hit:5 https://quantum-mirror.hu/mirrors/pub/mx-linux/packages/antix/buster buster InRelease
Unknown Multi-Arch type 'fore+gn' for package 'nxproxy'
Problem parsing dependency 21
Error occurred while processing nxproxy (NewVersion2)
Problem with MergeList /var/lib/apt/lists         /ftp.hu.debian.org_debian_dists_buster_main_binary-amd64_Packages
The package lists or status file could not be parsed or opened.
Can't call method "policy" on an undefined value at /usr/bin/apt-show-versions line 53.
Reading package lists... Error!
E: Problem executing scripts APT::Update::Post-Invoke-Success 'test -x /usr/bin/apt-show-  versions || exit 0 ; apt-show-versions -i'
E: Sub-process returned an error code
W: Unknown Multi-Arch type 'fore+gn' for package 'nxproxy'
E: Problem parsing dependency 21
E: Error occurred while processing nxproxy (NewVersion2)
E: Problem with MergeList /var/lib/apt/lists/ftp.hu.debian.org_debian_dists_buster_main_binary-amd64_Packages
E: The package lists or status file could not be parsed or opened.

답변1

MergeList 문제를 해결하려면:

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

그 다음에:

sudo apt clean
sudo apt update

관련 정보