YUM package available in repo, but while install gives "No package" - python-3.6

I am upgrading from python 2.7 to 3.6.
We are using JFrog artifactory repository for hosting packages.
I have verified in the yum repo (artifactory) URL that the package python36 exists.
Following are the things tried:
In /etc/yum.repos.d/epel.repo, added the baseurl of yum (artifactory) repo.
yum clean all
yum info python36 - Error: No matching Packages to list
yum install python36 - No package python36 available. Error: Nothing to do
But the install respond by saying "No package available".
Please advise if I am missing anything here or need to look into other things.

For records -
With yum repolist and yum search working, yum install should be working.
It turns out there was an issue with repo and artifacts were not discoverable.
Now after repo being reloaded the things are working fine.

Related

EPEL & Codeready-builder AWS EC2 RHEL8

I am running an EC2 instance with a RHEL8 AMI.
I am looking to install R on the instance and I believe I need the EPEL package and to enable the codeready builder through the following two commands
sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo dnf config-manager --set-enabled rhui-codeready-builder-for-rhel-8-rhui-rpms
more info at (https://aws.amazon.com/premiumsupport/knowledge-center/ec2-enable-epel/)
I can download epel (first line) fine but when I run the second line I get the following:
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Error: No matching repo to modify: rhui-codeready-builder-for-rhel-8-rhui-rpms.
Also when I try to run the following, I get the following:
This system has no repositories available through subscriptions.
and for completeness, this is the error when i try to install R
$sudo yum install -y R
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:52:36 ago on Mon 04 May 2020 01:17:58 AM UTC.
Error:
Problem: package R-3.6.3-1.el8.x86_64 requires R-devel = 3.6.3-1.el8, but none of the providers can be installed
- package R-devel-3.6.3-1.el8.x86_64 requires R-core-devel = 3.6.3-1.el8, but none of the providers can be installed
- conflicting requests
- nothing provides openblas-devel needed by R-core-devel-3.6.3-1.el8.x86_64
- nothing provides texinfo-tex needed by R-core-devel-3.6.3-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Does anyone have any ideas or has solved this same problem?
I worked this out just after writing it...
For anyones reference, it seems AWS had their command written wrongly.
Still download epel package as shown above
sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
and instead of the following from AWS website
sudo dnf config-manager --set-enabled rhui-codeready-builder-for-rhel-8-rhui-rpms
You can use
sudo dnf config-manager --set-enabled codeready-builder-for-rhel-8-rhui-rpms
Then go ahead with sudo yum install -y R

yum missing requirement that is already installed

I'm running rhel7. When I try to yum install glibc, it looks like it's already installed:
yum install glibc
Package matching glibc-2.17-260.el7_6.5.x86_64 already installed. Checking for update.
But when I thin try to install glibc-headers, it fails at the following error:
Error: Package: glibc-headers-2.17-260.el7_6.5.x86_64 (prod1)
Requires: glibc = 2.17-260.el7_6.5
I've searched around and can't figure out what's going on. I've clean installed glibc. The closest I've come is to this: https://bugzilla.redhat.com/show_bug.cgi?id=1717626, but the advice didn't help.
How can I figure out the issue?
Try to uninstall glibc and reinstall it :
# yum remove glibc
# yum install glibc

How to install MariaDB on RHEL 7 server?

Given cat /etc/yum.repos.d/MariaDB.repo is:
# MariaDB 10.3 RedHat repository list - created 2018-08-29 05:52 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.3/rhel7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
When I do
sudo yum install MariaDB-server MariaDB-client
I got:
Loaded plugins: search-disabled-repos
No package MariaDB-server available.
* Maybe you meant: mariadb-server
No package MariaDB-client available.
Error: Nothing to do
I'm using https://downloads.mariadb.org/mariadb/repositories/#mirror=digital-pacific&distro=RedHat&distro_release=rhel7-amd64--rhel7&version=10.3
Why am I not able to install mariadb on my RHEL7 server?
Note:
yum list mariadb
Loaded plugins: search-disabled-repos
Available Packages
mariadb.x86_64 1:5.5.60-1.el7_5 uofa_repos
Is this because i'm only looking at uofa_repos repository somehow? How do I install mariadb correctly?
After adding the Repo, as you did, run: (This should force reload the repository)
sudo yum clean all
Then run: (This will list the available repository for MariaDB).
sudo yum list --showduplicates MariaDB-server
This will show something like:
Available Packages
mariadb-server.x86_64
.........
Now pay Attention to the name of the package (sudo yum install is case sensitive) so in this example run:
sudo yum install mariadb-server
(Not MariaDB-server)
If you check the baseurl as given you will notice things are not named as you might expect them to be;
MariaDB-10.3.7-centos73-x86_64-client.rpm
MariaDB-10.3.9-centos73-x86_64-server.rpm
It looks like you should specify something along the lines of yum install MariaDB-10.3.9-centos73-x86_64-<foo> in order to install from that specific repo.
If you got this error: No package MariaDB-server and No package MariaDB-client. Just comment this line in /etc/yum.conf (add # at the beginning...)
#exclude=ansible1.9,mysql,mariadb,mariadb-,Percona-XtraDB-,Percona--55,Percona--56,Percona--51,Percona--50

cannot install qtbase-abi-5-5-1 on ubuntu 17.10

When I install a fcitx related package an error show that qtbase-abi-5-5-1 is needed but not installed.
wsx#wsx:~/Downloads$ sudo apt install ./fcitx-frontend-qt5-rstudio_1.0.5-1ubuntu1~qt542_amd64.deb ./libfcitx-qt5-1-rstudio_1.0.5-1ubuntu1~qt542_amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'fcitx-frontend-qt5-rstudio' instead of './fcitx-frontend-qt5-rstudio_1.0.5-1ubuntu1~qt542_amd64.deb'
Note, selecting 'libfcitx-qt5-1-rstudio' instead of './libfcitx-qt5-1-rstudio_1.0.5-1ubuntu1~qt542_amd64.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
fcitx-frontend-qt5-rstudio : Depends: qtbase-abi-5-5-1 but it is not installable
E: Unable to correct problems, you have held broken packages.
I tried using command sodu apt install qtbase-abi-5 to find the package but failed. I then download the .deb package from https://ubuntu.pkgs.org/16.04/ubuntu-updates-main-amd64/libqt5core5a_5.5.1+dfsg-16ubuntu7.5_amd64.deb.html but it was not work, the page show that this .deb package provide the qtbase-abi-5 package. Interestingly, I can find few information about this error by google. Some info from Ask ubuntu forum say that it seems the qtbase-abi-5 is not included in libqt5core5a.
I don't know how to fix it. Can you give me some suggestion or some link which do can download qtbase-abi-5 ?
Thanks #GAD3R for your answer, I am sorry that it fails.
wsx#wsx:~$ sudo apt-cache search qtbase-abi
libqt5core5a - Qt 5 core module
wsx#wsx:~$ sudo apt install libqt5core5a
Reading package lists... Done
Building dependency tree
Reading state information... Done
libqt5core5a is already the newest version (5.9.1+dfsg-10ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.
wsx#wsx:~$ sudo apt install ./Downloads/fcitx-frontend-qt5-rstudio_1.0.5-1ubuntu1~qt542_amd64.deb ./Downloads/libfcitx-qt5-1-rstudio_1.0.5-1ubuntu1~qt542_amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'fcitx-frontend-qt5-rstudio' instead of './Downloads/fcitx-frontend-qt5-rstudio_1.0.5-1ubuntu1~qt542_amd64.deb'
Note, selecting 'libfcitx-qt5-1-rstudio' instead of './Downloads/libfcitx-qt5-1-rstudio_1.0.5-1ubuntu1~qt542_amd64.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
fcitx-frontend-qt5-rstudio : Depends: qtbase-abi-5-5-1 but it is not installable
E: Unable to correct problems, you have held broken packages.
Can anyone run following commands successfully?
$ wget http://ikuya.info/tmp/fcitx-qt5-rstudio-qt542.tar.gz
$ tar xf fcitx-qt5-rstudio-qt542.tar.gz
$ sudo apt install ./fcitx-frontend-qt5-rstudio_1.0.5-1ubuntu1~qt542_amd64.deb ./libfcitx-qt5-1-rstudio_1.0.5-1ubuntu1~qt542_amd64.deb
The package libqt5core5a provide qtbase-abi-5-5-1.
apt-cache search qtbase-abi
libqt5core5a - Qt 5 core module
To install the qtbase-abi-5-5-1 , run the following command :
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
sudo apt install libqt5core5a

"No package found" error when installing NGINX on CentOS 5

The command sudo yum install nginx returns the error No package nginx available. I've tried this before and it worked but now it doesn't.
Please help!
nginx isn't in the 'normal' Centos repositories. You can install the EPEL repository to gain access to it. There's a how to guide here - and a more up to date one here.
Once you have added the EPEL repo, you can then install with the yum command you referenced.

Resources