在通过网络尝试所有可用之后,我转向SO以帮助找到安装的明确解决方案 CentOS-7上的java-1.8.0-openjdk和java-1.8.0-openjdk-devel。
来自各地的所有文档,它必须一如既往 yum install java-1.8.0-openjdk
然而我得到了#34;没有包java-1.8.0-openjdk可用。"
加载的插件:fastermirror 从缓存的主机文件加载镜像速度 * base:mirrors.tripadvisor.com * epel:s3-mirror-us-east-1.fedoraproject.org *临时演员:mirrors.greenmountainaccess.net *更新:mirror.umd.edu 没有包java-1.8.0-openjdk可用。 错误:无事可做
以下是我的CentOS-Base.repo(非常多的股票):
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
添加,即使切换到baseurl也无济于事。
我完全错过了一些微不足道的事情吗?答案 0 :(得分:0)
我能够解决这个问题。我忽略了openjdk被排除在/etc/yum.conf
之外$ grep openjdk /etc/yum.conf
exclude=*.i?86 *openjdk* java*