system-config-kickstart报错
生活随笔
收集整理的這篇文章主要介紹了
system-config-kickstart报错
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
我曾經(jīng)遇到過(guò)執(zhí)行#system-config-kickstart時(shí)出現(xiàn)兩種錯(cuò)誤 一 /[root@server /]# system-config-kickstart
Loaded plugins: rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
Traceback (most recent call last):
File "/usr/bin/system-config-kickstart", line 82, in ?
kickstartGui.kickstartGui(file)
File "/usr/share/system-config-kickstart/kickstartGui.py", line 171, in __init__
self.packages_class = packages.Packages(xml, self.kickstartData)
File "/usr/share/system-config-kickstart/packages.py", line 172, in __init__
self.y = sckYumBase(pbar)
File "/usr/share/system-config-kickstart/packages.py", line 147, in __init__
self.doGroupSetup()
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 520, in doGroupSetup
return self._getGroups()
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 581, in _getGroups
raise Errors.GroupsError, _('No Groups Available in any repository')
yum.Errors.GroupsError: No Groups Available in any repository
[root@server /]# 而點(diǎn)擊系統(tǒng)工具-kickstart,打開(kāi)后跳出retrieving package information后就自動(dòng)關(guān)閉窗口了 二/ 可以打開(kāi)kickstart圖形界面,但是不能選擇安裝包 ***我曾經(jīng)執(zhí)行#yum clean all后正常了*** 但是此方法有時(shí)也不靈; 還有一方法: 在/etc/yum.repos.d中把rhel-debuginfo.repo改名后再新建一個(gè)repo文件,如server.repo #vi server.repo [Server]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///home/install/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[VT]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///home/install/VT
enabled=1
gpgcheck=0
[Cluster]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///home/install/Cluster
enabled=1
gpgcheck=0
[ClusterStorage]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///home/install/ClusterStorage
enabled=1
gpgcheck=0 #rm -rf *.html #cd Server/repodata #rm -rf TRANS.TBL #cd VT/repodata #rm -rf TRANS.TBL #createrepo -g /home/install/Server/repodata/comps-rhel5-server-core.xml /home/install/Server/ 建庫(kù) 等建完庫(kù)再把server.repo該為server; 把剛改名的rhel-debuginfo.repo改為系統(tǒng)默認(rèn)名稱(chēng) 本文出自 “l(fā)inux支持者” 博客,http://tonychiu.blog.51cto.com/656605/326518
Loaded plugins: rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
Traceback (most recent call last):
File "/usr/bin/system-config-kickstart", line 82, in ?
kickstartGui.kickstartGui(file)
File "/usr/share/system-config-kickstart/kickstartGui.py", line 171, in __init__
self.packages_class = packages.Packages(xml, self.kickstartData)
File "/usr/share/system-config-kickstart/packages.py", line 172, in __init__
self.y = sckYumBase(pbar)
File "/usr/share/system-config-kickstart/packages.py", line 147, in __init__
self.doGroupSetup()
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 520, in doGroupSetup
return self._getGroups()
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 581, in _getGroups
raise Errors.GroupsError, _('No Groups Available in any repository')
yum.Errors.GroupsError: No Groups Available in any repository
[root@server /]# 而點(diǎn)擊系統(tǒng)工具-kickstart,打開(kāi)后跳出retrieving package information后就自動(dòng)關(guān)閉窗口了 二/ 可以打開(kāi)kickstart圖形界面,但是不能選擇安裝包 ***我曾經(jīng)執(zhí)行#yum clean all后正常了*** 但是此方法有時(shí)也不靈; 還有一方法: 在/etc/yum.repos.d中把rhel-debuginfo.repo改名后再新建一個(gè)repo文件,如server.repo #vi server.repo [Server]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///home/install/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[VT]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///home/install/VT
enabled=1
gpgcheck=0
[Cluster]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///home/install/Cluster
enabled=1
gpgcheck=0
[ClusterStorage]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///home/install/ClusterStorage
enabled=1
gpgcheck=0 #rm -rf *.html #cd Server/repodata #rm -rf TRANS.TBL #cd VT/repodata #rm -rf TRANS.TBL #createrepo -g /home/install/Server/repodata/comps-rhel5-server-core.xml /home/install/Server/ 建庫(kù) 等建完庫(kù)再把server.repo該為server; 把剛改名的rhel-debuginfo.repo改為系統(tǒng)默認(rèn)名稱(chēng) 本文出自 “l(fā)inux支持者” 博客,http://tonychiu.blog.51cto.com/656605/326518
轉(zhuǎn)載于:https://blog.51cto.com/tonylinux/812844
與50位技術(shù)專(zhuān)家面對(duì)面20年技術(shù)見(jiàn)證,附贈(zèng)技術(shù)全景圖總結(jié)
以上是生活随笔為你收集整理的system-config-kickstart报错的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: PHP实例——产生随机字符串
- 下一篇: wince 6.0 嵌入式开发指导