일부 Ubuntu 리포지토리가 실수로 Debian에 다운로드되었습니다. 어떻게 삭제하나요?

일부 Ubuntu 리포지토리가 실수로 Debian에 다운로드되었습니다. 어떻게 삭제하나요?

실수로 Debian에서 일부 Ubuntu 저장소를 다운로드했습니다. 이제 시스템을 업데이트하려고 하면 sudo apt-get update다음이 표시됩니다.

W: The repository 'http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu cosmic Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ppa.launchpad.net/gophers/archive/ubuntu bionic InRelease: Ondorengo sinadurak ezin dira egiaztatu gako publikoa ez bait dago eskuragarri: NO_PUBKEY 308C15A29AD198E9
W: The repository 'http://ppa.launchpad.net/gophers/archive/ubuntu bionic InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Ezin da lortu http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu/dists/cosmic/main/binary-i386/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

문제를 해결하기 위해 저장소를 삭제하려면 어떻게 해야 합니까?

답변1

이전에 저장소를 추가한 경우 apt-add-repository이 옵션을 사용하여 동일한 명령을 다시 실행하십시오 -r.

sudo add-apt-repository -r ppa:webupd8team/y-ppa-manager

사용할 수 없거나 사용하고 싶지 않은 경우 add-apt-repository저장소를 수동으로 삭제할 수 있습니다. 그것들은 /etc/apt/sources.list디렉토리나 파일 에 기록됩니다 /etc/apt/sources.list.d/. 어떤 파일이 원인인지 확인하려면 다음을 실행하세요.

grep y-ppa-manager /etc/apt/sources.list /etc/apt/sources.list.d/*.list /etc/apt/sources.list.d/*.sources

무언가를 추가한 경우 /etc/apt/sources.list다음 명령을 사용하여 편집하세요.

sudoedit /etc/apt/sources.list

문제가 있는 줄을 삭제하세요. 파일의 모든 항목을 삭제하려면 /etc/apt/sources.list.d다음 명령을 사용하여 파일을 완전히 삭제할 수 있습니다.

sudo rm /etc/apt/sources.list.d/y-ppa-manager.list

PPA 와 관련없는 버그도 있습니다 gophers/archive. 원하시면 설정작업을 진행하셔야 합니다. 패키지 아카이브를 사용 가능하게 하려면 다음 세 가지 작업을 수행해야 합니다.

  1. 소스 목록( /etc/apt/sources.list*)에 추가하세요.
  2. 아카이브가 서명된 경우(보안상의 이유로 적극 권장됨) 실행을 통해 해당 키를 신뢰한다는 것을 보여야 합니다.sudo apt-key add filename.key
  3. 달리기 sudo apt-get update.

ppa:이 구문을 사용하면 apt-add-repository1단계와 2단계가 동시에 처리됩니다. 귀하의 컴퓨터에서는 2단계가 수행되지 않은 것 같습니다. 내 생각엔 당신이 달릴 수 있을 것 같아요 add-apt-repository(에 따르면PPA 페이지 지침) 처리하도록 하겠습니다. 또는 다음을 추가할 수 있습니다.열쇠수동으로

apt-key adv --keyserver keyserver.ubuntu.com --recv-key C73998DC9DFEA6DCF1241057308C15A29AD198E9

keyserver.ubuntu.com모든 Ubuntu PPA 키의 키 서버이며PPA 페이지의 서명 키 링크가다. 끝에 있는 16진수 문자열은 PPA 페이지에 나열된 지문입니다(오류 메시지에서 더 짧은 형식을 사용할 수도 있음).

관련 정보