Centos
在RHEL5 centos5上安裝java、tomcat7或tomcat6
我想在 centos5 上安裝 tomcat7 並堅持 yum 但我有
--> Finished Dependency Resolution java-1.6.0-sun-compat-1.6.0.03-1jpp.i586 from jpackage-generic-nonfree has depsolving problems --> Missing Dependency: jdk = 2000:1.6.0_03-fcs is needed by package java-1.6.0-sun-compat-1.6.0.03-1jpp.i586 (jpackage-generic-nonfree) Error: Missing Dependency: jdk = 2000:1.6.0_03-fcs is needed by package java-1.6.0-sun-compat-1.6.0.03-1jpp.i586 (jpackage-generic-nonfree) You could try using --skip-broken to work around the problem You could try running: package-cleanup --problems package-cleanup --dupes rpm -Va --nofiles --nodigest
我已經嘗試過:
yum install java yum install tomcat6 yum install tomcat7
這些都以相同的依賴解決問題告終。
啟用的儲存庫是:
[jpackage-generic] name=JPackage (free), generic mirrorlist=http://www.jpackage.org/mirrorlist.php?dist=generic&type=free&release=5.0 failovermethod=priority gpgcheck=1 gpgkey=http://www.jpackage.org/jpackage.asc enabled=1 [jpackage-rhel] name=JPackage (free) for Red Hat Enterprise Linux $releasever mirrorlist=http://www.jpackage.org/mirrorlist.php?dist=redhat-el-$releasever&type=free&release=5.0 failovermethod=priority gpgcheck=1 gpgkey=http://www.jpackage.org/jpackage.asc enabled=1 [jpackage-generic-nonfree] name=JPackage (non-free), generic mirrorlist=http://www.jpackage.org/jpackage_generic_nonfree_5.0.txt failovermethod=priority gpgcheck=1 gpgkey=http://www.jpackage.org/jpackage.asc enabled=1 # Updates [jpackage-generic-updates] name=JPackage (free), generic mirrorlist=http://www.jpackage.org/mirrorlist.php?dist=generic&type=free&release=5.0-updates failovermethod=priority gpgcheck=1 gpgkey=http://www.jpackage.org/jpackage.asc enabled=1 [jpackage-rhel-updates] name=JPackage (free) for Red Hat Enterprise Linux $releasever mirrorlist=http://www.jpackage.org/mirrorlist.php?dist=redhat-el-$releasever&type=free&release=5.0-updates failovermethod=priority gpgcheck=1 gpgkey=http://www.jpackage.org/jpackage.asc enabled=1 [jpackage-generic-nonfree-updates] name=JPackage (non-free), generic mirrorlist=http://www.jpackage.org/jpackage_generic_nonfree_5.0-updates.txt failovermethod=priority gpgcheck=1 gpgkey=http://www.jpackage.org/jpackage.asc enabled=1 [jpackage-generic-6.0] name=JPackage (free), generic baseurl=http://mirrors.dotsrc.org/jpackage/6.0/generic/free/ gpgcheck=1 gpgkey=http://jpackage.org/jpackage.asc enabled=1
使用非官方儲存庫會導致悲傷(好吧,你已經發現了 ;-)。檢查 Enterprise Linux ( EPEL ) 的 Extra Packages (EPEL ) 或 Software Collections ( SC ) 以了解您要查找的內容。
你可以做一個
yum --disablerepo=* --enablerepo=jpackage-* clean metadata
(在手冊頁中查找)然後再試一次,如果它是與儲存庫的一個小問題,現在這可能會起作用。