gpt4 book ai didi

ubuntu - MariaDB:正在安装 MariaDB:未满足的依赖项,mariadb-server-10.0

转载 作者:太空宇宙 更新时间:2023-11-03 16:50:52 37 4
gpt4 key购买 nike

 ubuntu:~$ sudo apt-get install mariadb-server
Reading package lists... Done
Building dependency tree
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-server : Depends: mariadb-server-10.0 (= 10.0.3+maria-1~precise) but it
is not going to be installed
E: Unable to correct problems, you have held broken packages.

我想做一个“sudo apt-get upgrade”,出现了以下内容(见下文)。我想将 MariaDB 更新到最新的 10.0.3 并继续阅读 https://askubuntu.com/a/18694那就是使用“sudo aptitude”更容易。虽然,我按错了键,但它完成了升级并破坏了 MariaDB。

我在 Ubuntu 12.04 LTS x64 上,MariaDB 10.0 在出错前的最后三个月运行良好

我尝试再次安装 MariaDB 10,如下所述: https://downloads.mariadb.org/mariadb/repositories/

我还尝试了“sudo apt-get purge mysql* mariadb*”并删除了它但保留了配置文件(如设置屏幕所要求的那样。

我的 apt sources.list 包含在底部:

 # MariaDB 10.0 repository list - created 2013-07-29 19:06 UTC
# http://mariadb.org/mariadb/repositories/
deb http://ftp.osuosl.org/pub/mariadb/repo/10.0/ubuntu precise main
deb-src http://ftp.osuosl.org/pub/mariadb/repo/10.0/ubuntu precise main

有人在使用 MariaDB 5.5 时遇到了类似的问题: Installing MariaDB - Unmet dependencies, mariadb-server-5.5

在错误之前记录(尽管如上所述,错误是用 aptitude 做的):

The following packages have been kept back:
libmariadbclient18 libmysqlclient18 linux-headers-virtual
linux-image-virtual linux-virtual mariadb-client-10.0
mariadb-client-core-10.0 mariadb-server mariadb-server-10.0
mariadb-server-core-10.0
The following packages will be upgraded:
apt apt-transport-https apt-utils bind9-host binutils curl dnsutils
hiphop-php libapt-inst1.4 libapt-pkg4.12 libbind9-80 libcurl3
libcurl3-gnutls libdns81 libdrm-intel1 libdrm-nouveau1a libdrm-radeon1
libdrm2 libisc83 libisccc80 libisccfg82 libldap-2.4-2 liblwres80
libpython2.7 libssl-dev libssl-doc libssl1.0.0 libxml2 libxml2-dev
linux-firmware linux-libc-dev openssl python python-minimal python2.7
python2.7-minimal
36 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
Need to get 54.8 MB of archives.

最佳答案

我通过以下方式解决了这个问题:

在“/etc/apt/preferences.d/”中创建名为“mariadb”的新文件:

Package: *
Pin: origin ftp.osuosl.org
Pin-Priority: 1000

详情:https://kb.askmonty.org/en/installing-mariadb-deb-files/#pinning-the-mariadb-repository

这确实固定了 MariaDB 存储库并赋予它高于 999 的非常高的优先级,这意味着它甚至会降级软件包以安装 MariaDB。

原因:

Oracle 正在为 MySQL 发布安全更新,而 Ubuntu 正在分发版本号高于 MariaDB 的最新 MySQL 包。 MariaDB(它是 MySQL 的一个分支)提供了几个与 MySQL 同名的二进制文件。所以固定 MariaDB 存储库解决了这个问题。

感谢官方 IRC channel 的 Jbboin,他为我指明了正确的方向!

关于ubuntu - MariaDB:正在安装 MariaDB:未满足的依赖项,mariadb-server-10.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17932972/

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com