1.切换用户
su root
[cheng@bogon ~]$ su root
Password:
2.运行命令
yum -y install firefox
[root@bogon cheng]# yum -y install firefox
Loaded plugins: fastestmirror, langpacks
Existing lock /var/run/yum.pid: another copy is running as pid 2842.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 138 M RSS (558 MB VSZ)
Started: Wed May 26 17:56:40 2021 - 03:00 ago
State : Running, pid: 2842
解决红色报错原因:
rm -f /var/run/yum.pid
3.重新运行命令
yum -y install firefox
Loaded plugins: fastestmirror, langpacks
Determining fastest mirrors
* base: mirrors.njupt.edu.cn
* extras: mirrors.njupt.edu.cn
* updates: mirrors.nju.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package firefox.x86_64 0:52.7.0-1.el7.centos will be updated
---> Package firefox.x86_64 0:78.10.0-1.el7.centos will be an update
--> Processing Dependency: nss >= 3.53.1 for package: firefox-78.10.0-1.el7.centos.x86_64
--> Processing Dependency: nspr >= 4.25 for package: firefox-78.10.0-1.el7.centos.x86_64
--> Processing Dependency: libnss3.so(NSS_3.47)(64bit) for package: firefox-78.10.0-1.el7.centos.x86_64
--> Processing Dependency: libnss3.so(NSS_3.45)(64bit) for package: firefox-78.10.0-1.el7.centos.x86_64
--> Processing Dependency: libnss3.so(NSS_3.44)(64bit) for package: firefox-78.10.0-1.el7.centos.x86_64
--> Running transaction check
---> Package nspr.x86_64 0:4.17.0-1.el7 will be updated
---> Package nspr.x86_64 0:4.25.0-2.el7_9 will be an update
---> Package nss.x86_64 0:3.34.0-4.el7 will be updated
--> Processing Dependency: nss = 3.34.0-4.el7 for package: nss-sysinit-3.34.0-4.el7.x86_64
--> Processing Dependency: nss(x86-64) = 3.34.0-4.el7 for package: nss-tools-3.34.0-4.el7.x86_64
---> Package nss.x86_64 0:3.53.1-7.el7_9 will be an update
--> Processing Dependency: nss-util >= 3.53.1-1 for package: nss-3.53.1-7.el7_9.x86_64
--> Processing Dependency: nss-softokn(x86-64) >= 3.53.1-2 for package: nss-3.53.1-7.el7_9.x86_64
--> Processing Dependency: libnssutil3.so(NSSUTIL_3.39)(64bit) for package: nss-3.53.1-7.el7_9.x86_64
--> Processing Dependency: libnssutil3.so(NSSUTIL_3.38)(64bit) for package: nss-3.53.1-7.el7_9.x86_64
--> Running transaction check
---> Package nss-softokn.x86_64 0:3.34.0-2.el7 will be updated
---> Package nss-softokn.x86_64 0:3.53.1-6.el7_9 will be an update
--> Processing Dependency: nss-softokn-freebl(x86-64) >= 3.53.1-6.el7_9 for package: nss-softokn-3.53.1-6.el7_9.x86_64
---> Package nss-sysinit.x86_64 0:3.34.0-4.el7 will be updated
---> Package nss-sysinit.x86_64 0:3.53.1-7.el7_9 will be an update
---> Package nss-tools.x86_64 0:3.34.0-4.el7 will be updated
---> Package nss-tools.x86_64 0:3.53.1-7.el7_9 will be an update
---> Package nss-util.x86_64 0:3.34.0-2.el7 will be updated
---> Package nss-util.x86_64 0:3.53.1-1.el7_9 will be an update
--> Running transaction check
---> Package nss-softokn-freebl.x86_64 0:3.34.0-2.el7 will be updated
---> Package nss-softokn-freebl.x86_64 0:3.53.1-6.el7_9 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Updating:
firefox x86_64 78.10.0-1.el7.centos updates 102 M
Updating for dependencies:
nspr x86_64 4.25.0-2.el7_9 updates 127 k
nss x86_64 3.53.1-7.el7_9 updates 869 k
nss-softokn x86_64 3.53.1-6.el7_9 updates 354 k
nss-softokn-freebl x86_64 3.53.1-6.el7_9 updates 322 k
nss-sysinit x86_64 3.53.1-7.el7_9 updates 66 k
nss-tools x86_64 3.53.1-7.el7_9 updates 535 k
nss-util x86_64 3.53.1-1.el7_9 updates 79 k
Transaction Summary
================================================================================
Upgrade 1 Package (+7 Dependent packages)
Total size: 104 M
Total download size: 104 M
Downloading packages:
No Presto metadata available for updates
warning: /var/cache/yum/x86_64/7/updates/packages/nss-sysinit-3.53.1-7.el7_9.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for nss-sysinit-3.53.1-7.el7_9.x86_64.rpm is not installed
(1/6): nss-sysinit-3.53.1-7.el7_9.x86_64.rpm | 66 kB 00:00
(2/6): nss-util-3.53.1-1.el7_9.x86_64.rpm | 79 kB 00:00
(3/6): nss-softokn-freebl-3.53.1-6.el7_9.x86_64.rpm | 322 kB 00:06
(4/6): nss-3.53.1-7.el7_9.x86_64.rpm | 869 kB 00:07
(5/6): nss-tools-3.53.1-7.el7_9.x86_64.rpm | 535 kB 00:07
firefox-78.10.0-1.el7.centos.x FAILED
http://mirrors.njupt.edu.cn/centos/7.9.2009/updates/x86_64/Packages/firefox-78.10.0-1.el7.centos.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=updates clean metadata
Trying other mirror.
firefox-78.10.0-1.el7.centos.x FAILED
http://mirrors.aliyun.com/centos/7.9.2009/updates/x86_64/Packages/firefox-78.10.0-1.el7.centos.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=updates clean metadata
Trying other mirror.
firefox-78.10.0-1.el7.centos.x FAILED
http://ftp.sjtu.edu.cn/centos/7.9.2009/updates/x86_64/Packages/firefox-78.10.0-1.el7.centos.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=updates clean metadata
Trying other mirror.
firefox-78.10.0-1.el7.centos.x FAILED
http://mirrors.nju.edu.cn/centos/7.9.2009/updates/x86_64/Packages/firefox-78.10.0-1.el7.centos.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=updates clean metadata
Trying other mirror.
(6/6): firefox-78.10.0-1.el7.cento 89% [====================== ] 151 kB/s | 9(6/6): firefox-78.10.0-1.e 90% [=============== ] 163 kB/s | 94 MB 00:01:02(6/6): firefox-78.10.0-1.e 90% [=============== ] 166 kB/s | 94 MB 00:01:00 (6/6): firefox-78.10.0-1.e 90% [=============== ] 163 kB/s | 94 MB 00:01(6/6): firefox-78.10.0-1. 90% [============== ] 164 kB/s | 94 MB 01:00 ETAfirefox-78.10.0-1.el7.centos.x FAILED firefox-78.10.0-1 92% [=============- ] 172 kB/s | 96 MB 00:43 ETA 47 ETA
http://mirrors.tuna.tsinghua.edu.cn/centos/7.9.2009/updates/x86_64/Packages/firefox-78.10.0-1.el7.centos.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=updates clean metadata
Trying other mirror.
firefox-78.10.0-1.el7.centos.x FAILED
http://mirrors.163.com/centos/7.9.2009/updates/x86_64/Packages/firefox-78.10.0-1.el7.centos.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=updates clean metadata
Trying other mirror.
firefox-78.10.0-1.el7.centos.x FAILED
http://mirrors.ustc.edu.cn/centos/7.9.2009/updates/x86_64/Packages/firefox-78.10.0-1.el7.centos.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=updates clean metadata
Trying other mirror.
firefox-78.10.0-1.el7.centos.x FAILED
http://mirror.lzu.edu.cn/centos/7.9.2009/updates/x86_64/Packages/firefox-78.10.0-1.el7.centos.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=updates clean metadata
Trying other mirror.
firefox-78.10.0-1.el7.centos.x FAILED
http://mirrors.cqu.edu.cn/CentOS/7.9.2009/updates/x86_64/Packages/firefox-78.10.0-1.el7.centos.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=updates clean metadata
Trying other mirror.
(6/6): firefox-78.10.0-1.el7.centos.x86_64.rpm | 102 MB 09:24
------------------------------------------------------------------------------
Total 27 kB/s | 104 MB 66:36
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>"
Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
Package : centos-release-7-5.1804.el7.centos.x86_64 (@anaconda)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : nspr-4.25.0-2.el7_9.x86_64 1/16
Updating : nss-util-3.53.1-1.el7_9.x86_64 2/16
Updating : nss-softokn-freebl-3.53.1-6.el7_9.x86_64 3/16
Updating : nss-softokn-3.53.1-6.el7_9.x86_64 4/16
Updating : nss-3.53.1-7.el7_9.x86_64 5/16
Updating : nss-sysinit-3.53.1-7.el7_9.x86_64 6/16
Updating : firefox-78.10.0-1.el7.centos.x86_64 7/16
Updating : nss-tools-3.53.1-7.el7_9.x86_64 8/16
Cleanup : firefox-52.7.0-1.el7.centos.x86_64 9/16
Cleanup : nss-tools-3.34.0-4.el7.x86_64 10/16
Cleanup : nss-sysinit-3.34.0-4.el7.x86_64 11/16
Cleanup : nss-3.34.0-4.el7.x86_64 12/16
Cleanup : nss-softokn-3.34.0-2.el7.x86_64 13/16
Cleanup : nss-softokn-freebl-3.34.0-2.el7.x86_64 14/16
Cleanup : nss-util-3.34.0-2.el7.x86_64 15/16
Cleanup : nspr-4.17.0-1.el7.x86_64 16/16
Verifying : nspr-4.25.0-2.el7_9.x86_64 1/16
Verifying : firefox-78.10.0-1.el7.centos.x86_64 2/16
Verifying : nss-3.53.1-7.el7_9.x86_64 3/16
Verifying : nss-softokn-3.53.1-6.el7_9.x86_64 4/16
Verifying : nss-util-3.53.1-1.el7_9.x86_64 5/16
Verifying : nss-softokn-freebl-3.53.1-6.el7_9.x86_64 6/16
Verifying : nss-sysinit-3.53.1-7.el7_9.x86_64 7/16
Verifying : nss-tools-3.53.1-7.el7_9.x86_64 8/16
Verifying : nspr-4.17.0-1.el7.x86_64 9/16
Verifying : nss-tools-3.34.0-4.el7.x86_64 10/16
Verifying : nss-sysinit-3.34.0-4.el7.x86_64 11/16
Verifying : nss-3.34.0-4.el7.x86_64 12/16
Verifying : nss-util-3.34.0-2.el7.x86_64 13/16
Verifying : nss-softokn-3.34.0-2.el7.x86_64 14/16
Verifying : firefox-52.7.0-1.el7.centos.x86_64 15/16
Verifying : nss-softokn-freebl-3.34.0-2.el7.x86_64 16/16
Updated:
firefox.x86_64 0:78.10.0-1.el7.centos
Dependency Updated:
nspr.x86_64 0:4.25.0-2.el7_9
nss.x86_64 0:3.53.1-7.el7_9
nss-softokn.x86_64 0:3.53.1-6.el7_9
nss-softokn-freebl.x86_64 0:3.53.1-6.el7_9
nss-sysinit.x86_64 0:3.53.1-7.el7_9
nss-tools.x86_64 0:3.53.1-7.el7_9
nss-util.x86_64 0:3.53.1-1.el7_9
Complete!