MariaDB를 다시 설치하려고 시도했는데 다음을 사용했습니다.
sudo apt-get purge mysql* mariadb*
그러나 위의 시도가 실패한 후 제거해야 할 유일한 패키지는 입니다 mariadb-server-10.0
.
다음을 사용하여 제거하려고 하면:
sudo apt-get purge mariadb-server-10.0
나는 다음과 같은 결과를 얻었습니다.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libdbi-perl libterm-readkey-perl
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
mariadb-server-10.0*
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 74.5 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 50%
(Reading database ... 460851 files and directories currently installed.)
Removing mariadb-server-10.0 (10.0.23-0ubuntu0.15.04.1) ...
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
dpkg: error processing package mariadb-server-10.0 (--purge):
subprocess installed pre-removal script returned error exit status 5
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
Failed to start mysql.service: Unit mysql.service failed to load: No such file or directory.
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 6
Errors were encountered while processing:
mariadb-server-10.0
E: Sub-process /usr/bin/dpkg returned an error code (1)
이 문제를 해결하려면 어떻게 해야 합니까? 감사해요
답변1
MariaDB는 MySQL의 오픈 소스 버전(상위 Oracle의 번거로움 없음)입니다. MySQL이 설치된 위치(/etc/init.d에 있을 수 있음)를 MariaDB의 설치 로그에서 찾은 다음 중지해야 합니다.
sudo /etc/init.d/mysql stop
이 작업이 완료되면 수행하려는 것과 동일한 작업을 수행하십시오.