Tuesday, May 14, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1048  / 2 Years ago, fri, may 6, 2022, 12:25:41

I wanted to install containernet (Mininet) on Ubuntu 20.4 I got this error although I already installed (cgroup-tools)
the command I typed
sudo ansible-playbook -i "localhost," -c local install.yml
the error message


fatal: [localhost]: FAILED! => {"changed": true, "cmd":
"containernet/util/install.sh", "delta": "0:00:05.640086", "end": "2020-09-01 16:09:32.350865", "msg": "non-zero return code", "rc": 100,
"start": "2020-09-01 16:09:26.710779", "stderr": "E: Package 'cgroup-bin'
has no installation candidate", "stderr_lines": ["E: Package 'cgroup-bin'
has no installation candidate"], "stdout": "Detected Linux distribution:
Ubuntu 20.04 focal amd64
python3 is version 3
Installing all packages
except for -eix (doxypy, ivs, nox-classic)...
Install Mininet-compatible
kernel if necessary
Hit:1 http://au.archive.ubuntu.com/ubuntu focal
InRelease
Hit:2 https://download.docker.com/linux/ubuntu focal
InRelease
Hit:3 http://au.archive.ubuntu.com/ubuntu focal-updates
InRelease
Hit:4 http://au.archive.ubuntu.com/ubuntu focal-backports
InRelease
Hit:5 http://security.ubuntu.com/ubuntu focal-security
InRelease
Reading package lists...
Reading package lists...
Building
dependency tree...
Reading state information...
linux-image-5.4.0-42-
generic is already the newest version (5.4.0-42.46).
The following package
was automatically installed and is no longer required:
libfprint-
2-tod1
Use 'sudo apt autoremove' to remove it.
0 to upgrade, 0 to newly
install, 0 to remove and 0 not to upgrade.
Installing Mininet
dependencies
Reading package lists...
Building dependency tree...
Reading
state information...
Package cgroup-bin is not available, but is referred
to by another package.
This may mean that the package is missing, has been
obsoleted, or
is only available from another source
However the following
packages replace it:
cgroup-tools", "stdout_lines": ["Detected Linux
distribution: Ubuntu 20.04 focal amd64", "python3 is version 3", "Installing
all packages except for -eix (doxypy, ivs, nox-classic)...", "Install
Mininet-compatible kernel if necessary", "Hit:1 http://au.archive.ubuntu.com
/ubuntu focal InRelease", "Hit:2 https://download.docker.com/linux/ubuntu
focal InRelease", "Hit:3 http://au.archive.ubuntu.com/ubuntu focal-updates
InRelease", "Hit:4 http://au.archive.ubuntu.com/ubuntu focal-backports
InRelease", "Hit:5 http://security.ubuntu.com/ubuntu focal-security
InRelease", "Reading package lists...", "Reading package lists...",
"Building dependency tree...", "Reading state information...", "linux-image-
5.4.0-42-generic is already the newest version (5.4.0-42.46).", "The
following package was automatically installed and is no longer required:", "
libfprint-2-tod1", "Use 'sudo apt autoremove' to remove it.", "0 to upgrade,
0 to newly install, 0 to remove and 0 not to upgrade.", "Installing Mininet
dependencies", "Reading package lists...", "Building dependency tree...",
"Reading state information...", "Package cgroup-bin is not available, but is
referred to by another package.", "This may mean that the package is
missing, has been obsoleted, or", "is only available from another source",
"However the following packages replace it:", " cgroup-tools"]}

How can I fix it?


More From » 20.04

 Answers
5

I was also facing a similar issue. I think the ansible for containernet is using cgi-bin which is deprecated on its own, its only accessible by cgroup-tools. Its a problem with 20.04.


I would recommend you to work on the docker image as it runs on ubuntu trusty and docker containers are easy to manage.


[#2739] Friday, May 6, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nerta

Total Points: 414
Total Questions: 103
Total Answers: 97

Location: England
Member since Wed, Apr 19, 2023
1 Year ago
nerta questions
Thu, May 12, 22, 16:04, 2 Years ago
Thu, Dec 2, 21, 09:19, 3 Years ago
Thu, May 27, 21, 00:41, 3 Years ago
Sun, Dec 11, 22, 08:33, 1 Year ago
Tue, Sep 28, 21, 16:37, 3 Years ago
;