在我开始之前,我要说的是,我搜索了这个问题,否则我就不会在这里了
问题
在尝试升级 Fedora 时,我使用了这个命令
rpm -Uhv ftp://download.fedora.redhat.com/pub/fedora/linux/releases/12/Fedora/i386/os/Packages/fedora-release-12-1.noarch.rpm
切换 repos 进行安装,后来才发现我没有安装 wget(正在运行实时版本)然后我继续 yum install,但我尝试的任何 yum install 都会返回此信息:
totem-gstreamer-2.24.3-3.fc10.i386 from installed has depsolving problems
--> Missing Dependency: totem = 2.24.3 is needed by package totem-gstreamer-2.24.3-3.fc10.i386 (installed)
pulseaudio-core-libs-0.9.14-3.fc10.i386 from installed has depsolving problems
--> Missing Dependency: libltdl.so.3 is needed by package pulseaudio-core-libs-0.9.14-3.fc10.i386 (installed)
preupgrade-1.1.2-1.fc10.noarch from installed has depsolving problems
--> Missing Dependency: python(abi) = 2.5 is needed by package preupgrade-1.1.2-1.fc10.noarch (installed)
sos-1.8-17.fc10.noarch from installed has depsolving problems
--> Missing Dependency: python(abi) = 2.5 is needed by package sos-1.8-17.fc10.noarch (installed)
Error: Missing Dependency: python(abi) = 2.5 is needed by package preupgrade-1.1.2-1.fc10.noarch (installed)
Error: Missing Dependency: totem = 2.24.3 is needed by package totem-gstreamer-2.24.3-3.fc10.i386 (installed)
Error: Missing Dependency: libltdl.so.3 is needed by package pulseaudio-core-libs-0.9.14-3.fc10.i386 (installed)
Error: Missing Dependency: python(abi) = 2.5 is needed by package sos-1.8-17.fc10.noarch (installed)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
到目前为止我尝试过的
curl "http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x855099B249C8885A" | rpm --import --verbose -rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
rm -f /var/lib/rpm/__db
rpm --rebuilddb
似乎没有一个能起到什么作用,我该如何恢复默认 rpm 并继续工作?我没有 GUI 访问此系统,只有命令行,但停机不是问题
答案1
升级 Fedora 可能很麻烦。Fedora yum 升级页面将引导您完成所有选项,包括解决依赖性问题。
您不需要 rpmfusion 的任何东西来进行基本升级;我会禁用 rpmfusion 存储库,直到您使用 Fedora 12。
答案2
看来您想从 Fedora 10 跳到 Fedora 12。我不确定这样的升级是否经过测试。要恢复 yum,我将重新安装 Fedora 10 发行版 rpm
rpm -Uvh --oldpackage http://download.fedora.redhat.com/pub/fedora/linux/releases/11/Fedora/i386/os/Packages/fedora-release-11-1.noarch.rpm
并尝试使用 pregrade 进行升级
yum install preupgrade
但你需要磁盘上有可用空间