내 우분투 상자에 오류가 발생하는 "sudo apt-get update" 명령

내 우분투 상자에 오류가 발생하는 "sudo apt-get update" 명령

Ubuntu 12.04 상자에서 "sudo apt-get update" 명령을 실행할 때마다 다음 오류가 발생합니다.

Fetched 837 B in 0s (29.0 kB/s)
Reading package lists... Done
N: Ignoring 'build' in directory '/etc/apt/sources.list.d/' as it is not a regular file
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://installsvc.vip precise Release: The following signatures were invalid: KEYEXPIRED 1468001658

W: Failed to fetch http://installsvc.vip/mirrors/apt.puppetlabs.com/dists/precise/Release

W: Some index files failed to download. They have been ignored, or old ones used instead.

문제가 무엇인지 잘 모르겠으며 어떻게 해결할 수 있습니까?

답변1

/etc/apt/sources.list.d/폴더나 파일 자체 에 만료된 저장소가 있습니다 /etc/apt/sources.list.

좋아하는 콘솔을 열고 I like yakuake또는 konsole(기본값은 gnome-terminal내 생각에) 다음을 수행합니다.

sudo grep "installsvc" -R /etc/apt/

"installsvc"가 참조되는 위치를 알려줍니다. 대신 해당 파일에서 Puppet Labs 저장소에 직접 연결하려고 합니다. installsvc.vip/mirrors/저장소 URL에서 일부를 삭제합니다 (예 gksudo gedit /etc/apt/$fileToChangeName: 파일을 수동으로 편집하고 프로그램을 닫기 전에 저장하는 것을 잊지 마십시오).

또한 잘못 배치된 파일이 있는 것 같습니다. 이는 해를 끼치지는 않지만 출력에서 ​​"알려집니다" apt-get.

sudo rm /etc/apt/sources.list.d/build

(삭제 취소 없이) 삭제하겠지만, 보관하고 싶은지 먼저 확인 mv하고 chown그 다음에 필요할 수도 있습니다.

또한 12.04 Precise Pangolin이 오래되었다는 사실도 알고 있어야 합니다. 최신 Ubuntu는 apt대신 다음을 사용 apt-get하지만 문제를 해결한 후에는 다음을 수행할 수 있습니다.

sudo apt-get autoclean; sudo apt-get update; sudo apt-get dist-upgrade

새로 추가된 Puppet Labs 저장소를 포함하여 사용 가능한 최신 업그레이드를 수행합니다(이전 저장소는 미러였습니다).

관련 정보