Package mysql-client is not available in raspbian_buster

189 views
Skip to first unread message

Lucas Heijst

unread,
Mar 3, 2020, 12:14:29 PM3/3/20
to weewx-development
I did a fresh install of raspbian buster on a rpi 3b+
Preparing a fresh install of weewx-4.0.0b13
All with python3 modules.

I got a warning with this step:

# Required if using MySQL:

sudo apt-get install mysql-client


Package mysql-client is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source

However the following packages replace it:

mariadb-client-10.0


E: Package 'mysql-client' has no installation candidate


I installed module mariadb-client-10.0 instead without any further errors.


Luc

Thomas Keffer

unread,
Mar 3, 2020, 12:43:03 PM3/3/20
to weewx-development
Thanks for the heads up, Luc. I've added it to the TODO list.

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/f2054656-1b0e-41e3-932a-d0f60fcfb336%40googlegroups.com.

Thomas Keffer

unread,
Mar 3, 2020, 12:46:29 PM3/3/20
to weewx-development
Oh, which of the 3 versions of Raspbian Buster did you install? https://www.raspberrypi.org/downloads/raspbian/
  • Raspbian Buster with desktop and recommended software
  • Raspbian Buster with desktop
  • Raspbian Buster Lite.
-tk

Lucas Heijst

unread,
Mar 3, 2020, 12:58:15 PM3/3/20
to weewx-development
2020-02-13-raspbian-buster-lite


On Tuesday, 3 March 2020 14:46:29 UTC-3, Tom Keffer wrote:
Oh, which of the 3 versions of Raspbian Buster did you install? https://www.raspberrypi.org/downloads/raspbian/
  • Raspbian Buster with desktop and recommended software
  • Raspbian Buster with desktop
  • Raspbian Buster Lite.
-tk

On Tue, Mar 3, 2020 at 9:42 AM Thomas Keffer <tke...@gmail.com> wrote:
Thanks for the heads up, Luc. I've added it to the TODO list.

-tk

On Tue, Mar 3, 2020 at 9:14 AM Lucas Heijst <ljm....@gmail.com> wrote:
I did a fresh install of raspbian buster on a rpi 3b+
Preparing a fresh install of weewx-4.0.0b13
All with python3 modules.

I got a warning with this step:

# Required if using MySQL:

sudo apt-get install mysql-client


Package mysql-client is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source

However the following packages replace it:

mariadb-client-10.0


E: Package 'mysql-client' has no installation candidate


I installed module mariadb-client-10.0 instead without any further errors.


Luc

--
You received this message because you are subscribed to the Google Groups "weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-de...@googlegroups.com.

Vince Skahan

unread,
Mar 3, 2020, 2:53:15 PM3/3/20
to weewx-development
On Tuesday, March 3, 2020 at 9:14:29 AM UTC-8, Lucas Heijst wrote:
I did a fresh install of raspbian buster on a rpi 3b+

Package mysql-client is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source

However the following packages replace it:

mariadb-client-10.0


E: Package 'mysql-client' has no installation candidate


I installed module mariadb-client-10.0 instead without any further errors.




This sounds like the renaming of mysql that happened a while back.   If they did the mariadb packages correctly they would be set up to 'provide' mariadb-whatever as a capability of their package (I'm speaking from a RedHat background and how RPM does it, I don't know if debian packages can do that or not)

John Kline

unread,
Mar 3, 2020, 3:36:30 PM3/3/20
to Vince Skahan, weewx-development
FWIW, WRT mysql-client, I’m not seeing any difference in buster between Raspbian and standard Debian.  mysql-client does not exist in both cases.

It appears to me that Debian has moved on to mariadb as the drop in replacement.

As for: “ but is referred to by another package.”; perhaps an “apt dist-upgrade” will fix it.

On Mar 3, 2020, at 11:53 AM, Vince Skahan <vince...@gmail.com> wrote:


--
You received this message because you are subscribed to the Google Groups "weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/95142a8e-430e-4c88-bc4b-010972640dc6%40googlegroups.com.

Les Niles

unread,
Mar 3, 2020, 5:00:10 PM3/3/20
to weewx-development
In Buster and Stretch, and probably earlier, there is a meta-package “default-mysql-client” that installs the preferred version of the client, mariadb-client.  In Stretch the mysql-client package still existed but it was just dependent on default-mysql-client so still got the mariadb version.  I don’t have an older system handy to poke around on but I imagine this arrangement existed for several previous versions.  Apparently by Buster, debian expects people to have cleaned up explicit dependencies on the mysql packages.

What about the server side?  It looks like the same thing applies to the mysql-server packge.

  -Les



Vince Skahan

unread,
Mar 3, 2020, 5:29:24 PM3/3/20
to weewx-development
On Tuesday, March 3, 2020 at 2:00:10 PM UTC-8, Les Niles wrote:
In Buster and Stretch, and probably earlier, there is a meta-package “default-mysql-client” that installs the preferred version of the client, mariadb-client.  In Stretch the mysql-client package still existed but it was just dependent on default-mysql-client so still got the mariadb version.  I don’t have an older system handy to poke around on but I imagine this arrangement existed for several previous versions.  Apparently by Buster, debian expects people to have cleaned up explicit dependencies on the mysql packages.

What about the server side?  It looks like the same thing applies to the mysql-server packge.

 

It is indeed confusing.  For example, centos8 has:

[root@localhost vagrant]# yum list | grep maria
mariadb.x86_64                                       3:10.3.17-1.module_el8.1.0+257+48736ea6           AppStream
mariadb-backup.x86_64                                3:10.3.17-1.module_el8.1.0+257+48736ea6           AppStream
mariadb-common.x86_64                                3:10.3.17-1.module_el8.1.0+257+48736ea6           AppStream
mariadb-connector-c.i686                             3.0.7-1.el8                                       AppStream
mariadb-connector-c.x86_64                           3.0.7-1.el8                                       AppStream
mariadb-connector-c-config.noarch                    3.0.7-1.el8                                       AppStream
mariadb-connector-c-devel.i686                       3.0.7-1.el8                                       AppStream
mariadb-connector-c-devel.x86_64                     3.0.7-1.el8                                       AppStream
mariadb-connector-odbc.x86_64                        3.0.7-1.el8                                       AppStream
mariadb-devel.x86_64                                 3:10.3.17-1.module_el8.1.0+257+48736ea6           AppStream
mariadb-embedded.x86_64                              3:10.3.17-1.module_el8.1.0+257+48736ea6           AppStream
mariadb-embedded-devel.x86_64                        3:10.3.17-1.module_el8.1.0+257+48736ea6           AppStream
mariadb-errmsg.x86_64                                3:10.3.17-1.module_el8.1.0+257+48736ea6           AppStream
mariadb-gssapi-server.x86_64                         3:10.3.17-1.module_el8.1.0+257+48736ea6           AppStream
mariadb-java-client.noarch                           2.2.5-2.el8                                       AppStream
mariadb-oqgraph-engine.x86_64                        3:10.3.17-1.module_el8.1.0+257+48736ea6           AppStream
mariadb-server.x86_64                                3:10.3.17-1.module_el8.1.0+257+48736ea6           AppStream
mariadb-server-galera.x86_64                         3:10.3.17-1.module_el8.1.0+257+48736ea6           AppStream
mariadb-server-utils.x86_64                          3:10.3.17-1.module_el8.1.0+257+48736ea6           AppStream
mariadb-test.x86_64                                  3:10.3.17-1.module_el8.1.0+257+48736ea6           AppStream

[root@localhost vagrant]# yum list | grep "^mysql"
mysql.x86_64                                         8.0.17-3.module_el8.0.0+181+899d6349              AppStream
mysql-common.x86_64                                  8.0.17-3.module_el8.0.0+181+899d6349              AppStream
mysql-devel.x86_64                                   8.0.17-3.module_el8.0.0+181+899d6349              AppStream
mysql-errmsg.x86_64                                  8.0.17-3.module_el8.0.0+181+899d6349              AppStream
mysql-libs.x86_64                                    8.0.17-3.module_el8.0.0+181+899d6349              AppStream
mysql-server.x86_64                                  8.0.17-3.module_el8.0.0+181+899d6349              AppStream
mysql-test.x86_64                                    8.0.17-3.module_el8.0.0+181+899d6349              AppStream

Vince Skahan

unread,
Mar 3, 2020, 5:36:36 PM3/3/20
to weewx-development
And just to add more confusion, looks like centos8 has both variants to some extent.  Look where these rpms come from...

[root@localhost vagrant]# yum info mariadb
Last metadata expiration check: 0:03:45 ago on Tue 03 Mar 2020 10:27:19 PM UTC.
Available Packages
Name         : mariadb
Epoch        : 3
Version      : 10.3.17
Release      : 1.module_el8.1.0+257+48736ea6
Arch         : x86_64
Size         : 6.1 M
Source       : mariadb-10.3.17-1.module_el8.1.0+257+48736ea6.src.rpm
Repo         : AppStream
Summary      : A very fast and robust SQL database server
URL          : http://mariadb.org
License      : GPLv2 with exceptions and LGPLv2 and BSD
Description  : MariaDB is a community developed branch of MySQL - a multi-user, multi-threaded
             : SQL database server. It is a client/server implementation consisting of
             : a server daemon (mysqld) and many different client programs and libraries.
             : The base package contains the standard MariaDB/MySQL client programs and
             : generic MySQL files.

[root@localhost vagrant]# yum info mysql
Last metadata expiration check: 0:03:50 ago on Tue 03 Mar 2020 10:27:19 PM UTC.
Available Packages
Name         : mysql
Version      : 8.0.17
Release      : 3.module_el8.0.0+181+899d6349
Arch         : x86_64
Size         : 11 M
Source       : mysql-8.0.17-3.module_el8.0.0+181+899d6349.src.rpm
Repo         : AppStream
Summary      : MySQL client programs and shared libraries
URL          : http://www.mysql.com
License      : GPLv2 with exceptions and LGPLv2 and BSD
Description  : MySQL is a multi-user, multi-threaded SQL database server. MySQL is a
             : client/server implementation consisting of a server daemon (mysqld)
             : and many different client programs and libraries. The base package
             : contains the standard MySQL client programs and generic MySQL files.


Thomas Keffer

unread,
Mar 3, 2020, 7:27:45 PM3/3/20
to weewx-development
Thanks, Les. That simplified things a bit.

Changed the install instructions in commit 937903e

-tk

Reply all
Reply to author
Forward
0 new messages