安装MySQL客户端出现:
# apt-get install mysql-client
Reading package lists... Done
Building dependency tree
Reading state information... Done
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
E: Package 'mysql-client' has no installation candidate
安装MySQL服务出现
# apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mysql-server 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
E: Package 'mysql-server' has no installation candidate
参考:install mysql - has no installation candidate
# apt-cache search mysql-server
mariadb-server-10.3 - MariaDB database server binaries
mariadb-server-core-10.3 - MariaDB database core server files
default-mysql-server - MySQL database server binaries and system database setup (metapackage)
default-mysql-server-core - MySQL database server binaries (metapackage)
看到输出的内容,就知道怎么安装了吧?
本文解决在Ubuntu系统上使用apt-get命令安装MySQL客户端和服务时遇到的没有安装候选错误。文章详细介绍了如何通过搜索和安装替代包如MariaDB来解决这一问题。
985

被折叠的 条评论
为什么被折叠?



