Fedora 25 리폴리스 복원

Fedora 25 리폴리스 복원

생가죽이 문제를 일으키고 있어서 삭제하기로 결정하고 원래 저장소 목록 이름을 백업했습니다. 원래 저장소 목록은 다음과 같습니다.

fedora-cisco-openh264.repo   rpmfusion-free.repo
fedora-rawhide.repo          rpmfusion-free-updates.repo
fedora.repo                  rpmfusion-free-updates-testing.repo
fedora-spotify.repo          rpmfusion-nonfree-rawhide.repo
fedora-updates.repo          rpmfusion-nonfree.repo
fedora-updates-testing.repo  rpmfusion-nonfree-updates.repo
google-chrome.repo           rpmfusion-nonfree-updates-testing.repo
rpmfusion-free-rawhide.repo

생가죽을 제거하고 저장소를 테스트하면 내 시스템이 안정적인 패키지만 검색할 것이라고 생각하여 그 중 일부를 제거했습니다. 삭제란 내가 삭제 rm /etc/yum.repos.d/repo한 후 dnf clean all다른 명령이 없다는 의미입니다. 내 새 저장소 목록은 다음과 같습니다.

fedora-cisco-openh264.repo  rpmfusion-free-updates.repo
fedora.repo                 rpmfusion-free-updates-testing.repo
fedora-spotify.repo         rpmfusion-nonfree-rawhide.repo
fedora-updates.repo         rpmfusion-nonfree.repo
google-chrome.repo          rpmfusion-nonfree-updates.repo
rpmfusion-free.repo         rpmfusion-nonfree-updates-testing.repo

이제는 할 수도 없고 sudo dnf update할 수도 없습니다 sudo dnf reinstall fedora-release. 이 오류가 발생합니다.Error: Failed to synchronize cache for repo 'fedora'kB/s | 491 kB 41:01 ETA

내 질문은 다음과 같습니다

  • 어떤 저장소를 복원해야 하며 어떻게 복원합니까?
  • 안전하게 삭제할 수 있는 테스트 저장소가 있습니까?

답변1

이는 리포지토리를 삭제하는 올바른 방법이 아닙니다. 일반적으로 리포지토리는 패키지에서 나오므로 리포지토리 삭제는 해당 리포지토리가 속한 패키지를 찾는 문제입니다.

$ rpm -qf /etc/yum.repos.d/repository.repo

저장소 파일이 패키지에 속하는 경우 위 명령은 해당 패키지가 무엇인지 알려줍니다.

둘째, 아무것도 삭제하지 않고 저장소를 비활성화할 수 있습니다. 다음 명령을 사용하여 현재 활성화된 리포지토리를 확인할 수 있습니다.

$ sudo dnf repolist

다음 명령을 사용하여 저장소를 비활성화할 수 있습니다.

$ sudo dnf config-manager --set-disabled <repository>

귀하의 질문에 대한 오류 메시지는 누락된 저장소와 관련이 없으며 네트워크(DNS, 캐시 등)와 관련이 있습니다.

활성화해야 하는 최소 저장소 fedora는 입니다 fedora-updates.

답변2

나는 감사하고 싶다스라지니칸이미지 관련 오류임을 나타내는 데 사용됩니다. fastestmirror=1결국 /etc/dnf/dnf.conf. 그의 노력이 문제 해결에 도움이 되었기 때문에 나는 그의 대답을 받아들이겠습니다.

관련 정보