Error: Package ‘mysql-client-core-8.0’ has no installation candidate
好的,我现在需要帮用户总结一篇文章的内容,控制在100字以内,而且不需要特定的开头。用户提供的文章内容是关于在Debian和Ubuntu系统上安装MySQL客户端的问题。 首先,我看到文章里提到在Debian上无法安装mysql-client-core-8.0,因为它不可用。但Ubuntu上有这个包。当尝试安装mariadb-client-core时,系统提示会卸载mysql-client-core-8.0,并且需要安装其他相关包。 接下来,我需要将这些信息浓缩到100字以内。要抓住关键点:Debian和Ubuntu的区别、包不可用、替代方案以及卸载旧包的情况。 然后,我要确保语言简洁明了,不使用复杂的术语,让用户容易理解。同时,避免使用“总结”或“这篇文章”这样的开头词。 最后,检查字数是否符合要求,并确保信息准确无误。 </think> Debian 上无法安装 mysql-client-core-8.0 包, 但 Ubuntu 上有该包。在 Ubuntu 上安装 mariadb-client-core 会卸载 mysql-client-core-8.0 并替换为 mariadb 相关组件。 2026-3-15 07:49:8 Author: dyrnq.com(查看原文) 阅读量:11 收藏

apt install mysql-client-core-8.0
Package mysql-client-core-8.0 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-server  mariadb-client-core


Error: Package 'mysql-client-core-8.0' has no installation candidate

Debian 上没有mysql-client-core-8.0这个包, 然而mysql-client-core-8.0 这个包在Ubuntu上有.

如果在Ubuntu上安装mariadb-client-core会提示卸载mysql-client-core-8.0

sudo apt install mariadb-client-core
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libmariadb3 mariadb-common mysql-common
The following packages will be REMOVED:
  mysql-client-core-8.0
The following NEW packages will be installed:
  libmariadb3 mariadb-client-core mariadb-common mysql-common
0 upgraded, 4 newly installed, 1 to remove and 133 not upgraded.
Need to get 1,271 kB of archives.
After this operation, 45.7 MB disk space will be freed.
Do you want to continue? [Y/n]

文章来源: https://dyrnq.com/error-package-mysql-client-core-8-0-has-no-installation-candidate/
如有侵权请联系:admin#unsafe.sh