
나는 Kali Linux를 사용하고 있으며 얼마 전 R 코드를 실행할 수 있도록 apt를 사용하여 일부 패키지를 설치하고 있었고(제 기억이 정확하다면 r-base를 설치했음) 그 이후로 내 apt가 작동하고 있었습니다. 이제 패키지를 설치하려고 할 때마다 다음 메시지가 나타납니다.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
apt : Depends: ubuntu-keyring but it is not installable
apt-utils : Depends: apt (= 2.2.3) but 2.0.2ubuntu0.2 is to be installed
r-cran-mgcv : Depends: r-cran-nlme (>= 3.1-64) but it is not going to be installed
r-recommended : Depends: r-cran-nlme (>= 3.1.52) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
나는 --fix-broken 및 --fix-missing을 시도했습니다. 또한 r-cran-nlme와 같은 누락된 항목을 수동으로 설치하려고 시도했습니다.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
apt : Depends: ubuntu-keyring but it is not installable
apt-utils : Depends: apt (= 2.2.3) but 2.0.2ubuntu0.2 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
mit-scheme과 같은 다른 패키지를 얻으려고 할 때마다 다시 첫 번째 오류 메시지로 돌아갑니다. 제가 특히 이상하다고 생각하는 점은 계속해서 ubuntu keyring이라고 하는데 저는 Debian인 Kali를 사용하고 있다는 것입니다.
여기 내 소스 목록이 있습니다.
# See https://www.kali.org/docs/general-use/kali-linux-sources-list-repositories/
deb http://http.kali.org/kali kali-rolling main contrib non-free
# Additional line for source packages
deb-src http://http.kali.org/kali kali-rolling main contrib non-free
이러한 오류를 수정하고 다시 제대로 작동하려면 어떻게 해야 합니까?
업데이트: 댓글에 언급된 모든 명령(업데이트, 업그레이드, --fix-broken 등)을 시도했습니다. 모두 이 게시물에 처음 나열한 것과 동일한 오류가 발생합니다. "서명이 유효하지 않습니다"라는 줄과 공개 키를 언급합니다. Kali는 데비안이라고 생각하는데 왜 우분투를 요구하는지 잘 모르겠습니다.
답변1
https://superuser.com/a/1705251
약 2년 전에 질문에 대한 이 답변이 내 문제를 해결했습니다. "2022년 업데이트"라는 제목의 답변
해당 지침에 따라 이제 유효하지 않은 서명 오류가 있는 하나의 패키지를 제외하고 모든 것이 수정되었습니다. 그러나 이는 Spotify에만 해당되므로 별로 중요하지 않다고 생각합니다.