![](/img/trans.png)
[英]How to forcefully remove MySQL and MariaDB from Ubuntu 16.04, without `apt-get` and `dpkg`?
[英]How to remove MariaDB with unmet dependencies, when purge or dpkg not working?
我有Mariadb (VER 15.1發行10.3.29-MariaDb,用於Debian-Linux-Gnu(X86_64))安裝在我的Z1D41C853AF58D3A7AE58D42429029029029029417DRESCE2902949DREC290294DECCE294DECCE294DECCE294DECCE294DECCE294DECCE294DECCE294DECCE294DECCE294DECCE294DEC294DEC294DECCE294DECE294DECE29.DER 我正在嘗試刪除並重新安裝它。
我無法刪除它,因為它給出了未滿足的依賴項錯誤。
root@ubuntu20:/home/doeuser# sudo apt-get purge mariadb-server-10.3
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
mariadb-client : Depends: mariadb-client-10.3 (>= 1:10.3.29+maria~bionic) but 1:10.3.29-0ubuntu0.20.04.1 is to be installed
mariadb-server-core-10.3 : Breaks: mariadb-client-10.3 (< 1:10.3.29+maria~bionic) but 1:10.3.29-0ubuntu0.20.04.1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
我試過apt --fix-broken install它給了
dpkg: regarding .../mariadb-client-core-10.3_1%3a10.3.29+maria~bionic_amd64.deb containing mariadb-client-core-10.3:
mariadb-client-10.3 conflicts with mysql-client-core-5.5
mariadb-client-core-10.3 provides mysql-client-core-5.5 and is to be installed.
dpkg: error processing archive /var/cache/apt/archives/mariadb-client-core-10.3_1%3a10.3.29+maria~bionic_amd64.deb (--unpack):
conflicting packages - not installing mariadb-client-core-10.3
dpkg: regarding .../mariadb-client-10.3_1%3a10.3.29+maria~bionic_amd64.deb containing mariadb-client-10.3:
mariadb-client-core-10.3 conflicts with mysql-client-5.5
mariadb-client-10.3 provides mysql-client-5.5 and is to be installed.
dpkg: error processing archive /var/cache/apt/archives/mariadb-client-10.3_1%3a10.3.29+maria~bionic_amd64.deb (--unpack):
conflicting packages - not installing mariadb-client-10.3
Errors were encountered while processing:
/var/cache/apt/archives/mariadb-client-core-10.3_1%3a10.3.29+maria~bionic_amd64.deb
/var/cache/apt/archives/mariadb-client-10.3_1%3a10.3.29+maria~bionic_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
如何解決這個問題?
我有Mariadb (VER 15.1發行10.3.29-MariaDb,用於Debian-Linux-Gnu(X86_64))安裝在我的Z1D41C853AF58D3A7AE58D42429029029029029417DRESCE2902949DREC290294DECCE294DECCE294DECCE294DECCE294DECCE294DECCE294DECCE294DECCE294DECCE294DECCE294DEC294DEC294DECCE294DECE294DECE29.DER 我正在嘗試刪除並重新安裝它。
我無法刪除它,因為它給出了未滿足的依賴項錯誤。
root@ubuntu20:/home/doeuser# sudo apt-get purge mariadb-server-10.3
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
mariadb-client : Depends: mariadb-client-10.3 (>= 1:10.3.29+maria~bionic) but 1:10.3.29-0ubuntu0.20.04.1 is to be installed
mariadb-server-core-10.3 : Breaks: mariadb-client-10.3 (< 1:10.3.29+maria~bionic) but 1:10.3.29-0ubuntu0.20.04.1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
我試過apt --fix-broken install它給了
dpkg: regarding .../mariadb-client-core-10.3_1%3a10.3.29+maria~bionic_amd64.deb containing mariadb-client-core-10.3:
mariadb-client-10.3 conflicts with mysql-client-core-5.5
mariadb-client-core-10.3 provides mysql-client-core-5.5 and is to be installed.
dpkg: error processing archive /var/cache/apt/archives/mariadb-client-core-10.3_1%3a10.3.29+maria~bionic_amd64.deb (--unpack):
conflicting packages - not installing mariadb-client-core-10.3
dpkg: regarding .../mariadb-client-10.3_1%3a10.3.29+maria~bionic_amd64.deb containing mariadb-client-10.3:
mariadb-client-core-10.3 conflicts with mysql-client-5.5
mariadb-client-10.3 provides mysql-client-5.5 and is to be installed.
dpkg: error processing archive /var/cache/apt/archives/mariadb-client-10.3_1%3a10.3.29+maria~bionic_amd64.deb (--unpack):
conflicting packages - not installing mariadb-client-10.3
Errors were encountered while processing:
/var/cache/apt/archives/mariadb-client-core-10.3_1%3a10.3.29+maria~bionic_amd64.deb
/var/cache/apt/archives/mariadb-client-10.3_1%3a10.3.29+maria~bionic_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
如何解決這個問題?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.