오류: 아카이브 키링을 찾을 수 없습니다.

오류: 아카이브 키링을 찾을 수 없습니다.

Debian Lenny를 Squeeze로 업그레이드하려고 합니다. source.list에서 lenny라는 단어를 집어 넣고 실행했습니다.

apt-get clean
apt-get update
apt-get dist-upgrade

그런데 잠시 후 이런 오류가 발생합니다.

Preconfiguring packages ...
Setting up debian-archive-keyring (2010.08.28) ...
ERROR: Can't find the archive-keyring
Is the ubuntu-keyring package installed?
dpkg: error processing debian-archive-keyring (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 debian-archive-keyring
E: Sub-process /usr/bin/dpkg returned an error code (1)

그래서 설치하려고 했는데 apt-get -f install debian-archive-keyring같은 오류가 발생했습니다. 그런 다음 설치를 시도했는데 apt-get -f install ubuntu-keyring다음 오류가 발생했습니다.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package ubuntu-keyring is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package ubuntu-keyring has no installation candidate

어쩌면 내 source.list에 잘못된 소스가 있을 수도 있습니다.

deb    ftp://mirror.hetzner.de/debian/packages  squeeze          main contrib non-free
deb    ftp://mirror.hetzner.de/debian/security  squeeze/updates  main contrib non-free

deb     http://ftp.de.debian.org/debian/  squeeze  main non-free contrib
deb-src http://ftp.de.debian.org/debian/  squeeze  main non-free contrib

deb     http://security.debian.org/  squeeze/updates  main contrib non-free
deb-src http://security.debian.org/  squeeze/updates  main contrib non-free

누구든지 나를 도울 수 있기를 바랍니다.

고마워요, 턱시도


답변해 주셔서 감사합니다. @mailq 또한 왜 Ubuntu 패키지가 없거나 잘못되었는지 궁금합니다. 내 서버에서 Debian Lenny를 실행하고 있으며 스퀴즈 업그레이드를 시도했습니다. 그래서 lenny내 .squeezesources.list그리고 나오는 것은 다음과 같습니다: 일부 우분투 오류(???). 첫 번째 소스는 내 공급자의 로컬 소스이고 두 번째 소스는 Gilles가 말했듯이 데비안의 공식(그러나 느린) 소스입니다.

@Gilles 다음은 명령의 출력입니다.

# lsb_release -irc
Distributor ID: Ubuntu
Release:    10.04
Codename:   lucid

# type apt-key
apt-key is /usr/bin/apt-key

# dpkg -s apt
Package: apt
Status: install ok installed
Priority: important
Section: admin
Installed-Size: 5488
Maintainer: Ubuntu Core Developers <[email protected]>
Architecture: amd64
Version: 0.7.25.3ubuntu7
Replaces: libapt-pkg-dev (<< 0.3.7), libapt-pkg-doc (<< 0.3.7)
Provides: libapt-pkg-libc6.10-6-4.8
Depends: libc6 (>= 2.8), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.4.0)
Recommends: ubuntu-keyring
Suggests: aptitude | synaptic | wajig, dpkg-dev, apt-doc, bzip2, lzma, python-apt
Conffiles:
 /etc/apt/apt.conf.d/01autoremove 6154750d39a78704b5bbf6fafd65ada7
 /etc/apt/apt.conf.d/01ubuntu 078b96538a377743bee0f554eb5b2fc6
 /etc/logrotate.d/apt 179f2ed4f85cbaca12fa3d69c2a4a1c3
 /etc/cron.daily/apt 3528ddf873535d4c268d83e73e85dc79
Description: Advanced front-end for dpkg
 This is Debian's next generation front-end for the dpkg package manager.
 It provides the apt-get utility and APT dselect method that provides a
 simpler, safer way to install and upgrade packages.
 .
 APT features complete installation ordering, multiple source capability
 and several other unique features, see the Users Guide in apt-doc.
Original-Maintainer: APT Development Team <[email protected]>

저는 Debian Squeeze로만 업그레이드하고 싶었는데 우분투가 어떻게 이런 일이 일어나는지 모르겠습니다. 새로 설치하는 것은 좋은 생각이 아닙니다. 왜냐하면 저는 이 서버를 프로덕션 환경에서 실행하고 있고 가동 중지 시간을 원하지 않기 때문입니다.

그럼 추가 아이디어는 없나요?

고마워요, 턱시도

답변1

"ubuntu-keyring 패키지가 설치되어 있습니까?"라는 메시지가 나타납니다. apt-keyAPT용 키링을 관리하는 프로그램 에서 나옵니다 . apt-key데비안이 아닌 우분투의 프로그램이 있는 것 같습니다 . apt-key프로그램이 패키지의 일부이기 때문에 apt여기에는 심각한 문제가 있습니다. 이 컴퓨터에 Ubuntu가 아닌 Debian이 설치되어 있습니까? lsb_release -irc(있는 경우 ) 출력 lsb_release또는 패키지 버전을 확인하십시오 base-files. 또한 apt-key프로그램의 출처를 확인하세요: type apt-key, dpkg -s apt.

Ubuntu가 있으면 Debian으로 업그레이드할 수 없습니다(또는 그 반대로). 두 배포판은 동일한 패키지 형식을 사용하고 공통된 패키지가 많지만 이러한 배포판 간 업그레이드를 지원하려면 약간의 노력이 필요할 만큼 차이가 있으며 그러한 노력을 확장하는 데 관심이 있는 사람은 거의 없습니다. 따라서 이전 Ubuntu 릴리스(하디, 어쩌면?)가 있는 경우 이를 유지하고 새 Ubuntu로 업그레이드하거나 다시 설치하십시오.

답변2

우분투?! 우분투 키링은 데비안과 어떤 관련이 있나요?

source.list에서 첫 번째 두 줄을 모두 제거합니다. 아니면 나머지 4개. 그러나 두 번 나열하지 마십시오.

관련 정보