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
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 have a system that is due to be upgraded but I'm having conflicts with apt-get -f install:
apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
login sysvinit-utils util-linux
Suggested packages:
kbd util-linux-locales
The following packages will be upgraded:
login sysvinit-utils util-linux
3 upgraded, 0 newly installed, 0 to remove and 106 not upgraded.
13 not fully installed or removed.
Need to get 0 B/1775 kB of archives.
After this operation, 1886 kB of additional disk space will be used.
Do you want to continue? [Y/n]
E: Sub-process false returned an error code (1)
E: Prior errors apply to /var/cache/apt/archives/sysvinit-utils_2.96-7_arm64.deb
E: Prior errors apply to /var/cache/apt/archives/util-linux_2.36.1-8_arm64.deb
E: Prior errors apply to /var/cache/apt/archives/login_1%3a4.8.1-1_arm64.deb
debconf: apt-extracttemplates failed: No such file or directory
(Reading database ... 9765 files and directories currently installed.)
Preparing to unpack .../sysvinit-utils_2.96-7_arm64.deb ...
Unpacking sysvinit-utils (2.96-7) over (2.88dsf-59) ...
dpkg: error processing archive /var/cache/apt/archives/sysvinit-utils_2.96-7_arm64.deb (--unpack):
trying to overwrite '/lib/init/vars.sh', which is also in package initscripts 2.88dsf-59
Errors were encountered while processing:
/var/cache/apt/archives/sysvinit-utils_2.96-7_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I don't understand why it says E: Sub-process false returned an error code (1) after I confirm installation of the packages. Can anyone help me with this?
initscripts is a purely virtual package, so it is safe to give dpkg permission to overwrite it. Open the terminal and type:
sudo dpkg -i --force-overwrite /var/cache/apt/archives/sysvinit-utils_2.96-7_arm64.deb
If you're not using dpkg directly and using an apt front-end like apt or apt-get, the following command defines the same custom dpkg option to use as the previous command.
sudo apt-get -o Dpkg::Options::="--force-overwrite" install sysvinit-utils
Try to flush the cache and reinstall then :
apt autoremove
apt clean
apt autoclean
apt update
apt install -f
if it doesn't help, try to remove the problematic packages and reinstall them normally.
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.
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