In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces the relevant knowledge of "how to report errors when using yum for package management in redhat". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
When using yum for package management in redhat, you encountered the following error:
[root@localhost Server] # yum install sudo
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
No package sudo available.
Nothing to do
Solution:
1. Uninstall the yum package for redhat
[root@localhost Server] # rpm-qa | grep yum
Yum-updatesd-0.9-2.el5
Yum-security-1.1.16-13.el5
Yum-metadata-parser-1.1.2-3.el5
Yum-3.2.22-20.el5
Yum-rhn-plugin-0.5.4-13.el5
[root@localhost Server] # rpm-e-- nodeps yum-updatesd-0.9-2.el5 yum-security-1.1.16-13.el5 yum-metadata-parser-1.1.2-3.el5 yum-3.2.22-20.el5 yum-rhn-plugin-0.5.4-13.el5
two。 Change to the directory where you want the yum package to be saved
[root@localhost Server] # cd / software/share
3. Download the yum package for centos
[root@localhost share] # wget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm
-- 2013-11-15 04 Fran 35RV 16muri-http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm
Resolving centos.ustc.edu.cn... 202.141.160.110, 2001:da8:d800:95::110
Connecting to centos.ustc.edu.cn | 202.141.160.110 |: 80. Connected.
HTTP request sent, awaiting response... 200 OK
Length: 1034960 (1011K) [application/x-redhat-package-manager]
Saving to: `yum-3.2.22-40.el5.centos.noarch.rpm'
1034960 1.54M/s in 0.6s
2013-11-15 04:35:16 (1.54 MB/s)-`yum-3.2.22-40.el5.centos.noarch.rpm' saved [1034960 take 1034960]
[root@localhost share] # wget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
-- 2013-11-15 04 37RV 16muri-http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
Resolving centos.ustc.edu.cn... 202.141.160.110, 2001:da8:d800:95::110
Connecting to centos.ustc.edu.cn | 202.141.160.110 |: 80. Connected.
HTTP request sent, awaiting response... 200 OK
Length: 21033 (21K) [application/x-redhat-package-manager]
Saving to: `yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm`
100% [= = >] 21033 -.-K in 0.03s
2013-11-15 04:37:16 (709 KB/s)-`saved-21.el5.centos.noarch.rpm' saved [21033Univer 21033]
[root@localhost share] # wget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-metadata-parser-1.1.2-4.el5.i386.rpm
-- 2013-11-15 04-38 purl 08-http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-metadata-parser-1.1.2-4.el5.i386.rpm
Resolving centos.ustc.edu.cn... 202.141.160.110, 2001:da8:d800:95::110
Connecting to centos.ustc.edu.cn | 202.141.160.110 |: 80. Connected.
HTTP request sent, awaiting response... 200 OK
Length: 26164 (26K) [application/x-redhat-package-manager]
Saving to: `yum-metadata-parser-1.1.2-4.el5.i386.rpm`
100% [= = >] 26164 -.-K in 0.04s
2013-11-15 04:38:08 (575 KB/s)-`rpm' saved-4.el5.i386.rpm' saved [26164Comp26164]
4. Install the yum package for centos
[root@localhost share] # rpm-ivh yum-*
Warning: yum-3.2.22-40.el5.centos.noarch.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... # [100%]
1:yum-metadata-parser # [33%]
2:yum-fastestmirror # [67%]
3:yum # # [100%]
5. Download CentOS-Base.repo
[root@localhost share] # wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo
-- 2013-11-15 04 41RV 48muri-http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo
Resolving docs.linuxtone.org... 117.79.157.57
Connecting to docs.linuxtone.org | 117.79.157.57 |: 80. Connected.
HTTP request sent, awaiting response... 200 OK
Length: 1426 (1.4K) [application/octet-stream]
Saving to: `CentOS-Base.repo'
100% [= = >] 1426 -.-K in s 0s
2013-11-15 04:41:49 (133133 MB/s)-`CentOS-Base.repo' saved [1426swap 1426]
6. Move repo to the appropriate directory
[root@localhost share] # mv CentOS-Base.repo / etc/yum.repos.d/CentOS-Base.repo
7. Make cache
[root@localhost share] # yum makecache
Loaded plugins: fastestmirror
Determining fastest mirrors
Addons | 1.9 kB 00:00
Addons/filelists_db | 574B 00:00
Addons/other_db | 550B 00:00
Addons/primary_db | 1.1 kB 00:00
Base | 1.1 kB 00:00
Base/filelists | 3.1 MB 00:01
Base/other | 11 MB 00:08
Base/group | 1.1 MB 00:00
Base/primary | 995 kB 00:00
Extras | 2.1 kB 00:00
Extras/filelists_db | 211 kB 00:00
Extras/other_db | 431 kB 00:00
Extras/group | 9.7 kB 00:00
Extras/primary_db | 164kB 00:00
Update | 1.9 kB 00:00
Update/filelists_db | 522 kB 00:00
Update/other_db | 2.5 MB 00:01
Update/primary_db | 109 kB 00:00
Base 2789/2789
Base 2789/2789
Base 2789/2789
Metadata Cache Created
8. At this point, you can use yum for install operations normally.
[root@localhost share] # yum install sudo
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
-> Running transaction check
-- > Package sudo.i386 0:1.7.2p1-28.el5 set to be updated
-> Finished Dependency Resolution
Dependencies Resolved
=
Package Arch Version Repository Size
=
Installing:
Sudo i386 1.7.2p1-28.el5 base 357k
Transaction Summary
=
Install 1 Package (s)
Upgrade 0 Package (s)
Total download size: 357 k
Is this ok [y/N]: y
Downloading Packages:
Sudo-1.7.2p1-28.el5.i386.rpm | 357 kB 00:00
Warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897
Base/gpgkey | 1.5 kB 00:00
Importing GPG key 0xE8562897 "CentOS-5 Key (CentOS 5 Official Signing Key)" from http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: sudo 1/1
Installed:
Sudo.i386 0:1.7.2p1-28.el5
Complete!
This is the end of the content of "what to do when you report an error when using yum for package management in redhat". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.