DOCKER 설치 오류 - libdevmapper1.02.1 (>= 2:1.02.99)

DOCKER 설치 오류 - libdevmapper1.02.1 (>= 2:1.02.99)

docker설치 절차에 따르면 Ubuntu문제가 발생했습니다.

kp@maas:~$ sudo apt install docker-engine
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:
 docker-engine : Depends: libdevmapper1.02.1 (>= 2:1.02.99) but 2:1.02.90-2ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.

누구든지 같은 문제가 있고 이 문제를 해결하는 방법을 알고 있습니까?

/etc/apt/sources.list.d/docker.list가 정확합니까?

# Ubuntu Precise
deb https://apt.dockerproject.org/repo ubuntu-precise main
# Ubuntu Trusty
deb https://apt.dockerproject.org/repo ubuntu-trusty main
# Ubuntu Vivid
deb https://apt.dockerproject.org/repo ubuntu-vivid main
# Ubuntu Wily
deb https://apt.dockerproject.org/repo ubuntu-wily main

출력 : apt-cache 정책 docker-engine libdevmapper1.02.1

kp@maas:~$ apt-cache policy docker-engine libdevmapper1.02.1
docker-engine:
  Installed: (none)
  Candidate: 1.8.3-0~wily
  Version table:
     1.8.3-0~wily 0
        500 https://apt.dockerproject.org/repo/ ubuntu-wily/main amd64 Packages
     1.8.3-0~vivid 0
        500 https://apt.dockerproject.org/repo/ ubuntu-vivid/main amd64 Packages
     1.8.3-0~trusty 0
        500 https://apt.dockerproject.org/repo/ ubuntu-trusty/main amd64 Package                                        s
     1.8.3-0~precise 0
        500 https://apt.dockerproject.org/repo/ ubuntu-precise/main amd64 Packag                                        es
     1.8.2-0~wily 0
        500 https://apt.dockerproject.org/repo/ ubuntu-wily/main amd64 Packages
     1.8.2-0~vivid 0
        500 https://apt.dockerproject.org/repo/ ubuntu-vivid/main amd64 Packages
     1.8.2-0~trusty 0
        500 https://apt.dockerproject.org/repo/ ubuntu-trusty/main amd64 Package                                        s
     1.8.2-0~precise 0
        500 https://apt.dockerproject.org/repo/ ubuntu-precise/main amd64 Packag                                        es
     1.8.1-0~wily 0
        500 https://apt.dockerproject.org/repo/ ubuntu-wily/main amd64 Packages
     1.8.1-0~vivid 0
        500 https://apt.dockerproject.org/repo/ ubuntu-vivid/main amd64 Packages
     1.8.1-0~trusty 0
        500 https://apt.dockerproject.org/repo/ ubuntu-trusty/main amd64 Package                                        s
     1.8.1-0~precise 0
        500 https://apt.dockerproject.org/repo/ ubuntu-precise/main amd64 Packag                                        es
     1.8.0-0~wily 0
        500 https://apt.dockerproject.org/repo/ ubuntu-wily/main amd64 Packages
     1.8.0-0~vivid 0
        500 https://apt.dockerproject.org/repo/ ubuntu-vivid/main amd64 Packages
     1.8.0-0~trusty 0
        500 https://apt.dockerproject.org/repo/ ubuntu-trusty/main amd64 Package                                        s
     1.8.0-0~precise 0
        500 https://apt.dockerproject.org/repo/ ubuntu-precise/main amd64 Packag                                        es
     1.7.1-0~wily 0
        500 https://apt.dockerproject.org/repo/ ubuntu-wily/main amd64 Packages
     1.7.1-0~vivid 0
        500 https://apt.dockerproject.org/repo/ ubuntu-vivid/main amd64 Packages
     1.7.1-0~trusty 0
        500 https://apt.dockerproject.org/repo/ ubuntu-trusty/main amd64 Package                                        s
     1.7.1-0~precise 0
        500 https://apt.dockerproject.org/repo/ ubuntu-precise/main amd64 Packag                                        es
     1.7.0-0~vivid 0
        500 https://apt.dockerproject.org/repo/ ubuntu-vivid/main amd64 Packages
     1.7.0-0~trusty 0
        500 https://apt.dockerproject.org/repo/ ubuntu-trusty/main amd64 Package                                        s
libdevmapper1.02.1:
  Installed: 2:1.02.90-2ubuntu1
  Candidate: 2:1.02.90-2ubuntu1
  Version table:
 *** 2:1.02.90-2ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
        100 /var/lib/dpkg/status
kp@maas:~$

답변1

다음에 대한 저장소를 추가했습니다.우분투 릴리스. 귀하의 Ubuntu 릴리스는 Vivid입니다. 따라서 다음을 통해 문제를 해결하십시오.

sudo sed -i '/wily/d' /etc/apt/sources.list.d/docker.list
sudo sed -i '/trusty/d' /etc/apt/sources.list.d/docker.list
sudo sed -i '/precise/d' /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt-get install docker-engine

답변2

docker.list에는 Ubuntu 버전 저장소만 있어야 합니다. 제 경우에는 Ubuntu Utopic을 사용하므로 다음과 /etc/apt/sources.list.d/docker.list같습니다.

# Ubuntu Utopic
deb https://apt.dockerproject.org/repo ubuntu-utopic main

답변3

대안은 설치하려는 버전을 지정하는 것입니다.

사용 가능한 모든 목록을 확인하세요.

$ apt-cache policy docker-engine
docker-engine:
  Installed: (none)
  Candidate: 1.12.0-0~wily
  Version table:
     1.12.0-0~wily 0
        500 https://apt.dockerproject.org/repo/ ubuntu-wily/main amd64 Packages
     1.12.0-0~trusty 0
        500 https://apt.dockerproject.org/repo/ ubuntu-trusty/main amd64 Packages
     1.12.0-0~precise 0
        500 https://apt.dockerproject.org/repo/ ubuntu-precise/main amd64 Packages
     1.11.2-0~wily 0
        500 https://apt.dockerproject.org/repo/ ubuntu-wily/main amd64 Packages
     ...

그런 다음 신뢰할 수 있는 우분투에 대한 특정 항목을 설치하려면 다음을 수행하십시오.

sudo apt-get install docker-engine=1.12.0-0~trusty

관련 정보