Containerd.io depends libseccomp2

Docker_Tips

When I try to install docker containerd.io_1.3.7-1_amd64.deb, I encountered dependency error that libseccomp2 required is >=2.4.0 however version 2.3.1.2.1ubuntu4 is found on the system.

$ sudo dpkg -i /tmp/containerd.io_1.3.7-1_amd64.deb
(Reading database … 66939 files and directories currently installed.)
Preparing to unpack …/containerd.io_1.3.7-1_amd64.deb …
Unpacking containerd.io (1.3.7-1) over (1.3.7-1) …
dpkg: dependency problems prevent configuration of containerd.io:
containerd.io depends on libseccomp2 (>= 2.4.0); however:
Version of libseccomp2:amd64 on system is 2.3.1-2.1ubuntu4.

dpkg: error processing package containerd.io (–install):
dependency problems – leaving unconfigured
Processing triggers for man-db (2.8.3-2ubuntu0.1) …
Errors were encountered while processing:
containerd.io

To upgrade libseccomp2 depedency, follow these steps

$ sudo add-apt-repository ppa:ubuntu-sdk-team/ppa

$ sudo apt-get update

$ sudo apt-get install build-essential

$ sudo apt –fix-broken install

Now you can successfully install containerd.

Here are my steps of successful installation.

All in One WordPress Hosting Starts at 30$ per month
All in One WordPress Hosting
WordPress
High optimized WordPress hosting, secure firewall, HTTPS, Backup, hack-fix guarantee and many others at 30$ per month

$ sudo dpkg -i /tmp/docker-ce-cli_19.03.9_3-0_ubuntu-bionic_amd64.deb
Selecting previously unselected package docker-ce-cli.
(Reading database … 66723 files and directories currently installed.)
Preparing to unpack …/docker-ce-cli_19.03.9_3-0_ubuntu-bionic_amd64.deb …
Unpacking docker-ce-cli (5:19.03.9~3-0~ubuntu-bionic) …
Setting up docker-ce-cli (5:19.03.9~3-0~ubuntu-bionic) …
Processing triggers for man-db (2.8.3-2ubuntu0.1) …

$ sudo dpkg -i /tmp/docker-ce_19.03.9_3-0_ubuntu-bionic_amd64.deb
(Reading database … 66939 files and directories currently installed.)
Preparing to unpack …/docker-ce_19.03.9_3-0_ubuntu-bionic_amd64.deb …
Unpacking docker-ce (5:19.03.9~3-0~ubuntu-bionic) over (5:19.03.9~3-0~ubuntu-bionic) …
dpkg: dependency problems prevent configuration of docker-ce:
docker-ce depends on containerd.io (>= 1.2.2-3); however:
Package containerd.io is not configured yet.

dpkg: error processing package docker-ce (–install):
dependency problems – leaving unconfigured
Processing triggers for ureadahead (0.100.0-20) …
Processing triggers for systemd (237-3ubuntu10.12) …
Errors were encountered while processing:
docker-ce

$ sudo dpkg -i /tmp/containerd.io_1.3.7-1_amd64.deb
(Reading database … 66939 files and directories currently installed.)
Preparing to unpack …/containerd.io_1.3.7-1_amd64.deb …
Unpacking containerd.io (1.3.7-1) over (1.3.7-1) …
dpkg: dependency problems prevent configuration of containerd.io:
containerd.io depends on libseccomp2 (>= 2.4.0); however:
Version of libseccomp2:amd64 on system is 2.3.1-2.1ubuntu4.

dpkg: error processing package containerd.io (–install):
dependency problems – leaving unconfigured
Processing triggers for man-db (2.8.3-2ubuntu0.1) …
Errors were encountered while processing:
containerd.io

In order to resolve libseccomp2 version issue, follow steps as below:

$ sudo add-apt-repository ppa:ubuntu-sdk-team/ppa
Ubuntu SDK Release PPA for Ubuntu 14.04 LTS, 16.04 LTS and 16.10.

Install SDK with:

sudo add-apt-repository ppa:ubuntu-sdk-team/ppa && sudo apt update && sudo apt dist-upgrade && sudo apt install ubuntu-sdk-ide

Ubuntu 15.04 and 15.10 have reached end of support, please upgrade to 16.04 LTS as soon as possible.

== Older Ubuntu SDK ==

The old style SDK with the name “ubuntu-sdk” is no longer in use. This PPA offers the new self-contained SDK “ubuntu-sdk-ide”, and the old SDK package is no longer included atall in Ubuntu 16.10 and newer. The ubuntu-sdk version in 16.04/14.04 is outdated so ubuntu-sdk-ide from this PPA should always be used instead.

Old Ubuntu 12.04 LTS Qt 5.0 packages have been moved to https://launchpad.net/~canonical-qt5-edgers/+archive/ubuntu/ubuntu1204-qt5/
More info: https://launchpad.net/~ubuntu-sdk-team/+archive/ubuntu/ppa
Press [ENTER] to continue or Ctrl-c to cancel adding it.

Ign:1 http://ppa.launchpad.net/ubuntu-sdk-team/ppa/ubuntu bionic InRelease
Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Err:4 http://ppa.launchpad.net/ubuntu-sdk-team/ppa/ubuntu bionic Release
404 Not Found [IP: 91.189.95.83 80]
Get:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [9,184 B]
Get:8 http://archive.ubuntu.com/ubuntu bionic/restricted Translation-en [3,584 B]
Get:9 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8,570 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic/universe Translation-en [4,941 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic/multiverse Translation-en [108 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [1,769 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [373 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [199 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [26.9 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1,693 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [356 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [36.1 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [7,308 B]
Get:21 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [10.0 kB]
Get:22 http://archive.ubuntu.com/ubuntu bionic-backports/main Translation-en [4,764 B]
Get:23 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [10.3 kB]
Get:24 http://archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en [4,588 B]
Get:25 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1,425 kB]
Get:26 http://archive.ubuntu.com/ubuntu bionic-security/main Translation-en [280 kB]
Get:27 http://archive.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [173 kB]
Get:28 http://archive.ubuntu.com/ubuntu bionic-security/restricted Translation-en [22.7 kB]
Get:29 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1,089 kB]
Get:30 http://archive.ubuntu.com/ubuntu bionic-security/universe Translation-en [243 kB]
Get:31 http://archive.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [13.3 kB]
Get:32 http://archive.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [2,996 B]
Reading package lists… Done
E: The repository ‘http://ppa.launchpad.net/ubuntu-sdk-team/ppa/ubuntu bionic Release’ does not have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

$ sudo apt-get update
Ign:1 http://ppa.launchpad.net/ubuntu-sdk-team/ppa/ubuntu bionic InRelease
Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease
Err:3 http://ppa.launchpad.net/ubuntu-sdk-team/ppa/ubuntu bionic Release
404 Not Found [IP: 91.189.95.83 80]
Hit:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:6 http://archive.ubuntu.com/ubuntu bionic-security InRelease
Reading package lists… Done
E: The repository ‘http://ppa.launchpad.net/ubuntu-sdk-team/ppa/ubuntu bionic Release’ does not have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

$ sudo apt-get install build-essential
Reading package lists… Done
Building dependency tree
Reading state information… Done
You might want to run ‘apt –fix-broken install’ to correct these.
The following packages have unmet dependencies:
build-essential : Depends: libc6-dev but it is not going to be installed or
libc-dev
Depends: gcc (>= 4:7.2) but it is not going to be installed
Depends: g++ (>= 4:7.2) but it is not going to be installed
Depends: make
Depends: dpkg-dev (>= 1.17.11) but it is not going to be installed
containerd.io : Depends: libseccomp2 (>= 2.4.0) but 2.3.1-2.1ubuntu4 is to be installed
E: Unmet dependencies. Try ‘apt –fix-broken install’ with no packages (or specify a solution).

$ sudo apt –fix-broken install
Reading package lists… Done
Building dependency tree
Reading state information… Done
Correcting dependencies… Done
The following additional packages will be installed:
libseccomp2
The following packages will be upgraded:
libseccomp2
1 upgraded, 0 newly installed, 0 to remove and 245 not upgraded.
2 not fully installed or removed.
Need to get 42.0 kB of archives.
After this operation, 29.7 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libseccomp2 amd64 2.4.3-1ubuntu3.18.04.3 [42.0 kB]
Fetched 42.0 kB in 1s (59.1 kB/s)
(Reading database … 66939 files and directories currently installed.)
Preparing to unpack …/libseccomp2_2.4.3-1ubuntu3.18.04.3_amd64.deb …
Unpacking libseccomp2:amd64 (2.4.3-1ubuntu3.18.04.3) over (2.3.1-2.1ubuntu4) …
Setting up libseccomp2:amd64 (2.4.3-1ubuntu3.18.04.3) …
Setting up containerd.io (1.3.7-1) …
Created symlink /etc/systemd/system/multi-user.target.wants/containerd.service → /lib/systemd/system/containerd.service.
Processing triggers for libc-bin (2.27-3ubuntu1) …
Setting up docker-ce (5:19.03.9~3-0~ubuntu-bionic) …
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /lib/systemd/system/docker.service.
Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /lib/systemd/system/docker.socket.
Processing triggers for ureadahead (0.100.0-20) …
Processing triggers for systemd (237-3ubuntu10.12) …

$ sudo dpkg -i /tmp/containerd.io_1.3.7-1_amd64.deb
(Reading database … 66939 files and directories currently installed.)
Preparing to unpack …/containerd.io_1.3.7-1_amd64.deb …
Unpacking containerd.io (1.3.7-1) over (1.3.7-1) …
Setting up containerd.io (1.3.7-1) …
Processing triggers for man-db (2.8.3-2ubuntu0.1) …

$ sudo dpkg -i /tmp/docker-ce_19.03.9_3-0_ubuntu-bionic_amd64.deb
(Reading database … 66939 files and directories currently installed.)
Preparing to unpack …/docker-ce_19.03.9_3-0_ubuntu-bionic_amd64.deb …
Warning: Stopping docker.service, but it can still be activated by:
docker.socket
Unpacking docker-ce (5:19.03.9~3-0~ubuntu-bionic) over (5:19.03.9~3-0~ubuntu-bionic) …
Setting up docker-ce (5:19.03.9~3-0~ubuntu-bionic) …
Processing triggers for ureadahead (0.100.0-20) …
Processing triggers for systemd (237-3ubuntu10.12) …