MariaDB 설치 - 미달 의존관계, mariadb-server-5.5
Ubuntu 12.04 LTS에 MariaDB를 설치하려고 합니다.
https://askubuntu.com/questions/64772/how-to-install-mariadb 및 MariaDB.org에서 다운로드 선택 시 표시되는 지침을 따릅니다.
마지막 단계는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-5.5 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
의존관계 문제는 인지 문제(https://mariadb.atlassian.net/browse/MDEV-3882)이지만, 패키지가 파손되어 있기 때문에 대처할 수 없다고 생각합니다.
libmariadbclient18을 설치하려고 하면 다음 메시지가 나타납니다.
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:
libmariadbclient18 : Depends: libmysqlclient18 (= 5.5.30-mariadb1~precise) but 5.5.31-0ubuntu0.12.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.
파손된 패키지를 수정하기 위해sudo apt-get install -f
mariadb-server나 libmariadbclient18은 아직 설치할 수 없습니다.
sudo apt-get install libmysqlclient18=5.5.30-mariadb1~precise mysql-common=5.5.30-mariadb1~precise
sudo apt-get install mariadb-server
첫 번째 것은 우분투 쪽에서 범핑된 두 개의 mysqllib를 오래된 mariadb로 되돌립니다.두 번째는 정상적으로 진행할 수 있습니다.
패키지는 다음과 같은 이유로 제거되었습니다.apt-get dist-upgrade
실행되었습니다.GUI는 실제로 뭔가 잘못되었다고 경고합니다.
이 문제가 다시 발생하지 않도록 하려면 다음 위치에서 파일을 생성하여 핀 접속을 통해 MariaDB repo를 선호하도록 하십시오./etc/apt/preferences.d
:
$ cat /etc/apt/preferences.d/MariaDB.pref
Package: *
Pin: origin <mirror-domain>
Pin-Priority: 1000
또, 반드시 인스톨 해 주세요.libmariadbclient-dev
컴파일이 필요한 경우(루비 보석 등)
저는 @Loeki와 비슷한 일을 했습니다.
$ sudo apt-get purge libmariadbclient18 mariadb-server mariadb-client-5.5 libmysqlclient18 mysql-common```
다음에, 인스톨 할 후보를 찾아 재인스톨 했습니다.
$ apt-cache policy libmysqlclient18 | grep -i quantal
Installed: 5.5.30-mariadb1~quantal
*** 5.5.30-mariadb1~quantal 0
500 http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu/ quantal/main amd64 Packages
$ apt-cache policy mysql-common | grep -i quantal
Installed: 5.5.30-mariadb1~quantal
*** 5.5.30-mariadb1~quantal 0
500 http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu/ quantal/main amd64 Packages
$
$ sudo apt-get install libmysqlclient18=5.5.30-mariadb1~quantal mysql-common=5.5.30-mariadb1~quantal mariadb-server mariadb-client
...
* Stopping MariaDB database server mysqld [ OK ]
130428 13:19:40 [Note] Plugin 'InnoDB' is disabled.
130428 13:19:40 [Note] Plugin 'FEEDBACK' is disabled.
Plugin Disabled 경고를 받았는데 mysql을 다시 시작하면sudo service mysql restart
sql을 설치하니 innodb는 괜찮아 보였고show create table mytable
보여주고 있었다ENGINE=InnoDB DEFAULT CHARSET=utf8
역시나
@yuvilio는 다음과 같은 장점이 있습니다.
$ sudo apt-get install libmysqlclient18=5.5.30-mariadb1~quantal mysql-common=5.5.30-mariadb1~quantal mariadb-server mariadb-client
이 기능은 12.04, 12.10 및 13.04(LinuxMint 14도 해당)에서 작동합니다.
MariaDB는 3.5.0-25와 같은 커널이 업데이트 된 장소에 대해 "민감하다"며 이는 일반 바닐라 "sudo apt-get install mariadb-server"를 사용한 MariaDB 설치에 영향을 미치는 것으로 보인다.
@yuvilio는 플러그인 'InnoDB'와 'FEEDB'를 언급하고 있습니다.ACK'는 비활성화되지만 이 설치 후 InnoDB가 작동합니다.
MariaDB는 InnoDB를 대체하기 위해 XTRA-DB를 사용하기 때문에 이는 완벽하게 타당합니다.MariaDB에도 새로운 피드백 모듈이 있을 것으로 생각됩니다(Oracle/mySQL이 아닌 mariadb.org에 MariaDB 피드백이 필요합니다).
@Loeki의 답변은 더 이상 기능하지 않습니다.왜냐하면 언급한 버전을 사용할 수 없기 때문에 다음과 같은 오류가 발생합니다.
E: Version '5.5.30-mariadb1~precise' for 'libmysqlclient18' was not found
이 문제를 해결하려면 올바른 버전을 찾아야 합니다.
에서 사용 가능한 버전 목록을 얻을 수 있습니다.aptitude versions libmysqlclient18
시스템에서는 다음과 같이 되어 있습니다.
Package libmysqlclient18:
[...]
p 5.5.31+maria-1~precise <NULL> 1000
i 1:5.5.32-rel31.0-549.precise <NULL> 500
[...]
(다른 행이 여러 개 있지만 관련 행만 표시됩니다).
행i
는 현재 이며, 되는 ""는 .이치노5.5.30-mariadb1~precise
그러나 유망해 보이는 다른 후보가 있었다.제가 그랬던 것처럼, 당신(시간에 따른 변화)도 똑같을 필요는 없습니다.
이 예에서는, 다음과 같이 속행할 수 있습니다.
sudo apt-get install libmysqlclient18=5.5.31+maria-1~precise
그 후, 인스톨에 의해서 클라이언트와 mariadb-common
을 사용하다
sudo apt-get install mariadb-server
OP의 오류 없이 말이죠.
해라
sudo dpkg --remove --force-remove-reinstreq BROKEN_PACKAGE
제 경우 어떻게 해결했는지 공유하겠습니다(Ubuntu 14.04).
오류가 있었습니다.
$ sudo apt-get install mariadb-server-5.5
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-5.5 : Depends: mariadb-client-5.5 (>= 5.5.41+maria-1~trusty) but it is not going to be installed
Depends: mariadb-server-core-5.5 (>= 5.5.41+maria-1~trusty) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
솔루션:
1: 서 1:sudo apt-get install libmysqlclient18
2: 서 2 2:sudo apt-get install mariadb-server
주의:
- 이 설명서에 따라 설치했습니다.
- 이전에 MySQL을 설치하지 않았습니다.
이것이 도움이 될지는 모르겠지만, mariadb 10을 설치하는 데 어려움을 겪고 오류가 발생하여 이 페이지로 이동했지만, 아무 도움도 되지 않았습니다.
나는 마침내 나의 /tmp dir가 root 소유라는 것을 알았고, 다른 사용자는 그것에 쓸 수 없었다.나는 그 문제를 수정하고 나서 다음과 같이 했다.
apt-get remove mariadb-server
했습니다./var/lib/mysql
:고나:고 、 。
apt-get remove mariadb-server
다시 실제로 mariadb-server를 설치하고 가동시켰습니다.
이제 됐다.
mysql 패키지를 모두 삭제하고 실행함으로써 mariadb를 설치할 수 있었습니다.
sudo apt-get install mariadb-server-5.5 mariadb-client-5.5 \mariadb-server-core-5.5 mariadb-common mariadb-server \libmariadbclient18 libd-variadb-client-core-5.5 \libmysqlclient18=5.5.30-sqladb1~정량 \mysql-common=5.5.30-sqladb1~정량
먼저 mysql을 제거할 필요가 있었는지 모르겠습니다.
언급URL : https://stackoverflow.com/questions/16214517/installing-mariadb-unmet-dependencies-mariadb-server-5-5
'programing' 카테고리의 다른 글
오류! MySQL 관리자 또는 서버 PID 파일을 찾을 수 없습니다!QNAP (0) | 2022.10.28 |
---|---|
Java 스레드가 다른 스레드의 출력을 대기하도록 하려면 어떻게 해야 합니까? (0) | 2022.10.28 |
Python 플롯에 그리드를 그리려면 어떻게 해야 하나요? (0) | 2022.10.28 |
MySQL: Curdate() vs Now() (0) | 2022.10.28 |
TensorFlow에서 Session.run()과 Tensor.eval()의 차이점은 무엇입니까? (0) | 2022.10.28 |