Friday, October 16, 2015

Docker-engine install error libdevmapper1.02.1

Author: 

You have Vivid installed, and the necessary package with the required version (2:1.02.99) is in Wily. Therefore use the Vivid version of docker. Edit /etc/apt/sources.list.d/docker.list via
sudo nano /etc/apt/sources.list.d/docker.list
and replace the content with
deb https://apt.dockerproject.org/repo ubuntu-vivid main
and update the package database
sudo apt-get update

It's also possible to install the packages in Vivid
cd
wget http://mirrors.kernel.org/ubuntu/pool/main/l/lvm2/dmsetup_1.02.99-1ubuntu1_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/main/l/lvm2/libdevmapper1.02.1_1.02.99-1ubuntu1_amd64.deb
sudo dpkg -i dmsetup_1.02.99-1ubuntu1_amd64.deb libdevmapper1.02.1_1.02.99-1ubuntu1_amd64.deb
If you have problems with the packages, downgrade via
sudo apt-get install libdevmapper1.02.1=2:1.02.90-2ubuntu1 dmsetup=2:1.02.90-2ubuntu1

Tested in my Vivid system
% apt-cache policy libdevmapper1.02.1 
libdevmapper1.02.1:
  Installed: 2:1.02.99-1ubuntu1
  Candidate: 2:1.02.99-1ubuntu1
  Version table:
 *** 2:1.02.99-1ubuntu1 0
        100 /var/lib/dpkg/status
     2:1.02.90-2ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ vivid/main i386 Packages