首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ubuntu 21.10,mariadb更新失败

Ubuntu 21.10,mariadb更新失败
EN

Ask Ubuntu用户
提问于 2021-12-07 12:34:14
回答 1查看 276关注 0票数 0

以下是错误消息:

代码语言:javascript
复制
Setting up mariadb-common (1:10.5.13-0ubuntu0.21.10.1) ...
update-alternatives: error: alternative path /etc/mysql/mariadb.cnf doesn't exist
dpkg: error processing package mariadb-common (--configure):
 installed mariadb-common package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 mariadb-common

我还得到:

代码语言:javascript
复制
Package failed to install:
Error while installing package: installed mariadb-common package post-installation script subprocess returned error exit status 2
Please report this issue to the packagers of your distribution

我该怎么办?

EN

回答 1

Ask Ubuntu用户

发布于 2022-01-12 20:07:31

FWIW通过从名义上相同的系统复制mariadb.cnf文件来停止抱怨这个问题。作为记录,如果其他人遇到这个问题,这就是它所包含的内容:

代码语言:javascript
复制
# The MariaDB configuration file
#
# The MariaDB/MySQL tools read configuration files in the following order:
# 1. "/etc/mysql/mariadb.cnf" (this file) to set global defaults,
# 2. "/etc/mysql/conf.d/*.cnf" to set global options.
# 3. "/etc/mysql/mariadb.conf.d/*.cnf" to set MariaDB-only options.
# 4. "~/.my.cnf" to set user-specific options.
#
# If the same option is defined multiple times, the last one will apply.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.

#
# This group is read both both by the client and the server
# use it for options that affect everything
#
[client-server]

# Import all .cnf files from configuration directory
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mariadb.conf.d/
票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1379698

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档