嘟嘟社区

centos-release-7-9更新出错


wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo

用的是阿里官方的更新源,系统版本是7.9,现在在执行 yum upgrade的时候提示图中的故障,无法进行。请问大家,这是什么问题呢?谢谢大家了。

内存不够大 换机器吧

HOH 发表于 2022-3-15 12:13
内存不够大 换机器吧

我是512的内存,那这是没办法更新了吗?谢谢

要稳定  不追新
关掉乱七八糟的进程再加点swap挤挤估计还是能更新的
dnf –disablerepo ‘*’ –enablerepo=extras swap centos-linux-repos centos-stream-repos dnf distro-sync

yum cleare  

yum update

xiaozhenghi 发表于 2022-3-15 12:19
dnf –disablerepo ‘*’ –enablerepo=extras swap centos-linux-repos centos-stream-repos dnf distro-syn …

系统没有安装dnf,这命令是新建一个数据库吗?谢谢了

HOH 发表于 2022-3-15 12:15
关掉乱七八糟的进程再加点swap挤挤估计还是能更新的

没有多余的进程,这台机子只用于ssr

-rw-r–r–  1 root root 2523 Dec 26  2020 CentOS-Base.repo
-rw-r–r–. 1 root root 1664 Nov 23  2020 CentOS-Base.repo.backup
-rw-r–r–. 1 root root 1309 Nov 23  2020 CentOS-CR.repo
-rw-r–r–. 1 root root  649 Nov 23  2020 CentOS-Debuginfo.repo
-rw-r–r–. 1 root root  314 Nov 23  2020 CentOS-fasttrack.repo
-rw-r–r–. 1 root root  630 Nov 23  2020 CentOS-Media.repo
-rw-r–r–. 1 root root 1331 Nov 23  2020 CentOS-Sources.repo
-rw-r–r–. 1 root root 8515 Nov 23  2020 CentOS-Vault.repo
-rw-r–r–. 1 root root  616 Nov 23  2020 CentOS-x86_64-kernel.repo
-rw-r–r–  1 root root 1358 Sep  5  2021 epel.repo
-rw-r–r–  1 root root 1457 Sep  5  2021 epel-testing.repo

xiaozhenghi 发表于 2022-3-15 12:19
dnf –disablerepo ‘*’ –enablerepo=extras swap centos-linux-repos centos-stream-repos dnf distro-syn …

安装软件也出错了,会不会跟我更新python版本有关?

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: d2lzkl7pfhq30w.cloudfront.net
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Resolving Dependencies
–> Running transaction check
—> Package dnf.noarch 0:4.0.9.2-2.el7_9 will be installed
–> Processing Dependency: python2-dnf = 4.0.9.2-2.el7_9 for package: dnf-4.0.9.2-2.el7_9.noarch
–> Running transaction check
—> Package python2-dnf.noarch 0:4.0.9.2-2.el7_9 will be installed
–> Processing Dependency: dnf-data = 4.0.9.2-2.el7_9 for package: python2-dnf-4.0.9.2-2.el7_9.noarch
–> Processing Dependency: python2-libdnf >= 0.22.5 for package: python2-dnf-4.0.9.2-2.el7_9.noarch
–> Processing Dependency: python2-libcomps >= 0.1.8 for package: python2-dnf-4.0.9.2-2.el7_9.noarch
–> Processing Dependency: python2-hawkey >= 0.22.5 for package: python2-dnf-4.0.9.2-2.el7_9.noarch
–> Processing Dependency: libmodulemd >= 1.4.0 for package: python2-dnf-4.0.9.2-2.el7_9.noarch
–> Processing Dependency: python2-libdnf for package: python2-dnf-4.0.9.2-2.el7_9.noarch
–> Processing Dependency: python-enum34 for package: python2-dnf-4.0.9.2-2.el7_9.noarch
–> Processing Dependency: deltarpm for package: python2-dnf-4.0.9.2-2.el7_9.noarch
–> Running transaction check
—> Package deltarpm.x86_64 0:3.6-3.el7 will be installed
—> Package dnf-data.noarch 0:4.0.9.2-2.el7_9 will be installed
–> Processing Dependency: libreport-filesystem for package: dnf-data-4.0.9.2-2.el7_9.noarch
—> Package libmodulemd.x86_64 0:1.6.3-1.el7 will be installed
—> Package python-enum34.noarch 0:1.0.4-1.el7 will be installed
—> Package python2-hawkey.x86_64 0:0.22.5-2.el7_9 will be installed
–> Processing Dependency: libdnf(x86-64) = 0.22.5-2.el7_9 for package: python2-hawkey-0.22.5-2.el7_9.x86_64
–> Processing Dependency: libsolvext.so.0(SOLV_1.0)(64bit) for package: python2-hawkey-0.22.5-2.el7_9.x86_64
–> Processing Dependency: libsolv.so.0(SOLV_1.0)(64bit) for package: python2-hawkey-0.22.5-2.el7_9.x86_64
–> Processing Dependency: libsolvext.so.0()(64bit) for package: python2-hawkey-0.22.5-2.el7_9.x86_64
–> Processing Dependency: libsolv.so.0()(64bit) for package: python2-hawkey-0.22.5-2.el7_9.x86_64
–> Processing Dependency: librepo.so.0()(64bit) for package: python2-hawkey-0.22.5-2.el7_9.x86_64
–> Processing Dependency: libdnf.so.2()(64bit) for package: python2-hawkey-0.22.5-2.el7_9.x86_64
—> Package python2-libcomps.x86_64 0:0.1.8-14.el7 will be installed
–> Processing Dependency: libcomps(x86-64) = 0.1.8-14.el7 for package: python2-libcomps-0.1.8-14.el7.x86_64
–> Processing Dependency: libcomps.so.0.1.6()(64bit) for package: python2-libcomps-0.1.8-14.el7.x86_64
—> Package python2-libdnf.x86_64 0:0.22.5-2.el7_9 will be installed
–> Running transaction check
—> Package libcomps.x86_64 0:0.1.8-14.el7 will be installed
—> Package libdnf.x86_64 0:0.22.5-2.el7_9 will be installed
—> Package librepo.x86_64 0:1.8.1-8.el7_9 will be installed
—> Package libreport-filesystem.x86_64 0:2.1.11-53.el7.centos will be installed
—> Package libsolv.x86_64 0:0.6.34-4.el7 will be installed
Killed

谢谢了,问题解决了