mysql-server-5.5 apt-get이 실행될 때마다 충족되지 않은 종속성

mysql-server-5.5 apt-get이 실행될 때마다 충족되지 않은 종속성

"sudo apt-get install package-name"을 실행할 때마다 mysql 외에 다른 패키지를 설치하려고 해도 다음 오류가 발생합니다.

You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 mysql-server-5.5 : Depends: mysql-server-core-5.5 (= 5.5.44-0ubuntu0.12.04.1) but 5.5.46-0ubuntu0.12.04.2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

예: mysql-5.5.44를 다운로드하고 "cmake ."를 실행하여 설치하려고 하면 cmake가 아직 설치되지 않았다는 메시지가 나타납니다. "sudo apt-get install cmake"를 실행하면 다음 오류가 발생합니다.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 cmake : Depends: libxmlrpc-core-c3 but it is not going to be installed
         Depends: cmake-data (= 2.8.7-0ubuntu5) but it is not going to be installed
 mysql-server-5.5 : Depends: mysql-server-core-5.5 (= 5.5.44-0ubuntu0.12.04.1) but 5.5.46-0ubuntu0.12.04.2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

고쳐 쓰다

이 사이트에서 비슷한 질문을 많이 찾았지만 여전히 문제가 있습니다. 내 소스 목록:

# deb cdrom:[Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release amd64 (20130213)]/ dists/precise/main/binary-i386/

# deb cdrom:[Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release amd64 (20130213)]/ dists/precise/restricted/binary-i386/
# deb cdrom:[Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release amd64 (20130213)]/ precise main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ca.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu/ precise main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ca.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu/ precise-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ca.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://ca.archive.ubuntu.com/ubuntu/ precise universe
deb http://ca.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://ca.archive.ubuntu.com/ubuntu/ precise-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ca.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ precise-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.

deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu precise partner
# deb-src http://archive.canonical.com/ubuntu precise partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main
deb http://ubunturepo.internal/orgname precise/devgroup/devel main
deb http://archive.canonical.com/ precise partner
deb-src http://archive.canonical.com/ precise partner

출력 실행: apt-cache 정책 cmake libxmlrpc-core-c3 cmake-data mysql-server-5.5 mysql-server-core-5.5

cmake:
  Installed: (none)
  Candidate: 2.8.7-0ubuntu5
  Version table:
     2.8.7-0ubuntu5 0
        500 http://ca.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
     2.8.7-0ubuntu4 0
        500 http://ca.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
libxmlrpc-core-c3:
  Installed: (none)
  Candidate: 1.16.33-3.1ubuntu5.1
  Version table:
     1.16.33-3.1ubuntu5.1 0
        500 http://ca.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
     1.16.33-3.1ubuntu5 0
        500 http://ca.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
cmake-data:
  Installed: (none)
  Candidate: 2.8.7-0ubuntu5
  Version table:
     2.8.7-0ubuntu5 0
        500 http://ca.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
     2.8.7-0ubuntu4 0
        500 http://ca.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
mysql-server-5.5:
  Installed: 5.5.44-0ubuntu0.12.04.1
  Candidate: 5.5.46-0ubuntu0.12.04.2
  Version table:
     5.5.46-0ubuntu0.12.04.2 0
        500 http://ca.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
 *** 5.5.44-0ubuntu0.12.04.1 0
        100 /var/lib/dpkg/status
     5.5.22-0ubuntu1 0
        500 http://ca.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
mysql-server-core-5.5:
  Installed: 5.5.46-0ubuntu0.12.04.2
  Candidate: 5.5.46-0ubuntu0.12.04.2
  Version table:
 *** 5.5.46-0ubuntu0.12.04.2 0
        500 http://ca.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
        100 /var/lib/dpkg/status
     5.5.22-0ubuntu1 0
        500 http://ca.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

고쳐 쓰다 source.list에 다음을 추가했습니다.

deb http://ca.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
deb-src http://ca.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
deb http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
deb-src http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages

그런 다음 apt-get 업데이트를 실행하십시오. 오류는 다음과 같습니다

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/main/amd64/source/Sources  404  Not Found [IP: 91.189.91.13 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/main/Packages/source/Sources  404  Not Found [IP: 91.189.91.13 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/main/amd64/binary-amd64/Packages  404  Not Found [IP: 91.189.91.13 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/main/Packages/binary-amd64/Packages  404  Not Found [IP: 91.189.91.13 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/main/amd64/binary-i386/Packages  404  Not Found [IP: 91.189.91.13 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/main/Packages/binary-i386/Packages  404  Not Found [IP: 91.189.91.13 80]

W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/precise-updates/main/amd64/source/Sources  404  Not Found [IP: 91.189.91.14 80]

W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/precise-updates/main/Packages/source/Sources  404  Not Found [IP: 91.189.91.14 80]

W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/precise-updates/main/amd64/binary-amd64/Packages  404  Not Found [IP: 91.189.91.14 80]

W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/precise-updates/main/Packages/binary-amd64/Packages  404  Not Found [IP: 91.189.91.14 80]

W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/precise-updates/main/amd64/binary-i386/Packages  404  Not Found [IP: 91.189.91.14 80]

W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/precise-updates/main/Packages/binary-i386/Packages  404  Not Found [IP: 91.189.91.14 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.

답변1

일반적으로 첫 번째 단계는 다음과 같습니다.

 sudo apt-get install mysql-server=5.5.46-0ubuntu0.12.04.2 mysql-server-5.5=5.5.46-0ubuntu0.12.04.2

하지만 그건 당신의 경우가 아니니까

apt-get download mysql-server mysql-server-5.5
sudo dpkg -i --force-all mysql-server*.deb

관련 정보