1、冰块组别列表不合法解决方法1 Redhat 6.3 添加删除程序时,报错2 解决方法重新用光盘搭建一个 yum 源2.1 配置光盘 Yum 源2.1.1 确保系统中已经安装了 yum 相关软件包rootGDHLR-GET04-VM yum.repos.d# rpm -qa |grep yumyum-3.2.29-17.el6.noarchyum-metadata-parser-1.1.2-16.el6.x86_64yum-utils-1.1.30-6.el6.noarchPackageKit-yum-plugin-0.5.8-19.el6.x86_64yum-rhn-plugin-0.9.1-
2、26.el6.noarchPackageKit-yum-0.5.8-19.el6.x86_64版本号可能有所不同, 如果缺少, 请自行安装( 这些包基本都默认安装了).冰块2.1.2修改 yum 的配置rootGDHLR-GET04-VM yum.repos.d# pwd/etc/yum.repos.d修改这个配置文件 rhel-source.reporootGDHLR-GET04-VM yum.repos.d# cat rhel-source.repo rhel-sourcename=Red Hat Enterprise Linux $releasever - $basearch - Sou
3、rcebaseurl=file:/media/RHEL_6.1 x86_64 Disc 1/ #“”后有空格,光驱挂载到 media下面,RHEL_6.1 x86_64 Disc 1 是光盘名字enabled=1gpgcheck=1gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-releaserhel-source-betaname=Red Hat Enterprise Linux $releasever Beta - $basearch - Sourcebaseurl=ftp:/ 修完之后,直接 yum install gcc如下:rootGD
4、HLR-GET04-VM yum.repos.d# yum install gccLoaded plugins: product-id, refresh-packagekit, subscription-managerUpdating Red Hat repositories.rhel-source | 4.0 kB 00:00 . rhel-source/primary_db | 3.1 MB 00:00 . 冰块Setting up Install ProcessResolving Dependencies Running transaction check- Package gcc.x8
5、6_64 0:4.4.5-6.el6 will be installed Processing Dependency: cpp = 4.4.5-6.el6 for package: gcc-4.4.5-6.el6.x86_64 Processing Dependency: cloog-ppl = 0.15 for package: gcc-4.4.5-6.el6.x86_64 Running transaction check- Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed Processing Dependency:
6、libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64 Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64- Package cpp.x86_64 0:4.4.5-6.el6 will be installed Processing Dependency: libmpfr.so.1()(64bit) for package: cpp-4.4.5-6.el6.x86_64 Running tr
7、ansaction check- Package mpfr.x86_64 0:2.4.1-6.el6 will be installed- Package ppl.x86_64 0:0.10.2-11.el6 will be installed Finished Dependency ResolutionDependencies Resolved=Package Arch Version Repository Size=Installing:gcc x86_64 4.4.5-6.el6 rhel-source 10 MInstalling for dependencies:cloog-ppl
8、x86_64 0.15.7-1.2.el6 rhel-source 93 kcpp x86_64 4.4.5-6.el6 rhel-source 3.7 Mmpfr x86_64 2.4.1-6.el6 rhel-source 156 kppl x86_64 0.10.2-11.el6 rhel-source 1.3 MTransaction Summary=冰块=Install 5 Package(s)Total download size: 15 MInstalled size: 33 MIs this ok y/N: yDownloading Packages:-Total 22 MB/
9、s | 15 MB 00:00 warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEYRetrieving key from file:/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-releaseImporting GPG key 0xFD431D51:Userid : Red Hat, Inc. (release key 2) Package: redhat-release-workstation-6Workstation-6.1.0.2.el6.x86_6
10、4 (anaconda-RedHatEnterpriseLinux-201105101844.x86_64/6.1)From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-releaseIs this ok y/N: yImporting GPG key 0x2FA658E0:Userid : Red Hat, Inc. (auxiliary key) Package: redhat-release-workstation-6Workstation-6.1.0.2.el6.x86_64 (anaconda-RedHatEnterpriseLinux-2011051
11、01844.x86_64/6.1)From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-releaseIs this ok y/N: yRunning rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning TransactionWarning: RPMDB altered outside of yum.Installing : mpfr-2.4.1-6.el6.x86_64 1/5 Installing : cpp-4.4.5-6.el6.x86_64 2/5 Insta
12、lling : ppl-0.10.2-11.el6.x86_64 3/5 Installing : cloog-ppl-0.15.7-1.2.el6.x86_64 4/5 Installing : gcc-4.4.5-6.el6.x86_64 5/5 rhel-source/productid | 1.7 kB 00:00 . 冰块duration: 236(ms)Installed products updated.Installed:gcc.x86_64 0:4.4.5-6.el6 Dependency Installed:cloog-ppl.x86_64 0:0.15.7-1.2.el6 cpp.x86_64 0:4.4.5-6.el6 mpfr.x86_64 0:2.4.1-6.el6 ppl.x86_64 0:0.10.2-11.el6 Complete!3 光盘 Yum 源配置完成就可以使用添加删除功能了