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
Related
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
I am new to Centos.
When I tried to install ffmpeg in Centos, followed this link.
Error: Package: ffmpeg-2.8.15-2.el7.nux.x86_64 (nux-dextop)
Requires: libSDL-1.2.so.0()(64bit)
Error: Package: ffmpeg-libs-2.8.15-2.el7.nux.x86_64 (nux-dextop)
Requires: libschroedinger-1.0.so.0()(64bit)
Error: Package: libavdevice-2.8.15-2.el7.nux.x86_64 (nux-dextop)
Requires: libopenal.so.1()(64bit)
Error: Package: libavdevice-2.8.15-2.el7.nux.x86_64 (nux-dextop)
Requires: libSDL-1.2.so.0()(64bit)
Error: Package: ffmpeg-libs-2.8.15-2.el7.nux.x86_64 (nux-dextop)
Requires: libass.so.5()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
When I tried to install libSDL-1.2.so.0, I have another dependencies errors.
What is usual practice of installation in Centos?
I go to Centos repository and download rpm binary package.
Then use the command as follow.
sudo yum --nogpgcheck localinstall xxxxxxxxxxx.rpm
If there are dependency packages to install, I tried to install those dependencies first.
We need to install epel repository first for Centos 7.
https://www.cyberciti.biz/faq/installing-rhel-epel-repo-on-centos-redhat-7-x/
Then install from epel repository using yum install command.
I am setting up a new instance and trying to install php-imap on it with no luck.
I am using: sudo yum install php-imap
And getting the following output:
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main | 2.1 kB 00:00
amzn-updates | 2.5 kB 00:00
Resolving Dependencies
--> Running transaction check
---> Package php-imap.x86_64 0:5.3.29-1.8.amzn1 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.29-1.8.amzn1 for package: php-imap-5.3.29-1.8.amzn1.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.3.29-1.8.amzn1 will be installed
--> Processing Conflict: php72-common-7.2.13-1.7.amzn1.x86_64 conflicts php-common < 5.5.22-1.98
--> Finished Dependency Resolution
Error: php72-common conflicts with php-common-5.3.29-1.8.amzn1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Anyone have been able to install it on Amazon Linux (free tier) with Php version 7.2.13?
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'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