Debian Wheezy에 mysql-server 5.6 설치

Debian Wheezy에 mysql-server 5.6 설치

내 데비안 서버에 지저분한 mysql이 설치되어 있습니다. 찾을 수 있는 mysql 패키지 dpkg --force all --purge packet(mysql-common, mysql-server, mysql-client, phpmyadmin 등)를 사용하여 모든 것을 제거했습니다.

이제 재설치는 쉽지만 다음과 같은 오류 메시지가 나타납니다.

sudo apt-get install mysql-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:
 mysql-server : Depends: mysql-server-5.6 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

나를 괴롭히는 것은 내가 패키지를 들고 있지도 dpkg --get-selections | grep hold않고 아무것도 돌려주지 않는 것 같다는 것입니다.

나는 또한 적성을 시험해 보았습니다.

sudo aptitude install mysql-server
The following NEW packages will be installed:
  libaio1{a} libdbd-mysql-perl{ab} libdbi-perl{ab} libmysqlclient18{a} mysql-client-5.6{a} mysql-client-core-5.6{a} mysql-common{a} mysql-common-5.6{a} mysql-server 
  mysql-server-5.6{a} mysql-server-core-5.6{a} 
0 packages upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 40,6 MB/47,5 MB of archives. After unpacking 155 MB will be used.
The following packages have unmet dependencies:
 libdbd-mysql-perl : Depends: perlapi-5.14.2 which is a virtual package.
 libdbi-perl : Depends: perlapi-5.14.2 which is a virtual package.
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     libdbd-mysql-perl [Not Installed]                  
2)     libdbi-perl [Not Installed]                        
3)     mysql-client-5.6 [Not Installed]                   
4)     mysql-server [Not Installed]                       
5)     mysql-server-5.6 [Not Installed]  

그러나 보시다시피 아무것도 설치되지 않습니다.

지금 막혔고 MySQL 서버를 작동시키는 방법을 찾을 수 없습니다. 어떤 도움이라도 대단히 감사하겠습니다.

답변1

첫 번째 실행:

aptitude -f install

mysql.list그런 다음 파일을 만듭니다 .

 nano /etc/apt/sources.list.d/mysql.list

다음 줄을 추가합니다.

deb http://repo.mysql.com/apt/debian/ wheezy mysql-5.6
deb-src http://repo.mysql.com/apt/debian/ wheezy mysql-5.6

mysql 5.6을 업데이트하고 설치합니다.

apt-get update
apt-get install mysql-server-5.6

관련 정보