I need to install jdk 17 on centos7. When I try the yum install, I get the below message
sudo yum install -y java-17-amazon-corretto-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* fasttrack: mirror.centos.org
No package java-17-amazon-corretto-devel available.
Error: Nothing to do
I tried to follow https://docs.aws.amazon.com/corretto/latest/corretto-17-ug/generic-linux-install.html(Using yum section). When I run the command to import corretto key, it times out.
I tried the yum install -y java-17-openjdk-devel, i get the same error
yum install -y java-17-openjdk-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* fasttrack: mirror.centos.org
No package java-17-openjdk-devel available.
Error: Nothing to do
Does anyone know the solution?
I had the same error and had a look here:
https://docs.aws.amazon.com/corretto/latest/corretto-17-ug/generic-linux-install.html
You need to run the following before installing:
sudo rpm --import https://yum.corretto.aws/corretto.key
sudo curl -L -o /etc/yum.repos.d/corretto.repo https://yum.corretto.aws/corretto.repo
Related
I'm' trying to install GoCD Agent with sudo yum install -y go-agent
However, I'm getting the following error.
Resolving Dependencies
--> Running transaction check
---> Package go-agent.noarch 0:19.6.0-9515 will be installed
--> Processing Dependency: sysvinit-tools for package: go-agent-19.6.0-9515.noarch
--> Finished Dependency Resolution
Error: Package: go-agent-19.6.0-9515.noarch (gocd)
Requires: sysvinit-tools
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I tried installing sysvinit-tools with sudo yum install sysvinit-tools
I'm getting the following error.
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main | 2.1 kB 00:00:00
amzn-updates | 2.5 kB 00:00:00
No package sysvinit-tools available.
Error: Nothing to do
I'm on Amazon Linux AMI
In your case you appear to be on Amazon Linux AMI 2018.03 which is rather old and does not have sysvinit-tools.
I would recommend upgrading your machine, and to avoid upgrading sysvinit manually.
for centos7:
you can find that package in the epel repositories
First add the epel repository:
yum install epel-release
now you will be able to install sysvinit-tools:
yum install sysvinit-tools
When I use the below command to install pip3 for python 3.5.1:
sudo yum -y install python35u-pip
Then I get the following issue:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.usonyx.net
* extras: centos.usonyx.net
* updates: centos.usonyx.net
No package python35u-pip available.
Error: Nothing to do
I have used centos 7 and python 3.5.1 installed. I have googled so much but when didn't get any response from it then I came here for the suggestions and help.
Seems that you have a typing error, the right command should be
sudo yum -y install python35-pip
Please note the difference python35u-pip.
If this will raise other errors, try to follow this procedure:
$ sudo yum install python35-setuptools
$ sudo easy_install-3.5 pip
It needs to have the EPEL repository enabled.
Let me know.
Thank you for coming to try to solve my problem. I have seen a lot of solutions about a failure using the yum command but until now, these solutions didn't work with me.
First of all, here is some information about the situation :
I'm working with a RedHat Linux 7.2-11, using a proxy (because of the very secured network of my firm) so I already modified etc/sysconfig/rhn/up2date, etc/wgetrc and etc/yum.conf files with the http_proxy, proxy_user and proxy_password !
Then, I'm connected as root and I tried to download python-pip doing these command :
sudo yum install python-pip
I had the following error :
No package python-pip available
Exactly the same error when trying to install epel-release before python-pip.
Then I did the following :
yum install httpd php php-gd php-mysql
Finally, I downloaded and installed epel-release with these commands in /tmp :
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install epel-release-latest-7.noarch.rpm
Everything was ok !
Here is the problem. After that, I tried again these commands :
sudo yum install python-pip
sudo yum install -y python-pip
The first error was :
One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
........some tips (1 to 5)........
Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again
So I followed some instructions and modified epel.repo and epel-testing.repo commenting all "mirror" lines and uncommenting all "baseurl" lines.
So, now, when I try to install python-pip again I have this error :
Loaded plugins: rhnplugin, search-disabled-repos
This system is receiving updates from RHN Classic or Red Hat Satellite.
http://download.fedoraproject.org/pub/epel/7/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 407 - Proxy Authentication Required
Trying other mirror.
One of the configured repositories failed (Extra Packages for Enterprise Linux 7 - x86_64),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
.........some tips (1 to 5).......
failure: repodata/repomd.xml from epel: [Errno 256] No more mirrors to try.
http://download.fedoraproject.org/pub/epel/7/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 407 - Proxy Authentication Required
Please do you know how to solve this issue, or do you have any idea ?
It seems to be because of the proxy but I already configured the three files as said on top of my message.
Thank you for your help ! :)
You don't have to download epel-release manually on a CentOS-7 box. The latest RPM might be missing mirrorlist in the repo file, which is probably calling baseurl=http:// rather than mirrorlist=https://.
Here is what you can do to resolve this:
# Remove already installed epel-release
yum remove epel-release
OR
rpm -e epel-release
# Install epel-release using YUM
yum install epel-release
# Install python-pip
yum install python-pip
~]# yum install python-pip
Loaded plugins: fastestmirror
epel/x86_64/metalink | 11 kB 00:00:00
epel | 4.3 kB 00:00:00
(1/3): epel/x86_64/group_gz | 170 kB 00:00:00
(2/3): epel/x86_64/updateinfo | 769 kB 00:00:01
(3/3): epel/x86_64/primary_db | 4.6 MB 00:00:06
Loading mirror speeds from cached hostfile
* base: mirror.eboundhost.com
* epel: ftp.cse.buffalo.edu
* extras: repo.us.bigstepcloud.com
* updates: centos.mirrors.tds.net
Resolving Dependencies
--> Running transaction check
---> Package python2-pip.noarch 0:8.1.2-5.el7 will be installed
--> Processing Dependency: python-setuptools for package: python2-pip-8.1.2-5.el7.noarch
--> Running transaction check
---> Package python-setuptools.noarch 0:0.9.8-4.el7 will be installed
--> Processing Dependency: python-backports-ssl_match_hostname for package: python-setuptools-0.9.8-4.el7.noarch
--> Running transaction check
---> Package python-backports-ssl_match_hostname.noarch 0:3.4.0.2-4.el7 will be installed
--> Processing Dependency: python-backports for package: python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch
--> Running transaction check
---> Package python-backports.x86_64 0:1.0-8.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
Package Arch Version
Repository Size
Installing:
python2-pip noarch 8.1.2-5.el7 epel 1.7 M
Installing for dependencies:
python-backports x86_64 1.0-8.el7 base 5.8 k
python-backports-ssl_match_hostname noarch 3.4.0.2-4.el7 base 12 k
python-setuptools noarch 0.9.8-4.el7 base 396 k
Transaction Summary
I know it was possible usint a package manager since i did it once a time ago. But now if I try
sudo yum install byobu
it just fails ...
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror, priorities, security, update-motd
Loading mirror speeds from cached hostfile
* amzn-main: packages.us-east-1.amazonaws.com
* amzn-updates: packages.us-east-1.amazonaws.com
amzn-main
amzn-updates
Setting up Install Process
No package byobu available.
Error: Nothing to do
Not sure why, but the EPEL repo is installed, but disabled by default. You can enable it permanently by changing the setting "enabled=1" in the [epel] stanza of /etc/yum.repos.d/epel.repo
Or you can leave it disabled and still install byobu:
sudo yum install --enablerepo=epel byobu
You can have a look at what packages are available in the epel repo with:
sudo yum list --disablerepo=\* --enablerepo=epel
For Amazon Linux 2:
You would need to install the EPEL release package for EL7 based AMI and enable the EPEL repository.
You may execute below: ⤵︎
sudo amazon-linux-extras install epel # Install epel from Amazon's Linux Extras
sudo yum-config-manager --enable epel # Enable EPEL repo in case disabled
sudo yum install byobu -y # Install byobu
byobu -v # Verify Version
Here is the alternative source just in case Linux Extras don't work for you.
# (optional) Install EPEL repository from Fedora
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Reference: https://aws.amazon.com/premiumsupport/knowledge-center/ec2-enable-epel/
Tested On
Name: Amazon Linux 2 AMI (HVM), SSD Volume Type - ami-0323c3dd2da7fb37d (64-bit x86) / ami-0ce2e5b7d27317779 (64-bit Arm)
The error message indicates that the package byobu is not available in the amzn-main repository.
You can manually install it from another repository
cd ~
wget ftp://ftp.pbone.net/mirror/download.fedora.redhat.com/pub/fedora/epel/5/x86_64/byobu-3.4-2.el5.noarch.rpm
sudo yum install byobu-3.4-2.el5.noarch.rpm
Maybe someone needs a new link for
byobu
So you can install it by
wget ftp://ftp.pbone.net/mirror/download.fedora.redhat.com/pub/fedora/epel/7/x86_64/b/byobu-5.73-4.el7.noarch.rpm
sudo yum install byobu-5.73-4.el7.noarch.rpm
I'm attempting to install gearmand on a micro EC2 instance running Amazon Linux 64 bit by following this guide: http://planet.mysql.com/entry/?id=28654
But I'm running into a problem with
sudo yum install -y libevent-devel.i386
I get the following output:
Loaded plugins: fastestmirror, priorities, security, update-motd
Loading mirror speeds from cached hostfile
* amzn-main: packages.eu-west-1.amazonaws.com
* amzn-updates: packages.eu-west-1.amazonaws.com
amzn-main | 2.1 kB 00:00
amzn-updates | 2.1 kB 00:00
Setting up Install Process
No package libevent-devel.i386 available.
Error: Nothing to do
Is there a repository I should add to yum to install these packages? And if so, how do I add a repository to yum?
shouldn't it be libevent-devel.x86_64?
and you can install with
sudo yum install -y libevent-devel