我正在尝试将我的Debian Lenny升级到Squeeze。 我已经replace了lenny这个词来挤压sources.list并且跑了
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
希望任何人都可以帮助我,
thx,晚礼服
谢谢你们的答案。 @mailq我也想知道为什么有一个Ubuntu包丢失/错误。 我在我的服务器上运行一个Debian Lenny,并试图升级到挤压。 所以,我用我的sources.list squeezereplace了lenny这个词。 这是什么出来的:一些Ubuntu错误(???)。 第一个来源是我的提供者的本地来源,第二来源是,正如Gilles所说,Debian的官方(但是速度较慢)来源。
@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的东西是怎么发生的。 新的安装不是一个好主意,因为我在生产中运行这个服务器,不想要一些停机时间。
那么,还有什么想法?
thx,晚礼服
消息“是否安装了ubuntu-keyring软件包?”来自pipe理APT apt-key的apt-key程序。 你显然有Ubuntu的apt-key程序,而不是Debian。 由于apt-key程序是apt软件包的一部分,因此这里出现了很大的错误。 你确定这台机器安装了Debian,而不是Ubuntu? 检查lsb_release -irc (如果存在lsb_release )或base-files包的版本的输出。 还要检查你的apt-key程序来自哪里: type apt-key , dpkg -s apt 。
如果你有Ubuntu,你不能升级到Debian(反之亦然)。 这两个发行版使用相同的包格式,并且有许多共同的包,但是有足够的差别,需要一些努力来支持这种跨发行版升级,并且几乎没有人愿意花费这样的努力。 所以,如果你有一个较旧的Ubuntu版本(耐心,也许?),保持它,升级到一个新的Ubuntu,或重新安装。
Ubuntu的? ubuntu-keyrings与Debian有什么关系?
消除sources.list中的前两行。 或者其他四个。 但是不要两次列出。