エラー: アーカイブキーリングが見つかりません

エラー: アーカイブキーリングが見つかりません

Debian LennyをSqueezeにアップグレードしようとしています。sources.listのlennyという単語をsqueezeに置き換えて実行しました。

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

おそらく、sources.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 を実行しており、squeeze にアップグレードしようとしました。そこで、内の単語lennyを に置き換えました。すると、次のような結果が出ました: Some Ubuntu errors (???)。最初のソースはプロバイダーのローカル ソースで、2 番目のソースは、Gilles が言ったように、Debian の公式 (ただし遅い) ソースです。squeezesources.list

@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 にアップグレードしたかっただけなのですが、Ubuntu でこのようなことが起こるのはなぜかわかりません。このサーバーは実稼働中でダウンタイムは避けたいので、新規インストールはお勧めできません。

では、他に何かアイデアはありますか?

ありがとう、ありがとう

答え1

「ubuntu-keyring パッケージはインストールされていますか?」というメッセージはapt-key、APT のキーリングを管理するプログラムから出ています。どうやら、このapt-keyプログラムは Debian ではなく Ubuntu から入手したようです。このapt-keyプログラムはパッケージの一部なのでapt、何か重大な問題があります。このマシンにインストールされているのは Ubuntu ではなく Debian ですか? の出力lsb_release -irc(存在する場合lsb_release) またはパッケージのバージョンを確認してください。また、プログラムがどこから入手されたbase-filesかを確認してください: 、。apt-keytype apt-keydpkg -s apt

Ubuntu をお持ちの場合は、Debian にアップグレードすることはできません (またはその逆)。2 つのディストリビューションは同じパッケージ形式を使用し、多くのパッケージが共通していますが、違いが十分にあるため、このようなディストリビューション間のアップグレードをサポートするにはある程度の労力が必要であり、そのような労力を費やすことに興味を持つ人はほとんどいません。したがって、古い Ubuntu リリース (おそらく頑丈でしょうか) をお持ちの場合は、それを保持し、新しい Ubuntu にアップグレードするか、再インストールしてください。

答え2

Ubuntu?! ubuntu-keyrings と Debian とは何の関係があるのでしょうか?

ソース リストの最初の 2 行を削除します。または、他の 4 行を削除します。ただし、2 度リストしないでください。

関連情報