Mariadb Galera 4 upgrade - error No package galera available - mariadb

I am trying to upgrade to Galera4 on RHEL machine.. My repo looks like this :
#MariaDB 10.6 RedHat repository list - created 2023-01-25 16:29 UTC
# https://mariadb.org/download/
[mariadb]
name = MariaDB
baseurl = https://mirror.nodesdirect.com/mariadb/yum/10.6/rhel7-amd64
gpgkey=https://mirror.nodesdirect.com/mariadb/yum/RPM-GPG-KEY-MariaDB
gpgcheck=1
when I try yum -y install MariaDB-server MariaDB-client galera
i see :
No package MariaDB-server available.
* Maybe you meant: mariadb-server
No package MariaDB-client available.
No package galera available.
Error: Nothing to do
tried yum clean too.
Any pointers would be very helpful. Thanks

Related

mariadb-client-core-10.5 : Depends: libreadline5 (>= 5.2) but it is not installable

I can not install mariadb-server. I run the following command:
sudo apt install mariadb-server mariadb-client -y
The following message appears:
Building dependency tree... Done
Reading state information... Done
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.
mariadb-client-core-10.5 : Depends: libreadline5 (>= 5.2) but it is not installable
E: Unable to correct problems, you have held broken packages.
How can I fix these dependecies?
Thanks in advance!!!
=========================================
sudo apt install mariadb-client-core-10.5 -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
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.
mariadb-client-core-10.5 : Depends: libreadline5 (>= 5.2) but it is not installable
E: Unable to correct problems, you have held broken packages.
I have tried with aptitude:
** sudo aptitude install mariadb-server **
The following NEW packages will be installed:
gawk{a} libsigsegv2{a} mariadb-server{b}
0 packages upgraded, 3 newly installed, 0 to remove and 19 not upgraded.
Need to get 434 kB of archives. After unpacking 1.772 kB will be used.
The following packages have unmet dependencies:
mariadb-server : Depends: mariadb-server-10.5 (>= 1:10.5.15+maria~focal) but it is not installable
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) mariadb-server [Not Installed]
Accept this solution? [Y/n/q/?] Y
The following NEW packages will be installed:
gawk{a} libsigsegv2{a}
0 packages upgraded, 2 newly installed, 0 to remove and 19 not upgraded.
Need to get 430 kB of archives. After unpacking 1.761 kB will be used.
Do you want to continue? [Y/n/?] Y
Get: 1 http://es.archive.ubuntu.com/ubuntu impish/main amd64 libsigsegv2 amd64 2.13-1ubuntu2 [14,6 kB]
Get: 2 http://es.archive.ubuntu.com/ubuntu impish/main amd64 gawk amd64 1:5.1.0-1build1 [416 kB]
Fetched 430 kB in 1s (718 kB/s)
Selecting previously unselected package libsigsegv2:amd64.
(Reading database ... 209196 files and directories currently installed.)
Preparing to unpack .../libsigsegv2_2.13-1ubuntu2_amd64.deb ...
Unpacking libsigsegv2:amd64 (2.13-1ubuntu2) ...
Setting up libsigsegv2:amd64 (2.13-1ubuntu2) ...
Selecting previously unselected package gawk.
(Reading database ... 209203 files and directories currently installed.)
Preparing to unpack .../gawk_1%3a5.1.0-1build1_amd64.deb ...
Unpacking gawk (1:5.1.0-1build1) ...
Setting up gawk (1:5.1.0-1build1) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for libc-bin (2.34-0ubuntu3.2) ...
I have installed the client with aptitude:
** sudo aptitude install mariadb-client **
The following NEW packages will be installed:
mariadb-client{b}
0 packages upgraded, 1 newly installed, 0 to remove and 19 not upgraded.
Need to get 3.096 B of archives. After unpacking 10,2 kB will be used.
The following packages have unmet dependencies:
mariadb-client : Depends: mariadb-client-10.5 (>= 1:10.5.15+maria~focal) but it is not installable
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) mariadb-client [Not Installed]
Accept this solution? [Y/n/q/?]
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 19 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
The client still does not connect....
Command 'mysql' not found, but can be installed with:
sudo apt install mysql-client-core-8.0 # version 8.0.28-0ubuntu0.21.10.3, or
sudo apt install mariadb-client-core-10.5 # version 1:10.5.15-0ubuntu0.21.10.1
juanma#juanma-HP-Laptop-17-ca1xxx:~$ mariadb
Command 'mariadb' not found, but can be installed with:
sudo apt install mariadb-client-core-10.5
juanma#juanma-HP-Laptop-17-ca1xxx:~$ sudo apt install mariadb-client-core-10.5 -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
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.
mariadb-client-core-10.5 : Depends: libreadline5 (>= 5.2) but it is not installable
E: Unable to correct problems, you have held broken packages.
Thanks
============================================================
In the end I have done it with Docker and with a script and it has worked perfectly. Thank you all:
#!/bin/bash
docker run --name mariadbtest -e MYSQL_ROOT_PASSWORD=mypass -p 3306:3306 -d docker.io/library/mariadb:10.3
sudo apt install mysql-client-core-8.0
mysql -h 172.17.0.2 -u root -p
In the end I have done it with Docker and with a script and it has worked perfectly. Thank you all:
#!/bin/bash
docker run --name mariadbtest -e MYSQL_ROOT_PASSWORD=mypass -p 3306:3306 -d docker.io/library/mariadb:10.3
sudo apt install mysql-client-core-8.0
mysql -h 172.17.0.2 -u root -p

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

Installing Phusion Passenger for Nginx, can't find package libnginx-mod-http-passenger

I am using the tutorial at
https://www.phusionpassenger.com/docs/tutorials/deploy_to_production/installations/oss/ownserver/ruby/nginx/
to install Passenger (6.0.4) for use with Nginx. I get to the point where I'm installing the 'libnginx-mod-http-passenger' package, and get the following...
deploy#rpi-tick1:~ $ sudo apt-get install -y libnginx-mod-http-passenger
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libnginx-mod-http-passenger
I am installing for Raspbian-stretch (Debian), and have set up /etc/apt/sources.list.d/passsenger.list as shown below (as instructed in the tutorial)
deploy#rpi-tick1:~ $ cat /etc/apt/sources.list.d/passenger.list
deb https://oss-binaries.phusionpassenger.com/apt/passenger stretch main
It appears that repository contains only 'passenger-doc' packages. Any help would be appreciated.
I just ran into this issue myself while testing out whether my passenger setup will work on an ARM based Ubuntu instance. I believe the cause is that package is available for amd64 but not ARM. I see that you are using Raspbian and Raspberry Pi's are ARM based systems.

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

Installation of igraph package of R in ubuntu

I am using the following command for the installation of igraph package of R in ubuntu : install.packages("igraph")
But I am getting an error saying:
Warning: unable to access index for repository
http://ftp.iitm.ac.in/cran/src/contrib: cannot open URL
'http://ftp.iitm.ac.in/cran/src/contrib/PACKAGES' Warning messages:
package ‘igraph’ is not available (for R version 3.3.2)
Can someone please guide regarding this problem, where I am going wrong in this...
You probably want a binary package anyway, and I recently re-explained how to do this:
The easiest way is something like this (and I am showing only the commands, not the output while I do this in a Docker instance of Ubuntu 16.04, and I am doing this in Docker where the account is root; otherwise add sudo in front)
apt-get update # refresh
apt-get install software-properties-common
add-apt-repository -y "ppa:marutter/rrutter"
add-apt-repository -y "ppa:marutter/c2d4u"
apt-get update # now with new repos
apt-get install r-cran-igraph
and it will just work with all its dependencies. You didn't tell us what Ubuntu version you have. What I showed works eg in Ubuntu 16.04; for much older releases you need a different package for the add-apt-repository command.
I suspect either the server is down or your network is down or you need to go via a proxy.
I can duplicate this message by setting an unobtainable CRAN mirror with:
> options(repos="http://example.com/")
> install.packages("foo")
Installing package into ‘/nobackup/rowlings/RLibrary/R/x86_64-pc-linux-gnu-library/3.2’
(as ‘lib’ is unspecified)
Warning: unable to access index for repository http://example.com/src/contrib:
cannot open URL 'http://example.com/src/contrib/PACKAGES'
Warning message:
package ‘foo’ is not available (for R version 3.2.3)
So either try again and maybe the server is up, or check your local network is okay, or try another CRAN mirror, or check with your local network admins to see if you need to set a proxy server.
you have to install build-essential first
sudo apt-get install build-essential
also on Ubuntu and Debian Linux the lixml2 and libxml2-dev packages are needed to install to R.
if that does not work check the webpage of the package for extra documentation

Resources