wazuh-packages icon indicating copy to clipboard operation
wazuh-packages copied to clipboard

Dependencies unification: research documentation and agent deployment screen from Wazuh dashboard

Open alberpilot opened this issue 2 years ago • 9 comments

The documentation describes the necessary steps to install a Wazuh agent. We need to determine:

  • All software needed by Wazuh itself to work. Example: https://github.com/wazuh/wazuh-packages/blob/53f63815426af76ed3e978560663818671b58127/debs/SPECS/wazuh-agent/debian/control#L11 https://github.com/wazuh/wazuh-packages/blob/53f63815426af76ed3e978560663818671b58127/rpms/SPECS/wazuh-agent.spec#L12-L14
  • All software is needed by adding a repository (yum or apt) like apt-key, gnupg, etc.
  • Determine what changes are necessary for the documentation
  • Determine what changes are necessary for the agent deployment screen from the Wazuh dashboard.

alberpilot avatar Jun 06 '22 14:06 alberpilot

Update

Packages needed

  • RPM

    • /sbin/service -> initscripts
    • /usr/sbin/groupadd /usr/sbin/useradd -> shadow-utils
  • DEB

    • libc6 (>= 2.7)
    • lsb-release
    • debconf
    • adduser
root@b32465d27643:/# curl -so wazuh-agent-4.3.7.deb https://packages.wazuh.com/4.x/apt/pool/main/w/wazuh-agent/wazuh-agent_4.3.7-1_amd64.deb &&  WAZUH_MANAGER='18.191.177.132' dpkg -i ./wazuh-agent-4.3.7.deb
Selecting previously unselected package wazuh-agent.
(Reading database ... 5283 files and directories currently installed.)
Preparing to unpack ./wazuh-agent-4.3.7.deb ...
Unpacking wazuh-agent (4.3.7-1) ...
dpkg: dependency problems prevent configuration of wazuh-agent:
 wazuh-agent depends on lsb-release; however:
  Package lsb-release is not installed.

dpkg: error processing package wazuh-agent (--install):
 dependency problems - leaving unconfigured
Processing triggers for systemd (229-4ubuntu21.31) ...
Errors were encountered while processing:
 wazuh-agent

Binaries

  • RPM
    • mkdir
    • cp
    • groupadd
    • useradd
    • systemctl
    • touch
    • grep
    • echo
    • sed
    • pgrep
    • kill
    • chmod
    • chown
    • chkconfig
    • getent
    • find
    • userdel
    • groupdel
  • DEB
    • mkdir
    • rm
    • service
    • systemctl
    • mv
    • touch
    • cp
    • grep
    • pgrep
    • kill
    • getent
    • addgruop
    • adduser
    • base64
    • chmod
    • chown
    • find
    • deluser
    • delgroup

miguelfdez99 avatar Sep 09 '22 12:09 miguelfdez99

Update report - DEB

Installing lsb-release in the agent package

In the documentation, the installation uses apt-get whereas the Wazuh dashboard uses dpkg -i

lsb-releaseis not installed in the systems.

OS Version apt-get dpkg -i
Ubuntu 22 🟢 🔴
Ubuntu 20 🟢 🔴
Ubuntu 18 🟢 🔴
Ubuntu 16 🟢 🔴
Ubuntu 14 🔴 🔴
Debian 11 🟢 🔴
Debian 10 🟢 🔴
Debian 9 🟢 🔴
Debian 8 🔴 🔴
Debian 7 🔴 🔴
Ubuntu 22
root@ubuntu2204:/home/vagrant# WAZUH_MANAGER="3.22.116.15" apt-get install ./wazuh-agent_4.4.0-1_amd64.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'wazuh-agent' instead of './wazuh-agent_4.4.0-1_amd64.deb'
The following packages were automatically installed and are no longer required:
  apport-symptoms bc gir1.2-packagekitglib-1.0 libappstream4 libdw1
  libglib2.0-bin libgstreamer1.0-0 libmspack0 libpackagekit-glib2-18
  libstemmer0d libxmlsec1 libxmlsec1-openssl libxslt1.1 packagekit
  packagekit-tools python3-attr python3-automat python3-bcrypt python3-blinker
  python3-cffi-backend python3-chardet python3-configobj python3-constantly
  python3-cryptography python3-debconf python3-debian python3-distro-info
  python3-gdbm python3-hamcrest python3-httplib2 python3-hyperlink
  python3-idna python3-incremental python3-jeepney python3-jwt python3-keyring
  python3-lazr.uri python3-oauthlib python3-openssl python3-problem-report
  python3-pyasn1 python3-pyasn1-modules python3-pyparsing
  python3-secretstorage python3-serial python3-service-identity python3-six
  python3-systemd python3-twisted python3-wadllib python3-zope.interface
  zerofree
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  lsb-release
The following NEW packages will be installed:
  lsb-release wazuh-agent
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 10.8 kB/9,015 kB of archives.
After this operation, 30.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 /home/vagrant/wazuh-agent_4.4.0-1_amd64.deb wazuh-agent amd64 4.4.0-1 [9,005 kB]
Get:2 https://mirrors.edge.kernel.org/ubuntu jammy/main amd64 lsb-release all 11.1.0ubuntu4 [10.8 kB]
Fetched 10.8 kB in 2s (5,658 B/s)                         
Preconfiguring packages ...
Selecting previously unselected package lsb-release.
(Reading database ... 74320 files and directories currently installed.)
Preparing to unpack .../lsb-release_11.1.0ubuntu4_all.deb ...
Unpacking lsb-release (11.1.0ubuntu4) ...
Selecting previously unselected package wazuh-agent.
Preparing to unpack .../wazuh-agent_4.4.0-1_amd64.deb ...
Unpacking wazuh-agent (4.4.0-1) ...
Setting up lsb-release (11.1.0ubuntu4) ...
Setting up wazuh-agent (4.4.0-1) ...
Processing triggers for man-db (2.10.2-1) ...
Scanning processes...                                                           
Scanning linux images...                                                        

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
N: Download is performed unsandboxed as root as file '/home/vagrant/wazuh-agent_4.4.0-1_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
Ubuntu 20
root@ubuntu2004:/home/vagrant# WAZUH_MANAGER="3.22.116.15" apt-get install ./wazuh-agent_4.4.0-1_amd64.deb 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'wazuh-agent' instead of './wazuh-agent_4.4.0-1_amd64.deb'
The following package was automatically installed and is no longer required:
  libdw1
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  lsb-release
The following NEW packages will be installed:
  lsb-release wazuh-agent
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/9,015 kB of archives.
After this operation, 30.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 /home/vagrant/wazuh-agent_4.4.0-1_amd64.deb wazuh-agent amd64 4.4.0-1 [9,005 kB]
Preconfiguring packages ...
Selecting previously unselected package lsb-release.
(Reading database ... 110748 files and directories currently installed.)
Preparing to unpack .../lsb-release_11.1.0ubuntu2_all.deb ...
Unpacking lsb-release (11.1.0ubuntu2) ...
Preparing to unpack .../wazuh-agent_4.4.0-1_amd64.deb ...
Unpacking wazuh-agent (4.4.0-1) ...
Setting up lsb-release (11.1.0ubuntu2) ...
Setting up wazuh-agent (4.4.0-1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for systemd (245.4-4ubuntu3.17) ...
Ubuntu 18
root@ubuntu1804:/home/vagrant# WAZUH_MANAGER="3.22.116.15" apt-get install ./wazuh-agent_4.4.0-1_amd64.deb 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'wazuh-agent' instead of './wazuh-agent_4.4.0-1_amd64.deb'
The following package was automatically installed and is no longer required:
  libdw1
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  lsb-release
Suggested packages:
  lsb
The following NEW packages will be installed:
  lsb-release wazuh-agent
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 11.0 kB/9,016 kB of archives.
After this operation, 30.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 /home/vagrant/wazuh-agent_4.4.0-1_amd64.deb wazuh-agent amd64 4.4.0-1 [9,005 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 lsb-release all 9.20170808ubuntu1 [11.0 kB]
Fetched 11.0 kB in 2s (6,089 B/s)                     
Preconfiguring packages ...
Selecting previously unselected package lsb-release.
(Reading database ... 105140 files and directories currently installed.)
Preparing to unpack .../lsb-release_9.20170808ubuntu1_all.deb ...
Unpacking lsb-release (9.20170808ubuntu1) ...
Selecting previously unselected package wazuh-agent.
Preparing to unpack .../wazuh-agent_4.4.0-1_amd64.deb ...
Unpacking wazuh-agent (4.4.0-1) ...
Setting up lsb-release (9.20170808ubuntu1) ...
Setting up wazuh-agent (4.4.0-1) ...
Processing triggers for systemd (237-3ubuntu10.53) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for ureadahead (0.100.0-21) ...
Ubuntu 16
root@ubuntu1604:/home/vagrant# WAZUH_MANAGER="3.22.116.15" apt-get install ./wazuh-agent_4.4.0-1_amd64.deb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'wazuh-agent' instead of './wazuh-agent_4.4.0-1_amd64.deb'
The following packages were automatically installed and are no longer required:
  libdw1 libunwind8 python3-distro-info
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  lsb-release
Suggested packages:
  lsb
The following NEW packages will be installed:
  lsb-release wazuh-agent
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 11.8 kB/9,016 kB of archives.
After this operation, 30.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 /home/vagrant/wazuh-agent_4.4.0-1_amd64.deb wazuh-agent amd64 4.4.0-1 [9,005 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 lsb-release all 9.20160110ubuntu0.2 [11.8 kB]
Fetched 11.8 kB in 0s (15.0 kB/s)                     
Preconfiguring packages ...
Selecting previously unselected package lsb-release.
(Reading database ... 96488 files and directories currently installed.)
Preparing to unpack .../lsb-release_9.20160110ubuntu0.2_all.deb ...
Unpacking lsb-release (9.20160110ubuntu0.2) ...
Selecting previously unselected package wazuh-agent.
Preparing to unpack .../wazuh-agent_4.4.0-1_amd64.deb ...
Unpacking wazuh-agent (4.4.0-1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu21.31) ...
Processing triggers for ureadahead (0.100.0-19.1) ...
Setting up lsb-release (9.20160110ubuntu0.2) ...
Setting up wazuh-agent (4.4.0-1) ...
Processing triggers for systemd (229-4ubuntu21.31) ...
Processing triggers for ureadahead (0.100.0-19.1) ...
Ubuntu 14
root@5396a8b69eb3:/home# WAZUH_MANAGER="3.22.116.15" apt-get install ./wazuh-agent_4.4.0-1_amd64.deb
....
E: Release 'wazuh-agent_4.4.0-1_amd64.deb' for 'nvidia-opencl-icd-331-updates' was not found
E: Release 'wazuh-agent_4.4.0-1_amd64.deb' for 'nvidia-current' was not found
E: Release 'wazuh-agent_4.4.0-1_amd64.deb' for 'nvidia-current-dev' was not found
E: Release 'wazuh-agent_4.4.0-1_amd64.deb' for 'nvidia-current-updates' was not found
E: Release 'wazuh-agent_4.4.0-1_amd64.deb' for 'nvidia-current-updates-dev' was not found
E: Release 'wazuh-agent_4.4.0-1_amd64.deb' for 'nvidia-experimental-304' was not found
E: Release 'wazuh-agent_4.4.0-1_amd64.deb' for 'nvidia-experimental-304-dev' was not found
E: Release 'wazuh-agent_4.4.0-1_amd64.deb' for 'nvidia-experimental-310' was not found
E: Release 'wazuh-agent_4.4.0-1_amd64.deb' for 'nvidia-experimental-310-dev' was not found
E: Release 'wazuh-agent_4.4.0-1_amd64.deb' for 'opencl-icd' was not found
E: Release 'wazuh-agent_4.4.0-1_amd64.deb' for 'wazuh-agent' was not found
E: Release 'wazuh-agent_4.4.0-1_amd64.deb' for 'gnat-4.6-base' was not found
E: Release 'wazuh-agent_4.4.0-1_amd64.deb' for 'python3.4-venv' was not found
E: Release 'wazuh-agent_4.4.0-1_amd64.deb' for 'ubuntu-advantage-tools' was not found
E: Release 'wazuh-agent_4.4.0-1_amd64.deb' for 'mac-fdisk' was not found
E: Release 'wazuh-agent_4.4.0-1_amd64.deb' for 'pmac-fdisk' was not found
Debian 11
root@bullseye:/home/vagrant# apt-get install ./wazuh-agent_4.4.0-1_amd64.deb 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'wazuh-agent' instead of './wazuh-agent_4.4.0-1_amd64.deb'
The following packages were automatically installed and are no longer required:
  python3-dbus python3-distro-info
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  lsb-release
The following NEW packages will be installed:
  lsb-release wazuh-agent
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 27.9 kB/9032 kB of archives.
After this operation, 30.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 /home/vagrant/wazuh-agent_4.4.0-1_amd64.deb wazuh-agent amd64 4.4.0-1 [9005 kB]
Get:2 https://deb.debian.org/debian bullseye/main amd64 lsb-release all 11.1.0 [27.9 kB]
Fetched 27.9 kB in 0s (157 kB/s)                          
Preconfiguring packages ...
Selecting previously unselected package lsb-release.
(Reading database ... 25211 files and directories currently installed.)
Preparing to unpack .../lsb-release_11.1.0_all.deb ...
Unpacking lsb-release (11.1.0) ...
Selecting previously unselected package wazuh-agent.
Preparing to unpack .../wazuh-agent_4.4.0-1_amd64.deb ...
Unpacking wazuh-agent (4.4.0-1) ...
Setting up lsb-release (11.1.0) ...
Setting up wazuh-agent (4.4.0-1) ...
Processing triggers for man-db (2.9.4-2) ...

root@bullseye:/home/vagrant# dpkg -i ./wazuh-agent_4.4.0-1_amd64.deb 
Selecting previously unselected package wazuh-agent.
(Reading database ... 25211 files and directories currently installed.)
Preparing to unpack .../wazuh-agent_4.4.0-1_amd64.deb ...
dpkg: error processing archive ./wazuh-agent_4.4.0-1_amd64.deb (--install):
 new wazuh-agent package pre-installation script subprocess returned error exit status 100
Errors were encountered while processing:
 ./wazuh-agent_4.4.0-1_amd64.deb
Debian 10
root@buster:/home/vagrant# dpkg -i ./wazuh-agent_4.4.0-1_amd64.deb
Selecting previously unselected package wazuh-agent.
(Reading database ... 27072 files and directories currently installed.)
Preparing to unpack .../wazuh-agent_4.4.0-1_amd64.deb ...
dpkg: error processing archive ./wazuh-agent_4.4.0-1_amd64.deb (--install):
 new wazuh-agent package pre-installation script subprocess returned error exit status 100
Errors were encountered while processing:
 ./wazuh-agent_4.4.0-1_amd64.deb
root@buster:/home/vagrant# apt-get install ./wazuh-agent_4.4.0-1_amd64.deb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'wazuh-agent' instead of './wazuh-agent_4.4.0-1_amd64.deb'
The following packages were automatically installed and are no longer required:
  python3-dbus python3-distro-info
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  lsb-release
Suggested packages:
  lsb
The following NEW packages will be installed:
  lsb-release wazuh-agent
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/9032 kB of archives.
After this operation, 30.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 /home/vagrant/wazuh-agent_4.4.0-1_amd64.deb wazuh-agent amd64 4.4.0-1 [9005 kB]
Preconfiguring packages ...       
Selecting previously unselected package lsb-release.
(Reading database ... 27072 files and directories currently installed.)
Preparing to unpack .../lsb-release_10.2019051400_all.deb ...
Unpacking lsb-release (10.2019051400) ...
Preparing to unpack .../wazuh-agent_4.4.0-1_amd64.deb ...
Unpacking wazuh-agent (4.4.0-1) ...
Setting up lsb-release (10.2019051400) ...
Setting up wazuh-agent (4.4.0-1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for systemd (241-7~deb10u8) ...
Debian 9
root@debian9:/home/vagrant# apt-get install ./wazuh-agent_4.4.0-1_amd64.deb 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'wazuh-agent' instead of './wazuh-agent_4.4.0-1_amd64.deb'
The following additional packages will be installed:
  lsb-release
Suggested packages:
  lsb
The following NEW packages will be installed:
  lsb-release wazuh-agent
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 27.1 kB/9,032 kB of archives.
After this operation, 30.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 /home/vagrant/wazuh-agent_4.4.0-1_amd64.deb wazuh-agent amd64 4.4.0-1 [9,005 kB]
Get:2 http://ftp.us.debian.org/debian stretch/main amd64 lsb-release all 9.20161125 [27.1 kB]
Fetched 27.1 kB in 1s (21.9 kB/s)                    
Preconfiguring packages ...
Selecting previously unselected package lsb-release.
(Reading database ... 46218 files and directories currently installed.)
Preparing to unpack .../lsb-release_9.20161125_all.deb ...
Unpacking lsb-release (9.20161125) ...
Preparing to unpack .../wazuh-agent_4.4.0-1_amd64.deb ...
Unpacking wazuh-agent (4.4.0-1) ...
Setting up lsb-release (9.20161125) ...
Processing triggers for systemd (232-25+deb9u14) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up wazuh-agent (4.4.0-1) ...
Processing triggers for systemd (232-25+deb9u14) ...
Debian 8
root@debian8:/home/vagrant# dpkg -i ./wazuh-agent_4.4.0-1_amd64.deb
(Reading database ... 46036 files and directories currently installed.)
Preparing to unpack .../wazuh-agent_4.4.0-1_amd64.deb ...
dpkg: error processing archive ./wazuh-agent_4.4.0-1_amd64.deb (--install):
 subprocess new pre-installation script returned error exit status 100
Errors were encountered while processing:
 ./wazuh-agent_4.4.0-1_amd64.deb
root@debian8:/home/vagrant# apt install ./wazuh-agent_4.4.0-1_amd64.deb
...

E: Release 'wazuh-agent_4.4.0-1_amd64.deb' for 'thunderbird-l10n-cy' was not found
E: Release 'wazuh-agent_4.4.0-1_amd64.deb' for 'lightning-l10n-kk' was not found
E: Release 'wazuh-agent_4.4.0-1_amd64.deb' for 'thunderbird-l10n-kk' was not found
E: Release 'wazuh-agent_4.4.0-1_amd64.deb' for 'lightning-l10n-ms' was not found
E: Release 'wazuh-agent_4.4.0-1_amd64.deb' for 'thunderbird-l10n-ms' was not found
E: Release 'wazuh-agent_4.4.0-1_amd64.deb' for 'birdtray' was not found
E: Release 'wazuh-agent_4.4.0-1_amd64.deb' for 'calendar-exchange-provider' was not found
E: Release 'wazuh-agent_4.4.0-1_amd64.deb' for 'jsunit' was not found
E: Release 'wazuh-agent_4.4.0-1_amd64.deb' for 'xul-ext-exteditor' was not found
E: Release 'wazuh-agent_4.4.0-1_amd64.deb' for 'waagent' was not found
E: Release 'wazuh-agent_4.4.0-1_amd64.deb' for 'walinuxagent' was not found
E: Release 'wazuh-agent_4.4.0-1_amd64.deb' for 'wazuh-agent' was not found

miguelfdez99 avatar Sep 13 '22 09:09 miguelfdez99

Update report - RPM

The rpm agent only has these dependencies:

 Requires(pre):    /usr/sbin/groupadd /usr/sbin/useradd 
 Requires(preun):  /sbin/service 
 Requires(postun): /sbin/service 

The /usr/sbin/groupadd and /usr/sbin/useradd these services are in the shadow-utils package.

sbin/service can be installed with the package initscripts

[root@72028e1fef40 home]# rpm -i wazuh-agent-4.4.0-1.x86_64.rpm 
error: Failed dependencies:
	/sbin/service is needed by wazuh-agent-4.4.0-1.x86_64

After installing initscripts:

[root@72028e1fef40 home]# rpm -i wazuh-agent-4.4.0-1.x86_64.rpm 
[root@72028e1fef40 home]# 
OS Version yum install rpm -i rpm -i (initscripts installed)
Red Hat 9 🟢 🔴 🟢
Red Hat 8 🟢 🔴 🟢
Red Hat 7 🔴 🔴 🟢
Red Hat 6 🔴 🔴 🟢
CentOS 8 🟢 🔴 🟢
CentOS 7 🟢 🔴 🟢
CentOS 6 🟢 🔴 🟢
Amazon Linux 2 🟢 🔴 🟢

miguelfdez99 avatar Sep 13 '22 11:09 miguelfdez99

Update report

The dependencies libc6, debconf and adduser are very important in Debian-based systems. They are installed by default and if they are removed a lot of other important dependencies will be also removed.

Removing adduser

Ubuntu 22
Docker
root@696c8c4fe78b:/# apt-get remove adduser
Reading package lists... Done
Building dependency tree... Done
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:
 apt : Depends: adduser but it is not going to be installed
       Recommends: ca-certificates but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

VM
root@ubuntu2204:/home/vagrant# apt-get remove adduser
Reading package lists... Done
Building dependency tree... Done
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:
 apt : Depends: adduser but it is not going to be installed
 init : PreDepends: systemd-sysv but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Ubuntu 20
Docker
root@865dad855b42:/# apt-get remove adduser
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  adduser apt
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt)
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 4947 kB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] Yes, do as I say!
(Reading database ... 4126 files and directories currently installed.)
Removing apt (2.0.9) ...
Removing adduser (3.118ubuntu2) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
root@865dad855b42:/# apt-get install adduser
bash: /usr/bin/apt-get: No such file or directory
VM
root@ubuntu2004:/home/vagrant# apt-get remove adduser
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  laptop-detect libatasmart4 libblockdev-fs2 libblockdev-loop2
  libblockdev-part-err2 libblockdev-part2 libblockdev-swap2 libblockdev-utils2
  libblockdev2 libestr0 libfastjson4 libfwupdplugin5 libmbim-glib4
  libmbim-proxy libmm-glib0 libnetplan0 libnspr4 libnss3 libparted-fs-resize0
  libqmi-glib5 libqmi-proxy libudisks2-0 libwrap0 python3-netifaces
  usb-modeswitch usb-modeswitch-data
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  anacron
Suggested packages:
  default-mta | mail-transport-agent rsyslog | system-log-daemon
Recommended packages:
  cron | cron-daemon
The following packages will be REMOVED:
  accountsservice adduser apport apt apt-utils cloud-initramfs-copymods
  cloud-initramfs-dyn-netconf cron cryptsetup-initramfs dbus dbus-user-session
  dconf-gsettings-backend dconf-service dirmngr friendly-recovery fuse fwupd
  glib-networking gnupg gpg-wks-client gsettings-desktop-schemas ifupdown init
  initramfs-tools initramfs-tools-core kpartx landscape-common
  language-selector-common libappstream4 libblockdev-crypto2 libnss-systemd
  libpam-systemd libsoup2.4-1 libtss2-esys0 libvolume-key1 mdadm mlocate
  modemmanager multipath-tools netplan.io networkd-dispatcher ntfs-3g
  open-iscsi openssh-client openssh-server openssh-sftp-server overlayroot
  packagekit packagekit-tools plymouth plymouth-theme-ubuntu-text policykit-1
  pollinate python3-apport python3-keyring python3-launchpadlib
  python3-secretstorage rsyslog sg3-utils-udev snapd
  software-properties-common ssh-import-id systemd systemd-sysv
  systemd-timesyncd tasksel tasksel-data tcpdump tpm-udev ubuntu-minimal
  ubuntu-server ubuntu-standard udev udisks2 update-notifier-common
  uuid-runtime
The following NEW packages will be installed:
  anacron
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) init systemd-sysv (due to init)
0 upgraded, 1 newly installed, 76 to remove and 0 not upgraded.
Need to get 27.9 kB of archives.
After this operation, 228 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] Yes, do as I say!
Get:1 http://us.archive.ubuntu.com/ubuntu focal/main amd64 anacron amd64 2.3-29 [27.9 kB]
Fetched 27.9 kB in 4s (7,829 B/s)                    
(Reading database ... 111637 files and directories currently installed.)
Removing ubuntu-standard (1.450.2) ...
Removing language-selector-common (0.204.2) ...
Removing accountsservice (0.6.55-0ubuntu12~20.04.5) ...
Removing snapd (2.55.5+20.04) ...
Warning: Stopping snapd.service, but it can still be activated by:
  snapd.socket
Removing udisks2 (2.8.4-1ubuntu2) ...
Removing libnss-systemd:amd64 (245.4-4ubuntu3.17) ...
Checking NSS setup...
Removing ubuntu-server (1.450.2) ...
Removing apport (2.20.11-0ubuntu27.24) ...
Removing ubuntu-minimal (1.450.2) ...
Removing apt-utils (2.0.9) ...
Removing update-notifier-common (3.192.30.11) ...
Removing cloud-initramfs-copymods (0.45ubuntu2) ...
Removing cloud-initramfs-dyn-netconf (0.45ubuntu2) ...
Removing systemd-timesyncd (245.4-4ubuntu3.17) ...
dpkg: systemd: dependency problems, but removing anyway as you requested:
 systemd-sysv depends on systemd (= 245.4-4ubuntu3.17).
 systemd-sysv depends on systemd.
 systemd-sysv depends on systemd (= 245.4-4ubuntu3.17).
 systemd-sysv depends on systemd.
 plymouth depends on systemd (>= 232-8~).
 netplan.io depends on systemd (>= 245.4-4ubuntu3.8).
 libpam-systemd:amd64 depends on systemd (= 245.4-4ubuntu3.17).
 dbus-user-session depends on systemd.

Removing systemd (245.4-4ubuntu3.17) ...
dpkg: adduser: dependency problems, but removing anyway as you requested:
 uuid-runtime depends on adduser.
 udev depends on adduser.
 tpm-udev depends on adduser.
 tcpdump depends on adduser.
 rsyslog depends on adduser.
 pollinate depends on adduser.
 openssh-server depends on adduser (>= 3.9).
 openssh-client depends on adduser (>= 3.10).
 mlocate depends on adduser.
 landscape-common depends on adduser.
 ifupdown depends on adduser.
 fuse depends on adduser.
 dirmngr depends on adduser.
 dbus depends on adduser.
 cron depends on adduser.
 apt depends on adduser.

Removing adduser (3.118ubuntu2) ...
dpkg: apt: dependency problems, but removing anyway as you requested:
 tasksel depends on apt.

Removing apt (2.0.9) ...
Can't exec "/bin/systemctl": No such file or directory at /usr/bin/deb-systemd-invoke line 110.
Can't exec "/bin/systemctl": No such file or directory at /usr/bin/deb-systemd-invoke line 110.
/var/lib/dpkg/info/apt.postrm: 20: systemctl: not found
/var/lib/dpkg/info/apt.postrm: 25: systemctl: not found
Can't exec "systemctl": No such file or directory at /usr/bin/deb-systemd-helper line 614.
dpkg: udev: dependency problems, but removing anyway as you requested:
 plymouth depends on udev (>= 232-8~); however:
  Package udev is to be removed.
 open-iscsi depends on udev.
 multipath-tools depends on udev (>> 136-1).
 mdadm depends on udev.
 kpartx depends on udev (>> 136-1).
 initramfs-tools-core depends on udev.

Removing udev (245.4-4ubuntu3.17) ...
/var/lib/dpkg/info/udev.prerm: 16: systemctl: not found
dpkg: error processing package udev (--remove):
 installed udev package pre-removal script subprocess returned error exit status 127
dpkg: too many errors, stopping
/var/lib/dpkg/info/udev.postinst: 103: systemd-tmpfiles: not found
Can't exec "systemctl": No such file or directory at /usr/sbin/update-rc.d line 93.
Errors were encountered while processing:
 udev
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
Ubuntu 18
Docker
root@c63a54d57e85:/# apt-get remove adduser
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  adduser apt
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt)
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 4615 kB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] Yes, do as I say!
(Reading database ... 4051 files and directories currently installed.)
Removing apt (1.6.14) ...
Removing adduser (3.116ubuntu1) ...
Processing triggers for libc-bin (2.27-3ubuntu1.6) ...
root@c63a54d57e85:/# apt-get install adduser
bash: /usr/bin/apt-get: No such file or directory
VM
root@ubuntu1804:/home/vagrant# apt-get remove adduser
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  distro-info gir1.2-glib-2.0 laptop-detect libdw1 libestr0 libfastjson4
  libgirepository-1.0-1 libnetplan0 libwrap0 networkd-dispatcher python3-dbus
  python3-gi python3-netifaces python3-yaml
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  anacron cgroup-lite
Suggested packages:
  default-mta | mail-transport-agent
Recommended packages:
  cron | cron-daemon rsyslog | system-log-daemon
The following packages will be REMOVED:
  accountsservice adduser apt apt-utils cloud-initramfs-copymods
  cloud-initramfs-dyn-netconf cron dbus dbus-user-session dirmngr dnsmasq-base
  friendly-recovery fuse gnupg gpg-wks-client ifupdown init initramfs-tools
  initramfs-tools-core language-selector-common libnss-systemd libpam-systemd
  lxd mdadm mlocate netplan.io nplan ntfs-3g open-iscsi openssh-client
  openssh-server openssh-sftp-server overlayroot plymouth policykit-1
  pollinate rsyslog snapd ssh-import-id systemd systemd-sysv tasksel
  tasksel-data ubuntu-advantage-tools ubuntu-standard udev uuid-runtime
  wazuh-agent
The following NEW packages will be installed:
  anacron cgroup-lite
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) init systemd-sysv (due to init)
0 upgraded, 2 newly installed, 48 to remove and 0 not upgraded.
Need to get 30.6 kB of archives.
After this operation, 250 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] Yes, do as I say!
Get:1 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 anacron amd64 2.3-24 [26.3 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 cgroup-lite all 1.15 [4,298 B]
Fetched 30.6 kB in 1s (32.1 kB/s)      
(Reading database ... 105512 files and directories currently installed.)
Removing ubuntu-standard (1.417.5) ...
Removing language-selector-common (0.188.3) ...
Removing accountsservice (0.6.45-1ubuntu1.3) ...
Removing wazuh-agent (4.4.0-1) ...
Removing snapd (2.55.5+18.04) ...
Warning: Stopping snapd.service, but it can still be activated by:
  snapd.socket
Removing ubuntu-advantage-tools (27.9~18.04.1) ...
Removing apt-utils (1.6.14) ...
Removing cloud-initramfs-copymods (0.40ubuntu1.1) ...
Removing cloud-initramfs-dyn-netconf (0.40ubuntu1.1) ...
Removing tasksel (3.34ubuntu11) ...
Removing apt (1.6.14) ...
Removing tasksel-data (3.34ubuntu11) ...
dpkg: adduser: dependency problems, but removing anyway as you requested:
 rsyslog depends on adduser.
 fuse depends on adduser.
 cron depends on adduser.
 dirmngr depends on adduser.
 openssh-client depends on adduser (>= 3.10).
 dbus depends on adduser.
 dnsmasq-base depends on adduser.
 systemd depends on adduser.
 udev depends on adduser.
 openssh-server depends on adduser (>= 3.9).
 uuid-runtime depends on adduser.
 mlocate depends on adduser.
 lxd depends on adduser.
 ifupdown depends on adduser.
 pollinate depends on adduser.

Removing adduser (3.116ubuntu1) ...
dpkg: udev: dependency problems, but removing anyway as you requested:
 plymouth depends on udev (>= 232-8~).
 mdadm depends on udev.
 open-iscsi depends on udev.
 initramfs-tools-core depends on udev.

Removing udev (237-3ubuntu10.53) ...
Selecting previously unselected package anacron.
(Reading database ... 104292 files and directories currently installed.)
Preparing to unpack .../anacron_2.3-24_amd64.deb ...
Unpacking anacron (2.3-24) ...
(Reading database ... 104315 files and directories currently installed.)
Removing dbus-user-session (1.12.2-1ubuntu1.3) ...
Removing policykit-1 (0.105-20ubuntu0.18.04.6) ...
Removing libpam-systemd:amd64 (237-3ubuntu10.53) ...
Removing dbus (1.12.2-1ubuntu1.3) ...
Removing gnupg (2.2.4-1ubuntu1.6) ...
Removing gpg-wks-client (2.2.4-1ubuntu1.6) ...
Removing dirmngr (2.2.4-1ubuntu1.6) ...
Removing lxd (3.0.3-0ubuntu1~18.04.2) ...
Removing lxd dnsmasq configuration
Removing dnsmasq-base (2.79-1ubuntu0.6) ...
Removing friendly-recovery (0.2.38ubuntu1.2) ...
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-189-generic
Found initrd image: /boot/initrd.img-4.15.0-189-generic
Found linux image: /boot/vmlinuz-4.15.0-156-generic
Found initrd image: /boot/initrd.img-4.15.0-156-generic
done
Removing ntfs-3g (1:2017.3.23-2ubuntu0.18.04.4) ...
Removing fuse (2.9.7-1ubuntu1) ...
update-initramfs: deferring update (trigger activated)
Removing ifupdown (0.8.17ubuntu1.1) ...
Removing init (1.51) ...
Removing overlayroot (0.40ubuntu1.1) ...
Removing initramfs-tools (0.130ubuntu3.13) ...
Removing initramfs-tools-core (0.130ubuntu3.13) ...
Removing libnss-systemd:amd64 (237-3ubuntu10.53) ...
Checking NSS setup...
Removing mdadm (4.1~rc1-3~ubuntu18.04.4) ...
Removing mlocate (0.26-2ubuntu3.1) ...
Removing nplan (0.99-0ubuntu3~18.04.5) ...
Removing netplan.io (0.99-0ubuntu3~18.04.5) ...
dpkg: warning: while removing netplan.io, directory '/usr/share/netplan/netplan/cli/commands' not empty so not removed
dpkg: warning: while removing netplan.io, directory '/etc/netplan' not empty so not removed
Removing open-iscsi (2.0.874-5ubuntu2.11) ...
Warning: Stopping iscsid.service, but it can still be activated by:
  iscsid.socket
Removing openssh-server (1:7.6p1-4ubuntu0.7) ...
Removing openssh-sftp-server (1:7.6p1-4ubuntu0.7) ...
Removing plymouth (0.9.3-1ubuntu7.18.04.2) ...
Removing pollinate (4.33-0ubuntu1~18.04.2) ...
Removing rsyslog (8.32.0-1ubuntu4.2) ...
Removing ssh-import-id (5.7-0ubuntu1.1) ...
Removing systemd-sysv (237-3ubuntu10.53) ...
Removing openssh-client (1:7.6p1-4ubuntu0.7) ...
dpkg: cron: dependency problems, but removing anyway as you requested:
 logrotate depends on cron | anacron | cron-daemon; however:
  Package cron is to be removed.
  Package anacron is not configured yet.
  Package cron-daemon is not installed.
  Package cron which provides cron-daemon is to be removed.
 logrotate depends on cron | anacron | cron-daemon; however:
  Package cron is to be removed.
  Package anacron is not configured yet.
  Package cron-daemon is not installed.
  Package cron which provides cron-daemon is to be removed.

Removing cron (3.0pl1-128.1ubuntu1.2) ...
invoke-rc.d: WARNING: No init system and policy-rc.d missing! Defaulting to block.
Selecting previously unselected package cgroup-lite.
(Reading database ... 103498 files and directories currently installed.)
Preparing to unpack .../cgroup-lite_1.15_all.deb ...
Unpacking cgroup-lite (1.15) ...
(Reading database ... 103502 files and directories currently installed.)
Removing uuid-runtime (2.31.1-0.4ubuntu3.7) ...
invoke-rc.d: WARNING: No init system and policy-rc.d missing! Defaulting to block.
dpkg: systemd: dependency problems, but removing anyway as you requested:
 liblxc1 depends on cgroup-lite | systemd; however:
  Package cgroup-lite is not configured yet.
  Package systemd is to be removed.

Removing systemd (237-3ubuntu10.53) ...
Setting up anacron (2.3-24) ...
Can't exec "systemctl": No such file or directory at /usr/bin/deb-systemd-helper line 588.
Can't exec "systemctl": No such file or directory at /usr/bin/deb-systemd-helper line 588.
Can't exec "systemctl": No such file or directory at /usr/sbin/update-rc.d line 93.
/var/lib/dpkg/info/anacron.postinst: 42: /var/lib/dpkg/info/anacron.postinst: systemctl: not found
sh: 1: /bin/systemctl: not found
Can't exec "/bin/systemctl": No such file or directory at /usr/bin/deb-systemd-invoke line 94.
anacron.timer is a disabled or a static unit, not starting it.
Setting up cgroup-lite (1.15) ...
Processing triggers for ureadahead (0.100.0-21) ...
Processing triggers for install-info (6.5.0.dfsg.1-2) ...
Processing triggers for libc-bin (2.27-3ubuntu1.6) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Ubuntu 16
Docker
root@b73d59f59be5:/# apt-get remove adduser
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  adduser apt init systemd systemd-sysv
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) init systemd-sysv (due to init)
0 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
After this operation, 23.5 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] Yes, do as I say!
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
(Reading database ... 4785 files and directories currently installed.)
Removing init (1.29ubuntu4) ...
Removing systemd-sysv (229-4ubuntu21.31) ...
Removing systemd (229-4ubuntu21.31) ...
Removing apt (1.2.35) ...
Removing adduser (3.113+nmu3ubuntu4) ...
Processing triggers for libc-bin (2.23-0ubuntu11.3) ...
VM
root@ubuntu1604:/home/vagrant# apt-get remove adduser
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:
 udev : Depends: adduser but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Ubuntu 14
Docker
root@11424f392a51:/# apt-get remove adduser
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  anacron
Suggested packages:
  default-mta mail-transport-agent powermgmt-base
The following packages will be REMOVED:
  adduser cron ifupdown mountall plymouth rsyslog ubuntu-minimal upstart
  ureadahead
The following NEW packages will be installed:
  anacron
0 upgraded, 1 newly installed, 9 to remove and 0 not upgraded.
Need to get 26.2 kB of archives.
After this operation, 5253 kB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main anacron amd64 2.3-20ubuntu1 [26.2 kB]
Fetched 26.2 kB in 0s (71.3 kB/s)  
(Reading database ... 12097 files and directories currently installed.)
Removing ubuntu-minimal (1.325.1) ...
Removing rsyslog (7.4.4-1ubuntu2.7) ...
invoke-rc.d: policy-rc.d denied execution of stop.
Removing plymouth (0.8.8-0ubuntu17.2) ...
rmdir: failed to remove '/lib/plymouth/themes': No such file or directory
rmdir: failed to remove '/lib/plymouth': No such file or directory
update-initramfs: deferring update (trigger activated)
dpkg: mountall: dependency problems, but removing anyway as you requested:
 upstart depends on mountall.

Removing mountall (2.53ubuntu1) ...
Processing triggers for initramfs-tools (0.103ubuntu4.11) ...
Selecting previously unselected package anacron.
(Reading database ... 12004 files and directories currently installed.)
Preparing to unpack .../anacron_2.3-20ubuntu1_amd64.deb ...
Unpacking anacron (2.3-20ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
(Reading database ... 12031 files and directories currently installed.)
Removing ureadahead (0.100.0-16) ...
dpkg: upstart: dependency problems, but removing anyway as you requested:
 cron depends on upstart-job; however:
  Package upstart-job is not installed.
  Package upstart which provides upstart-job is to be removed.

Removing upstart (1.12.1-0ubuntu4.2) ...
Removing ifupdown (0.7.47.2ubuntu4.5) ...
dpkg: adduser: dependency problems, but removing anyway as you requested:
 cron depends on adduser; however:
  Package adduser is to be removed.

Removing adduser (3.113+nmu3ubuntu3) ...
dpkg: cron: dependency problems, but removing anyway as you requested:
 logrotate depends on cron | anacron | cron-daemon; however:
  Package cron is to be removed.
  Package anacron is not configured yet.
  Package cron-daemon is not installed.
  Package cron which provides cron-daemon is to be removed.
 logrotate depends on cron | anacron | cron-daemon; however:
  Package cron is to be removed.
  Package anacron is not configured yet.
  Package cron-daemon is not installed.
  Package cron which provides cron-daemon is to be removed.

Removing cron (3.0pl1-124ubuntu2) ...
Setting up anacron (2.3-20ubuntu1) ...

Removing debconf

Ubuntu 22
Docker
root@696c8c4fe78b:/# apt-get remove debconf
Reading package lists... Done
Building dependency tree... Done
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:
 apt : Depends: adduser but it is not going to be installed
       Recommends: ca-certificates but it is not installable
 dash : Depends: debconf (>= 0.5) but it is not going to be installed or
                 debconf-2.0
 login : PreDepends: libpam0g (>= 0.99.7.1) but it is not going to be installed
         PreDepends: libpam-runtime but it is not going to be installed
         PreDepends: libpam-modules but it is not going to be installed
 util-linux : PreDepends: libpam0g (>= 0.99.7.1) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
VM
root@ubuntu2204:/home/vagrant# apt-get remove debconf
Reading package lists... Done
Building dependency tree... Done
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:
 apt : Depends: adduser but it is not going to be installed
       Recommends: ca-certificates but it is not going to be installed
 dash : Depends: debconf (>= 0.5) but it is not going to be installed or
                 debconf-2.0
 init : PreDepends: systemd-sysv but it is not going to be installed
 login : PreDepends: libpam0g (>= 0.99.7.1) but it is not going to be installed
         PreDepends: libpam-runtime but it is not going to be installed
         PreDepends: libpam-modules but it is not going to be installed
 util-linux : PreDepends: libpam0g (>= 0.99.7.1) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Ubuntu 20
Docker
root@ddeeee805a55:/# apt-get remove debconf
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  adduser apt dash debconf libpam-modules libpam-modules-bin libpam-runtime
  libpam0g login mount passwd sysvinit-utils util-linux
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) dash debconf (due to dash) login
  libpam0g (due to login) libpam-runtime (due to login)
  libpam-modules (due to login) mount util-linux (due to mount) sysvinit-utils
0 upgraded, 0 newly installed, 13 to remove and 0 not upgraded.
After this operation, 16.6 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] Yes, do as I say!
(Reading database ... 4126 files and directories currently installed.)
Removing apt (2.0.9) ...
Removing adduser (3.118ubuntu2) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing dash (0.5.10.2-6) ...
Removing 'diversion of /bin/sh to /bin/sh.distrib by dash'
Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash'
dpkg (subprocess): unable to execute installed dash package post-removal script (/var/lib/dpkg/info/dash.postrm): No such file or directory
dpkg: error processing package dash (--remove):
 installed dash package post-removal script subprocess returned error exit status 2
dpkg: too many errors, stopping
Errors were encountered while processing:
 dash
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
E: Problem executing scripts DPkg::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true'
E: Sub-process returned an error code
VM
root@ubuntu2004:/home/vagrant# apt-get remove debconf
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:
 libxml2 : Depends: libicu66 (>= 66.1-1~) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Ubuntu 18
Docker
root@abfa45bdb5b1:/# apt-get remove debconf
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  adduser apt debconf libpam-modules libpam-modules-bin libpam-runtime
  libpam0g login mount passwd sysvinit-utils util-linux
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) login libpam0g (due to login)
  libpam-runtime (due to login) libpam-modules (due to login) mount
  util-linux (due to mount) sysvinit-utils
0 upgraded, 0 newly installed, 12 to remove and 0 not upgraded.
After this operation, 14.7 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] Yes, do as I say!
(Reading database ... 4051 files and directories currently installed.)
Removing apt (1.6.14) ...
Removing adduser (3.116ubuntu1) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing login (1:4.5-1ubuntu2.3) ...
Removing passwd (1:4.5-1ubuntu2.3) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing sysvinit-utils (2.88dsf-59.10ubuntu1) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing libpam-runtime (1.1.8-3.6ubuntu2.18.04.3) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
PAM configuration
-----------------

Pluggable Authentication Modules (PAM) determine how authentication,
authorization, and password changing are handled on the system, as well as
allowing configuration of additional actions to take when starting user
sessions.

Some PAM module packages provide profiles that can be used to automatically
adjust the behavior of all PAM-using applications on the system.  Please
indicate which of these behaviors you wish to enable.

  1. Create home directory on login

(Enter the items you want to select, separated by spaces.)
VM
root@ubuntu1804:/home/vagrant# apt-get remove debconf
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  amd64-microcode distro-info distro-info-data fonts-lato gir1.2-glib-2.0
  grub-pc-bin grub2-common intel-microcode isc-dhcp-common iucode-tool iw
  javascript-common laptop-detect libdaemon0 libdw1 libestr0 libfastjson4
  libgirepository-1.0-1 libjs-jquery liblua5.2-0 libmpdec2 libnetplan0
  libnl-3-200 libnl-genl-3-200 libsensors4 libwrap0 libyaml-0-2
  linux-headers-4.15.0-156 linux-headers-4.15.0-189 ncurses-term
  ruby-did-you-mean ruby-minitest ruby-net-telnet ruby-power-assert unzip
  wireless-regdb xkb-data zip
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  anacron cgroup-lite
Suggested packages:
  default-mta | mail-transport-agent
Recommended packages:
  cron | cron-daemon rsyslog | system-log-daemon
The following packages will be REMOVED:
  accountsservice adduser apparmor apport apt apt-utils at bind9-host byobu
  ca-certificates cloud-guest-utils cloud-initramfs-copymods
  cloud-initramfs-dyn-netconf command-not-found console-setup
  console-setup-linux crda cron cryptsetup curl dbus dbus-user-session debconf
  debconf-i18n dirmngr dnsmasq-base dnsutils friendly-recovery fuse gnupg
  gpg-wks-client grub-gfxpayload-lists grub-legacy-ec2 grub-pc ifplugd
  ifupdown init initramfs-tools initramfs-tools-core installation-report
  irqbalance isc-dhcp-client kbd keyboard-configuration landscape-common
  language-pack-en language-pack-en-base language-pack-gnome-en
  language-pack-gnome-en-base language-selector-common libbind9-160 libcurl4
  libdns-export1100 libdns1100 libirs160 libisc-export169 libisc169
  libisccc160 libisccfg160 libisns0 libnss-systemd libpam-cap libpam-modules
  libpam-modules-bin libpam-runtime libpam-systemd libpam0g libpython3-stdlib
  libpython3.6 libpython3.6-minimal libpython3.6-stdlib libruby2.5
  libsasl2-modules libssl1.0.0 libssl1.1 libtcl8.6 libxmlsec1-openssl
  linux-base linux-generic linux-headers-4.15.0-156-generic
  linux-headers-4.15.0-189-generic linux-headers-generic
  linux-image-4.15.0-156-generic linux-image-4.15.0-189-generic
  linux-image-generic linux-modules-extra-4.15.0-156-generic
  linux-modules-extra-4.15.0-189-generic linux-tools-4.15.0-156
  linux-tools-4.15.0-156-generic linux-tools-4.15.0-189
  linux-tools-4.15.0-189-generic linux-tools-common linux-tools-generic
  locales login lsb-release lxd man-db mdadm mlocate mount netplan.io
  networkd-dispatcher nplan ntfs-3g open-iscsi open-vm-tools openssh-client
  openssh-server openssh-sftp-server openssl overlayroot passwd pastebinit
  plymouth plymouth-theme-ubuntu-text policykit-1 pollinate popularity-contest
  python3 python3-apport python3-apt python3-asn1crypto python3-attr
  python3-automat python3-certifi python3-cffi-backend python3-chardet
  python3-click python3-colorama python3-commandnotfound python3-configobj
  python3-constantly python3-cryptography python3-dbus python3-debconf
  python3-debian python3-distro-info python3-distupgrade python3-gdbm
  python3-gi python3-httplib2 python3-hyperlink python3-idna
  python3-incremental python3-minimal python3-netifaces python3-newt
  python3-openssl python3-pam python3-pexpect python3-pkg-resources
  python3-problem-report python3-ptyprocess python3-pyasn1
  python3-pyasn1-modules python3-requests python3-requests-unixsocket
  python3-serial python3-service-identity python3-six
  python3-software-properties python3-systemd python3-twisted
  python3-twisted-bin python3-update-manager python3-urllib3 python3-yaml
  python3-zope.interface python3.6 python3.6-minimal rake rsyslog ruby
  ruby-test-unit ruby2.5 rubygems-integration screen snapd
  software-properties-common sosreport ssh-import-id sudo sysstat systemd
  systemd-sysv sysvinit-utils tasksel tasksel-data tcpdump tzdata
  ubuntu-advantage-tools ubuntu-minimal ubuntu-release-upgrader-core
  ubuntu-server ubuntu-standard ucf udev ufw unattended-upgrades
  update-manager-core update-notifier-common util-linux uuid-runtime vim
  vim-nox wget
The following NEW packages will be installed:
  anacron cgroup-lite
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) init systemd-sysv (due to init) login
  libpam0g (due to login) libpam-runtime (due to login)
  libpam-modules (due to login) mount util-linux (due to mount) sysvinit-utils
0 upgraded, 2 newly installed, 207 to remove and 0 not upgraded.
Need to get 30.6 kB of archives.
After this operation, 842 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] Yes, do as I say!
Get:1 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 anacron amd64 2.3-24 [26.3 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 cgroup-lite all 1.15 [4,298 B]
Fetched 30.6 kB in 4s (8,392 B/s)      
(Reading database ... 105963 files and directories currently installed.)
Removing ubuntu-standard (1.417.5) ...
Removing language-selector-common (0.188.3) ...
Removing accountsservice (0.6.45-1ubuntu1.3) ...
Removing snapd (2.55.5+18.04) ...
Warning: Stopping snapd.service, but it can still be activated by:
  snapd.socket
Removing ubuntu-minimal (1.417.5) ...
Removing libnss-systemd:amd64 (237-3ubuntu10.53) ...
Checking NSS setup...
Removing apparmor (2.12-4ubuntu5.1) ...
Removing ubuntu-server (1.417.5) ...
Removing apport (2.20.9-0ubuntu7.28) ...
Removing ubuntu-advantage-tools (27.9~18.04.1) ...
Removing apt-utils (1.6.14) ...
Removing update-notifier-common (3.192.1.12) ...
Removing at (3.1.20-3.1ubuntu2) ...
Removing dnsutils (1:9.11.3+dfsg-1ubuntu1.17) ...
Removing bind9-host (1:9.11.3+dfsg-1ubuntu1.17) ...
Removing byobu (5.125-0ubuntu1) ...
Removing software-properties-common (0.96.24.32.18) ...
Removing python3-apport (2.20.9-0ubuntu7.28) ...
Removing python3-httplib2 (0.9.2+dfsg-1ubuntu0.3) ...
Removing cloud-guest-utils (0.30-0ubuntu5) ...
Removing cloud-initramfs-copymods (0.40ubuntu1.1) ...
Removing cloud-initramfs-dyn-netconf (0.40ubuntu1.1) ...
Removing command-not-found (18.04.6) ...
Removing linux-generic (4.15.0.189.174) ...
Removing linux-image-generic (4.15.0.189.174) ...
Removing linux-modules-extra-4.15.0-189-generic (4.15.0-189.200) ...
Removing linux-modules-extra-4.15.0-156-generic (4.15.0-156.163) ...
Removing crda (3.18-1build1) ...
Removing console-setup (1.178ubuntu2.9) ...
Removing console-setup-linux (1.178ubuntu2.9) ...
update-alternatives: using /etc/console-setup/vtrgb.vga to provide /etc/vtrgb (vtrgb) in auto mode
Removing kbd (2.0.4-2ubuntu1) ...
dpkg: systemd: dependency problems, but removing anyway as you requested:
 plymouth depends on systemd (>= 232-8~).
 dbus-user-session depends on systemd.
 netplan.io depends on systemd (>= 235-3ubuntu3).
 systemd-sysv depends on systemd.
 libpam-systemd:amd64 depends on systemd (= 237-3ubuntu10.53).
 liblxc1 depends on cgroup-lite | systemd; however:
  Package cgroup-lite is not installed.
  Package systemd is to be removed.

Removing systemd (237-3ubuntu10.53) ...
dpkg: adduser: dependency problems, but removing anyway as you requested:
 rsyslog depends on adduser.
 fuse depends on adduser.
 cron depends on adduser.
 dirmngr depends on adduser.
 openssh-client depends on adduser (>= 3.10).
 dbus depends on adduser.
 dnsmasq-base depends on adduser.
 apt depends on adduser.
 udev depends on adduser.
 openssh-server depends on adduser (>= 3.9).
 uuid-runtime depends on adduser.
 mlocate depends on adduser.
 lxd depends on adduser.
 landscape-common depends on adduser.
 ifupdown depends on adduser.
 pollinate depends on adduser.

Removing adduser (3.116ubuntu1) ...
dpkg: apt: dependency problems, but removing anyway as you requested:
 tasksel depends on apt.

Removing apt (1.6.14) ...
Can't exec "/bin/systemctl": No such file or directory at /usr/bin/deb-systemd-invoke line 110.
/var/lib/dpkg/info/apt.postrm: 19: /var/lib/dpkg/info/apt.postrm: systemctl: not found
Can't exec "systemctl": No such file or directory at /usr/bin/deb-systemd-helper line 588.
dpkg: ca-certificates: dependency problems, but removing anyway as you requested:
 ssh-import-id depends on ca-certificates.
 rubygems-integration depends on ca-certificates.
 python3-requests depends on ca-certificates.
 ubuntu-release-upgrader-core depends on ca-certificates.
 python3-certifi depends on ca-certificates.
 landscape-common depends on ca-certificates.

Removing ca-certificates (20211016~18.04.1) ...
Removing dangling symlinks from /etc/ssl/certs... done.
dpkg: initramfs-tools: dependency problems, but removing anyway as you requested:
 overlayroot depends on initramfs-tools.

Removing initramfs-tools (0.130ubuntu3.13) ...
Removing initramfs-tools-core (0.130ubuntu3.13) ...
dpkg: udev: dependency problems, but removing anyway as you requested:
 plymouth depends on udev (>= 232-8~); however:
  Package udev is to be removed.
 mdadm depends on udev.
 open-iscsi depends on udev.

Removing udev (237-3ubuntu10.53) ...
/var/lib/dpkg/info/udev.prerm: 14: /var/lib/dpkg/info/udev.prerm: systemctl: not found
dpkg: error processing package udev (--remove):
 installed udev package pre-removal script subprocess returned error exit status 127
Can't exec "systemctl": No such file or directory at /usr/sbin/update-rc.d line 93.
Errors were encountered while processing:
 udev
E: Sub-process /usr/bin/dpkg returned an error code (1)
Ubuntu 16
Docker
root@f045944ea576:/# apt-get remove debconf
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  adduser apt debconf e2fsprogs init initscripts libblkid1 libcryptsetup4
  libfdisk1 libmount1 libpam-modules libpam-modules-bin libpam-runtime
  libpam0g libuuid1 login mount passwd procps systemd systemd-sysv sysv-rc
  util-linux
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) e2fsprogs libblkid1 (due to e2fsprogs)
  libuuid1 (due to e2fsprogs) util-linux (due to e2fsprogs) init
  systemd-sysv (due to init) login libpam0g (due to login)
  libpam-runtime (due to login) libpam-modules (due to login) mount
  libmount1 (due to mount) libfdisk1 (due to util-linux)
0 upgraded, 0 newly installed, 23 to remove and 0 not upgraded.
After this operation, 38.9 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
VM
root@ubuntu1604:/home/vagrant# apt-get remove debconf
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:
 python-apt-common : Depends: python but it is not going to be installed or
                              python3 but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Ubuntu 14
Docker
root@e80a0d848b7c:/# apt-get remove debconf
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:
 cron : Depends: libpam0g (>= 0.99.7.1) but it is not going to be installed
        Depends: upstart-job
        Depends: adduser but it is not going to be installed
        Depends: libpam-runtime (>= 1.0.1-11) but it is not going to be installed
 sysv-rc : Depends: debconf (>= 0.5) but it is not going to be installed or
                    debconf-2.0
           Depends: sysvinit-utils (>= 2.86.ds1-62) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

Removing libc6

Ubuntu 22
Docker
root@696c8c4fe78b:/# apt-get remove libc6  
Reading package lists... Done
Building dependency tree... Done
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:
 apt : Depends: adduser but it is not going to be installed
       Depends: gpgv but it is not going to be installed or
                gpgv2 but it is not installable or
                gpgv1 but it is not installable
       Depends: libapt-pkg6.0 (>= 2.4.7) but it is not going to be installed
       Depends: libc6 (>= 2.34) but it is not going to be installed
       Depends: libgcc-s1 (>= 3.3.1) but it is not going to be installed
       Depends: libgnutls30 (>= 3.7.0) but it is not going to be installed
       Depends: libseccomp2 (>= 2.4.2) but it is not going to be installed
       Depends: libstdc++6 (>= 11) but it is not going to be installed
       Depends: libsystemd0 but it is not going to be installed
       Recommends: ca-certificates but it is not installable
 base-files : PreDepends: awk
              Depends: libc6 (>= 2.34) but it is not going to be installed
 base-passwd : Depends: libc6 (>= 2.34) but it is not going to be installed
               Depends: libdebconfclient0 (>= 0.145) but it is not going to be installed
 bash : PreDepends: libc6 (>= 2.34) but it is not going to be installed
        PreDepends: libtinfo6 (>= 6) but it is not going to be installed
        Recommends: bash-completion (>= 20060301-0) but it is not installable
 bsdutils : PreDepends: libc6 (>= 2.34) but it is not going to be installed
            PreDepends: libsystemd0 but it is not going to be installed
            Recommends: bsdextrautils but it is not installable
 coreutils : PreDepends: libacl1 (>= 2.2.23) but it is not going to be installed
             PreDepends: libattr1 (>= 1:2.4.44) but it is not going to be installed
             PreDepends: libc6 (>= 2.34) but it is not going to be installed
             PreDepends: libgmp10 (>= 2:6.2.1+dfsg) but it is not going to be installed
             PreDepends: libselinux1 (>= 3.1~) but it is not going to be installed
 dash : PreDepends: libc6 (>= 2.34) but it is not going to be installed
 debianutils : PreDepends: libc6 (>= 2.34) but it is not going to be installed
 diffutils : PreDepends: libc6 (>= 2.34) but it is not going to be installed
 dpkg : PreDepends: libbz2-1.0 but it is not going to be installed
        PreDepends: libc6 (>= 2.34) but it is not going to be installed
        PreDepends: liblzma5 (>= 5.2.2) but it is not going to be installed
        PreDepends: libselinux1 (>= 3.1~) but it is not going to be installed
        PreDepends: libzstd1 (>= 1.4.0) but it is not going to be installed
        PreDepends: zlib1g (>= 1:1.1.4) but it is not going to be installed
 e2fsprogs : PreDepends: libblkid1 (>= 2.36) but it is not going to be installed
             PreDepends: libc6 (>= 2.34) but it is not going to be installed
             PreDepends: libcom-err2 (>= 1.43.9) but it is not going to be installed
             PreDepends: libext2fs2 (= 1.46.5-2ubuntu1.1) but it is not going to be installed
             PreDepends: libss2 (>= 1.38) but it is not going to be installed
             PreDepends: libuuid1 (>= 2.16) but it is not going to be installed
             Depends: logsave but it is not going to be installed
             Recommends: e2fsprogs-l10n but it is not installable
 findutils : PreDepends: libc6 (>= 2.34) but it is not going to be installed
             PreDepends: libselinux1 (>= 3.1~) but it is not going to be installed
 grep : PreDepends: libc6 (>= 2.34) but it is not going to be installed
        PreDepends: libpcre3 but it is not going to be installed
 gzip : PreDepends: libc6 (>= 2.34) but it is not going to be installed
 hostname : PreDepends: libc6 (>= 2.34) but it is not going to be installed
 libc-bin : Depends: libc6 (> 2.35) but it is not going to be installed
            Depends: libc6 (< 2.36) but it is not going to be installed
 libcrypt1 : Depends: libc6 (>= 2.25) but it is not going to be installed
 login : PreDepends: libaudit1 (>= 1:2.2.1) but it is not going to be installed
         PreDepends: libc6 (>= 2.34) but it is not going to be installed
         PreDepends: libpam0g (>= 0.99.7.1) but it is not going to be installed
         PreDepends: libpam-runtime but it is not going to be installed
         PreDepends: libpam-modules but it is not going to be installed
 ncurses-bin : PreDepends: libc6 (>= 2.34) but it is not going to be installed
               PreDepends: libtinfo6 (>= 6.3) but it is not going to be installed
 perl-base : PreDepends: libc6 (>= 2.35) but it is not going to be installed
 sed : PreDepends: libacl1 (>= 2.2.23) but it is not going to be installed
       PreDepends: libc6 (>= 2.34) but it is not going to be installed
       PreDepends: libselinux1 (>= 3.1~) but it is not going to be installed
 sysvinit-utils : Depends: libc6 (>= 2.34) but it is not going to be installed
 tar : PreDepends: libacl1 (>= 2.2.23) but it is not going to be installed
       PreDepends: libc6 (>= 2.34) but it is not going to be installed
       PreDepends: libselinux1 (>= 3.1~) but it is not going to be installed
 util-linux : PreDepends: libaudit1 (>= 1:2.2.1) but it is not going to be installed
              PreDepends: libblkid1 (>= 2.37.2) but it is not going to be installed
              PreDepends: libc6 (>= 2.34) but it is not going to be installed
              PreDepends: libcap-ng0 (>= 0.7.9) but it is not going to be installed
              PreDepends: libmount1 (>= 2.37.2) but it is not going to be installed
              PreDepends: libpam0g (>= 0.99.7.1) but it is not going to be installed
              PreDepends: libselinux1 (>= 3.1~) but it is not going to be installed
              PreDepends: libsmartcols1 (>= 2.34) but it is not going to be installed
              PreDepends: libsystemd0 but it is not going to be installed
              PreDepends: libtinfo6 (>= 6) but it is not going to be installed
              PreDepends: libudev1 (>= 183) but it is not going to be installed
              PreDepends: libuuid1 (>= 2.16) but it is not going to be installed
              PreDepends: zlib1g (>= 1:1.1.4) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
VM
root@ubuntu2204:/home/vagrant# apt-get remove libc6
Reading package lists... Done
Building dependency tree... Done
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:
 apt : Depends: adduser but it is not going to be installed
       Depends: gpgv but it is not going to be installed or
                gpgv2 but it is not going to be installed or
                gpgv1 but it is not going to be installed
       Depends: libapt-pkg6.0 (>= 2.4.7) but it is not going to be installed
       Depends: libc6 (>= 2.34) but it is not going to be installed
       Depends: libgcc-s1 (>= 3.3.1) but it is not going to be installed
       Depends: libgnutls30 (>= 3.7.0) but it is not going to be installed
       Depends: libseccomp2 (>= 2.4.2) but it is not going to be installed
       Depends: libstdc++6 (>= 11) but it is not going to be installed
       Depends: libsystemd0 but it is not going to be installed
       Recommends: ca-certificates but it is not going to be installed
 base-files : PreDepends: awk
              Depends: libc6 (>= 2.34) but it is not going to be installed
 base-passwd : Depends: libc6 (>= 2.34) but it is not going to be installed
               Depends: libdebconfclient0 (>= 0.145) but it is not going to be installed
 bash : PreDepends: libc6 (>= 2.34) but it is not going to be installed
        PreDepends: libtinfo6 (>= 6) but it is not going to be installed
 bsdutils : PreDepends: libc6 (>= 2.34) but it is not going to be installed
            PreDepends: libsystemd0 but it is not going to be installed
            Recommends: bsdextrautils but it is not going to be installed
 coreutils : PreDepends: libacl1 (>= 2.2.23) but it is not going to be installed
             PreDepends: libattr1 (>= 1:2.4.44) but it is not going to be installed
             PreDepends: libc6 (>= 2.34) but it is not going to be installed
             PreDepends: libgmp10 (>= 2:6.2.1+dfsg) but it is not going to be installed
             PreDepends: libselinux1 (>= 3.1~) but it is not going to be installed
 dash : PreDepends: libc6 (>= 2.34) but it is not going to be installed
 debianutils : PreDepends: libc6 (>= 2.34) but it is not going to be installed
 diffutils : PreDepends: libc6 (>= 2.34) but it is not going to be installed
 dpkg : PreDepends: libbz2-1.0 but it is not going to be installed
        PreDepends: libc6 (>= 2.34) but it is not going to be installed
        PreDepends: liblzma5 (>= 5.2.2) but it is not going to be installed
        PreDepends: libselinux1 (>= 3.1~) but it is not going to be installed
        PreDepends: libzstd1 (>= 1.4.0) but it is not going to be installed
        PreDepends: zlib1g (>= 1:1.1.4) but it is not going to be installed
 e2fsprogs : PreDepends: libblkid1 (>= 2.36) but it is not going to be installed
             PreDepends: libc6 (>= 2.34) but it is not going to be installed
             PreDepends: libcom-err2 (>= 1.43.9) but it is not going to be installed
             PreDepends: libext2fs2 (= 1.46.5-2ubuntu1.1) but it is not going to be installed
             PreDepends: libss2 (>= 1.38) but it is not going to be installed
             PreDepends: libuuid1 (>= 2.16) but it is not going to be installed
             Depends: logsave but it is not going to be installed
             Recommends: e2fsprogs-l10n but it is not going to be installed
 findutils : PreDepends: libc6 (>= 2.34) but it is not going to be installed
             PreDepends: libselinux1 (>= 3.1~) but it is not going to be installed
 grep : PreDepends: libc6 (>= 2.34) but it is not going to be installed
        PreDepends: libpcre3 but it is not going to be installed
 gzip : PreDepends: libc6 (>= 2.34) but it is not going to be installed
 hostname : PreDepends: libc6 (>= 2.34) but it is not going to be installed
 init : PreDepends: systemd-sysv but it is not going to be installed
 libc-bin : Depends: libc6 (> 2.35) but it is not going to be installed
            Depends: libc6 (< 2.36) but it is not going to be installed
 libcrypt1 : Depends: libc6 (>= 2.25) but it is not going to be installed
 login : PreDepends: libaudit1 (>= 1:2.2.1) but it is not going to be installed
         PreDepends: libc6 (>= 2.34) but it is not going to be installed
         PreDepends: libpam0g (>= 0.99.7.1) but it is not going to be installed
         PreDepends: libpam-runtime but it is not going to be installed
         PreDepends: libpam-modules but it is not going to be installed
 ncurses-bin : PreDepends: libc6 (>= 2.34) but it is not going to be installed
               PreDepends: libtinfo6 (>= 6.3) but it is not going to be installed
 perl-base : PreDepends: libc6 (>= 2.35) but it is not going to be installed
 sed : PreDepends: libacl1 (>= 2.2.23) but it is not going to be installed
       PreDepends: libc6 (>= 2.34) but it is not going to be installed
       PreDepends: libselinux1 (>= 3.1~) but it is not going to be installed
 sysvinit-utils : Depends: libc6 (>= 2.34) but it is not going to be installed
 tar : PreDepends: libacl1 (>= 2.2.23) but it is not going to be installed
       PreDepends: libc6 (>= 2.34) but it is not going to be installed
       PreDepends: libselinux1 (>= 3.1~) but it is not going to be installed
 util-linux : PreDepends: libaudit1 (>= 1:2.2.1) but it is not going to be installed
              PreDepends: libblkid1 (>= 2.37.2) but it is not going to be installed
              PreDepends: libc6 (>= 2.34) but it is not going to be installed
              PreDepends: libcap-ng0 (>= 0.7.9) but it is not going to be installed
              PreDepends: libmount1 (>= 2.37.2) but it is not going to be installed
              PreDepends: libpam0g (>= 0.99.7.1) but it is not going to be installed
              PreDepends: libselinux1 (>= 3.1~) but it is not going to be installed
              PreDepends: libsmartcols1 (>= 2.34) but it is not going to be installed
              PreDepends: libsystemd0 but it is not going to be installed
              PreDepends: libtinfo6 (>= 6) but it is not going to be installed
              PreDepends: libudev1 (>= 183) but it is not going to be installed
              PreDepends: libuuid1 (>= 2.16) but it is not going to be installed
              PreDepends: zlib1g (>= 1:1.1.4) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Ubuntu 20
Docker
root@4478b7967304:/# apt-get remove libc6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  adduser apt base-files base-passwd bash bsdutils bzip2 coreutils dash
  debconf debianutils diffutils dpkg e2fsprogs fdisk findutils gpgv grep gzip
  hostname init-system-helpers libacl1 libapt-pkg6.0 libattr1 libaudit1
  libblkid1 libbz2-1.0 libc-bin libc6 libcap-ng0 libcom-err2 libcrypt1
  libdb5.3 libdebconfclient0 libext2fs2 libfdisk1 libffi7 libgcc-s1
  libgcrypt20 libgmp10 libgnutls30 libgpg-error0 libhogweed5 libidn2-0
  liblz4-1 liblzma5 libmount1 libncurses6 libncursesw6 libnettle7 libp11-kit0
  libpam-modules libpam-modules-bin libpam-runtime libpam0g libpcre2-8-0
  libpcre3 libprocps8 libseccomp2 libselinux1 libsemanage1 libsepol1
  libsmartcols1 libss2 libstdc++6 libsystemd0 libtasn1-6 libtinfo6 libudev1
  libunistring2 libuuid1 libzstd1 login logsave mawk mount ncurses-bin passwd
  perl-base procps sed sysvinit-utils tar util-linux zlib1g
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) gpgv (due to apt) libapt-pkg6.0 (due to apt)
  libc6 (due to apt) libgcc-s1 (due to apt) libgnutls30 (due to apt)
  libseccomp2 (due to apt) libstdc++6 (due to apt) libsystemd0 (due to apt)
  base-files mawk (due to base-files) libcrypt1 (due to base-files)
  base-passwd libdebconfclient0 (due to base-passwd) bash
  libtinfo6 (due to bash) debianutils (due to bash) bsdutils coreutils
  libacl1 (due to coreutils) libattr1 (due to coreutils)
  libselinux1 (due to coreutils) dash dpkg (due to dash) debconf (due to dash)
  diffutils libbz2-1.0 (due to dpkg) liblzma5 (due to dpkg)
  libzstd1 (due to dpkg) zlib1g (due to dpkg) tar (due to dpkg) e2fsprogs
  libblkid1 (due to e2fsprogs) libcom-err2 (due to e2fsprogs)
  libext2fs2 (due to e2fsprogs) libss2 (due to e2fsprogs)
  libuuid1 (due to e2fsprogs) logsave (due to e2fsprogs) fdisk
  libfdisk1 (due to fdisk) libmount1 (due to fdisk)
  libncursesw6 (due to fdisk) libsmartcols1 (due to fdisk) findutils grep
  libpcre3 (due to grep) gzip hostname init-system-helpers
  perl-base (due to init-system-helpers) libc-bin login
  libaudit1 (due to login) libpam0g (due to login)
  libpam-runtime (due to login) libpam-modules (due to login) mount
  util-linux (due to mount) ncurses-bin sed sysvinit-utils
  libcap-ng0 (due to util-linux) libudev1 (due to util-linux)
0 upgraded, 0 newly installed, 85 to remove and 0 not upgraded.
After this operation, 96.5 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] Yes, do as I say!
(Reading database ... 4126 files and directories currently installed.)
Removing apt (2.0.9) ...
Removing adduser (3.118ubuntu2) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing bash (5.0-6ubuntu1.2) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing base-files (11ubuntu5.5) ...
dpkg: warning: while removing base-files, unable to remove directory '/sys': Device or resource busy - directory may be a mount point?
dpkg: warning: while removing base-files, unable to remove directory '/proc': Device or resource busy - directory may be a mount point?
dpkg: warning: while removing base-files, unable to remove directory '/dev': Device or resource busy - directory may be a mount point?
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing base-passwd (3.5.47) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing bsdutils (1:2.34-0.1ubuntu9.3) ...
Removing bzip2 (1.0.8-2) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing coreutils (8.30-3ubuntu2) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing dash (0.5.10.2-6) ...
Removing 'diversion of /bin/sh to /bin/sh.distrib by dash'
Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash'
/usr/sbin/remove-shell: 18: cat: not found
/usr/sbin/remove-shell: 20: cat: not found
/usr/sbin/remove-shell: 1: rm: not found
dpkg: error processing package dash (--remove):
 installed dash package pre-removal script subprocess returned error exit status 127
dpkg: too many errors, stopping
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
No diversion 'diversion of /bin/sh by bash', none removed.
Adding 'diversion of /bin/sh to /bin/sh.distrib by dash'
/var/lib/dpkg/info/dash.postinst: 51: rm: not found
dpkg: error while cleaning up:
 installed dash package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 dash
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
E: Sub-process returned an error code
VM
root@ubuntu2004:/home/vagrant# apt-get remove libc6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  amd64-microcode distro-info-data javascript-common laptop-detect
  libjs-jquery libmagic-mgc libsensors-config ncurses-term ruby-minitest
  ruby-net-telnet ruby-power-assert ruby-test-unit ruby-xmlrpc
  usb-modeswitch-data wireless-regdb xkb-data
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  accountsservice adduser apparmor apport apt apt-utils at base-files
  base-passwd bash bc bcache-tools bind9-dnsutils bind9-host bind9-libs bolt
  bsdmainutils bsdutils btrfs-progs busybox-initramfs byobu bzip2
  ca-certificates cloud-guest-utils cloud-initramfs-copymods
  cloud-initramfs-dyn-netconf command-not-found console-setup
  console-setup-linux coreutils cpio crda cron cryptsetup cryptsetup-bin
  cryptsetup-initramfs cryptsetup-run curl dash dbus dbus-user-session
  dconf-gsettings-backend dconf-service debconf debconf-i18n debianutils
  diffutils dirmngr distro-info dmeventd dmidecode dmsetup dosfstools dpkg
  e2fsprogs ed eject ethtool fdisk file findutils fonts-lato friendly-recovery
  ftp fuse fwupd gawk gdisk gettext-base gir1.2-glib-2.0
  gir1.2-packagekitglib-1.0 git glib-networking glib-networking-services gnupg
  gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv
  grep groff-base grub-common grub-gfxpayload-lists grub-pc grub-pc-bin
  grub2-common gsettings-desktop-schemas gzip haveged hdparm hostname htop
  ifplugd ifupdown info init init-system-helpers initramfs-tools
  initramfs-tools-bin initramfs-tools-core install-info installation-report
  intel-microcode iproute2 iptables iputils-ping iputils-tracepath irqbalance
  isc-dhcp-client isc-dhcp-common iucode-tool iw kbd keyboard-configuration
  kmod kpartx landscape-common language-pack-en language-pack-en-base
  language-pack-gnome-en language-pack-gnome-en-base language-selector-common
  less libaccountsservice0 libacl1 libaio1 libapparmor1 libappstream4
  libapt-pkg6.0 libarchive13 libargon2-1 libasn1-8-heimdal libasound2
  libassuan0 libatasmart4 libatm1 libattr1 libaudit1 libblkid1
  libblockdev-crypto2 libblockdev-fs2 libblockdev-loop2 libblockdev-part-err2
  libblockdev-part2 libblockdev-swap2 libblockdev-utils2 libblockdev2
  libbrotli1 libbsd0 libbz2-1.0 libc-bin libc6 libcanberra0 libcap-ng0 libcap2
  libcap2-bin libcbor0.6 libcom-err2 libcrypt1 libcryptsetup12 libcurl3-gnutls
  libcurl4 libdaemon0 libdb5.3 libdbus-1-3 libdconf1 libdebconfclient0
  libdevmapper-event1.02.1 libdevmapper1.02.1 libdns-export1109 libdrm2 libdw1
  libedit2 libefiboot1 libefivar1 libelf1 liberror-perl libestr0
  libevent-2.1-7 libexpat1 libext2fs2 libfastjson4 libfdisk1 libffi7
  libfido2-1 libfl2 libfreetype6 libfribidi0 libfuse2 libfwupd2
  libfwupdplugin1 libfwupdplugin5 libgcab-1.0-0 libgcc-s1 libgcrypt20
  libgdbm-compat4 libgdbm6 libgirepository-1.0-1 libglib2.0-0 libglib2.0-bin
  libgmp10 libgnutls30 libgpg-error0 libgpgme11 libgpm2 libgssapi-krb5-2
  libgssapi3-heimdal libgstreamer1.0-0 libgudev-1.0-0 libgusb2 libhavege1
  libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhogweed5
  libhx509-5-heimdal libicu66 libidn2-0 libip4tc2 libip6tc2 libisc-export1105
  libisns0 libjcat1 libjson-c4 libjson-glib-1.0-0 libk5crypto3 libkeyutils1
  libkmod2 libkrb5-26-heimdal libkrb5-3 libkrb5support0 libksba8 libldap-2.4-2
  liblmdb0 liblocale-gettext-perl libltdl7 liblua5.2-0 liblvm2cmd2.03 liblz4-1
  liblzma5 liblzo2-2 libmagic1 libmaxminddb0 libmbim-glib4 libmbim-proxy
  libmm-glib0 libmnl0 libmount1 libmpdec2 libmpfr6 libmspack0 libncurses6
  libncursesw6 libnetfilter-conntrack3 libnetplan0 libnettle7 libnewt0.52
  libnfnetlink0 libnftnl11 libnghttp2-14 libnl-3-200 libnl-genl-3-200 libnpth0
  libnspr4 libnss-systemd libnss3 libntfs-3g883 libnuma1 libogg0 libp11-kit0
  libpackagekit-glib2-18 libpam-cap libpam-modules libpam-modules-bin
  libpam-runtime libpam-systemd libpam0g libparted-fs-resize0 libparted2
  libpcap0.8 libpci3 libpcre2-8-0 libpcre3 libperl5.30 libpipeline1
  libplymouth5 libpng16-16 libpolkit-agent-1-0 libpolkit-gobject-1-0 libpopt0
  libprocps8 libproxy1v5 libpsl5 libpython3-stdlib libpython3.8
  libpython3.8-minimal libpython3.8-stdlib libqmi-glib5 libqmi-proxy
  libreadline5 libreadline8 libroken18-heimdal librtmp1 libruby2.7 libsasl2-2
  libsasl2-modules libsasl2-modules-db libseccomp2 libselinux1 libsemanage1
  libsensors5 libsepol1 libsgutils2-2 libsigsegv2 libslang2 libsmartcols1
  libsmbios-c2 libsodium23 libsoup2.4-1 libsqlite3-0 libss2 libssh-4 libssl1.1
  libstdc++6 libstemmer0d libsystemd0 libtasn1-6 libtcl8.6 libtdb1
  libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libtinfo6
  libtss2-esys0 libuchardet0 libudev1 libudisks2-0 libunistring2 libunwind8
  liburcu6 libusb-1.0-0 libutempter0 libuuid1 libuv1 libvolume-key1
  libvorbis0a libvorbisfile3 libwind0-heimdal libwrap0 libx11-6 libxau6
  libxcb1 libxdmcp6 libxext6 libxml2 libxmlb1 libxmlsec1 libxmlsec1-openssl
  libxmuu1 libxslt1.1 libxtables12 libyaml-0-2 libzstd1 linux-base
  linux-cloud-tools-5.4.0-122 linux-cloud-tools-5.4.0-122-generic
  linux-cloud-tools-5.4.0-42 linux-cloud-tools-5.4.0-42-generic
  linux-cloud-tools-common linux-cloud-tools-generic linux-cloud-tools-virtual
  linux-generic linux-headers-5.4.0-122 linux-headers-5.4.0-122-generic
  linux-headers-5.4.0-42 linux-headers-5.4.0-42-generic linux-headers-generic
  linux-image-5.4.0-122-generic linux-image-5.4.0-42-generic
  linux-image-generic linux-modules-extra-5.4.0-122-generic
  linux-modules-extra-5.4.0-42-generic linux-tools-5.4.0-42
  linux-tools-5.4.0-42-generic linux-tools-common locales login logrotate
  logsave lsb-release lshw lsof ltrace lvm2 lz4 man-db mawk mdadm mlocate
  modemmanager mount mtr-tiny multipath-tools nano ncurses-bin netcat-openbsd
  netplan.io networkd-dispatcher ntfs-3g open-iscsi open-vm-tools
  openssh-client openssh-server openssh-sftp-server openssl os-prober
  overlayroot packagekit packagekit-tools parted passwd pastebinit patch
  pciutils perl perl-base perl-modules-5.30 pinentry-curses plymouth
  plymouth-theme-ubuntu-text policykit-1 pollinate popularity-contest procps
  psmisc python3 python3-apport python3-apt python3-attr python3-automat
  python3-blinker python3-certifi python3-cffi-backend python3-chardet
  python3-click python3-colorama python3-commandnotfound python3-configobj
  python3-constantly python3-cryptography python3-dbus python3-debconf
  python3-debian python3-distro python3-distro-info python3-distupgrade
  python3-entrypoints python3-gdbm python3-gi python3-hamcrest
  python3-httplib2 python3-hyperlink python3-idna python3-incremental
  python3-jwt python3-keyring python3-launchpadlib python3-lazr.restfulclient
  python3-lazr.uri python3-minimal python3-nacl python3-netifaces python3-newt
  python3-oauthlib python3-openssl python3-pexpect python3-pkg-resources
  python3-problem-report python3-ptyprocess python3-pyasn1
  python3-pyasn1-modules python3-pymacaroons python3-requests
  python3-requests-unixsocket python3-secretstorage python3-service-identity
  python3-simplejson python3-six python3-software-properties python3-systemd
  python3-twisted python3-twisted-bin python3-update-manager python3-urllib3
  python3-wadllib python3-yaml python3-zope.interface python3.8
  python3.8-minimal qemu-guest-agent rake readline-common rsync rsyslog ruby
  ruby2.7 rubygems-integration run-one sbsigntool screen secureboot-db sed
  sg3-utils sg3-utils-udev shared-mime-info snapd software-properties-common
  sosreport squashfs-tools ssh-import-id strace sudo sysstat systemd
  systemd-sysv systemd-timesyncd sysvinit-utils tar tasksel tasksel-data
  tcpdump telnet thin-provisioning-tools time tmux tpm-udev tzdata
  ubuntu-advantage-tools ubuntu-minimal ubuntu-release-upgrader-core
  ubuntu-server ubuntu-standard ucf udev udisks2 ufw unattended-upgrades unzip
  update-manager-core update-notifier-common usb-modeswitch usbutils
  util-linux uuid-runtime vim vim-common vim-nox vim-tiny wget whiptail xauth
  xdg-user-dirs xfsprogs xxd xz-utils zerofree zip zlib1g
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) gpgv (due to apt) libapt-pkg6.0 (due to apt)
  libc6 (due to apt) libgcc-s1 (due to apt) libgnutls30 (due to apt)
  libseccomp2 (due to apt) libstdc++6 (due to apt) libsystemd0 (due to apt)
  base-files libcrypt1 (due to base-files) base-passwd
  libdebconfclient0 (due to base-passwd) bash libtinfo6 (due to bash)
  debianutils (due to bash) bsdutils coreutils libacl1 (due to coreutils)
  libattr1 (due to coreutils) libselinux1 (due to coreutils) dash
  dpkg (due to dash) debconf (due to dash) diffutils libbz2-1.0 (due to dpkg)
  liblzma5 (due to dpkg) libzstd1 (due to dpkg) zlib1g (due to dpkg)
  tar (due to dpkg) e2fsprogs libblkid1 (due to e2fsprogs)
  libcom-err2 (due to e2fsprogs) libext2fs2 (due to e2fsprogs)
  libss2 (due to e2fsprogs) libuuid1 (due to e2fsprogs)
  logsave (due to e2fsprogs) fdisk libfdisk1 (due to fdisk)
  libmount1 (due to fdisk) libncursesw6 (due to fdisk)
  libsmartcols1 (due to fdisk) findutils grep libpcre3 (due to grep)
  install-info (due to grep) gzip hostname init systemd-sysv (due to init)
  init-system-helpers (due to init) perl-base (due to init-system-helpers)
  libc-bin login libaudit1 (due to login) libpam0g (due to login)
  libpam-runtime (due to login) libpam-modules (due to login) mount
  util-linux (due to mount) ncurses-bin sed sysvinit-utils
  libcap-ng0 (due to util-linux) libudev1 (due to util-linux)
0 upgraded, 0 newly installed, 572 to remove and 0 not upgraded.
After this operation, 1,367 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] Yes, do as I say!
(Reading database ... 111637 files and directories currently installed.)
Removing ubuntu-standard (1.450.2) ...
Removing language-selector-common (0.204.2) ...
Removing accountsservice (0.6.55-0ubuntu12~20.04.5) ...
Removing snapd (2.55.5+20.04) ...
Warning: Stopping snapd.service, but it can still be activated by:
  snapd.socket
Removing udisks2 (2.8.4-1ubuntu2) ...
Removing libnss-systemd:amd64 (245.4-4ubuntu3.17) ...
Checking NSS setup...
Removing apparmor (2.13.3-7ubuntu5.1) ...
Removing ubuntu-server (1.450.2) ...
Removing apport (2.20.11-0ubuntu27.24) ...
Removing ubuntu-minimal (1.450.2) ...
Removing apt-utils (2.0.9) ...
Removing update-notifier-common (3.192.30.11) ...
Removing at (3.1.23-1ubuntu1) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing bash (5.0-6ubuntu1.2) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing base-files (11ubuntu5.5) ...
Warning: Stopping motd-news.service, but it can still be activated by:
  motd-news.timer
dpkg: warning: while removing base-files, unable to remove directory '/sys': Device or resource busy - directory may be a mount point?
dpkg: warning: while removing base-files, unable to remove directory '/run': Device or resource busy - directory may be a mount point?
dpkg: warning: while removing base-files, unable to remove directory '/proc': Device or resource busy - directory may be a mount point?
dpkg: warning: while removing base-files, unable to remove directory '/dev': Device or resource busy - directory may be a mount point?
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing base-passwd (3.5.47) ...
Removing landscape-common (19.12-0ubuntu4.3) ...
Removing bc (1.07.1-2build1) ...
Removing bcache-tools (1.0.8-3ubuntu0.1) ...
Removing bind9-dnsutils (1:9.16.1-0ubuntu2.10) ...
Removing bind9-host (1:9.16.1-0ubuntu2.10) ...
Removing bind9-libs:amd64 (1:9.16.1-0ubuntu2.10) ...
Removing bolt (0.9.1-2~ubuntu20.04.1) ...
Removing man-db (2.9.1-1) ...
Removing bsdmainutils (11.1.2ubuntu3) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing bsdutils (1:2.34-0.1ubuntu9.3) ...
Removing btrfs-progs (5.4.1-2) ...
update-initramfs: deferring update (trigger activated)
Removing overlayroot (0.45ubuntu2) ...
Removing cryptsetup-initramfs (2:2.2.2-3ubuntu2.4) ...
update-initramfs: deferring update (trigger activated)
update-initramfs: deferring update (trigger activated)
Removing cloud-initramfs-dyn-netconf (0.45ubuntu2) ...
Removing byobu (5.133-0ubuntu1) ...
Removing bzip2 (1.0.8-2) ...
Removing software-properties-common (0.99.9.8) ...
Removing update-manager-core (1:20.04.10.10) ...
Removing ubuntu-release-upgrader-core (1:20.04.38) ...
Removing cloud-guest-utils (0.31-7-gd99b2d76-0ubuntu1) ...
Removing cloud-initramfs-copymods (0.45ubuntu2) ...
Removing command-not-found (20.04.6) ...
Removing linux-headers-5.4.0-42-generic (5.4.0-42.46) ...
Removing linux-headers-5.4.0-42 (5.4.0-42.46) ...
Removing linux-generic (5.4.0.122.123) ...
Removing linux-headers-generic (5.4.0.122.123) ...
Removing linux-headers-5.4.0-122-generic (5.4.0-122.138) ...
Removing linux-headers-5.4.0-122 (5.4.0-122.138) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing linux-modules-extra-5.4.0-42-generic (5.4.0-42.46) ...
Removing linux-image-generic (5.4.0.122.123) ...
Removing linux-modules-extra-5.4.0-122-generic (5.4.0-122.138) ...
Removing crda (3.18-1build1) ...
Removing logrotate (3.14.0-4ubuntu3) ...
Removing cron (3.0pl1-136ubuntu1) ...
Removing cryptsetup-run (2:2.2.2-3ubuntu2.4) ...
Removing cryptsetup (2:2.2.2-3ubuntu2.4) ...
Removing cryptsetup-bin (2:2.2.2-3ubuntu2.4) ...
Removing pollinate (4.33-3ubuntu1.20.04.1) ...
Removing curl (7.68.0-1ubuntu2.12) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing dash (0.5.10.2-6) ...
Removing 'diversion of /bin/sh to /bin/sh.distrib by dash'
Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash'
dpkg (subprocess): unable to execute installed dash package post-removal script (/var/lib/dpkg/info/dash.postrm): No such file or directory
dpkg: error processing package dash (--remove):
 installed dash package post-removal script subprocess returned error exit status 2
dpkg: too many errors, stopping
Errors were encountered while processing:
 dash
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
E: Problem executing scripts DPkg::Post-Invoke '/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --timeout 4 --method org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo > /dev/null'
E: Sub-process returned an error code
E: Sub-process [ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2>/dev/null || true returned an error code (100)
E: Failure running hook [ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2>/dev/null || true
Ubuntu 18
Docker
root@81a62b8bcca3:/# apt-get remove libc6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  adduser apt base-files base-passwd bash bsdutils bzip2 coreutils dash
  debconf debianutils diffutils dpkg e2fsprogs fdisk findutils gpgv grep gzip
  hostname init-system-helpers libacl1 libapt-pkg5.0 libattr1 libaudit1
  libblkid1 libbz2-1.0 libc-bin libc6 libcap-ng0 libcom-err2 libdb5.3
  libdebconfclient0 libext2fs2 libfdisk1 libffi6 libgcc1 libgcrypt20 libgmp10
  libgnutls30 libgpg-error0 libhogweed4 libidn2-0 liblz4-1 liblzma5 libmount1
  libncurses5 libncursesw5 libnettle6 libp11-kit0 libpam-modules
  libpam-modules-bin libpam-runtime libpam0g libpcre3 libprocps6 libseccomp2
  libselinux1 libsemanage1 libsepol1 libsmartcols1 libss2 libstdc++6
  libsystemd0 libtasn1-6 libtinfo5 libudev1 libunistring2 libuuid1 libzstd1
  login mawk mount ncurses-bin passwd perl-base procps sed sysvinit-utils tar
  util-linux zlib1g
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) gpgv (due to apt) libapt-pkg5.0 (due to apt)
  libc6 (due to apt) libgcc1 (due to apt) libgnutls30 (due to apt)
  libseccomp2 (due to apt) libstdc++6 (due to apt) base-files
  mawk (due to base-files) base-passwd libdebconfclient0 (due to base-passwd)
  bash libtinfo5 (due to bash) debianutils (due to bash) bsdutils
  libsystemd0 (due to bsdutils) coreutils libacl1 (due to coreutils)
  libattr1 (due to coreutils) libselinux1 (due to coreutils) dash
  dpkg (due to dash) diffutils libbz2-1.0 (due to dpkg) liblzma5 (due to dpkg)
  libzstd1 (due to dpkg) zlib1g (due to dpkg) tar (due to dpkg) e2fsprogs
  libblkid1 (due to e2fsprogs) libcom-err2 (due to e2fsprogs)
  libext2fs2 (due to e2fsprogs) libss2 (due to e2fsprogs)
  libuuid1 (due to e2fsprogs) fdisk libfdisk1 (due to fdisk)
  libmount1 (due to fdisk) libncursesw5 (due to fdisk)
  libsmartcols1 (due to fdisk) findutils grep libpcre3 (due to grep) gzip
  hostname init-system-helpers perl-base (due to init-system-helpers) libc-bin
  login libaudit1 (due to login) libpam0g (due to login)
  libpam-runtime (due to login) libpam-modules (due to login) mount
  util-linux (due to mount) ncurses-bin sed sysvinit-utils
  libudev1 (due to util-linux)
0 upgraded, 0 newly installed, 82 to remove and 0 not upgraded.
After this operation, 85.4 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] Yes, do as I say!
(Reading database ... 4051 files and directories currently installed.)
Removing apt (1.6.14) ...
Removing adduser (3.116ubuntu1) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing bash (4.4.18-2ubuntu1.3) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing base-files (10.1ubuntu2.11) ...
dpkg: warning: while removing base-files, unable to remove directory '/sys': Device or resource busy - directory may be a mount point?
dpkg: warning: while removing base-files, unable to remove directory '/proc': Device or resource busy - directory may be a mount point?
dpkg: warning: while removing base-files, unable to remove directory '/dev': Device or resource busy - directory may be a mount point?
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing base-passwd (3.5.44) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing bsdutils (1:2.31.1-0.4ubuntu3.7) ...
Removing bzip2 (1.0.6-8.1ubuntu0.2) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing coreutils (8.28-1ubuntu1) ...
/var/lib/dpkg/info/coreutils.postrm: 5: /var/lib/dpkg/info/coreutils.postrm: rm: not found
dpkg: error processing package coreutils (--remove):
 installed coreutils package post-removal script subprocess returned error exit status 127
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing dash (0.5.8-2.10) ...
Removing 'diversion of /bin/sh to /bin/sh.distrib by dash'
dpkg-divert: error: rename involves overwriting '/bin/sh' with
  different file '/bin/sh.distrib', not allowed
dpkg: error processing package dash (--remove):
 installed dash package pre-removal script subprocess returned error exit status 2
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing login (1:4.5-1ubuntu2.3) ...
Removing passwd (1:4.5-1ubuntu2.3) ...
/usr/bin/dpkg-maintscript-helper: 588: /usr/bin/dpkg-maintscript-helper: basename: not found
dpkg: error processing package passwd (--remove):
 installed passwd package pre-removal script subprocess returned error exit status 127
/sbin/shadowconfig: 12: /sbin/shadowconfig: chown: not found
/sbin/shadowconfig: 13: /sbin/shadowconfig: chmod: not found
/sbin/shadowconfig: 14: /sbin/shadowconfig: chown: not found
/sbin/shadowconfig: 15: /sbin/shadowconfig: chmod: not found
Please correct the error and rerun `/sbin/shadowconfig on'
dpkg: error while cleaning up:
 installed passwd package post-installation script subprocess returned error exit status 1
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing sysvinit-utils (2.88dsf-59.10ubuntu1) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing libpam-runtime (1.1.8-3.6ubuntu2.18.04.3) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
PAM configuration
-----------------

Pluggable Authentication Modules (PAM) determine how authentication,
authorization, and password changing are handled on the system, as well as
allowing configuration of additional actions to take when starting user
sessions.

Some PAM module packages provide profiles that can be used to automatically
adjust the behavior of all PAM-using applications on the system.  Please
indicate which of these behaviors you wish to enable.

  1. Create home directory on login

(Enter the items you want to select, separated by spaces.)

PAM profiles to enable: 
VM
root@ubuntu1804:/home/vagrant# apt-get remove libc6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  amd64-microcode distro-info-data javascript-common laptop-detect
  libjs-jquery libmagic-mgc ncurses-term ruby-did-you-mean ruby-minitest
  ruby-net-telnet ruby-power-assert wireless-regdb xkb-data
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  accountsservice acl acpid adduser apparmor apport apt apt-utils at
  base-files base-passwd bash bc bcache-tools bind9-host bsdmainutils bsdutils
  btrfs-progs btrfs-tools busybox-initramfs byobu bzip2 ca-certificates
  cloud-guest-utils cloud-initramfs-copymods cloud-initramfs-dyn-netconf
  command-not-found console-setup console-setup-linux coreutils cpio crda cron
  cryptsetup cryptsetup-bin curl dash dbus dbus-user-session debconf
  debconf-i18n debianutils diffutils dirmngr distro-info dmeventd dmidecode
  dmsetup dnsmasq-base dnsutils dosfstools dpkg e2fsprogs ebtables ed eject
  ethtool fdisk file findutils fonts-lato friendly-recovery ftp fuse gawk
  gettext-base gir1.2-glib-2.0 git gnupg gnupg-utils gpg gpg-agent
  gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv grep groff-base grub-common
  grub-gfxpayload-lists grub-legacy-ec2 grub-pc grub-pc-bin grub2-common gzip
  haveged hdparm hostname htop ifplugd ifupdown info init init-system-helpers
  initramfs-tools initramfs-tools-bin initramfs-tools-core install-info
  installation-report intel-microcode iproute2 iptables iputils-ping
  iputils-tracepath irqbalance isc-dhcp-client isc-dhcp-common iucode-tool iw
  kbd keyboard-configuration kmod landscape-common language-pack-en
  language-pack-en-base language-pack-gnome-en language-pack-gnome-en-base
  language-selector-common less libaccountsservice0 libacl1 libapparmor1
  libapt-inst2.0 libapt-pkg5.0 libargon2-0 libasn1-8-heimdal libassuan0
  libatm1 libattr1 libaudit1 libbind9-160 libblkid1 libbsd0 libbz2-1.0
  libc-bin libc6 libcap-ng0 libcap2 libcap2-bin libcom-err2 libcryptsetup12
  libcurl3-gnutls libcurl4 libdaemon0 libdb5.3 libdbus-1-3 libdebconfclient0
  libdevmapper-event1.02.1 libdevmapper1.02.1 libdns-export1100 libdns1100
  libdrm2 libdw1 libedit2 libelf1 liberror-perl libestr0 libevent-2.1-6
  libexpat1 libext2fs2 libfastjson4 libfdisk1 libffi6 libfreetype6 libfribidi0
  libfuse2 libgcc1 libgcrypt20 libgdbm-compat4 libgdbm5 libgeoip1
  libgirepository-1.0-1 libglib2.0-0 libgmp10 libgnutls30 libgpg-error0
  libgpm2 libgssapi-krb5-2 libgssapi3-heimdal libhavege1 libhcrypto4-heimdal
  libheimbase1-heimdal libheimntlm0-heimdal libhogweed4 libhx509-5-heimdal
  libicu60 libidn11 libidn2-0 libip4tc0 libip6tc0 libiptc0 libirs160
  libisc-export169 libisc169 libisccc160 libisccfg160 libisns0 libjson-c3
  libk5crypto3 libkeyutils1 libkmod2 libkrb5-26-heimdal libkrb5-3
  libkrb5support0 libksba8 libldap-2.4-2 liblocale-gettext-perl liblua5.2-0
  liblvm2app2.2 liblvm2cmd2.02 liblwres160 liblxc-common liblxc1 liblz4-1
  liblzma5 liblzo2-2 libmagic1 libmnl0 libmount1 libmpdec2 libmpfr6 libmspack0
  libncurses5 libncursesw5 libnetfilter-conntrack3 libnetplan0 libnettle6
  libnewt0.52 libnfnetlink0 libnghttp2-14 libnih1 libnl-3-200 libnl-genl-3-200
  libnpth0 libnss-systemd libntfs-3g88 libnuma1 libp11-kit0 libpam-cap
  libpam-modules libpam-modules-bin libpam-runtime libpam-systemd libpam0g
  libparted2 libpcap0.8 libpci3 libpcre3 libperl5.26 libpipeline1 libplymouth4
  libpng16-16 libpolkit-agent-1-0 libpolkit-backend-1-0 libpolkit-gobject-1-0
  libpopt0 libprocps6 libpsl5 libpython3-stdlib libpython3.6
  libpython3.6-minimal libpython3.6-stdlib libreadline5 libreadline7
  libroken18-heimdal librtmp1 libruby2.5 libsasl2-2 libsasl2-modules
  libsasl2-modules-db libseccomp2 libselinux1 libsemanage1 libsensors4
  libsepol1 libsigsegv2 libslang2 libsmartcols1 libsqlite3-0 libss2
  libssl1.0.0 libssl1.1 libstdc++6 libsystemd0 libtasn1-6 libtcl8.6
  libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libtinfo5
  libudev1 libunistring2 libunwind8 libusb-1.0-0 libutempter0 libuuid1 libuv1
  libwind0-heimdal libwrap0 libx11-6 libxau6 libxcb1 libxdmcp6 libxext6
  libxml2 libxmlsec1 libxmlsec1-openssl libxmuu1 libxslt1.1 libxtables12
  libyaml-0-2 libzstd1 linux-base linux-cloud-tools-4.15.0-156
  linux-cloud-tools-4.15.0-156-generic linux-cloud-tools-4.15.0-189
  linux-cloud-tools-4.15.0-189-generic linux-cloud-tools-common
  linux-cloud-tools-generic linux-cloud-tools-virtual linux-generic
  linux-headers-4.15.0-156 linux-headers-4.15.0-156-generic
  linux-headers-4.15.0-189 linux-headers-4.15.0-189-generic
  linux-headers-generic linux-image-4.15.0-156-generic
  linux-image-4.15.0-189-generic linux-image-generic
  linux-modules-extra-4.15.0-156-generic
  linux-modules-extra-4.15.0-189-generic linux-tools-4.15.0-156
  linux-tools-4.15.0-156-generic linux-tools-4.15.0-189
  linux-tools-4.15.0-189-generic linux-tools-common linux-tools-generic
  locales login logrotate lsb-release lshw lsof ltrace lvm2 lxcfs lxd
  lxd-client man-db mawk mdadm mlocate mount mtr-tiny multiarch-support nano
  ncurses-bin net-tools netcat-openbsd netplan.io networkd-dispatcher nplan
  ntfs-3g open-iscsi open-vm-tools openssh-client openssh-server
  openssh-sftp-server openssl os-prober overlayroot parted passwd pastebinit
  patch pciutils perl perl-base perl-modules-5.26 pinentry-curses plymouth
  plymouth-theme-ubuntu-text policykit-1 pollinate popularity-contest procps
  psmisc python3 python3-apport python3-apt python3-asn1crypto python3-attr
  python3-automat python3-certifi python3-cffi-backend python3-chardet
  python3-click python3-colorama python3-commandnotfound python3-configobj
  python3-constantly python3-cryptography python3-dbus python3-debconf
  python3-debian python3-distro-info python3-distupgrade python3-gdbm
  python3-gi python3-httplib2 python3-hyperlink python3-idna
  python3-incremental python3-minimal python3-netifaces python3-newt
  python3-openssl python3-pam python3-pexpect python3-pkg-resources
  python3-problem-report python3-ptyprocess python3-pyasn1
  python3-pyasn1-modules python3-requests python3-requests-unixsocket
  python3-serial python3-service-identity python3-six
  python3-software-properties python3-systemd python3-twisted
  python3-twisted-bin python3-update-manager python3-urllib3 python3-yaml
  python3-zope.interface python3.6 python3.6-minimal qemu-guest-agent rake
  readline-common rsync rsyslog ruby ruby-test-unit ruby2.5
  rubygems-integration run-one screen sed shared-mime-info snapd
  software-properties-common sosreport squashfs-tools ssh-import-id strace
  sudo sysstat systemd systemd-sysv sysvinit-utils tar tasksel tasksel-data
  tcpdump telnet time tmux tzdata ubuntu-advantage-tools ubuntu-minimal
  ubuntu-release-upgrader-core ubuntu-server ubuntu-standard ucf udev ufw
  uidmap unattended-upgrades unzip update-manager-core update-notifier-common
  ureadahead usbutils util-linux uuid-runtime vim vim-common vim-nox vim-tiny
  wget whiptail xauth xdelta3 xdg-user-dirs xfsprogs xxd xz-utils zerofree zip
  zlib1g
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) gpgv (due to apt) libapt-pkg5.0 (due to apt)
  libc6 (due to apt) libgcc1 (due to apt) libgnutls30 (due to apt)
  libseccomp2 (due to apt) libstdc++6 (due to apt) base-files base-passwd
  libdebconfclient0 (due to base-passwd) bash libtinfo5 (due to bash)
  debianutils (due to bash) bsdutils libsystemd0 (due to bsdutils) coreutils
  libacl1 (due to coreutils) libattr1 (due to coreutils)
  libselinux1 (due to coreutils) dash dpkg (due to dash) diffutils
  libbz2-1.0 (due to dpkg) liblzma5 (due to dpkg) libzstd1 (due to dpkg)
  zlib1g (due to dpkg) tar (due to dpkg) e2fsprogs
  libblkid1 (due to e2fsprogs) libcom-err2 (due to e2fsprogs)
  libext2fs2 (due to e2fsprogs) libss2 (due to e2fsprogs)
  libuuid1 (due to e2fsprogs) fdisk libfdisk1 (due to fdisk)
  libmount1 (due to fdisk) libncursesw5 (due to fdisk)
  libsmartcols1 (due to fdisk) findutils grep libpcre3 (due to grep)
  install-info (due to grep) gzip hostname init systemd-sysv (due to init)
  init-system-helpers (due to init) perl-base (due to init-system-helpers)
  libc-bin login libaudit1 (due to login) libpam0g (due to login)
  libpam-runtime (due to login) libpam-modules (due to login) mount
  util-linux (due to mount) ncurses-bin sed sysvinit-utils
  libudev1 (due to util-linux)
0 upgraded, 0 newly installed, 504 to remove and 0 not upgraded.
After this operation, 1,312 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] Yes, do as I say!
(Reading database ... 105963 files and directories currently installed.)
Removing ubuntu-standard (1.417.5) ...
Removing language-selector-common (0.188.3) ...
Removing accountsservice (0.6.45-1ubuntu1.3) ...
Removing lxd (3.0.3-0ubuntu1~18.04.2) ...
Removing lxd dnsmasq configuration
Removing acl (2.2.52-3build1) ...
Removing ubuntu-server (1.417.5) ...
Removing acpid (1:2.0.28-1ubuntu1) ...
Warning: Stopping acpid.service, but it can still be activated by:
  acpid.path
Removing snapd (2.55.5+18.04) ...
Warning: Stopping snapd.service, but it can still be activated by:
  snapd.socket
Removing ubuntu-minimal (1.417.5) ...
Removing libnss-systemd:amd64 (237-3ubuntu10.53) ...
Checking NSS setup...
Removing apparmor (2.12-4ubuntu5.1) ...
Removing apport (2.20.9-0ubuntu7.28) ...
Removing ubuntu-advantage-tools (27.9~18.04.1) ...
Removing apt-utils (1.6.14) ...
Removing update-notifier-common (3.192.1.12) ...
Removing at (3.1.20-3.1ubuntu2) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing bash (4.4.18-2ubuntu1.3) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing logrotate (3.11.0-0.1ubuntu1) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing base-passwd (3.5.44) ...
Removing landscape-common (18.01-0ubuntu3.6) ...
Removing bc (1.07.1-2) ...
Removing bcache-tools (1.0.8-2ubuntu0.18.04.1) ...
Removing dnsutils (1:9.11.3+dfsg-1ubuntu1.17) ...
Removing bind9-host (1:9.11.3+dfsg-1ubuntu1.17) ...
Removing man-db (2.8.3-2ubuntu0.1) ...
Removing bsdmainutils (11.1.2ubuntu1) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing bsdutils (1:2.31.1-0.4ubuntu3.7) ...
Removing btrfs-tools (4.15.1-1build1) ...
Removing btrfs-progs (4.15.1-1build1) ...
Removing overlayroot (0.40ubuntu1.1) ...
Removing byobu (5.125-0ubuntu1) ...
Removing bzip2 (1.0.6-8.1ubuntu0.2) ...
Removing software-properties-common (0.96.24.32.18) ...
Removing python3-apport (2.20.9-0ubuntu7.28) ...
Removing python3-httplib2 (0.9.2+dfsg-1ubuntu0.3) ...
Removing cloud-guest-utils (0.30-0ubuntu5) ...
Removing cloud-initramfs-copymods (0.40ubuntu1.1) ...
Removing cloud-initramfs-dyn-netconf (0.40ubuntu1.1) ...
Removing command-not-found (18.04.6) ...
Removing linux-generic (4.15.0.189.174) ...
Removing linux-headers-generic (4.15.0.189.174) ...
Removing linux-headers-4.15.0-189-generic (4.15.0-189.200) ...
Removing linux-headers-4.15.0-189 (4.15.0-189.200) ...
Removing linux-headers-4.15.0-156-generic (4.15.0-156.163) ...
Removing linux-headers-4.15.0-156 (4.15.0-156.163) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing linux-image-generic (4.15.0.189.174) ...
Removing linux-modules-extra-4.15.0-189-generic (4.15.0-189.200) ...
Removing linux-modules-extra-4.15.0-156-generic (4.15.0-156.163) ...
Removing crda (3.18-1build1) ...
Removing cron (3.0pl1-128.1ubuntu1.2) ...
Removing cryptsetup (2:2.0.2-1ubuntu1.2) ...
update-initramfs: deferring update (trigger activated)
Removing cryptsetup-bin (2:2.0.2-1ubuntu1.2) ...
Removing pollinate (4.33-0ubuntu1~18.04.2) ...
Removing curl (7.58.0-2ubuntu3.19) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing dash (0.5.8-2.10) ...
Removing 'diversion of /bin/sh to /bin/sh.distrib by dash'
dpkg-divert: error: rename involves overwriting '/bin/sh' with
  different file '/bin/sh.distrib', not allowed
dpkg: error processing package dash (--remove):
 installed dash package pre-removal script subprocess returned error exit status 2
Removing dbus-user-session (1.12.2-1ubuntu1.3) ...
Removing policykit-1 (0.105-20ubuntu0.18.04.6) ...
Removing libpam-systemd:amd64 (237-3ubuntu10.53) ...
Removing dbus (1.12.2-1ubuntu1.3) ...
Removing debconf-i18n (1.5.66ubuntu1) ...
Removing openssh-server (1:7.6p1-4ubuntu0.7) ...
Removing linux-image-4.15.0-189-generic (4.15.0-189.200) ...
W: Removing the running kernel
I: /vmlinuz is now a symlink to boot/vmlinuz-4.15.0-156-generic
I: /initrd.img is now a symlink to boot/initrd.img-4.15.0-156-generic
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.15.0-189-generic
/etc/kernel/postrm.d/x-grub-legacy-ec2:
/etc/kernel/postrm.d/x-grub-legacy-ec2: 18: exec: /usr/sbin/update-grub-legacy-ec2: not found
run-parts: /etc/kernel/postrm.d/x-grub-legacy-ec2 exited with return code 127
dpkg: error processing package linux-image-4.15.0-189-generic (--remove):
 installed linux-image-4.15.0-189-generic package post-removal script subprocess returned error exit status 1
Removing isc-dhcp-common (4.3.5-3ubuntu7.3) ...
Removing isc-dhcp-client (4.3.5-3ubuntu7.3) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing diffutils (1:3.6-1) ...
Removing gnupg (2.2.4-1ubuntu1.6) ...
Removing gpg-wks-client (2.2.4-1ubuntu1.6) ...
Removing dirmngr (2.2.4-1ubuntu1.6) ...
Removing distro-info (0.18ubuntu0.18.04.1) ...
Removing lvm2 (2.02.176-4.1ubuntu3.18.04.3) ...
Warning: Stopping lvm2-lvmpolld.service, but it can still be activated by:
  lvm2-lvmpolld.socket
Warning: Stopping lvm2-lvmetad.service, but it can still be activated by:
  lvm2-lvmetad.socket
Removing dmidecode (3.1-1ubuntu0.1) ...
Removing os-prober (1.74ubuntu1) ...
Removing dmsetup (2:1.02.145-4.1ubuntu3.18.04.3) ...
Removing dnsmasq-base (2.79-1ubuntu0.6) ...
Removing dosfstools (4.1-1) ...
Removing openssh-sftp-server (1:7.6p1-4ubuntu0.7) ...
Removing ssh-import-id (5.7-0ubuntu1.1) ...
Removing openssh-client (1:7.6p1-4ubuntu0.7) ...
Removing python3-software-properties (0.96.24.32.18) ...
Removing unattended-upgrades (1.1ubuntu1.18.04.14) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing e2fsprogs (1.44.1-1ubuntu1.4) ...
Removing ebtables (2.0.10.4-3.5ubuntu2.18.04.3) ...
Removing ed (1.10-2.1) ...
Removing eject (2.1.5+deb1+cvs20081104-13.2) ...
Removing ethtool (1:4.15-0ubuntu1) ...
Removing ntfs-3g (1:2017.3.23-2ubuntu0.18.04.4) ...
Removing fuse (2.9.7-1ubuntu1) ...
update-initramfs: deferring update (trigger activated)
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing file (1:5.32-2ubuntu0.4) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing findutils (4.6.0+git+20170828-2) ...
Removing fonts-lato (2.0-2) ...
Removing friendly-recovery (0.2.38ubuntu1.2) ...
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-156-generic
Found initrd image: /boot/initrd.img-4.15.0-156-generic
done
Removing ftp (0.17-34) ...
Removing gawk (1:4.1.4+dfsg-1build1) ...
update-alternatives: using /usr/bin/mawk to provide /usr/bin/awk (awk) in auto mode
Removing networkd-dispatcher (1.7-0ubuntu3.5) ...
Removing python3-gi (3.26.1-2ubuntu1) ...
Removing gir1.2-glib-2.0:amd64 (1.56.1-1) ...
Removing git (1:2.17.1-1ubuntu0.11) ...
Removing gnupg-utils (2.2.4-1ubuntu1.6) ...
Removing gpg-wks-server (2.2.4-1ubuntu1.6) ...
Removing gpg (2.2.4-1ubuntu1.6) ...
Removing gpg-agent (2.2.4-1ubuntu1.6) ...
Removing gpgsm (2.2.4-1ubuntu1.6) ...
Removing gpgconf (2.2.4-1ubuntu1.6) ...
Removing update-manager-core (1:18.04.11.13) ...
Removing ubuntu-release-upgrader-core (1:18.04.45) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing grep (3.1-2build1) ...
Removing groff-base (1.22.3-10) ...
Removing grub-legacy-ec2 (1:1) ...
Removing 'diversion of /usr/sbin/grub-set-default to /usr/sbin/grub-set-default.real by grub-legacy-ec2'
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing gzip (1.6-5ubuntu1.2) ...
Removing haveged (1.9.1-6) ...
Removing hdparm (9.54+ds-1) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing hostname (3.20) ...
Removing htop (2.1.0-3) ...
Removing ifplugd (0.28-19.2) ...
Removing ifupdown (0.8.17ubuntu1.1) ...
Removing info (6.5.0.dfsg.1-2) ...
Removing init (1.51) ...
Removing run-one (1.17-0ubuntu1) ...
Removing rsyslog (8.32.0-1ubuntu4.2) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing parted (3.2-20ubuntu0.2) ...
Removing vim-nox (2:8.0.1453-1ubuntu1.8) ...
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode
Removing xfsprogs (4.9.0+nmu1ubuntu2) ...
Removing libreadline5:amd64 (5.2+dfsg-3build1) ...
Removing install-info (6.5.0.dfsg.1-2) ...
Removing installation-report (2.62ubuntu1) ...
Removing intel-microcode (3.20220510.0ubuntu0.18.04.1) ...
update-initramfs: deferring update (trigger activated)
Removing nplan (0.99-0ubuntu3~18.04.5) ...
Removing netplan.io (0.99-0ubuntu3~18.04.5) ...
dpkg: warning: while removing netplan.io, directory '/usr/share/netplan/netplan/cli/commands' not empty so not removed
dpkg: warning: while removing netplan.io, directory '/etc/netplan' not empty so not removed
Removing open-vm-tools (2:11.0.5-4ubuntu0.18.04.1) ...
dpkg (subprocess): unable to execute installed open-vm-tools package pre-removal script (/var/lib/dpkg/info/open-vm-tools.prerm): No such file or directory
dpkg: error processing package open-vm-tools (--remove):
 installed open-vm-tools package pre-removal script subprocess returned error exit status 2
Removing ufw (0.36-0ubuntu0.18.04.2) ...
Skip stopping firewall: ufw (not enabled)
Removing iptables (1.6.1-2ubuntu2) ...
Removing iputils-ping (3:20161105-1ubuntu3) ...
Removing iputils-tracepath (3:20161105-1ubuntu3) ...
Removing irqbalance (1.3.0-0.1ubuntu0.18.04.1) ...
Removing iucode-tool (2.3.1-1) ...
Removing iw (4.14-0.1) ...
Removing linux-image-4.15.0-156-generic (4.15.0-156.163) ...
W: Last kernel image has been removed, so removing the default symlinks
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.15.0-156-generic
/etc/kernel/postrm.d/zz-update-grub:
/usr/sbin/grub-mkconfig: 105: /usr/sbin/grub-mkconfig: fgrep: not found
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
/usr/sbin/grub-mkconfig: 291: /usr/sbin/grub-mkconfig: grep: not found
done
Removing less (487-0.1) ...
Removing libaccountsservice0:amd64 (0.6.45-1ubuntu1.3) ...
Removing vim-tiny (2:8.0.1453-1ubuntu1.8) ...
Removing libcurl4:amd64 (7.58.0-2ubuntu3.19) ...
Removing libcurl3-gnutls:amd64 (7.58.0-2ubuntu3.19) ...
Removing libldap-2.4-2:amd64 (2.4.45+dfsg-1ubuntu1.11) ...
Removing libgssapi3-heimdal:amd64 (7.5.0+dfsg-1) ...
Removing libheimntlm0-heimdal:amd64 (7.5.0+dfsg-1) ...
Removing libkrb5-26-heimdal:amd64 (7.5.0+dfsg-1) ...
Removing libhx509-5-heimdal:amd64 (7.5.0+dfsg-1) ...
Removing pinentry-curses (1.1.0-1) ...
Removing libassuan0:amd64 (2.5.1-2) ...
Removing libatm1:amd64 (1:2.5.1-2build1) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing login (1:4.5-1ubuntu2.3) ...
Removing libbind9-160:amd64 (1:9.11.3+dfsg-1ubuntu1.17) ...
Removing ureadahead (0.100.0-21) ...
Removing libparted2:amd64 (3.2-20ubuntu0.2) ...
Removing netcat-openbsd (1.187-1ubuntu0.1) ...
Removing xauth (1:1.0.10-1) ...
Removing unzip (6.0-21ubuntu1.1) ...
Removing vim (2:8.0.1453-1ubuntu1.8) ...
Removing libpython3.6:amd64 (3.6.9-1~18.04ubuntu1.7) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing uidmap (1:4.5-1ubuntu2.3) ...
Removing libxext6:amd64 (2:1.3.3-1) ...
Removing libpam-cap:amd64 (1:2.25-1.2) ...
Removing libcap2-bin (1:2.25-1.2) ...
Removing libss2:amd64 (1.44.1-1ubuntu1.4) ...
Removing libwind0-heimdal:amd64 (7.5.0+dfsg-1) ...
Removing libirs160:amd64 (1:9.11.3+dfsg-1ubuntu1.17) ...
Removing libisccfg160:amd64 (1:9.11.3+dfsg-1ubuntu1.17) ...
Removing libdns1100:amd64 (1:9.11.3+dfsg-1ubuntu1.17) ...
Removing libgssapi-krb5-2:amd64 (1.16-2ubuntu0.2) ...
Removing libkrb5-3:amd64 (1.16-2ubuntu0.2) ...
Removing libdaemon0:amd64 (0.14-6) ...
Removing libsasl2-2:amd64 (2.1.27~101-g0780600+dfsg-3ubuntu2.4) ...
Removing libsasl2-modules-db:amd64 (2.1.27~101-g0780600+dfsg-3ubuntu2.4) ...
Removing liberror-perl (0.17025-1) ...
Removing perl (5.26.1-6ubuntu0.5) ...
Removing libperl5.26:amd64 (5.26.1-6ubuntu0.5) ...
Removing python3-dbus (1.2.6-1) ...
Removing libdbus-1-3:amd64 (1.12.2-1ubuntu1.3) ...
Removing libdebconfclient0:amd64 (0.213ubuntu1) ...
Removing liblvm2app2.2:amd64 (2.02.176-4.1ubuntu3.18.04.3) ...
Removing libdns-export1100 (1:9.11.3+dfsg-1ubuntu1.17) ...
Removing plymouth-theme-ubuntu-text (0.9.3-1ubuntu7.18.04.2) ...
update-initramfs: deferring update (trigger activated)
Removing plymouth (0.9.3-1ubuntu7.18.04.2) ...
update-initramfs: deferring update (trigger activated)
Removing linux-tools-generic (4.15.0.189.174) ...
Removing linux-tools-4.15.0-189-generic (4.15.0-189.200) ...
Removing linux-tools-4.15.0-189 (4.15.0-189.200) ...
Removing linux-tools-4.15.0-156-generic (4.15.0-156.163) ...
Removing linux-tools-4.15.0-156 (4.15.0-156.163) ...
Removing libdw1:amd64 (0.170-0.4ubuntu0.1) ...
Removing libedit2:amd64 (3.1-20170329-1) ...
Removing ltrace (0.7.3-6ubuntu1) ...
Removing libestr0:amd64 (0.1.10-2.1) ...
Removing tmux (2.6-3ubuntu0.2) ...
/usr/sbin/remove-shell: 33: /usr/sbin/remove-shell: grep: not found
/usr/sbin/remove-shell: 33: /usr/sbin/remove-shell: grep: not found
Removing libevent-2.1-6:amd64 (2.1.8-stable-4build1) ...
Removing python3-twisted (17.9.0-2ubuntu0.3) ...
/var/lib/dpkg/info/python3-twisted.postrm: 8: /var/lib/dpkg/info/python3-twisted.postrm: xargs: not found
dpkg: error processing package python3-twisted (--remove):
 installed python3-twisted package post-removal script subprocess returned error exit status 127
No apport report written because MaxReports is reached already
                                                              Removing python3-twisted-bin:amd64 (17.9.0-2ubuntu0.3) ...
Removing libpolkit-backend-1-0:amd64 (0.105-20ubuntu0.18.04.6) ...
Removing zerofree (1.0.4-1) ...
Removing libext2fs2:amd64 (1.44.1-1ubuntu1.4) ...
Removing libfastjson4:amd64 (0.99.8-2) ...
Removing librtmp1:amd64 (2.4+20151223.gitfa8646d.1-1) ...
Removing libfribidi0:amd64 (0.19.7-2ubuntu0.1) ...
Removing lxcfs (3.0.3-0ubuntu1~18.04.2) ...
Removing qemu-guest-agent (1:2.11+dfsg-1ubuntu7.40) ...
Removing lshw (02.18-0.1ubuntu6.18.04.2) ...
Removing uuid-runtime (2.31.1-0.4ubuntu3.7) ...
Warning: Stopping uuidd.service, but it can still be activated by:
  uuidd.socket
Removing python3-commandnotfound (18.04.6) ...
Removing python3-gdbm:amd64 (3.6.9-1~18.04) ...
Removing libgeoip1:amd64 (1.6.12-1) ...
Removing libgirepository-1.0-1:amd64 (1.56.1-1) ...
Removing libpolkit-agent-1-0:amd64 (0.105-20ubuntu0.18.04.6) ...
Removing libpolkit-gobject-1-0:amd64 (0.105-20ubuntu0.18.04.6) ...
Removing libksba8:amd64 (1.3.5-2) ...
Removing libgpm2:amd64 (1.20.7-5) ...
Removing libhavege1:amd64 (1.9.1-6) ...
Removing libhcrypto4-heimdal:amd64 (7.5.0+dfsg-1) ...
Removing libheimbase1-heimdal:amd64 (7.5.0+dfsg-1) ...
Removing libisccc160:amd64 (1:9.11.3+dfsg-1ubuntu1.17) ...
Removing libisc169:amd64 (1:9.11.3+dfsg-1ubuntu1.17) ...
Removing wget (1.19.4-1ubuntu2.2) ...
Removing libpsl5:amd64 (0.19.1-5build1) ...
Removing libip6tc0:amd64 (1.6.1-2ubuntu2) ...
Removing libiptc0:amd64 (1.6.1-2ubuntu2) ...
Removing libisc-export169:amd64 (1:9.11.3+dfsg-1ubuntu1.17) ...
Removing open-iscsi (2.0.874-5ubuntu2.11) ...
Warning: Stopping iscsid.service, but it can still be activated by:
  iscsid.socket
Removing libisns0:amd64 (0.97-2build1) ...
Removing libk5crypto3:amd64 (1.16-2ubuntu0.2) ...
Removing libkeyutils1:amd64 (1.5.9-9.2ubuntu2.1) ...
Removing libkrb5support0:amd64 (1.16-2ubuntu0.2) ...
Removing liblua5.2-0:amd64 (5.2.4-1.1build1) ...
Removing liblwres160:amd64 (1:9.11.3+dfsg-1ubuntu1.17) ...
Removing squashfs-tools (1:4.3-6ubuntu0.18.04.4) ...
Removing sysstat (11.6.1-1ubuntu0.1) ...
Removing xz-utils (5.2.2-1.3ubuntu0.1) ...
Removing xdelta3 (3.0.11-dfsg-1ubuntu1) ...
Removing liblzo2-2:amd64 (2.08-1.2) ...
Removing libmagic1:amd64 (1:5.32-2ubuntu0.4) ...
Removing libnetfilter-conntrack3:amd64 (1.0.6-2) ...
Removing libmpfr6:amd64 (4.0.1-1) ...
Removing mtr-tiny (0.92-1) ...
Removing nano (2.9.3-2) ...
Removing libnetplan0:amd64 (0.99-0ubuntu3~18.04.5) ...
Removing whiptail (0.52.20-1ubuntu1) ...
Removing python3-newt:amd64 (0.52.20-1ubuntu1) ...
Removing libnewt0.52:amd64 (0.52.20-1ubuntu1) ...
Removing libnfnetlink0:amd64 (1.0.1-3) ...
Removing libnghttp2-14:amd64 (1.30.0-1ubuntu1) ...
Removing libnih1:amd64 (1.0.3-6ubuntu2) ...
Removing libnl-genl-3-200:amd64 (3.2.29-0ubuntu3) ...
Removing libnl-3-200:amd64 (3.2.29-0ubuntu3) ...
Removing libnpth0:amd64 (1.5-3) ...
Removing libntfs-3g88 (1:2017.3.23-2ubuntu0.18.04.4) ...
Removing libnuma1:amd64 (2.0.11-2.1ubuntu0.1) ...
Removing sudo (1.8.21p2-3ubuntu1.4) ...
You have asked that the sudo package be removed,
but no root password has been set.
Without sudo, you may not be able to gain administrative privileges.

If you would prefer to access the root account with su(1)
or by logging in directly,
you must set a root password with "sudo passwd".

If you have arranged other means to access the root account,
and you are sure this is what you want,
you may bypass this check by setting an environment variable 
(export SUDO_FORCE_REMOVE=yes).

Refusing to remove sudo.
dpkg: error processing package sudo (--remove):
 installed sudo package pre-removal script subprocess returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Removing libpam-runtime (1.1.8-3.6ubuntu2.18.04.3) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
PAM configuration
-----------------

Pluggable Authentication Modules (PAM) determine how authentication, 
authorization, and password changing are handled on the system, as well as 
allowing configuration of additional actions to take when starting user 
sessions.

Some PAM module packages provide profiles that can be used to automatically 
adjust the behavior of all PAM-using applications on the system.  Please 
indicate which of these behaviors you wish to enable.

  1. Create home directory on login

(Enter the items you want to select, separated by spaces.)

PAM profiles to enable: 
Ubuntu 16
Docker
root@f045944ea576:/# apt-get remove libc6  
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  adduser apt base-files base-passwd bash bsdutils coreutils dash debconf
  debianutils diffutils dpkg e2fslibs e2fsprogs findutils gnupg gpgv grep gzip
  hostname init init-system-helpers initscripts insserv libacl1 libapparmor1
  libapt-pkg5.0 libattr1 libaudit1 libblkid1 libbz2-1.0 libc-bin libc6 libcap2
  libcap2-bin libcomerr2 libcryptsetup4 libdb5.3 libdebconfclient0
  libdevmapper1.02.1 libfdisk1 libgcc1 libgcrypt20 libgpg-error0 libkmod2
  liblz4-1 liblzma5 libmount1 libncurses5 libncursesw5 libpam-modules
  libpam-modules-bin libpam-runtime libpam0g libpcre3 libprocps4 libreadline6
  libseccomp2 libselinux1 libsemanage1 libsepol1 libsmartcols1 libss2
  libstdc++6 libsystemd0 libtinfo5 libudev1 libusb-0.1-4 libustr-1.0-1
  libuuid1 libzstd1 login makedev mawk mount multiarch-support ncurses-bin
  passwd perl-base procps readline-common sed systemd systemd-sysv sysv-rc
  sysvinit-utils tar util-linux zlib1g
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt libapt-pkg5.0 (due to apt) libc6 (due to apt) libgcc1 (due to apt)
  libstdc++6 (due to apt) init-system-helpers (due to apt) gpgv (due to apt)
  gnupg (due to apt) adduser (due to apt) base-files mawk (due to base-files)
  base-passwd libdebconfclient0 (due to base-passwd) bash dash (due to bash)
  libtinfo5 (due to bash) debianutils (due to bash) bsdutils
  libsystemd0 (due to bsdutils) coreutils libacl1 (due to coreutils)
  libattr1 (due to coreutils) libselinux1 (due to coreutils)
  dpkg (due to dash) diffutils libbz2-1.0 (due to dpkg) liblzma5 (due to dpkg)
  libzstd1 (due to dpkg) zlib1g (due to dpkg) tar (due to dpkg) e2fsprogs
  e2fslibs (due to e2fsprogs) libblkid1 (due to e2fsprogs)
  libcomerr2 (due to e2fsprogs) libss2 (due to e2fsprogs)
  libuuid1 (due to e2fsprogs) util-linux (due to e2fsprogs) findutils grep
  libpcre3 (due to grep) gzip hostname init systemd-sysv (due to init)
  libc-bin login libaudit1 (due to login) libpam0g (due to login)
  libpam-runtime (due to login) libpam-modules (due to login) mount
  libmount1 (due to mount) libsmartcols1 (due to mount)
  libudev1 (due to mount) ncurses-bin perl-base sed
  libfdisk1 (due to util-linux) libncursesw5 (due to util-linux)
  sysvinit-utils (due to util-linux)
0 upgraded, 0 newly installed, 89 to remove and 0 not upgraded.
After this operation, 99.3 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
VM
root@ubuntu1604:/home/vagrant# apt-get remove libc6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  amd64-microcode iso-codes javascript-common libdrm-common libjs-jquery
  ncurses-term ruby-did-you-mean ruby-minitest ruby-net-telnet
  ruby-power-assert ruby-test-unit wireless-regdb
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  accountsservice acl acpid adduser apparmor apt apt-transport-https apt-utils
  at base-files base-passwd bash bash-completion bcache-tools bind9-host
  bsdmainutils bsdutils btrfs-tools busybox-initramfs byobu bzip2
  ca-certificates cloud-guest-utils cloud-initramfs-copymods
  cloud-initramfs-dyn-netconf console-setup console-setup-linux coreutils cpio
  crda cron cryptsetup cryptsetup-bin curl dash dbus debconf debconf-i18n
  debianutils dh-python diffutils distro-info dmeventd dmidecode dmsetup
  dnsmasq-base dnsutils dosfstools dpkg e2fslibs e2fsprogs ed eject ethtool
  file findutils fonts-lato friendly-recovery ftp fuse gawk gettext-base
  gir1.2-glib-2.0 git gnupg gpgv grep groff-base grub-common
  grub-gfxpayload-lists grub-legacy-ec2 grub-pc grub-pc-bin grub2-common gzip
  haveged hdparm hostname ifenslave ifplugd ifupdown info init
  init-system-helpers initramfs-tools initramfs-tools-bin initramfs-tools-core
  initscripts insserv install-info installation-report intel-microcode
  iproute2 iptables iputils-ping iputils-tracepath irqbalance isc-dhcp-client
  isc-dhcp-common iucode-tool iw kbd keyboard-configuration kmod
  language-pack-en language-pack-en-base language-pack-gnome-en
  language-pack-gnome-en-base language-selector-common laptop-detect less
  libaccountsservice0 libacl1 libapparmor-perl libapparmor1 libapt-inst2.0
  libapt-pkg5.0 libasn1-8-heimdal libasprintf0v5 libatm1 libattr1 libaudit1
  libbind9-140 libblkid1 libbsd0 libbz2-1.0 libc-bin libc6 libcap-ng0 libcap2
  libcap2-bin libcomerr2 libcryptsetup4 libcurl3-gnutls libdaemon0 libdb5.3
  libdbus-1-3 libdbus-glib-1-2 libdebconfclient0 libdevmapper-event1.02.1
  libdevmapper1.02.1 libdns-export162 libdns162 libdrm2 libdumbnet1 libdw1
  libedit2 libelf1 liberror-perl libestr0 libevent-2.0-5 libexpat1 libfdisk1
  libffi6 libfreetype6 libfribidi0 libfuse2 libgcc1 libgcrypt20 libgdbm3
  libgeoip1 libgirepository-1.0-1 libglib2.0-0 libgmp10 libgnutls-openssl27
  libgnutls30 libgpg-error0 libgpm2 libgssapi-krb5-2 libgssapi3-heimdal
  libhavege1 libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal
  libhogweed4 libhx509-5-heimdal libicu55 libidn11 libisc-export160 libisc160
  libisccc140 libisccfg140 libjson-c2 libk5crypto3 libkeyutils1 libkmod2
  libkrb5-26-heimdal libkrb5-3 libkrb5support0 libldap-2.4-2
  liblocale-gettext-perl liblua5.2-0 liblvm2app2.2 liblvm2cmd2.02 liblwres141
  liblxc1 liblz4-1 liblzma5 liblzo2-2 libmagic1 libmnl0 libmount1 libmpdec2
  libmpfr4 libmspack0 libncurses5 libncursesw5 libnetfilter-conntrack3
  libnettle6 libnewt0.52 libnfnetlink0 libnih1 libnl-3-200 libnl-genl-3-200
  libnuma1 libp11-kit0 libpam-modules libpam-modules-bin libpam-runtime
  libpam-systemd libpam0g libparted2 libpcap0.8 libpci3 libpcre3 libperl5.22
  libpipeline1 libplymouth4 libpng12-0 libpolkit-agent-1-0
  libpolkit-backend-1-0 libpolkit-gobject-1-0 libpopt0 libprocps4
  libpython3-stdlib libpython3.5 libpython3.5-minimal libpython3.5-stdlib
  libreadline5 libreadline6 libroken18-heimdal librtmp1 libruby2.3 libsasl2-2
  libsasl2-modules libsasl2-modules-db libseccomp2 libselinux1 libsemanage1
  libsensors4 libsepol1 libsigsegv2 libslang2 libsmartcols1 libsqlite3-0
  libss2 libssl1.0.0 libstdc++6 libsystemd0 libtasn1-6 libtcl8.6
  libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libtinfo5
  libudev1 libunwind8 libusb-0.1-4 libusb-1.0-0 libustr-1.0-1 libutempter0
  libuuid1 libwind0-heimdal libwrap0 libx11-6 libxau6 libxcb1 libxdmcp6
  libxext6 libxml2 libxmlsec1 libxmlsec1-openssl libxmuu1 libxslt1.1
  libxtables11 libyaml-0-2 libzstd1 linux-base linux-cloud-tools-4.4.0-186
  linux-cloud-tools-4.4.0-186-generic linux-cloud-tools-4.4.0-210
  linux-cloud-tools-4.4.0-210-generic linux-cloud-tools-common
  linux-cloud-tools-generic linux-cloud-tools-virtual linux-generic
  linux-headers-4.4.0-186 linux-headers-4.4.0-186-generic
  linux-headers-4.4.0-210 linux-headers-4.4.0-210-generic
  linux-headers-generic linux-image-4.4.0-186-generic
  linux-image-4.4.0-210-generic linux-image-generic
  linux-modules-extra-4.4.0-186-generic linux-modules-extra-4.4.0-210-generic
  locales login logrotate lsb-release lshw lsof ltrace lvm2 lxc-common lxcfs
  lxd lxd-client makedev man-db mawk mdadm mlocate mount mtr-tiny
  multiarch-support nano ncurses-bin net-tools netcat-openbsd ntfs-3g
  open-iscsi open-vm-tools openssh-client openssh-server openssh-sftp-server
  openssl os-prober overlayroot parted passwd pastebinit patch pciutils perl
  perl-base perl-modules-5.22 plymouth policykit-1 popularity-contest procps
  psmisc python-apt-common python3 python3-apt python3-chardet python3-dbus
  python3-debian python3-distro-info python3-gdbm python3-gi python3-minimal
  python3-newt python3-pkg-resources python3-problem-report python3-pycurl
  python3-requests python3-six python3-systemd python3-urllib3 python3-yaml
  python3.5 python3.5-minimal qemu-guest-agent rake readline-common rename
  resolvconf rsync rsyslog ruby ruby2.3 rubygems-integration run-one screen
  sed sgml-base shared-mime-info snapd sosreport squashfs-tools ssh-import-id
  strace sudo sysstat systemd systemd-sysv sysv-rc sysvinit-utils tar tasksel
  tasksel-data tcpd tcpdump telnet time tmux tzdata ubuntu-advantage-tools
  ubuntu-standard ucf udev ufw uidmap unzip ureadahead usbutils util-linux
  uuid-runtime vim vim-common vim-nox vim-tiny vlan wazuh-agent wget whiptail
  xauth xdg-user-dirs xfsprogs xml-core xz-utils zerofree zip zlib1g
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt libapt-pkg5.0 (due to apt) libc6 (due to apt) libgcc1 (due to apt)
  libstdc++6 (due to apt) init-system-helpers (due to apt) gpgv (due to apt)
  gnupg (due to apt) adduser (due to apt) base-files base-passwd
  libdebconfclient0 (due to base-passwd) bash dash (due to bash)
  libtinfo5 (due to bash) debianutils (due to bash) bsdutils
  libsystemd0 (due to bsdutils) coreutils libacl1 (due to coreutils)
  libattr1 (due to coreutils) libselinux1 (due to coreutils)
  dpkg (due to dash) diffutils libbz2-1.0 (due to dpkg) liblzma5 (due to dpkg)
  libzstd1 (due to dpkg) zlib1g (due to dpkg) tar (due to dpkg) e2fsprogs
  e2fslibs (due to e2fsprogs) libblkid1 (due to e2fsprogs)
  libcomerr2 (due to e2fsprogs) libss2 (due to e2fsprogs)
  libuuid1 (due to e2fsprogs) util-linux (due to e2fsprogs) findutils grep
  libpcre3 (due to grep) install-info (due to grep) gzip hostname init
  systemd-sysv (due to init) libc-bin login libaudit1 (due to login)
  libpam0g (due to login) libpam-runtime (due to login)
  libpam-modules (due to login) mount libmount1 (due to mount)
  libsmartcols1 (due to mount) libudev1 (due to mount) ncurses-bin perl-base
  sed libfdisk1 (due to util-linux) libncursesw5 (due to util-linux)
  sysvinit-utils (due to util-linux)
0 upgraded, 0 newly installed, 435 to remove and 0 not upgraded.
After this operation, 1,111 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'

Ubuntu 14
Docker
root@e80a0d848b7c:/# apt-get remove libc6  
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  krb5-locales
Use 'apt-get autoremove' to remove it.
The following packages will be REMOVED:
  adduser apt apt-transport-https apt-utils base-files base-passwd bash
  bsdutils busybox-initramfs bzip2 ca-certificates console-setup coreutils
  cpio cron dash debconf debconf-i18n debianutils dh-python diffutils dmsetup
  dpkg e2fslibs e2fsprogs eject file findutils gnupg gpgv grep gzip hostname
  ifupdown init-system-helpers initramfs-tools initramfs-tools-bin initscripts
  insserv iproute2 iputils-ping isc-dhcp-client isc-dhcp-common kbd
  keyboard-configuration kmod less libacl1 libapt-inst1.5 libapt-pkg4.12
  libarchive-extract-perl libasn1-8-heimdal libattr1 libaudit1 libblkid1
  libbsd0 libbz2-1.0 libc-bin libc6 libcap2 libcap2-bin libcgmanager0
  libcomerr2 libcurl3-gnutls libdb5.3 libdbus-1-3 libdebconfclient0
  libdevmapper1.02.1 libdrm2 libestr0 libexpat1 libffi6 libfribidi0 libgcc1
  libgcrypt11 libgdbm3 libgnutls-openssl27 libgnutls26 libgpg-error0
  libgssapi-krb5-2 libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal
  libheimntlm0-heimdal libhx509-5-heimdal libidn11 libjson-c2 libjson0
  libk5crypto3 libkeyutils1 libkmod2 libkrb5-26-heimdal libkrb5-3
  libkrb5support0 libldap-2.4-2 liblocale-gettext-perl liblockfile-bin
  liblockfile1 liblog-message-simple-perl liblzma5 libmagic1
  libmodule-pluggable-perl libmount1 libmpdec2 libncurses5 libncursesw5
  libnewt0.52 libnih-dbus1 libnih1 libp11-kit0 libpam-cap libpam-modules
  libpam-modules-bin libpam-runtime libpam0g libpcre3 libplymouth2 libpng12-0
  libpod-latex-perl libpopt0 libprocps3 libpython3-stdlib libpython3.4-minimal
  libpython3.4-stdlib libreadline6 libroken18-heimdal librtmp0 libsasl2-2
  libsasl2-modules libsasl2-modules-db libselinux1 libsemanage1 libsepol1
  libslang2 libsqlite3-0 libss2 libssl1.0.0 libstdc++6 libtasn1-6
  libterm-ui-perl libtext-charwidth-perl libtext-iconv-perl
  libtext-soundex-perl libtext-wrapi18n-perl libtinfo5 libudev1 libusb-0.1-4
  libustr-1.0-1 libuuid1 libwind0-heimdal libyaml-0-2 locales lockfile-progs
  login logrotate lsb-release makedev mawk module-init-tools mount mountall
  multiarch-support ncurses-bin net-tools netcat-openbsd ntpdate openssl
  passwd perl perl-base perl-modules plymouth procps python3 python3-minimal
  python3-pkg-resources python3-yaml python3.4 python3.4-minimal
  readline-common resolvconf rsyslog sed sudo sysv-rc sysvinit-utils tar
  tzdata ubuntu-advantage-tools ubuntu-minimal ucf udev upstart ureadahead
  util-linux vim-common vim-tiny whiptail zlib1g
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt libapt-pkg4.12 (due to apt) libc6 (due to apt) libgcc1 (due to apt)
  libstdc++6 (due to apt) gnupg (due to apt) base-files mawk (due to
  base-files) base-passwd libdebconfclient0 (due to base-passwd) bash
  debianutils (due to bash) dash (due to bash) libtinfo5 (due to bash)
  bsdutils coreutils libacl1 (due to coreutils) libattr1 (due to coreutils)
  libselinux1 (due to coreutils) dpkg (due to dash) diffutils libbz2-1.0 (due
  to dpkg) liblzma5 (due to dpkg) zlib1g (due to dpkg) tar (due to dpkg)
  e2fsprogs e2fslibs (due to e2fsprogs) libblkid1 (due to e2fsprogs)
  libcomerr2 (due to e2fsprogs) libss2 (due to e2fsprogs) libuuid1 (due to
  e2fsprogs) util-linux (due to e2fsprogs) findutils grep libpcre3 (due to
  grep) gzip hostname libc-bin login libaudit1 (due to login) libpam0g (due to
  login) libpam-runtime (due to login) libpam-modules (due to login) mount
  libmount1 (due to mount) ncurses-bin perl-base sed tzdata (due to
  util-linux) debconf (due to util-linux) sysv-rc (due to util-linux)
  libncurses5 (due to util-linux) libslang2 (due to util-linux)
0 upgraded, 0 newly installed, 199 to remove and 0 not upgraded.
After this operation, 188 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'

miguelfdez99 avatar Sep 15 '22 08:09 miguelfdez99

Update report

Removing adduser

Debian 11
Docker
root@733fb2f97d70:/# apt-get remove adduser
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  debian-archive-keyring gpgv libapt-pkg6.0 libffi7 libgnutls30 libhogweed6
  libnettle8 libp11-kit0 libseccomp2 libstdc++6 libtasn1-6 libxxhash0
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  adduser apt
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt)
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 5310 kB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] Yes, do as I say!
(Reading database ... 6661 files and directories currently installed.)
Removing apt (2.2.4) ...
Removing adduser (3.118) ...
Processing triggers for libc-bin (2.31-13+deb11u4) ...
root@733fb2f97d70:/# apt-get install adduser
bash: /usr/bin/apt-get: No such file or directory

VM
root@bullseye:/home/vagrant# apt-get remove adduser
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  cloud-guest-utils cloud-image-utils cloud-utils distro-info-data genisoimage
  keyutils klibc-utils libaio1 libapparmor1 libargon2-1 libcbor0
  libcryptsetup12 libcurl3-gnutls libdbus-1-3 libevent-2.1-7 libexpat1
  libfido2-1 libglib2.0-0 libklibc libldap-2.4-2 libmpdec3 libnfsidmap2
  libnghttp2-14 libpython3-stdlib libpython3.9-minimal libpython3.9-stdlib
  librtmp1 libsasl2-2 libsasl2-modules-db libsqlite3-0 libssh2-1 liburing1
  libwrap0 linux-base lsb-release python-apt-common python3 python3-apt
  python3-certifi python3-chardet python3-dbus python3-debconf python3-debian
  python3-debianbts python3-distro-info python3-httplib2 python3-idna
  python3-minimal python3-pkg-resources python3-pycurl python3-pysimplesoap
  python3-requests python3-six python3-urllib3 python3.9 python3.9-minimal
  qemu-utils runit-helper
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  anacron psmisc
Suggested packages:
  default-mta | mail-transport-agent powermgmt-base
Recommended packages:
  cron | cron-daemon
The following packages will be REMOVED:
  adduser apt apt-listchanges apt-utils chrony cloud-initramfs-growroot cron
  dbus ifupdown init initramfs-tools initramfs-tools-core libnss-systemd
  libpam-systemd linux-image-5.10.0-18-amd64 linux-image-amd64 nfs-common
  openssh-client openssh-server openssh-sftp-server python3-reportbug
  reportbug rpcbind systemd systemd-sysv tasksel tasksel-data udev wazuh-agent
The following NEW packages will be installed:
  anacron psmisc
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) init systemd-sysv (due to init)
0 upgraded, 2 newly installed, 29 to remove and 0 not upgraded.
Need to get 233 kB of archives.
After this operation, 391 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'

Debian 10
Docker
root@8159f83df4a1:/# apt-get remove adduser
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  debian-archive-keyring gpgv libapt-pkg5.0 libffi6 libgmp10 libgnutls30
  libhogweed4 libp11-kit0 libseccomp2 libstdc++6 libtasn1-6 libzstd1
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  adduser apt
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt)
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 5031 kB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] Yes, do as I say!
(Reading database ... 6677 files and directories currently installed.)
Removing apt (1.8.2.3) ...
Removing adduser (3.118) ...
Processing triggers for libc-bin (2.28-10+deb10u1) ...
root@8159f83df4a1:/# apt-get remove adduser
bash: /usr/bin/apt-get: No such file or directory

VM
root@buster:/home/vagrant# apt-get remove adduser
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  cloud-guest-utils cloud-image-utils cloud-utils distro-info-data genisoimage
  keyutils klibc-utils libaio1 libapparmor1 libapt-inst2.0 libargon2-1
  libcryptsetup12 libcurl3-gnutls libdbus-1-3 libevent-2.1-6 libglib2.0-0
  libidn11 libklibc libnfsidmap2 libtirpc-common libtirpc3 linux-base
  lsb-release python-apt-common python3-apt python3-certifi python3-chardet
  python3-dbus python3-debconf python3-debian python3-debianbts
  python3-distro-info python3-httplib2 python3-idna python3-pkg-resources
  python3-pycurl python3-pysimplesoap python3-requests python3-six
  python3-urllib3 qemu-utils
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  anacron initscripts insserv startpar sysv-rc sysvinit-core
Suggested packages:
  default-mta | mail-transport-agent powermgmt-base bootchart2 bootlogd
Recommended packages:
  cron | cron-daemon
The following packages will be REMOVED:
  adduser apt apt-listchanges apt-utils chrony cloud-initramfs-growroot cron
  dbus ifupdown initramfs-tools initramfs-tools-core libnss-systemd
  libpam-systemd linux-image-4.19.0-21-amd64 linux-image-amd64 nfs-common
  openssh-client openssh-server openssh-sftp-server python3-reportbug
  reportbug rpcbind systemd systemd-sysv tasksel tasksel-data udev
  uuid-runtime wazuh-agent
The following NEW packages will be installed:
  anacron initscripts insserv startpar sysv-rc sysvinit-core
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt)
0 upgraded, 6 newly installed, 29 to remove and 1 not upgraded.
Need to get 432 kB of archives.
After this operation, 339 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
Debian 9
Docker
root@15b981cb61aa:/# apt-get remove adduser
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  debian-archive-keyring gpgv libapt-pkg5.0 libstdc++6
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  adduser apt
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt)
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 4493 kB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] Yes, do as I say!
(Reading database ... 6502 files and directories currently installed.)
Removing apt (1.4.11) ...
Removing adduser (3.115) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
root@15b981cb61aa:/# apt-get remove adduser
bash: /usr/bin/apt-get: No such file or directory

VM
root@debian9:/home/vagrant# apt-get remove adduser
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  dictionaries-common emacsen-common guile-2.0-libs iamerican ibritish
  ienglish-common iso-codes ispell klibc-utils libdbus-1-3 libedit2 libgc1c2
  libgsasl7 libklibc libkyotocabinet16v5 libmailutils5 libmariadbclient18
  libntlm0 libwrap0 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6
  libxmuu1 linux-base mailutils-common mysql-common postfix-sqlite
  python-apt-common python3-apt python3-chardet python3-debian
  python3-debianbts python3-httplib2 python3-pkg-resources python3-pycurl
  python3-pysimplesoap python3-requests python3-six python3-urllib3 tcpd xauth
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  anacron initscripts insserv startpar sysv-rc
Suggested packages:
  default-mta | mail-transport-agent bootchart2 bum
Recommended packages:
  cron | cron-daemon
The following packages will be REMOVED:
  adduser apt apt-listchanges apt-utils cron dbus dirmngr ifupdown init
  initramfs-tools initramfs-tools-core libpam-systemd
  linux-image-4.9.0-13-amd64 linux-image-4.9.0-19-amd64 linux-image-amd64
  mailutils memcached mlocate openssh-client openssh-server
  openssh-sftp-server postfix postfix-cdb python-apt python3-reportbug
  reportbug resolvconf ssl-cert systemd systemd-sysv task-english tasksel
  tasksel-data udev
The following NEW packages will be installed:
  anacron initscripts insserv startpar sysv-rc
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) init systemd-sysv (due to init)
0 upgraded, 5 newly installed, 34 to remove and 0 not upgraded.
Need to get 269 kB of archives.
After this operation, 426 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
Debian 8
Docker
root@a0f2e0bf46d1:/# apt-get remove adduser
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  acl dmsetup libcryptsetup4 libdevmapper1.02.1 libkmod2 libncursesw5
  libprocps3 libudev1 procps
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  adduser init systemd systemd-sysv udev
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  init systemd-sysv (due to init)
0 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
After this operation, 21.6 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] Yes, do as I say!
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
(Reading database ... 7621 files and directories currently installed.)
Removing init (1.22) ...
Removing systemd-sysv (215-17+deb8u13) ...
Removing systemd (215-17+deb8u13) ...
Removing udev (215-17+deb8u13) ...
Removing adduser (3.113+nmu3) ...
VM
root@debian8:/home/vagrant# apt-get remove adduser
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  irqbalance libnuma1 linux-base
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  anacron sysvinit-core
Suggested packages:
  powermgmt-base
The following packages will be REMOVED:
  adduser bsd-mailx cron dbus ifupdown initramfs-tools
  linux-image-3.16.0-11-amd64 linux-image-3.16.0-6-amd64 linux-image-amd64
  memcached mlocate nfs-common openssh-client openssh-server
  openssh-sftp-server postfix postfix-cdb resolvconf ssl-cert systemd
  systemd-sysv udev
The following NEW packages will be installed:
  anacron sysvinit-core
0 upgraded, 2 newly installed, 22 to remove and 0 not upgraded.
Need to get 165 kB of archives.
After this operation, 370 MB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 https://ftp.debian.org/debian/ jessie/main sysvinit-core amd64 2.88dsf-59 [132 kB]
Get:2 https://ftp.debian.org/debian/ jessie/main anacron amd64 2.3-23 [32.8 kB]
Fetched 165 kB in 0s (261 kB/s)
Preconfiguring packages ...
dpkg: systemd-sysv: dependency problems, but removing anyway as you requested:
 init depends on systemd-sysv | sysvinit-core | upstart; however:
  Package systemd-sysv is to be removed.
  Package sysvinit-core is not installed.
  Package upstart is not installed.

(Reading database ... 46044 files and directories currently installed.)
Removing systemd-sysv (215-17+deb8u13) ...
Processing triggers for man-db (2.7.0.2-5) ...
Selecting previously unselected package sysvinit-core.
(Reading database ... 46028 files and directories currently installed.)
Preparing to unpack .../sysvinit-core_2.88dsf-59_amd64.deb ...
Unpacking sysvinit-core (2.88dsf-59) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up sysvinit-core (2.88dsf-59) ...
Not restarting sysvinit
(Reading database ... 46052 files and directories currently installed.)
Removing systemd (215-17+deb8u13) ...
systemd is the active init system, please switch to another before removing systemd.
dpkg: error processing package systemd (--remove):
 subprocess installed pre-removal script returned error exit status 1
Failed to stop lib-init-rw.mount: Unit lib-init-rw.mount not loaded.
addgroup: The group `systemd-journal' already exists as a system group. Exiting.
Removing linux-image-amd64 (3.16+63+deb8u7) ...
Removing linux-image-3.16.0-11-amd64 (3.16.84-1) ...
Ok, proceeding with removing running kernel image.
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-3.16.0-11-amd64
/etc/kernel/postrm.d/zz-update-grub:
Generating grub configuration file ...
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
Found linux image: /boot/vmlinuz-3.16.0-6-amd64
Found initrd image: /boot/initrd.img-3.16.0-6-amd64
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
done
The link /vmlinuz is a damaged link
Removing symbolic link vmlinuz 
You may need to re-run your boot loader
The link /initrd.img is a damaged link
Removing symbolic link initrd.img 
You may need to re-run your boot loader
Removing linux-image-3.16.0-6-amd64 (3.16.56-1+deb8u1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-3.16.0-6-amd64
/etc/kernel/postrm.d/zz-update-grub:
Generating grub configuration file ...
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
done
The link /vmlinuz.old is a damaged link
Removing symbolic link vmlinuz.old 
You may need to re-run your boot loader
The link /initrd.img.old is a damaged link
Removing symbolic link initrd.img.old 
You may need to re-run your boot loader
Removing initramfs-tools (0.120+deb8u3) ...
Removing openssh-server (1:6.7p1-5+deb8u8) ...
Removing bsd-mailx (8.1.2-0.20141216cvs-2) ...
dpkg: udev: dependency problems, but removing anyway as you requested:
 systemd depends on udev (>= 208-8).

Removing udev (215-17+deb8u13) ...
dpkg: adduser: dependency problems, but removing anyway as you requested:
 postfix depends on adduser (>= 3.48).
 cron depends on adduser.
 openssh-client depends on adduser (>= 3.10).
 dbus depends on adduser.
 systemd depends on adduser; however:
  Package adduser is to be removed.
 ssl-cert depends on adduser.
 mlocate depends on adduser.
 nfs-common depends on adduser.
 memcached depends on adduser.
 ifupdown depends on adduser.

Removing adduser (3.113+nmu3) ...
Processing triggers for man-db (2.7.0.2-5) ...
Errors were encountered while processing:
 systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)

Debian 7
Docker
root@fbee2f28011f:/# apt-get remove adduser
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package adduser

Removing debconf

Debian 11
Docker
root@ec6cfe6b77d9:/# apt-get remove debconf
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  debian-archive-keyring gpgv libapt-pkg6.0 libaudit-common libaudit1
  libcap-ng0 libdb5.3 libffi7 libgnutls30 libhogweed6 libk5crypto3
  libkeyutils1 libkrb5support0 libmount1 libnettle8 libp11-kit0 libseccomp2
  libsemanage-common libsemanage1 libsepol1 libsmartcols1 libstdc++6
  libtasn1-6 libtirpc-common libudev1 libxxhash0
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  adduser apt dash debconf libgssapi-krb5-2 libkrb5-3 libnsl2 libpam-modules
  libpam-modules-bin libpam-runtime libpam0g libssl1.1 libtirpc3 login mount
  passwd tzdata util-linux
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) dash debconf (due to dash) login
  libpam0g (due to login) libpam-runtime (due to login)
  libpam-modules (due to login) util-linux
0 upgraded, 0 newly installed, 18 to remove and 0 not upgraded.
After this operation, 28.6 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
VM
root@bullseye:/home/vagrant# apt-get remove adduser
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  cloud-guest-utils cloud-image-utils cloud-utils distro-info-data genisoimage
  keyutils klibc-utils libaio1 libapparmor1 libargon2-1 libcbor0
  libcryptsetup12 libcurl3-gnutls libdbus-1-3 libevent-2.1-7 libexpat1
  libfido2-1 libglib2.0-0 libklibc libldap-2.4-2 libmpdec3 libnfsidmap2
  libnghttp2-14 libpython3-stdlib libpython3.9-minimal libpython3.9-stdlib
  librtmp1 libsasl2-2 libsasl2-modules-db libsqlite3-0 libssh2-1 liburing1
  libwrap0 linux-base lsb-release python-apt-common python3 python3-apt
  python3-certifi python3-chardet python3-dbus python3-debconf python3-debian
  python3-debianbts python3-distro-info python3-httplib2 python3-idna
  python3-minimal python3-pkg-resources python3-pycurl python3-pysimplesoap
  python3-requests python3-six python3-urllib3 python3.9 python3.9-minimal
  qemu-utils runit-helper
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  anacron psmisc
Suggested packages:
  default-mta | mail-transport-agent powermgmt-base
Recommended packages:
  cron | cron-daemon
The following packages will be REMOVED:
  adduser apt apt-listchanges apt-utils chrony cloud-initramfs-growroot cron
  dbus ifupdown init initramfs-tools initramfs-tools-core libnss-systemd
  libpam-systemd linux-image-5.10.0-18-amd64 linux-image-amd64 nfs-common
  openssh-client openssh-server openssh-sftp-server python3-reportbug
  reportbug rpcbind systemd systemd-sysv tasksel tasksel-data udev wazuh-agent
The following NEW packages will be installed:
  anacron psmisc
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) init systemd-sysv (due to init)
0 upgraded, 2 newly installed, 29 to remove and 0 not upgraded.
Need to get 233 kB of archives.
After this operation, 391 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] ^C               
root@bullseye:/home/vagrant# apt-get remove debconf
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  distro-info-data dmsetup genisoimage grub-common grub-pc-bin grub2-common
  keyutils klibc-utils libaio1 libapparmor1 libargon2-1 libbpf0 libbrotli1
  libcbor0 libdbus-1-3 libdevmapper1.02.1 libefiboot1 libefivar1 libelf1
  libevent-2.1-7 libexpat1 libfreetype6 libfstrm0 libfuse2 libglib2.0-0
  libicu67 libjson-c5 libklibc libldap-2.4-2 liblmdb0 liblocale-gettext-perl
  libmaxminddb0 libmpdec3 libnfsidmap2 libnghttp2-14 libpci3 libpipeline1
  libpng16-16 libprotobuf-c1 librtmp1 libsasl2-2 libsasl2-modules-db
  libsqlite3-0 libssh2-1 libtext-charwidth-perl libtext-iconv-perl
  libtext-wrapi18n-perl liburing1 libuv1 libxml2 pci.ids python-apt-common
  qemu-utils runit-helper
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  anacron psmisc
Suggested packages:
  default-mta | mail-transport-agent powermgmt-base
Recommended packages:
  cron | cron-daemon
The following packages will be REMOVED:
  adduser apparmor apt apt-listchanges apt-utils bind9-dnsutils bind9-host
  bind9-libs ca-certificates chrony cloud-guest-utils cloud-image-utils
  cloud-initramfs-growroot cloud-utils cron dash dbus debconf debconf-i18n
  grub-pc ifupdown init initramfs-tools initramfs-tools-core iproute2
  isc-dhcp-client kmod libcryptsetup12 libcurl3-gnutls libdns-export1110
  libfido2-1 libgssapi-krb5-2 libisc-export1105 libkmod2 libkrb5-3 libnsl2
  libnss-systemd libpam-modules libpam-modules-bin libpam-runtime
  libpam-systemd libpam0g libpython3-stdlib libpython3.9-minimal
  libpython3.9-stdlib libssl1.1 libtirpc3 libwrap0 linux-base
  linux-image-5.10.0-18-amd64 linux-image-amd64 locales login lsb-release
  man-db mount nfs-common openssh-client openssh-server openssh-sftp-server
  openssl passwd pciutils python3 python3-apt python3-certifi python3-chardet
  python3-dbus python3-debconf python3-debian python3-debianbts
  python3-distro-info python3-httplib2 python3-idna python3-minimal
  python3-pkg-resources python3-pycurl python3-pysimplesoap python3-reportbug
  python3-requests python3-six python3-urllib3 python3.9 python3.9-minimal
  reportbug rpcbind sudo systemd systemd-sysv tasksel tasksel-data tzdata ucf
  udev util-linux wamerican wazuh-agent
The following NEW packages will be installed:
  anacron psmisc
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) dash debconf (due to dash) init
  systemd-sysv (due to init) login libpam0g (due to login)
  libpam-runtime (due to login) libpam-modules (due to login) util-linux
0 upgraded, 2 newly installed, 97 to remove and 0 not upgraded.
Need to get 233 kB of archives.
After this operation, 484 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
Debian 10
Docker
root@2201c6393c95:/# apt-get remove debconf
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  debian-archive-keyring gpgv libapt-pkg5.0 libaudit-common libaudit1
  libcap-ng0 libdb5.3 libelf1 libffi6 libgmp10 libgnutls30 libhogweed4 libmnl0
  libp11-kit0 libseccomp2 libsemanage-common libsemanage1 libsepol1 libstdc++6
  libtasn1-6 libudev1 libxtables12 libzstd1
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  adduser apt dash debconf iproute2 libpam-modules libpam-modules-bin
  libpam-runtime libpam0g login mount passwd sysvinit-utils tzdata util-linux
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) dash debconf (due to dash) login
  libpam0g (due to login) libpam-runtime (due to login)
  libpam-modules (due to login) mount util-linux (due to mount) sysvinit-utils
0 upgraded, 0 newly installed, 15 to remove and 0 not upgraded.
After this operation, 24.6 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
VM
root@buster:/home/vagrant# apt-get remove debconf
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  distro-info-data dmsetup genisoimage grub-common grub-pc-bin grub2-common
  keyutils klibc-utils libaio1 libapparmor1 libapt-inst2.0 libargon2-1
  libdbus-1-3 libdevmapper1.02.1 libedit2 libefiboot1 libefivar1 libelf1
  libevent-2.1-6 libexpat1 libfreetype6 libfstrm0 libfuse2 libgeoip1
  libglib2.0-0 libicu63 libidn11 libjson-c3 libk5crypto3 libkeyutils1 libklibc
  libkrb5support0 libldap-2.4-2 libldap-common liblmdb0 liblocale-gettext-perl
  liblwres161 libmaxminddb0 libmpdec2 libnfsidmap2 libnghttp2-14 libpcap0.8
  libpci3 libpipeline1 libpng16-16 libprotobuf-c1 libreadline7 librtmp1
  libsasl2-2 libsasl2-modules-db libsqlite3-0 libssh2-1 libtext-charwidth-perl
  libtext-iconv-perl libtext-wrapi18n-perl libtirpc-common libutempter0 libuv1
  libwrap0 libxml2 python-apt-common qemu-utils
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  anacron
Suggested packages:
  default-mta | mail-transport-agent powermgmt-base
Recommended packages:
  cron | cron-daemon
The following packages will be REMOVED:
  adduser apparmor apt apt-listchanges apt-utils bind9-dnsutils bind9-host
  bind9-libs ca-certificates chrony cloud-guest-utils cloud-image-utils
  cloud-initramfs-growroot cloud-utils cron curl dash dbus debconf
  debconf-i18n grub-pc ifupdown init initramfs-tools initramfs-tools-core
  iproute2 isc-dhcp-client kmod libbind9-161 libcryptsetup12 libcurl3-gnutls
  libcurl4 libdns-export1104 libdns1104 libgssapi-krb5-2 libisc-export1100
  libisc1100 libisccc161 libisccfg163 libkmod2 libkrb5-3 libnss-systemd
  libpam-modules libpam-modules-bin libpam-runtime libpam-systemd libpam0g
  libpython-stdlib libpython2-stdlib libpython2.7-stdlib libpython3-stdlib
  libpython3.7-minimal libpython3.7-stdlib libssl1.1 libtirpc3 linux-base
  linux-image-4.19.0-21-amd64 linux-image-amd64 locales login lsb-release
  man-db mount nfs-common openssh-client openssh-server openssh-sftp-server
  openssl passwd pciutils python python2 python2.7 python3 python3-apt
  python3-certifi python3-chardet python3-dbus python3-debconf python3-debian
  python3-debianbts python3-distro-info python3-httplib2 python3-idna
  python3-minimal python3-pkg-resources python3-pycurl python3-pysimplesoap
  python3-reportbug python3-requests python3-six python3-urllib3 python3.7
  python3.7-minimal reportbug rpcbind screen socat sudo systemd systemd-sysv
  sysvinit-utils tasksel tasksel-data tcpdump tzdata ucf udev util-linux
  uuid-runtime wamerican wazuh-agent
The following NEW packages will be installed:
  anacron
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) dash debconf (due to dash) init
  systemd-sysv (due to init) login libpam0g (due to login)
  libpam-runtime (due to login) libpam-modules (due to login) mount
  util-linux (due to mount) sysvinit-utils
0 upgraded, 1 newly installed, 112 to remove and 1 not upgraded.
Need to get 34.6 kB of archives.
After this operation, 455 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'

Debian 9
Docker
root@089b29f00cd7:/# apt-get remove debconf
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  debian-archive-keyring gpgv libapt-pkg5.0 libaudit-common libaudit1
  libcap-ng0 libncursesw5 libsemanage-common libsemanage1 libstdc++6 libudev1
  libustr-1.0-1
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  adduser apt debconf e2fsprogs libblkid1 libfdisk1 libmount1 libpam-modules
  libpam-modules-bin libpam-runtime libpam0g libuuid1 login mount passwd
  sysvinit-utils tzdata util-linux
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) e2fsprogs libblkid1 (due to e2fsprogs)
  libuuid1 (due to e2fsprogs) util-linux (due to e2fsprogs) login
  libpam0g (due to login) libpam-runtime (due to login)
  libpam-modules (due to login) mount libmount1 (due to mount) sysvinit-utils
  libfdisk1 (due to util-linux)
0 upgraded, 0 newly installed, 18 to remove and 0 not upgraded.
After this operation, 25.6 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
VM
root@debian9:/home/vagrant# apt-get remove debconf
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  cmake-data discover-data distro-info-data emacsen-common geoip-database
  grub-pc-bin grub2-common guile-2.0-libs ienglish-common iso-codes ispell kbd
  klibc-utils libdaemon0 libdbus-1-3 libdiscover2 libdpkg-perl libdw1 libedit2
  libevent-2.0-5 libevent-core-2.0-5 libevent-extra-2.0-5
  libevent-pthreads-2.0-5 libfile-fcntllock-perl libgc1c2 libgeoip1
  libglib2.0-data libgsasl7 libisc160 libisccc140 libjsoncpp1 libklibc
  libkyotocabinet16v5 liblwres141 libmariadbclient18 libmpdec2 libntlm0
  libsensors4 libusb-0.1-4 libuv1 libwrap0 libx11-6 libx11-data libxau6
  libxcb1 libxdmcp6 libxext6 libxmuu1 mailutils-common mysql-common
  postfix-sqlite python-apt-common tcpd xauth xdg-user-dirs xkb-data
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  anacron
Suggested packages:
  default-mta | mail-transport-agent
Recommended packages:
  cron | cron-daemon rsyslog | system-log-daemon
The following packages will be REMOVED:
  adduser apt apt-listchanges apt-utils bind9-host ca-certificates cmake
  console-setup console-setup-linux cron curl dbus debconf debconf-i18n
  dh-python dictionaries-common dirmngr discover dnsutils e2fsprogs flex gdb
  grub-pc host iamerican ibritish ifplugd ifupdown init initramfs-tools
  initramfs-tools-core isc-dhcp-client keyboard-configuration
  libbabeltrace-ctf1 libbabeltrace1 libbind9-140 libblkid1 libcryptsetup4
  libcurl3 libdns-export162 libdns162 libevent-dev libevent-openssl-2.0-5
  libfdisk1 libfl-dev libglib2.0-0 libisccfg140 libmailutils5 libmount1
  libpam-modules libpam-modules-bin libpam-runtime libpam-systemd libpam0g
  libpython-stdlib libpython2.7 libpython2.7-stdlib libpython3-stdlib
  libpython3.5 libpython3.5-minimal libpython3.5-stdlib libsasl2-modules
  libssl1.0.2 libssl1.1 libuuid1 libxapian30 linux-base
  linux-image-4.9.0-13-amd64 linux-image-4.9.0-19-amd64 linux-image-amd64
  locales login lsb-release mailutils man-db memcached mlocate mount
  openssh-client openssh-server openssh-sftp-server openssl passwd pkg-config
  postfix postfix-cdb python python-apt python-cffi-backend python-crypto
  python-cryptography python-enum34 python-idna python-ipaddress
  python-pkg-resources python-pyasn1 python-setuptools python-six python2.7
  python3 python3-apt python3-chardet python3-debian python3-debianbts
  python3-httplib2 python3-minimal python3-pkg-resources python3-pycurl
  python3-pysimplesoap python3-reportbug python3-requests python3-six
  python3-urllib3 python3.5 python3.5-minimal qemu-guest-agent reportbug
  resolvconf rsyslog shared-mime-info ssl-cert sudo sysstat systemd
  systemd-sysv sysvinit-utils task-english tasksel tasksel-data tzdata ucf
  udev util-linux util-linux-locales wamerican wget
The following NEW packages will be installed:
  anacron
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) e2fsprogs libblkid1 (due to e2fsprogs)
  libuuid1 (due to e2fsprogs) util-linux (due to e2fsprogs) init
  systemd-sysv (due to init) login libpam0g (due to login)
  libpam-runtime (due to login) libpam-modules (due to login) mount
  libmount1 (due to mount) sysvinit-utils libfdisk1 (due to util-linux)
0 upgraded, 1 newly installed, 136 to remove and 0 not upgraded.
Need to get 32.5 kB of archives.
After this operation, 598 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
Debian 8
Docker
root@cfd45ee4c5ec:/# apt-get remove debconf
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  acl insserv libaudit-common libaudit1 libkmod2 libncursesw5 libprocps3
  libsemanage-common libsemanage1 libslang2 libudev1 libustr-1.0-1
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  adduser debconf debconf-i18n dmsetup e2fsprogs init initscripts libblkid1
  libcryptsetup4 libdevmapper1.02.1 libmount1 libpam-modules
  libpam-modules-bin libpam-runtime libpam0g libuuid1 login mount passwd
  procps systemd systemd-sysv sysv-rc tzdata udev util-linux
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  e2fsprogs libblkid1 (due to e2fsprogs) libuuid1 (due to e2fsprogs)
  util-linux (due to e2fsprogs) init systemd-sysv (due to init) login libpam0g
  (due to login) libpam-runtime (due to login) libpam-modules (due to login)
  mount libmount1 (due to mount) initscripts (due to util-linux) tzdata (due
  to util-linux)
0 upgraded, 0 newly installed, 26 to remove and 0 not upgraded.
After this operation, 40.9 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] Yes, do as I say!
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
(Reading database ... 7621 files and directories currently installed.)
Removing init (1.22) ...
Removing systemd-sysv (215-17+deb8u13) ...
Removing systemd (215-17+deb8u13) ...
Removing udev (215-17+deb8u13) ...
Removing adduser (3.113+nmu3) ...
Removing libcryptsetup4:amd64 (2:1.6.6-5) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing e2fsprogs (1.42.12-2+deb8u2) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing login (1:4.2-3+deb8u4) ...
Removing procps (2:3.3.9-9+deb8u1) ...
/usr/sbin/invoke-rc.d: 1: /usr/sbin/invoke-rc.d: /sbin/runlevel: not found
invoke-rc.d: policy-rc.d denied execution of stop.
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing debconf-i18n (1.5.56+deb8u1) ...
Removing libpam-runtime (1.1.8-3.1+deb8u2) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
PAM configuration
-----------------

No PAM profiles have been selected.

No PAM profiles have been selected for use on this system.  This would grant all
users access without authenticating, and is not allowed.  Please select at least
one PAM profile from the available list.

No PAM profiles have been selected.

VM
root@debian8:/home/vagrant# apt-get remove debconf
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:
 python3 : Depends: python3-minimal (= 3.4.2-2) but it is not going to be installed
           Depends: libpython3-stdlib (= 3.4.2-2) but it is not going to be installed
 python3.4 : Depends: python3.4-minimal (= 3.4.2-1+deb8u7) but it is not going to be installed
             Depends: libpython3.4-stdlib (= 3.4.2-1+deb8u7) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Debian 7
Docker
root@fbee2f28011f:/# apt-get remove debconf
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  insserv libsemanage-common libsemanage1 libslang2 libustr-1.0-1
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  debconf debconf-i18n e2fsprogs initscripts iputils-ping libblkid1 libmount1
  libpam-modules libpam-modules-bin libpam-runtime libpam0g libssl1.0.0
  libuuid1 login mount passwd sysv-rc sysvinit tzdata util-linux
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  e2fsprogs libblkid1 (due to e2fsprogs) libuuid1 (due to e2fsprogs)
  util-linux (due to e2fsprogs) login libpam0g (due to login) libpam-runtime
  (due to login) libpam-modules (due to login) mount libmount1 (due to mount)
  sysvinit initscripts (due to sysvinit) sysv-rc (due to sysvinit) tzdata (due
  to util-linux) debconf (due to util-linux)
0 upgraded, 0 newly installed, 20 to remove and 0 not upgraded.
After this operation, 20.2 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'

Removing libc6

Debian 11
Docker
root@ec6cfe6b77d9:/# apt-get remove libc6  
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  debian-archive-keyring libaudit-common libsemanage-common libtirpc-common
  lsb-base
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  adduser apt base-files base-passwd bash bsdutils coreutils dash debconf
  debianutils diffutils dpkg e2fsprogs findutils gpgv grep gzip hostname
  init-system-helpers libacl1 libapt-pkg6.0 libattr1 libaudit1 libblkid1
  libbz2-1.0 libc-bin libc6 libcap-ng0 libcom-err2 libcrypt1 libdb5.3
  libdebconfclient0 libext2fs2 libffi7 libgcc-s1 libgcrypt20 libgmp10
  libgnutls30 libgpg-error0 libgssapi-krb5-2 libhogweed6 libidn2-0
  libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 liblz4-1 liblzma5
  libmount1 libnettle8 libnsl2 libp11-kit0 libpam-modules libpam-modules-bin
  libpam-runtime libpam0g libpcre2-8-0 libpcre3 libseccomp2 libselinux1
  libsemanage1 libsepol1 libsmartcols1 libss2 libssl1.1 libstdc++6 libsystemd0
  libtasn1-6 libtinfo6 libtirpc3 libudev1 libunistring2 libuuid1 libxxhash0
  libzstd1 login logsave mawk mount ncurses-bin passwd perl-base sed
  sysvinit-utils tar tzdata util-linux zlib1g
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) gpgv (due to apt) libapt-pkg6.0 (due to apt)
  libc6 (due to apt) libgcc-s1 (due to apt) libgnutls30 (due to apt)
  libseccomp2 (due to apt) libstdc++6 (due to apt) libsystemd0 (due to apt)
  base-files mawk (due to base-files) base-passwd
  libdebconfclient0 (due to base-passwd) bash libtinfo6 (due to bash)
  debianutils (due to bash) bsdutils coreutils libacl1 (due to coreutils)
  libattr1 (due to coreutils) libgmp10 (due to coreutils)
  libselinux1 (due to coreutils) dash dpkg (due to dash) debconf (due to dash)
  diffutils libbz2-1.0 (due to dpkg) liblzma5 (due to dpkg)
  zlib1g (due to dpkg) tar (due to dpkg) e2fsprogs
  libblkid1 (due to e2fsprogs) libcom-err2 (due to e2fsprogs)
  libext2fs2 (due to e2fsprogs) libss2 (due to e2fsprogs)
  libuuid1 (due to e2fsprogs) logsave (due to e2fsprogs) findutils grep
  libpcre3 (due to grep) gzip hostname init-system-helpers
  perl-base (due to init-system-helpers) libc-bin libcrypt1 login
  libaudit1 (due to login) libpam0g (due to login)
  libpam-runtime (due to login) libpam-modules (due to login) ncurses-bin sed
  sysvinit-utils util-linux libcap-ng0 (due to util-linux)
  libmount1 (due to util-linux) libsmartcols1 (due to util-linux)
  libudev1 (due to util-linux)
0 upgraded, 0 newly installed, 88 to remove and 0 not upgraded.
After this operation, 127 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
VM
root@bullseye:/home/vagrant# apt-get remove libc6
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  distro-info-data klibc-utils libklibc libmagic-mgc pci.ids python-apt-common
  runit-helper
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  adduser apparmor apt apt-listchanges apt-utils base-files base-passwd bash
  bind9-dnsutils bind9-host bind9-libs bsdextrautils bsdutils bzip2
  ca-certificates chrony cloud-guest-utils cloud-image-utils
  cloud-initramfs-growroot cloud-utils coreutils cpio cron dash dbus debconf
  debconf-i18n debianutils diffutils dmidecode dmsetup dpkg e2fsprogs fdisk
  file findutils genisoimage gettext-base gpgv grep groff-base grub-common
  grub-pc grub-pc-bin grub2-common gzip hostname ifupdown init
  init-system-helpers initramfs-tools initramfs-tools-core iproute2 iptables
  iputils-ping isc-dhcp-client isc-dhcp-common keyutils kmod less libacl1
  libaio1 libapparmor1 libapt-pkg6.0 libargon2-1 libattr1 libaudit1 libblkid1
  libbpf0 libbrotli1 libbsd0 libbz2-1.0 libc-bin libc6 libcap-ng0 libcap2
  libcap2-bin libcbor0 libcom-err2 libcrypt1 libcryptsetup12 libcurl3-gnutls
  libdb5.3 libdbus-1-3 libdebconfclient0 libdevmapper1.02.1 libdns-export1110
  libedit2 libefiboot1 libefivar1 libelf1 libestr0 libevent-2.1-7 libexpat1
  libext2fs2 libfastjson4 libfdisk1 libffi7 libfido2-1 libfreetype6 libfstrm0
  libfuse2 libgcc-s1 libgcrypt20 libgdbm-compat4 libgdbm6 libglib2.0-0
  libgmp10 libgnutls30 libgpg-error0 libgssapi-krb5-2 libhogweed6 libicu67
  libidn2-0 libip4tc2 libip6tc2 libisc-export1105 libjansson4 libjson-c5
  libk5crypto3 libkeyutils1 libkmod2 libkrb5-3 libkrb5support0 libldap-2.4-2
  liblmdb0 liblocale-gettext-perl liblockfile-bin liblognorm5 liblz4-1
  liblzma5 libmagic1 libmaxminddb0 libmd0 libmnl0 libmount1 libmpdec3
  libncurses6 libncursesw6 libnetfilter-conntrack3 libnettle8 libnewt0.52
  libnfnetlink0 libnfsidmap2 libnftables1 libnftnl11 libnghttp2-14 libnsl2
  libnss-systemd libp11-kit0 libpam-modules libpam-modules-bin libpam-runtime
  libpam-systemd libpam0g libpci3 libpcre2-8-0 libpcre3 libperl5.32
  libpipeline1 libpng16-16 libpopt0 libprocps8 libprotobuf-c1 libpsl5
  libpython3-stdlib libpython3.9-minimal libpython3.9-stdlib libreadline8
  librtmp1 libsasl2-2 libsasl2-modules-db libseccomp2 libselinux1 libsemanage1
  libsepol1 libslang2 libsmartcols1 libsqlite3-0 libss2 libssh2-1 libssl1.1
  libstdc++6 libsystemd0 libtasn1-6 libtext-charwidth-perl libtext-iconv-perl
  libtext-wrapi18n-perl libtinfo6 libtirpc3 libuchardet0 libudev1
  libunistring2 liburing1 libuuid1 libuv1 libwrap0 libxml2 libxtables12
  libxxhash0 libzstd1 linux-base linux-image-5.10.0-18-amd64 linux-image-amd64
  locales login logrotate logsave lsb-release lsof mailcap man-db mawk
  mime-support mount nano ncurses-bin netcat-traditional nfs-common nftables
  openssh-client openssh-server openssh-sftp-server openssl passwd pciutils
  perl perl-base perl-modules-5.32 procps python3 python3-apt python3-certifi
  python3-chardet python3-dbus python3-debconf python3-debian
  python3-debianbts python3-distro-info python3-httplib2 python3-idna
  python3-minimal python3-pkg-resources python3-pycurl python3-pysimplesoap
  python3-reportbug python3-requests python3-six python3-urllib3 python3.9
  python3.9-minimal qemu-utils readline-common reportbug rpcbind rsyslog sed
  sudo systemd systemd-sysv sysvinit-utils tar tasksel tasksel-data telnet
  traceroute tzdata ucf udev util-linux vim-common vim-tiny wamerican
  wazuh-agent wget whiptail xxd xz-utils zlib1g
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) gpgv (due to apt) libapt-pkg6.0 (due to apt)
  libc6 (due to apt) libgcc-s1 (due to apt) libgnutls30 (due to apt)
  libseccomp2 (due to apt) libstdc++6 (due to apt) libsystemd0 (due to apt)
  base-files base-passwd libdebconfclient0 (due to base-passwd) bash
  libtinfo6 (due to bash) debianutils (due to bash) bsdutils coreutils
  libacl1 (due to coreutils) libattr1 (due to coreutils)
  libgmp10 (due to coreutils) libselinux1 (due to coreutils) dash
  dpkg (due to dash) debconf (due to dash) diffutils libbz2-1.0 (due to dpkg)
  liblzma5 (due to dpkg) zlib1g (due to dpkg) tar (due to dpkg) e2fsprogs
  libblkid1 (due to e2fsprogs) libcom-err2 (due to e2fsprogs)
  libext2fs2 (due to e2fsprogs) libss2 (due to e2fsprogs)
  libuuid1 (due to e2fsprogs) logsave (due to e2fsprogs) findutils grep
  libpcre3 (due to grep) gzip hostname init systemd-sysv (due to init)
  init-system-helpers (due to init) perl-base (due to init-system-helpers)
  libc-bin libcrypt1 login libaudit1 (due to login) libpam0g (due to login)
  libpam-runtime (due to login) libpam-modules (due to login) ncurses-bin sed
  sysvinit-utils util-linux libcap-ng0 (due to util-linux)
  libmount1 (due to util-linux) libsmartcols1 (due to util-linux)
  libudev1 (due to util-linux)
0 upgraded, 0 newly installed, 279 to remove and 0 not upgraded.
After this operation, 745 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
Debian 10
Docker
root@2201c6393c95:/# apt-get remove libc6  
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  debian-archive-keyring gcc-8-base libaudit-common libsemanage-common
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  adduser apt base-files base-passwd bash bsdutils coreutils dash debconf
  debianutils diffutils dpkg e2fsprogs fdisk findutils gpgv grep gzip hostname
  init-system-helpers iproute2 iputils-ping libacl1 libapt-pkg5.0 libattr1
  libaudit1 libblkid1 libbz2-1.0 libc-bin libc6 libcap-ng0 libcap2 libcap2-bin
  libcom-err2 libdb5.3 libdebconfclient0 libelf1 libext2fs2 libfdisk1 libffi6
  libgcc1 libgcrypt20 libgmp10 libgnutls30 libgpg-error0 libhogweed4 libidn2-0
  liblz4-1 liblzma5 libmnl0 libmount1 libncursesw6 libnettle6 libp11-kit0
  libpam-modules libpam-modules-bin libpam-runtime libpam0g libpcre3
  libseccomp2 libselinux1 libsemanage1 libsepol1 libsmartcols1 libss2
  libstdc++6 libsystemd0 libtasn1-6 libtinfo6 libudev1 libunistring2 libuuid1
  libxtables12 libzstd1 login mawk mount ncurses-bin passwd perl-base sed
  sysvinit-utils tar tzdata util-linux zlib1g
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) gpgv (due to apt) libapt-pkg5.0 (due to apt)
  libc6 (due to apt) libgcc1 (due to apt) libgnutls30 (due to apt)
  libseccomp2 (due to apt) libstdc++6 (due to apt) base-files
  mawk (due to base-files) base-passwd libdebconfclient0 (due to base-passwd)
  bash libtinfo6 (due to bash) debianutils (due to bash) bsdutils
  libsystemd0 (due to bsdutils) coreutils libacl1 (due to coreutils)
  libattr1 (due to coreutils) libselinux1 (due to coreutils) dash
  dpkg (due to dash) debconf (due to dash) diffutils libbz2-1.0 (due to dpkg)
  liblzma5 (due to dpkg) zlib1g (due to dpkg) tar (due to dpkg) e2fsprogs
  libblkid1 (due to e2fsprogs) libcom-err2 (due to e2fsprogs)
  libext2fs2 (due to e2fsprogs) libss2 (due to e2fsprogs)
  libuuid1 (due to e2fsprogs) fdisk libfdisk1 (due to fdisk)
  libmount1 (due to fdisk) libncursesw6 (due to fdisk)
  libsmartcols1 (due to fdisk) findutils grep libpcre3 (due to grep) gzip
  hostname init-system-helpers perl-base (due to init-system-helpers) libc-bin
  login libaudit1 (due to login) libpam0g (due to login)
  libpam-runtime (due to login) libpam-modules (due to login) mount
  util-linux (due to mount) ncurses-bin sed sysvinit-utils
  libcap-ng0 (due to util-linux) libudev1 (due to util-linux)
0 upgraded, 0 newly installed, 86 to remove and 0 not upgraded.
After this operation, 121 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'

VM
root@buster:/home/vagrant# apt-get remove libc6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  distro-info-data klibc-utils libklibc libldap-common libmagic-mgc
  libpython2.7-minimal libtirpc-common lsb-base python-apt-common vim-runtime
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  adduser apparmor apt apt-listchanges apt-utils base-files base-passwd bash
  bind9-dnsutils bind9-host bind9-libs bsdmainutils bsdutils bzip2
  ca-certificates chrony cloud-guest-utils cloud-image-utils
  cloud-initramfs-growroot cloud-utils coreutils cpio cron curl dash dbus
  debconf debconf-i18n debianutils diffutils dmidecode dmsetup dpkg e2fsprogs
  ethtool fdisk file findutils genisoimage gettext-base gpgv grep groff-base
  grub-common grub-pc grub-pc-bin grub2-common gzip hdparm hostname ifupdown
  init init-system-helpers initramfs-tools initramfs-tools-core iproute2
  iptables iputils-ping isc-dhcp-client isc-dhcp-common keyutils kmod less
  libacl1 libaio1 libapparmor1 libapt-inst2.0 libapt-pkg5.0 libargon2-1
  libattr1 libaudit1 libbind9-161 libblkid1 libbsd0 libbz2-1.0 libc-bin libc6
  libcap-ng0 libcap2 libcap2-bin libcom-err2 libcryptsetup12 libcurl3-gnutls
  libcurl4 libdb5.3 libdbus-1-3 libdebconfclient0 libdevmapper1.02.1
  libdns-export1104 libdns1104 libedit2 libefiboot1 libefivar1 libelf1
  libestr0 libevent-2.1-6 libexpat1 libext2fs2 libfastjson4 libfdisk1 libffi6
  libfreetype6 libfstrm0 libfuse2 libgcc1 libgcrypt20 libgdbm-compat4 libgdbm6
  libgeoip1 libglib2.0-0 libgmp10 libgnutls-openssl27 libgnutls30
  libgpg-error0 libgpm2 libgssapi-krb5-2 libhogweed4 libicu63 libidn11
  libidn2-0 libip4tc0 libip6tc0 libiptc0 libisc-export1100 libisc1100
  libisccc161 libisccfg163 libjson-c3 libk5crypto3 libkeyutils1 libkmod2
  libkrb5-3 libkrb5support0 libldap-2.4-2 liblmdb0 liblocale-gettext-perl
  liblockfile-bin liblognorm5 liblwres161 liblz4-1 liblzma5 libmagic1
  libmaxminddb0 libmnl0 libmount1 libmpdec2 libncurses6 libncursesw6
  libnetfilter-conntrack3 libnettle6 libnewt0.52 libnfnetlink0 libnfsidmap2
  libnftnl11 libnghttp2-14 libnss-systemd libp11-kit0 libpam-modules
  libpam-modules-bin libpam-runtime libpam-systemd libpam0g libpcap0.8 libpci3
  libpcre2-8-0 libpcre3 libperl5.28 libpipeline1 libpng16-16 libpopt0
  libprocps7 libprotobuf-c1 libpsl5 libpython-stdlib libpython2-stdlib
  libpython2.7-stdlib libpython3-stdlib libpython3.7-minimal
  libpython3.7-stdlib libreadline7 librtmp1 libsasl2-2 libsasl2-modules-db
  libseccomp2 libselinux1 libsemanage1 libsepol1 libslang2 libsmartcols1
  libsqlite3-0 libss2 libssh2-1 libssl1.1 libstdc++6 libsystemd0 libtasn1-6
  libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libtinfo6
  libtirpc3 libuchardet0 libudev1 libunistring2 libutempter0 libuuid1 libuv1
  libwrap0 libxml2 libxtables12 libzstd1 linux-base
  linux-image-4.19.0-21-amd64 linux-image-amd64 locales login logrotate
  lsb-release lsof man-db mawk mount nano ncurses-bin netcat-traditional
  nfs-common openssh-client openssh-server openssh-sftp-server openssl passwd
  pciutils perl perl-base perl-modules-5.28 procps psmisc python
  python-minimal python2 python2-minimal python2.7 python2.7-minimal python3
  python3-apt python3-certifi python3-chardet python3-dbus python3-debconf
  python3-debian python3-debianbts python3-distro-info python3-httplib2
  python3-idna python3-minimal python3-pkg-resources python3-pycurl
  python3-pysimplesoap python3-reportbug python3-requests python3-six
  python3-urllib3 python3.7 python3.7-minimal qemu-utils readline-common
  reportbug rpcbind rsyslog screen sed socat sudo systemd systemd-sysv
  sysvinit-utils tar tasksel tasksel-data tcpdump telnet traceroute tzdata ucf
  udev util-linux uuid-runtime vim vim-common vim-tiny wamerican wazuh-agent
  wget whiptail xxd xz-utils zlib1g
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) gpgv (due to apt) libapt-pkg5.0 (due to apt)
  libc6 (due to apt) libgcc1 (due to apt) libgnutls30 (due to apt)
  libseccomp2 (due to apt) libstdc++6 (due to apt) base-files base-passwd
  libdebconfclient0 (due to base-passwd) bash libtinfo6 (due to bash)
  debianutils (due to bash) bsdutils libsystemd0 (due to bsdutils) coreutils
  libacl1 (due to coreutils) libattr1 (due to coreutils)
  libselinux1 (due to coreutils) dash dpkg (due to dash) debconf (due to dash)
  diffutils libbz2-1.0 (due to dpkg) liblzma5 (due to dpkg)
  zlib1g (due to dpkg) tar (due to dpkg) e2fsprogs
  libblkid1 (due to e2fsprogs) libcom-err2 (due to e2fsprogs)
  libext2fs2 (due to e2fsprogs) libss2 (due to e2fsprogs)
  libuuid1 (due to e2fsprogs) fdisk libfdisk1 (due to fdisk)
  libmount1 (due to fdisk) libncursesw6 (due to fdisk)
  libsmartcols1 (due to fdisk) findutils grep libpcre3 (due to grep) gzip
  hostname init systemd-sysv (due to init) init-system-helpers (due to init)
  perl-base (due to init-system-helpers) libc-bin login
  libaudit1 (due to login) libpam0g (due to login)
  libpam-runtime (due to login) libpam-modules (due to login) mount
  util-linux (due to mount) ncurses-bin sed sysvinit-utils
  libcap-ng0 (due to util-linux) libudev1 (due to util-linux)
0 upgraded, 0 newly installed, 297 to remove and 0 not upgraded.
After this operation, 714 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
Debian 9
Docker
root@089b29f00cd7:/# apt-get remove libc6  
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libaudit-common libsemanage-common
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  adduser apt base-files base-passwd bash bsdutils coreutils dash debconf
  debian-archive-keyring debianutils diffutils dpkg e2fslibs e2fsprogs
  findutils gpgv grep gzip hostname init-system-helpers iproute2 iputils-ping
  libacl1 libapt-pkg5.0 libattr1 libaudit1 libblkid1 libbz2-1.0 libc-bin libc6
  libcap-ng0 libcap2 libcomerr2 libdb5.3 libdebconfclient0 libelf1 libfdisk1
  libgcc1 libgcrypt20 libgpg-error0 libidn11 liblz4-1 liblzma5 libmnl0
  libmount1 libncursesw5 libnettle6 libpam-modules libpam-modules-bin
  libpam-runtime libpam0g libpcre3 libselinux1 libsemanage1 libsepol1
  libsmartcols1 libss2 libstdc++6 libsystemd0 libtinfo5 libudev1 libustr-1.0-1
  libuuid1 login mawk mount multiarch-support ncurses-bin passwd perl-base sed
  sysvinit-utils tar tzdata util-linux zlib1g
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) gpgv (due to apt)
  debian-archive-keyring (due to apt) init-system-helpers (due to apt)
  libapt-pkg5.0 (due to apt) libc6 (due to apt) libgcc1 (due to apt)
  libstdc++6 (due to apt) base-files mawk (due to base-files) base-passwd
  libdebconfclient0 (due to base-passwd) bash dash (due to bash)
  libtinfo5 (due to bash) debianutils (due to bash) bsdutils
  libsystemd0 (due to bsdutils) coreutils libacl1 (due to coreutils)
  libattr1 (due to coreutils) libselinux1 (due to coreutils)
  dpkg (due to dash) diffutils libbz2-1.0 (due to dpkg) liblzma5 (due to dpkg)
  zlib1g (due to dpkg) tar (due to dpkg) e2fsprogs e2fslibs (due to e2fsprogs)
  libblkid1 (due to e2fsprogs) libcomerr2 (due to e2fsprogs)
  libss2 (due to e2fsprogs) libuuid1 (due to e2fsprogs)
  util-linux (due to e2fsprogs) findutils grep libpcre3 (due to grep) gzip
  hostname perl-base (due to init-system-helpers) libc-bin login
  libaudit1 (due to login) libpam0g (due to login)
  libpam-runtime (due to login) libpam-modules (due to login) mount
  libmount1 (due to mount) libsmartcols1 (due to mount)
  libudev1 (due to mount) ncurses-bin sed sysvinit-utils
  libfdisk1 (due to util-linux) libncursesw5 (due to util-linux)
0 upgraded, 0 newly installed, 77 to remove and 0 not upgraded.
After this operation, 106 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
VM
root@debian9:/home/vagrant# apt-get remove libc6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  autotools-dev cmake-data discover-data distro-info-data emacsen-common
  geoip-database iso-codes klibc-utils libbison-dev libc++-helpers libc-l10n
  libglib2.0-data libklibc libldap-common libmagic-mgc libpython2.7-minimal
  libx11-data linux-libc-dev mailutils-common manpages-dev mysql-common
  powermgmt-base python-apt-common vim-runtime xkb-data
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  adduser apt apt-listchanges apt-utils autoconf automake base-files
  base-passwd bash bash-completion bind9-host binutils bison bsdmainutils
  bsdutils busybox bzip2 ca-certificates cmake console-setup
  console-setup-linux coreutils cpio cpp cpp-6 cron curl dash dbus debconf
  debconf-i18n debian-archive-keyring debianutils dh-python
  dictionaries-common diffutils dirmngr discover dmidecode dmsetup dnsutils
  dpkg e2fslibs e2fsprogs eject file findutils flex g++ g++-6 gawk gcc gcc-6
  gcc-6-multilib gcc-multilib gdb gettext-base git gnupg gnupg-agent gpgv grep
  groff-base grub-common grub-pc grub-pc-bin grub2-common guile-2.0-libs gzip
  haveged hdparm host hostname iamerican ibritish ienglish-common ifplugd
  ifupdown init init-system-helpers initramfs-tools initramfs-tools-core
  inotify-tools iproute2 iptables iputils-ping isc-dhcp-client isc-dhcp-common
  ispell kbd keyboard-configuration kmod laptop-detect less lib32asan3
  lib32atomic1 lib32cilkrts5 lib32gcc-6-dev lib32gcc1 lib32gomp1 lib32itm1
  lib32mpx2 lib32quadmath0 lib32stdc++6 lib32ubsan0 libacl1 libapparmor1
  libapt-inst2.0 libapt-pkg5.0 libarchive13 libasan3 libassuan0 libatomic1
  libattr1 libaudit1 libbabeltrace-ctf1 libbabeltrace1 libbind9-140 libblkid1
  libbsd-dev libbsd0 libbz2-1.0 libc++-dev libc++1 libc-bin libc-dev-bin libc6
  libc6-dbg libc6-dev libc6-dev-i386 libc6-dev-x32 libc6-i386 libc6-x32
  libcap-ng0 libcap2 libcc1-0 libcdb1 libcilkrts5 libcomerr2 libcryptsetup4
  libcurl3 libcurl3-gnutls libdaemon0 libdb5.3 libdbus-1-3 libdebconfclient0
  libdevmapper1.02.1 libdiscover2 libdns-export162 libdns162 libdpkg-perl
  libdw1 libedit2 libelf1 liberror-perl libestr0 libevent-2.0-5
  libevent-core-2.0-5 libevent-dev libevent-extra-2.0-5 libevent-openssl-2.0-5
  libevent-pthreads-2.0-5 libexpat1 libfastjson4 libfdisk1 libffi6
  libfile-fcntllock-perl libfl-dev libfreetype6 libfribidi0 libfuse2 libgc1c2
  libgcc-6-dev libgcc1 libgcrypt20 libgdbm3 libgeoip1 libglib2.0-0 libgmp-dev
  libgmp10 libgmpxx4ldbl libgnutls30 libgomp1 libgpg-error0 libgpm2 libgsasl7
  libgssapi-krb5-2 libhavege1 libhogweed4 libicu57 libidn11 libidn2-0
  libinotifytools0 libip4tc0 libip6tc0 libiptc0 libisc-export160 libisc160
  libisccc140 libisccfg140 libisl15 libitm1 libjsoncpp1 libk5crypto3
  libkeyutils1 libkmod2 libkrb5-3 libkrb5support0 libksba8 libkyotocabinet16v5
  libldap-2.4-2 liblocale-gettext-perl liblockfile-bin liblogging-stdlog0
  liblognorm5 liblsan0 libltdl-dev libltdl7 liblwres141 liblz4-1 liblzma5
  liblzo2-2 libmagic1 libmailutils5 libmariadbclient18 libmnl0 libmount1
  libmpc3 libmpdec2 libmpfr-dev libmpfr4 libmpx2 libncurses5 libncurses5-dev
  libncursesw5 libnetfilter-conntrack3 libnettle6 libnewt0.52 libnfnetlink0
  libnghttp2-14 libnpth0 libntlm0 libp11-kit0 libpam-modules
  libpam-modules-bin libpam-runtime libpam-systemd libpam0g libpci3 libpcre3
  libperl5.24 libpipeline1 libpng16-16 libpopt0 libprocps6 libpsl5
  libpython-stdlib libpython2.7 libpython2.7-stdlib libpython3-stdlib
  libpython3.5 libpython3.5-minimal libpython3.5-stdlib libquadmath0
  libreadline7 librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db
  libseccomp2 libselinux1 libsemanage1 libsensors4 libsepol1 libsigsegv2
  libslang2 libsmartcols1 libsqlite3-0 libss2 libssh2-1 libssl1.0.2 libssl1.1
  libstdc++-6-dev libstdc++6 libsubunit-dev libsubunit0 libswitch-perl
  libsystemd0 libtasn1-6 libtext-charwidth-perl libtext-iconv-perl
  libtext-wrapi18n-perl libtinfo-dev libtinfo5 libtool libtsan0 libubsan0
  libudev1 libunistring0 libusb-0.1-4 libustr-1.0-1 libuuid1 libuv1 libwrap0
  libx11-6 libx32asan3 libx32atomic1 libx32cilkrts5 libx32gcc-6-dev libx32gcc1
  libx32gomp1 libx32itm1 libx32quadmath0 libx32stdc++6 libx32ubsan0
  libxapian30 libxau6 libxcb1 libxdmcp6 libxext6 libxml2 libxmuu1 libxtables12
  linux-base linux-image-4.9.0-13-amd64 linux-image-4.9.0-19-amd64
  linux-image-amd64 locales login logrotate lsb-release lsof m4 mailutils make
  man-db mawk memcached mlocate mount multiarch-support nano ncurses-bin
  net-tools netcat-traditional openssh-client openssh-server
  openssh-sftp-server openssl os-prober passwd patch pciutils perl perl-base
  perl-modules-5.24 pinentry-curses pkg-config postfix postfix-cdb
  postfix-sqlite procps psmisc python python-apt python-cffi-backend
  python-crypto python-cryptography python-enum34 python-idna python-ipaddress
  python-minimal python-pkg-resources python-pyasn1 python-setuptools
  python-six python2.7 python2.7-minimal python3 python3-apt python3-chardet
  python3-debian python3-debianbts python3-httplib2 python3-minimal
  python3-pkg-resources python3-pycurl python3-pysimplesoap python3-reportbug
  python3-requests python3-six python3-urllib3 python3.5 python3.5-minimal
  qemu-guest-agent readline-common rename reportbug resolvconf rsync rsyslog
  sed sgml-base shared-mime-info ssl-cert sudo sysstat systemd systemd-sysv
  sysvinit-utils tar task-english tasksel tasksel-data tcpd telnet traceroute
  tzdata ucf udev util-linux util-linux-locales valgrind valgrind-dbg vim
  vim-common vim-tiny wamerican wget whiptail xauth xdg-user-dirs xml-core xxd
  xz-utils zlib1g
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) gpgv (due to apt)
  debian-archive-keyring (due to apt) init-system-helpers (due to apt)
  libapt-pkg5.0 (due to apt) libc6 (due to apt) libgcc1 (due to apt)
  libstdc++6 (due to apt) base-files base-passwd
  libdebconfclient0 (due to base-passwd) bash dash (due to bash)
  libtinfo5 (due to bash) debianutils (due to bash) bsdutils
  libsystemd0 (due to bsdutils) coreutils libacl1 (due to coreutils)
  libattr1 (due to coreutils) libselinux1 (due to coreutils)
  dpkg (due to dash) diffutils libbz2-1.0 (due to dpkg) liblzma5 (due to dpkg)
  zlib1g (due to dpkg) tar (due to dpkg) e2fsprogs e2fslibs (due to e2fsprogs)
  libblkid1 (due to e2fsprogs) libcomerr2 (due to e2fsprogs)
  libss2 (due to e2fsprogs) libuuid1 (due to e2fsprogs)
  util-linux (due to e2fsprogs) findutils grep libpcre3 (due to grep) gzip
  hostname init systemd-sysv (due to init)
  perl-base (due to init-system-helpers) libc-bin login
  libaudit1 (due to login) libpam0g (due to login)
  libpam-runtime (due to login) libpam-modules (due to login) mount
  libmount1 (due to mount) libsmartcols1 (due to mount)
  libudev1 (due to mount) ncurses-bin sed sysvinit-utils
  libfdisk1 (due to util-linux) libncursesw5 (due to util-linux)
0 upgraded, 0 newly installed, 436 to remove and 0 not upgraded.
After this operation, 1,351 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
Debian 8
Docker
root@d565e8355f8a:/# apt-get remove libc6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libaudit-common libsemanage-common
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  acl adduser apt base-files base-passwd bash bsdutils coreutils dash debconf
  debconf-i18n debian-archive-keyring debianutils diffutils dmsetup dpkg
  e2fslibs e2fsprogs findutils gnupg gpgv grep gzip hostname init initscripts
  insserv iproute2 iputils-ping libacl1 libapt-pkg4.12 libattr1 libaudit1
  libblkid1 libbz2-1.0 libc-bin libc6 libcap2 libcap2-bin libcomerr2
  libcryptsetup4 libdb5.3 libdebconfclient0 libdevmapper1.02.1 libffi6 libgcc1
  libgcrypt20 libgmp10 libgnutls-deb0-28 libgnutls-openssl27 libgpg-error0
  libhogweed2 libkmod2 liblocale-gettext-perl liblzma5 libmount1 libncurses5
  libncursesw5 libnettle4 libp11-kit0 libpam-modules libpam-modules-bin
  libpam-runtime libpam0g libpcre3 libprocps3 libreadline6 libselinux1
  libsemanage1 libsepol1 libslang2 libsmartcols1 libss2 libstdc++6 libsystemd0
  libtasn1-6 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl
  libtinfo5 libudev1 libusb-0.1-4 libustr-1.0-1 libuuid1 login mawk mount
  multiarch-support ncurses-bin passwd perl-base procps readline-common sed
  startpar systemd systemd-sysv sysv-rc sysvinit-utils tar tzdata udev
  util-linux zlib1g
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt libapt-pkg4.12 (due to apt) libc6 (due to apt) libgcc1 (due to apt)
  libstdc++6 (due to apt) debian-archive-keyring (due to apt) gnupg (due to
  apt) base-files mawk (due to base-files) base-passwd libdebconfclient0 (due
  to base-passwd) bash debianutils (due to bash) dash (due to bash)
  libncurses5 (due to bash) libtinfo5 (due to bash) bsdutils libsystemd0 (due
  to bsdutils) coreutils libacl1 (due to coreutils) libattr1 (due to
  coreutils) libselinux1 (due to coreutils) dpkg (due to dash) diffutils
  libbz2-1.0 (due to dpkg) liblzma5 (due to dpkg) zlib1g (due to dpkg) tar
  (due to dpkg) e2fsprogs e2fslibs (due to e2fsprogs) libblkid1 (due to
  e2fsprogs) libcomerr2 (due to e2fsprogs) libss2 (due to e2fsprogs) libuuid1
  (due to e2fsprogs) util-linux (due to e2fsprogs) findutils grep libpcre3
  (due to grep) gzip hostname init systemd-sysv (due to init) libc-bin login
  libaudit1 (due to login) libpam0g (due to login) libpam-runtime (due to
  login) libpam-modules (due to login) mount libmount1 (due to mount)
  libsmartcols1 (due to mount) ncurses-bin perl-base sed sysvinit-utils
  startpar (due to sysvinit-utils) initscripts (due to util-linux) tzdata (due
  to util-linux) libslang2 (due to util-linux)
0 upgraded, 0 newly installed, 104 to remove and 0 not upgraded.
After this operation, 126 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] Yes, do as I say!
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
(Reading database ... 7621 files and directories currently installed.)
Removing init (1.22) ...
Removing systemd-sysv (215-17+deb8u13) ...
Removing systemd (215-17+deb8u13) ...
Removing acl (2.2.52-2) ...
Removing udev (215-17+deb8u13) ...
Removing adduser (3.113+nmu3) ...
Removing apt (1.0.9.8.6) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing bash (4.3-11+deb8u2) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing base-files (8+deb8u11) ...
dpkg: warning: while removing base-files, unable to remove directory '/dev': Device or resource busy - directory may be a mount point?
dpkg: warning: while removing base-files, unable to remove directory '/proc': Device or resource busy - directory may be a mount point?
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing base-passwd (3.5.37) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing bsdutils (1:2.25.2-6) ...
Removing libcryptsetup4:amd64 (2:1.6.6-5) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing e2fsprogs (1.42.12-2+deb8u2) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing procps (2:3.3.9-9+deb8u1) ...
/usr/sbin/invoke-rc.d: 1: /usr/sbin/invoke-rc.d: /sbin/runlevel: not found
invoke-rc.d: policy-rc.d denied execution of stop.
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing dash (0.5.7-4+b1) ...
Removing 'diversion of /bin/sh to /bin/sh.distrib by dash'
dpkg-divert: error: rename involves overwriting `/bin/sh' with
  different file `/bin/sh.distrib', not allowed
dpkg: error processing package dash (--remove):
 subprocess installed pre-removal script returned error exit status 2
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing login (1:4.2-3+deb8u4) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing debconf-i18n (1.5.56+deb8u1) ...
Removing debian-archive-keyring (2017.5~deb8u1) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing diffutils (1:3.3-1+b1) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing sed (4.2.2-4+deb8u1) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing gzip (1.6-4) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing e2fslibs:amd64 (1.42.12-2+deb8u2) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing findutils (4.4.2-9+b1) ...
Removing gnupg (1.4.18-7+deb8u5) ...
Removing gpgv (1.4.18-7+deb8u5) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing grep (2.20-4.1) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing hostname (3.15) ...
Removing iproute2 (3.16.0-2) ...
Removing iputils-ping (3:20121221-5+b2) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing libapt-pkg4.12:amd64 (1.0.9.8.6) ...
Removing libcap2-bin (1:2.24-8) ...
Removing libcap2:amd64 (1:2.24-8) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
Removing libc-bin (2.19-18+deb8u10) ...
Removing libss2:amd64 (1.42.12-2+deb8u2) ...
/var/lib/dpkg/info/libss2:amd64.postrm: 5: /var/lib/dpkg/info/libss2:amd64.postrm: ldconfig: not found
dpkg: error processing package libss2:amd64 (--remove):
 subprocess installed post-removal script returned error exit status 127
Removing libcomerr2:amd64 (1.42.12-2+deb8u2) ...
/var/lib/dpkg/info/libcomerr2:amd64.postrm: 5: /var/lib/dpkg/info/libcomerr2:amd64.postrm: ldconfig: not found
dpkg: error processing package libcomerr2:amd64 (--remove):
 subprocess installed post-removal script returned error exit status 127
Removing libdebconfclient0:amd64 (0.192) ...
/var/lib/dpkg/info/libdebconfclient0:amd64.postrm: 5: /var/lib/dpkg/info/libdebconfclient0:amd64.postrm: ldconfig: not found
dpkg: error processing package libdebconfclient0:amd64 (--remove):
 subprocess installed post-removal script returned error exit status 127
Removing libgnutls-openssl27:amd64 (3.3.30-0+deb8u1) ...
/var/lib/dpkg/info/libgnutls-openssl27:amd64.postrm: 5: /var/lib/dpkg/info/libgnutls-openssl27:amd64.postrm: ldconfig: not found
dpkg: error processing package libgnutls-openssl27:amd64 (--remove):
 subprocess installed post-removal script returned error exit status 127
Removing libgnutls-deb0-28:amd64 (3.3.30-0+deb8u1) ...
/var/lib/dpkg/info/libgnutls-deb0-28:amd64.postrm: 5: /var/lib/dpkg/info/libgnutls-deb0-28:amd64.postrm: ldconfig: not found
dpkg: error processing package libgnutls-deb0-28:amd64 (--remove):
 subprocess installed post-removal script returned error exit status 127
Removing libp11-kit0:amd64 (0.20.7-1) ...
/var/lib/dpkg/info/libp11-kit0:amd64.postrm: 5: /var/lib/dpkg/info/libp11-kit0:amd64.postrm: ldconfig: not found
dpkg: error processing package libp11-kit0:amd64 (--remove):
 subprocess installed post-removal script returned error exit status 127
Removing libffi6:amd64 (3.1-2+deb8u1) ...
/var/lib/dpkg/info/libffi6:amd64.postrm: 5: /var/lib/dpkg/info/libffi6:amd64.postrm: ldconfig: not found
dpkg: error processing package libffi6:amd64 (--remove):
 subprocess installed post-removal script returned error exit status 127
Removing libstdc++6:amd64 (4.9.2-10+deb8u2) ...
/var/lib/dpkg/info/libstdc++6:amd64.prerm: 10: /var/lib/dpkg/info/libstdc++6:amd64.prerm: find: not found
/var/lib/dpkg/info/libstdc++6:amd64.prerm: 10: /var/lib/dpkg/info/libstdc++6:amd64.prerm: xargs: not found
dpkg: error processing package libstdc++6:amd64 (--remove):
 subprocess installed pre-removal script returned error exit status 127
Removing libsystemd0:amd64 (215-17+deb8u13) ...
/var/lib/dpkg/info/libsystemd0:amd64.postrm: 5: /var/lib/dpkg/info/libsystemd0:amd64.postrm: ldconfig: not found
dpkg: error processing package libsystemd0:amd64 (--remove):
 subprocess installed post-removal script returned error exit status 127
Removing libgcrypt20:amd64 (1.6.3-2+deb8u8) ...
/var/lib/dpkg/info/libgcrypt20:amd64.postrm: 5: /var/lib/dpkg/info/libgcrypt20:amd64.postrm: ldconfig: not found
dpkg: error processing package libgcrypt20:amd64 (--remove):
 subprocess installed post-removal script returned error exit status 127
Removing libhogweed2:amd64 (2.7.1-5+deb8u2) ...
/var/lib/dpkg/info/libhogweed2:amd64.postrm: 5: /var/lib/dpkg/info/libhogweed2:amd64.postrm: ldconfig: not found
dpkg: error processing package libhogweed2:amd64 (--remove):
 subprocess installed post-removal script returned error exit status 127
Removing libgmp10:amd64 (2:6.0.0+dfsg-6) ...
/var/lib/dpkg/info/libgmp10:amd64.postrm: 5: /var/lib/dpkg/info/libgmp10:amd64.postrm: ldconfig: not found
dpkg: error processing package libgmp10:amd64 (--remove):
 subprocess installed post-removal script returned error exit status 127
Removing libgpg-error0:amd64 (1.17-3) ...
/var/lib/dpkg/info/libgpg-error0:amd64.postrm: 5: /var/lib/dpkg/info/libgpg-error0:amd64.postrm: ldconfig: not found
dpkg: error processing package libgpg-error0:amd64 (--remove):
 subprocess installed post-removal script returned error exit status 127
Removing libkmod2:amd64 (18-3) ...
/var/lib/dpkg/info/libkmod2:amd64.postrm: 5: /var/lib/dpkg/info/libkmod2:amd64.postrm: ldconfig: not found
dpkg: error processing package libkmod2:amd64 (--remove):
 subprocess installed post-removal script returned error exit status 127
Removing liblocale-gettext-perl (1.05-8+b1) ...
Removing libncursesw5:amd64 (5.9+20140913-1+deb8u3) ...
/var/lib/dpkg/info/libncursesw5:amd64.postrm: 5: /var/lib/dpkg/info/libncursesw5:amd64.postrm: ldconfig: not found
dpkg: error processing package libncursesw5:amd64 (--remove):
 subprocess installed post-removal script returned error exit status 127
Removing libnettle4:amd64 (2.7.1-5+deb8u2) ...
/var/lib/dpkg/info/libnettle4:amd64.postrm: 5: /var/lib/dpkg/info/libnettle4:amd64.postrm: ldconfig: not found
dpkg: error processing package libnettle4:amd64 (--remove):
 subprocess installed post-removal script returned error exit status 127
Removing libpam-runtime (1.1.8-3.1+deb8u2) ...
Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16.
Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17.
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Can't exec "/usr/bin/locale": No such file or directory at /usr/share/perl5/Text/WrapI18N.pm line 134, <GEN0> line 16.
Use of uninitialized value $Text::WrapI18N::charmap in pattern match (m//) at /usr/share/perl5/Text/WrapI18N.pm line 137, <GEN0> line 16.
Use of uninitialized value $Text::WrapI18N::charmap in pattern match (m//) at /usr/share/perl5/Text/WrapI18N.pm line 155, <GEN0> line 16.
Can't exec "/usr/bin/locale": No such file or directory at /usr/share/perl5/Text/WrapI18N.pm line 134, <GEN0> line 16.
Use of uninitialized value $Text::WrapI18N::charmap in pattern match (m//) at /usr/share/perl5/Text/WrapI18N.pm line 137, <GEN0> line 16.
Use of uninitialized value $Text::WrapI18N::charmap in pattern match (m//) at /usr/share/perl5/Text/WrapI18N.pm line 155, <GEN0> line 16.
Can't exec "/usr/bin/locale": No such file or directory at /usr/share/perl5/Text/WrapI18N.pm line 134, <GEN0> line 16.
Use of uninitialized value $Text::WrapI18N::charmap in pattern match (m//) at /usr/share/perl5/Text/WrapI18N.pm line 137, <GEN0> line 16.
Use of uninitialized value $Text::WrapI18N::charmap in pattern match (m//) at /usr/share/perl5/Text/WrapI18N.pm line 155, <GEN0> line 16.
Can't exec "/usr/bin/locale": No such file or directory at /usr/share/perl5/Text/WrapI18N.pm line 134, <GEN0> line 16.
Use of uninitialized value $Text::WrapI18N::charmap in pattern match (m//) at /usr/share/perl5/Text/WrapI18N.pm line 137, <GEN0> line 16.
Use of uninitialized value $Text::WrapI18N::charmap in pattern match (m//) at /usr/share/perl5/Text/WrapI18N.pm line 155, <GEN0> line 16.
Can't exec "/usr/bin/locale": No such file or directory at /usr/share/perl5/Text/WrapI18N.pm line 134, <GEN0> line 16.
Use of uninitialized value $Text::WrapI18N::charmap in pattern match (m//) at /usr/share/perl5/Text/WrapI18N.pm line 137, <GEN0> line 16.
Use of uninitialized value $Text::WrapI18N::charmap in pattern match (m//) at /usr/share/perl5/Text/WrapI18N.pm line 155, <GEN0> line 16.
Can't exec "/usr/bin/locale": No such file or directory at /usr/share/perl5/Text/WrapI18N.pm line 134, <GEN0> line 16.

VM
root@debian8:/home/vagrant# apt-get remove libc6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  autotools-dev cmake-data discover-data geoip-database libbison-dev
  libc++-helpers linux-libc-dev manpages-dev vim-runtime
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  acl acpi acpi-support-base acpid adduser apt apt-listchanges
  apt-transport-https apt-utils aptitude at autoconf automake base-files
  base-passwd bash bash-completion bc bind9-host binutils bison bsd-mailx
  bsdmainutils bsdutils busybox bzip2 ca-certificates cmake console-setup
  console-setup-linux coreutils cpio cpp cpp-4.9 cron curl dash dbus dc
  debconf debconf-i18n debian-archive-keyring debianutils dictionaries-common
  diffutils discover dmidecode dmsetup dnsutils docutils-common dpkg e2fslibs
  e2fsprogs eject file findutils flex fontconfig fontconfig-config ftp g++
  g++-4.9 gawk gcc gcc-4.9 gcc-4.9-multilib gcc-multilib gdb gdbserver
  gettext-base git gnupg gnupg-agent gnupg2 gpgv grep groff-base grub-common
  grub-pc grub-pc-bin grub2-common gzip haveged host hostname iamerican
  ibritish ienglish-common ifplugd ifupdown info init init-system-helpers
  initramfs-tools initscripts inotify-tools insserv install-info iproute2
  iptables iputils-ping irqbalance isc-dhcp-client isc-dhcp-common ispell kbd
  keyboard-configuration kmod laptop-detect less lib32asan1 lib32atomic1
  lib32cilkrts5 lib32gcc-4.9-dev lib32gcc1 lib32gomp1 lib32itm1 lib32quadmath0
  lib32stdc++6 lib32ubsan0 libacl1 libalgorithm-c3-perl libapt-inst1.5
  libapt-pkg4.12 libarchive-extract-perl libarchive13 libasan1 libasprintf0c2
  libassuan0 libatk1.0-0 libatomic1 libattr1 libaudit1 libauthen-sasl-perl
  libavahi-client3 libavahi-common3 libbind9-90 libblkid1
  libboost-iostreams1.55.0 libbsd-dev libbsd0 libbz2-1.0 libc++-dev libc++1
  libc-bin libc-dev-bin libc6 libc6-dbg libc6-dev libc6-dev-i386 libc6-dev-x32
  libc6-i386 libc6-x32 libcairo2 libcap-ng0 libcap2 libcap2-bin libcdb1
  libcgi-fast-perl libcgi-pm-perl libcilkrts5 libclass-accessor-perl
  libclass-c3-perl libclass-c3-xs-perl libcloog-isl4 libcomerr2
  libcpan-meta-perl libcryptsetup4 libcups2 libcurl3 libcurl3-gnutls
  libcwidget3 libdaemon0 libdata-optlist-perl libdata-section-perl libdatrie1
  libdb5.3 libdbus-1-3 libdebconfclient0 libdevmapper1.02.1 libdiscover2
  libdns-export100 libdns100 libedit2 libencode-locale-perl liberror-perl
  libestr0 libevent-2.0-5 libevent-core-2.0-5 libevent-dev
  libevent-extra-2.0-5 libevent-openssl-2.0-5 libevent-pthreads-2.0-5
  libexpat1 libfcgi-perl libffi6 libfile-listing-perl libfl-dev
  libfont-afm-perl libfontconfig1 libfreetype6 libfuse2 libgc1c2
  libgcc-4.9-dev libgcc1 libgcrypt20 libgdbm3 libgdk-pixbuf2.0-0 libgeoip1
  libglib2.0-0 libgmp-dev libgmp10 libgmpxx4ldbl libgnutls-deb0-28
  libgnutls-openssl27 libgomp1 libgpg-error0 libgpgme11 libgpm2 libgraphite2-3
  libgssapi-krb5-2 libgtk2.0-0 libgtk2.0-bin libharfbuzz0b libhavege1
  libhogweed2 libhtml-form-perl libhtml-format-perl libhtml-parser-perl
  libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl
  libhttp-daemon-perl libhttp-date-perl libhttp-message-perl
  libhttp-negotiate-perl libicu52 libidn11 libinotifytools0 libintl-perl
  libio-html-perl libio-socket-ip-perl libio-socket-ssl-perl libio-string-perl
  libirs-export91 libisc-export95 libisc95 libisccc90 libisccfg-export90
  libisccfg90 libisl10 libitm1 libjasper1 libjbig0 libjpeg62-turbo libjson-c2
  libk5crypto3 libkeyutils1 libkmod2 libkrb5-3 libkrb5support0 libksba8
  liblcms2-2 libldap-2.4-2 liblocale-gettext-perl liblockfile-bin liblockfile1
  liblog-message-perl liblog-message-simple-perl liblogging-stdlog0
  liblognorm1 liblsan0 libltdl-dev libltdl7 liblwp-mediatypes-perl
  liblwp-protocol-https-perl liblwres90 liblzma5 liblzo2-2 libmagic1
  libmailtools-perl libmnl0 libmodule-build-perl libmodule-pluggable-perl
  libmodule-signature-perl libmount1 libmpc3 libmpfr-dev libmpfr4
  libmro-compat-perl libncurses5 libncurses5-dev libncursesw5 libnet-http-perl
  libnet-smtp-ssl-perl libnet-ssleay-perl libnetfilter-acct1 libnettle4
  libnewt0.52 libnfnetlink0 libnfsidmap2 libnuma1 libp11-kit0
  libpackage-constants-perl libpam-modules libpam-modules-bin libpam-runtime
  libpam0g libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpaper-utils
  libpaper1 libparams-util-perl libparse-debianchangelog-perl libpci3 libpcre3
  libperl4-corelibs-perl libpipeline1 libpixman-1-0 libpng12-0
  libpod-latex-perl libpod-readme-perl libpopt0 libprocps3 libpsl0 libpth20
  libpython-stdlib libpython2.7 libpython2.7-stdlib libquadmath0 libreadline6
  libregexp-common-perl librtmp1 libsasl2-2 libsasl2-modules
  libsasl2-modules-db libselinux1 libsemanage1 libsensors4 libsepol1
  libsigc++-2.0-0c2a libsigsegv2 libslang2 libsmartcols1
  libsoftware-license-perl libsqlite3-0 libss2 libssh2-1 libssl1.0.0
  libstdc++-4.9-dev libstdc++6 libsub-exporter-perl libsub-install-perl
  libsub-name-perl libsubunit-dev libsubunit0 libswitch-perl libsystemd0
  libtasn1-6 libterm-ui-perl libtext-charwidth-perl libtext-iconv-perl
  libtext-soundex-perl libtext-template-perl libtext-unidecode-perl
  libtext-wrapi18n-perl libthai0 libtiff5 libtimedate-perl libtinfo-dev
  libtinfo5 libtirpc1 libtokyocabinet9 libtool libtsan0 libubsan0 libudev1
  liburi-perl libusb-0.1-4 libustr-1.0-1 libuuid1 libwebp5 libwebpdemux1
  libwebpmux1 libwrap0 libwww-perl libwww-robotrules-perl libx11-6 libx32asan1
  libx32atomic1 libx32cilkrts5 libx32gcc-4.9-dev libx32gcc1 libx32gomp1
  libx32itm1 libx32quadmath0 libx32ubsan0 libxapian22 libxau6 libxcb-render0
  libxcb-shm0 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6
  libxext6 libxfixes3 libxi6 libxinerama1 libxml-libxml-perl
  libxml-namespacesupport-perl libxml-parser-perl libxml-sax-base-perl
  libxml-sax-expat-perl libxml-sax-perl libxml2 libxmuu1 libxrandr2
  libxrender1 libxtables10 linux-base linux-image-3.16.0-11-amd64
  linux-image-3.16.0-6-amd64 linux-image-amd64 locales login logrotate
  lsb-release lsof m4 make man-db mawk memcached mlocate mount
  multiarch-support mutt nano ncurses-bin net-tools netcat-traditional nfacct
  nfs-common openssh-client openssh-server openssh-sftp-server openssl
  os-prober passwd patch pciutils perl perl-base perl-modules pinentry-gtk2
  pkg-config postfix postfix-cdb procmail procps psmisc python python-apt
  python-apt-common python-cffi python-chardet python-crypto
  python-cryptography python-debian python-debianbts python-defusedxml
  python-docutils python-minimal python-ndg-httpsclient python-openssl
  python-pil python-pkg-resources python-ply python-pyasn1 python-pycparser
  python-pygments python-reportbug python-requests python-roman python-six
  python-soappy python-support python-urllib3 python-wstools python2.7
  python2.7-minimal qemu-guest-agent readline-common rename reportbug
  resolvconf rpcbind rsync rsyslog sed sgml-base shared-mime-info ssl-cert
  startpar sudo sysstat systemd systemd-sysv sysv-rc sysvinit-utils tar
  task-english tasksel tasksel-data tcpd telnet texinfo time traceroute tzdata
  ucf udev util-linux util-linux-locales valgrind valgrind-dbg vim vim-common
  vim-tiny w3m wamerican wget whiptail whois xauth xdg-user-dirs xml-core
  xz-utils zlib1g
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt libapt-pkg4.12 (due to apt) libc6 (due to apt) libgcc1 (due to apt)
  libstdc++6 (due to apt) debian-archive-keyring (due to apt) gnupg (due to
  apt) base-files base-passwd libdebconfclient0 (due to base-passwd) bash
  debianutils (due to bash) dash (due to bash) libncurses5 (due to bash)
  libtinfo5 (due to bash) bsdutils libsystemd0 (due to bsdutils) coreutils
  libacl1 (due to coreutils) libattr1 (due to coreutils) libselinux1 (due to
  coreutils) dpkg (due to dash) diffutils libbz2-1.0 (due to dpkg) liblzma5
  (due to dpkg) zlib1g (due to dpkg) tar (due to dpkg) e2fsprogs e2fslibs (due
  to e2fsprogs) libblkid1 (due to e2fsprogs) libcomerr2 (due to e2fsprogs)
  libss2 (due to e2fsprogs) libuuid1 (due to e2fsprogs) util-linux (due to
  e2fsprogs) findutils grep install-info (due to grep) libpcre3 (due to grep)
  gzip hostname init systemd-sysv (due to init) libc-bin login libaudit1 (due
  to login) libpam0g (due to login) libpam-runtime (due to login)
  libpam-modules (due to login) mount libmount1 (due to mount) libsmartcols1
  (due to mount) ncurses-bin perl-base sed sysvinit-utils startpar (due to
  sysvinit-utils) initscripts (due to util-linux) tzdata (due to util-linux)
  libslang2 (due to util-linux)
0 upgraded, 0 newly installed, 542 to remove and 0 not upgraded.
After this operation, 1,382 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'

image image

Debian 7
Docker
root@fbee2f28011f:/# apt-get remove libc6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libsemanage-common
Use 'apt-get autoremove' to remove it.
The following packages will be REMOVED:
  apt base-files base-passwd bash bsdutils coreutils dash debconf debconf-i18n
  debian-archive-keyring debianutils diffutils dpkg e2fslibs e2fsprogs
  findutils gnupg gpgv grep gzip hostname initscripts insserv iproute
  iputils-ping libacl1 libapt-pkg4.12 libattr1 libblkid1 libbz2-1.0 libc6
  libcomerr2 libdb5.1 libgcc1 liblocale-gettext-perl liblzma5 libmount1
  libncurses5 libpam-modules libpam-modules-bin libpam-runtime libpam0g
  libreadline6 libselinux1 libsemanage1 libsepol1 libslang2 libss2 libssl1.0.0
  libstdc++6 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl
  libtinfo5 libusb-0.1-4 libustr-1.0-1 libuuid1 login mawk mount
  multiarch-support ncurses-bin passwd perl-base readline-common sed sysv-rc
  sysvinit sysvinit-utils tar tzdata util-linux xz-utils zlib1g
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt libapt-pkg4.12 (due to apt) libc6 (due to apt) libgcc1 (due to apt)
  libstdc++6 (due to apt) debian-archive-keyring (due to apt) gnupg (due to
  apt) base-files mawk (due to base-files) base-passwd bash debianutils (due
  to bash) dash (due to bash) libtinfo5 (due to bash) bsdutils coreutils dpkg
  (due to coreutils) libacl1 (due to coreutils) libattr1 (due to coreutils)
  libselinux1 (due to coreutils) diffutils libbz2-1.0 (due to dpkg) liblzma5
  (due to dpkg) zlib1g (due to dpkg) tar (due to dpkg) e2fsprogs e2fslibs (due
  to e2fsprogs) libblkid1 (due to e2fsprogs) libcomerr2 (due to e2fsprogs)
  libss2 (due to e2fsprogs) libuuid1 (due to e2fsprogs) util-linux (due to
  e2fsprogs) findutils grep gzip hostname login libpam0g (due to login)
  libpam-runtime (due to login) libpam-modules (due to login) mount libmount1
  (due to mount) libsepol1 (due to mount) ncurses-bin perl-base sed sysvinit
  initscripts (due to sysvinit) sysv-rc (due to sysvinit) sysvinit-utils (due
  to sysvinit) tzdata (due to util-linux) debconf (due to util-linux)
  libncurses5 (due to util-linux) libslang2 (due to util-linux)
0 upgraded, 0 newly installed, 74 to remove and 0 not upgraded.
After this operation, 90.9 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'

miguelfdez99 avatar Sep 15 '22 09:09 miguelfdez99

Update report - RPM

Removing shadow-utils and installing wazuh-agent

Amazon Linux 2
bash-4.2# yum remove shadow-utils
Loaded plugins: ovl, priorities
No Match for argument: shadow-utils
No Packages marked for removal
bash-4.2# yum info shadow-utils
Loaded plugins: ovl, priorities
amzn2-core                                               | 3.7 kB     00:00     
(1/3): amzn2-core/2/x86_64/group_gz                        | 2.5 kB   00:00     
(2/3): amzn2-core/2/x86_64/updateinfo                      | 498 kB   00:00     
(3/3): amzn2-core/2/x86_64/primary_db                      |  65 MB   00:11     
Available Packages
Name        : shadow-utils
Arch        : x86_64
Epoch       : 2
Version     : 4.1.5.1
Release     : 24.amzn2.0.2
Size        : 1.1 M
Repo        : amzn2-core/2/x86_64
Summary     : Utilities for managing accounts and shadow password files
URL         : http://pkg-shadow.alioth.debian.org/
License     : BSD and GPLv2+
Description : The shadow-utils package includes the necessary programs for
            : converting UNIX password files to the shadow password format, plus
            : programs for managing user and group accounts. The pwconv command
            : converts passwords to the shadow password format. The pwunconv
            : command unconverts shadow passwords and generates a passwd file (a
            : standard UNIX password file). The pwck command checks the
            : integrity of password and shadow files. The lastlog command prints
            : out the last login times for all users. The useradd, userdel, and
            : usermod commands are used for managing user accounts. The
            : groupadd, groupdel, and groupmod commands are used for managing
            : group accounts.
bash-4.2# yum install wazuh-agent-4.4.0-1.x86_64.rpm 
Loaded plugins: ovl, priorities
Examining wazuh-agent-4.4.0-1.x86_64.rpm: wazuh-agent-4.4.0-1.x86_64
Marking wazuh-agent-4.4.0-1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package wazuh-agent.x86_64 0:4.4.0-1 will be installed
--> Processing Dependency: /sbin/service for package: wazuh-agent-4.4.0-1.x86_64
--> Processing Dependency: /sbin/service for package: wazuh-agent-4.4.0-1.x86_64
--> Processing Dependency: /usr/sbin/groupadd for package: wazuh-agent-4.4.0-1.x86_64
--> Processing Dependency: /usr/sbin/useradd for package: wazuh-agent-4.4.0-1.x86_64
--> Running transaction check
---> Package initscripts.x86_64 0:9.49.47-1.amzn2.0.2 will be installed
--> Processing Dependency: util-linux >= 2.16 for package: initscripts-9.49.47-1.amzn2.0.2.x86_64
--> Processing Dependency: udev >= 125-1 for package: initscripts-9.49.47-1.amzn2.0.2.x86_64
--> Processing Dependency: sysvinit-tools >= 2.87-5 for package: initscripts-9.49.47-1.amzn2.0.2.x86_64
--> Processing Dependency: systemd for package: initscripts-9.49.47-1.amzn2.0.2.x86_64
--> Processing Dependency: systemd for package: initscripts-9.49.47-1.amzn2.0.2.x86_64
--> Processing Dependency: systemd for package: initscripts-9.49.47-1.amzn2.0.2.x86_64
--> Processing Dependency: systemd for package: initscripts-9.49.47-1.amzn2.0.2.x86_64
--> Processing Dependency: module-init-tools for package: initscripts-9.49.47-1.amzn2.0.2.x86_64
--> Processing Dependency: iproute for package: initscripts-9.49.47-1.amzn2.0.2.x86_64
--> Processing Dependency: hostname for package: initscripts-9.49.47-1.amzn2.0.2.x86_64
--> Processing Dependency: /sbin/sysctl for package: initscripts-9.49.47-1.amzn2.0.2.x86_64
--> Processing Dependency: /sbin/arping for package: initscripts-9.49.47-1.amzn2.0.2.x86_64
---> Package shadow-utils.x86_64 2:4.1.5.1-24.amzn2.0.2 will be installed
--> Processing Dependency: audit-libs >= 1.6.5 for package: 2:shadow-utils-4.1.5.1-24.amzn2.0.2.x86_64
--> Processing Dependency: libsemanage.so.1(LIBSEMANAGE_1.0)(64bit) for package: 2:shadow-utils-4.1.5.1-24.amzn2.0.2.x86_64
--> Processing Dependency: libsemanage.so.1()(64bit) for package: 2:shadow-utils-4.1.5.1-24.amzn2.0.2.x86_64
--> Processing Dependency: libaudit.so.1()(64bit) for package: 2:shadow-utils-4.1.5.1-24.amzn2.0.2.x86_64
--> Running transaction check
---> Package audit-libs.x86_64 0:2.8.1-3.amzn2.1 will be installed
--> Processing Dependency: libcap-ng.so.0()(64bit) for package: audit-libs-2.8.1-3.amzn2.1.x86_64
---> Package hostname.x86_64 0:3.13-3.amzn2.0.2 will be installed
---> Package iproute.x86_64 0:5.10.0-2.amzn2.0.3 will be installed
--> Processing Dependency: psmisc for package: iproute-5.10.0-2.amzn2.0.3.x86_64
--> Processing Dependency: libmnl.so.0(LIBMNL_1.0)(64bit) for package: iproute-5.10.0-2.amzn2.0.3.x86_64
--> Processing Dependency: libmnl.so.0()(64bit) for package: iproute-5.10.0-2.amzn2.0.3.x86_64
---> Package iputils.x86_64 0:20160308-10.amzn2.0.2 will be installed
--> Processing Dependency: libidn.so.11(LIBIDN_1.0)(64bit) for package: iputils-20160308-10.amzn2.0.2.x86_64
--> Processing Dependency: libidn.so.11()(64bit) for package: iputils-20160308-10.amzn2.0.2.x86_64
---> Package kmod.x86_64 0:25-3.amzn2.0.2 will be installed
---> Package libsemanage.x86_64 0:2.5-11.amzn2 will be installed
--> Processing Dependency: libustr-1.0.so.1(USTR_1.0.1)(64bit) for package: libsemanage-2.5-11.amzn2.x86_64
--> Processing Dependency: libustr-1.0.so.1(USTR_1.0)(64bit) for package: libsemanage-2.5-11.amzn2.x86_64
--> Processing Dependency: libustr-1.0.so.1()(64bit) for package: libsemanage-2.5-11.amzn2.x86_64
---> Package procps-ng.x86_64 0:3.3.10-26.amzn2 will be installed
--> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: procps-ng-3.3.10-26.amzn2.x86_64
--> Processing Dependency: libsystemd.so.0()(64bit) for package: procps-ng-3.3.10-26.amzn2.x86_64
---> Package systemd.x86_64 0:219-78.amzn2.0.18 will be installed
--> Processing Dependency: libpam.so.0(LIBPAM_1.0)(64bit) for package: systemd-219-78.amzn2.0.18.x86_64
--> Processing Dependency: libkmod.so.2(LIBKMOD_5)(64bit) for package: systemd-219-78.amzn2.0.18.x86_64
--> Processing Dependency: libdw.so.1(ELFUTILS_0.158)(64bit) for package: systemd-219-78.amzn2.0.18.x86_64
--> Processing Dependency: libdw.so.1(ELFUTILS_0.130)(64bit) for package: systemd-219-78.amzn2.0.18.x86_64
--> Processing Dependency: libdw.so.1(ELFUTILS_0.122)(64bit) for package: systemd-219-78.amzn2.0.18.x86_64
--> Processing Dependency: libcryptsetup.so.4(CRYPTSETUP_1.0)(64bit) for package: systemd-219-78.amzn2.0.18.x86_64
--> Processing Dependency: dbus for package: systemd-219-78.amzn2.0.18.x86_64
--> Processing Dependency: acl for package: systemd-219-78.amzn2.0.18.x86_64
--> Processing Dependency: libqrencode.so.3()(64bit) for package: systemd-219-78.amzn2.0.18.x86_64
--> Processing Dependency: libpam.so.0()(64bit) for package: systemd-219-78.amzn2.0.18.x86_64
--> Processing Dependency: liblz4.so.1()(64bit) for package: systemd-219-78.amzn2.0.18.x86_64
--> Processing Dependency: libkmod.so.2()(64bit) for package: systemd-219-78.amzn2.0.18.x86_64
--> Processing Dependency: libdw.so.1()(64bit) for package: systemd-219-78.amzn2.0.18.x86_64
--> Processing Dependency: libcryptsetup.so.4()(64bit) for package: systemd-219-78.amzn2.0.18.x86_64
---> Package sysvinit-tools.x86_64 0:2.88-14.dsf.amzn2.0.2 will be installed
---> Package util-linux.x86_64 0:2.30.2-2.amzn2.0.7 will be installed
--> Processing Dependency: libsmartcols = 2.30.2-2.amzn2.0.7 for package: util-linux-2.30.2-2.amzn2.0.7.x86_64
--> Processing Dependency: libfdisk = 2.30.2-2.amzn2.0.7 for package: util-linux-2.30.2-2.amzn2.0.7.x86_64
--> Processing Dependency: libutempter.so.0(UTEMPTER_1.1)(64bit) for package: util-linux-2.30.2-2.amzn2.0.7.x86_64
--> Processing Dependency: libsmartcols.so.1(SMARTCOLS_2.30)(64bit) for package: util-linux-2.30.2-2.amzn2.0.7.x86_64
--> Processing Dependency: libsmartcols.so.1(SMARTCOLS_2.29)(64bit) for package: util-linux-2.30.2-2.amzn2.0.7.x86_64
--> Processing Dependency: libsmartcols.so.1(SMARTCOLS_2.28)(64bit) for package: util-linux-2.30.2-2.amzn2.0.7.x86_64
--> Processing Dependency: libsmartcols.so.1(SMARTCOLS_2.27)(64bit) for package: util-linux-2.30.2-2.amzn2.0.7.x86_64
--> Processing Dependency: libsmartcols.so.1(SMARTCOLS_2.25)(64bit) for package: util-linux-2.30.2-2.amzn2.0.7.x86_64
--> Processing Dependency: libfdisk.so.1(FDISK_2.30)(64bit) for package: util-linux-2.30.2-2.amzn2.0.7.x86_64
--> Processing Dependency: libfdisk.so.1(FDISK_2.29)(64bit) for package: util-linux-2.30.2-2.amzn2.0.7.x86_64
--> Processing Dependency: libfdisk.so.1(FDISK_2.28)(64bit) for package: util-linux-2.30.2-2.amzn2.0.7.x86_64
--> Processing Dependency: libfdisk.so.1(FDISK_2.27)(64bit) for package: util-linux-2.30.2-2.amzn2.0.7.x86_64
--> Processing Dependency: libfdisk.so.1(FDISK_2.26)(64bit) for package: util-linux-2.30.2-2.amzn2.0.7.x86_64
--> Processing Dependency: libutempter.so.0()(64bit) for package: util-linux-2.30.2-2.amzn2.0.7.x86_64
--> Processing Dependency: libsmartcols.so.1()(64bit) for package: util-linux-2.30.2-2.amzn2.0.7.x86_64
--> Processing Dependency: libfdisk.so.1()(64bit) for package: util-linux-2.30.2-2.amzn2.0.7.x86_64
--> Running transaction check
---> Package acl.x86_64 0:2.2.51-14.amzn2 will be installed
---> Package cryptsetup-libs.x86_64 0:1.7.4-4.amzn2 will be installed
--> Processing Dependency: libdevmapper.so.1.02(DM_1_02_97)(64bit) for package: cryptsetup-libs-1.7.4-4.amzn2.x86_64
--> Processing Dependency: libdevmapper.so.1.02(Base)(64bit) for package: cryptsetup-libs-1.7.4-4.amzn2.x86_64
--> Processing Dependency: libdevmapper.so.1.02()(64bit) for package: cryptsetup-libs-1.7.4-4.amzn2.x86_64
---> Package dbus.x86_64 1:1.10.24-7.amzn2 will be installed
--> Processing Dependency: dbus-libs(x86-64) = 1:1.10.24-7.amzn2 for package: 1:dbus-1.10.24-7.amzn2.x86_64
--> Processing Dependency: libdbus-1.so.3(LIBDBUS_PRIVATE_1.10.24)(64bit) for package: 1:dbus-1.10.24-7.amzn2.x86_64
--> Processing Dependency: libdbus-1.so.3(LIBDBUS_1_3)(64bit) for package: 1:dbus-1.10.24-7.amzn2.x86_64
--> Processing Dependency: libdbus-1.so.3()(64bit) for package: 1:dbus-1.10.24-7.amzn2.x86_64
---> Package elfutils-libs.x86_64 0:0.176-2.amzn2 will be installed
--> Processing Dependency: default-yama-scope for package: elfutils-libs-0.176-2.amzn2.x86_64
---> Package kmod-libs.x86_64 0:25-3.amzn2.0.2 will be installed
---> Package libcap-ng.x86_64 0:0.7.5-4.amzn2.0.4 will be installed
---> Package libfdisk.x86_64 0:2.30.2-2.amzn2.0.7 will be installed
---> Package libidn.x86_64 0:1.28-4.amzn2.0.2 will be installed
---> Package libmnl.x86_64 0:1.0.3-7.amzn2.0.2 will be installed
---> Package libsmartcols.x86_64 0:2.30.2-2.amzn2.0.7 will be installed
---> Package libutempter.x86_64 0:1.1.6-4.amzn2.0.2 will be installed
---> Package lz4.x86_64 0:1.7.5-2.amzn2.0.1 will be installed
---> Package pam.x86_64 0:1.1.8-23.amzn2.0.1 will be installed
--> Processing Dependency: libpwquality >= 0.9.9 for package: pam-1.1.8-23.amzn2.0.1.x86_64
--> Processing Dependency: cracklib-dicts >= 2.8 for package: pam-1.1.8-23.amzn2.0.1.x86_64
--> Processing Dependency: libcrack.so.2()(64bit) for package: pam-1.1.8-23.amzn2.0.1.x86_64
---> Package psmisc.x86_64 0:22.20-15.amzn2.0.2 will be installed
---> Package qrencode-libs.x86_64 0:3.4.1-3.amzn2.0.2 will be installed
---> Package systemd-libs.x86_64 0:219-78.amzn2.0.18 will be installed
---> Package ustr.x86_64 0:1.0.4-16.amzn2.0.3 will be installed
--> Running transaction check
---> Package cracklib.x86_64 0:2.9.0-11.amzn2.0.2 will be installed
--> Processing Dependency: gzip for package: cracklib-2.9.0-11.amzn2.0.2.x86_64
---> Package cracklib-dicts.x86_64 0:2.9.0-11.amzn2.0.2 will be installed
---> Package dbus-libs.x86_64 1:1.10.24-7.amzn2 will be installed
---> Package device-mapper-libs.x86_64 7:1.02.170-6.amzn2.5 will be installed
--> Processing Dependency: device-mapper = 7:1.02.170-6.amzn2.5 for package: 7:device-mapper-libs-1.02.170-6.amzn2.5.x86_64
---> Package elfutils-default-yama-scope.noarch 0:0.176-2.amzn2 will be installed
---> Package libpwquality.x86_64 0:1.2.3-5.amzn2 will be installed
--> Running transaction check
---> Package device-mapper.x86_64 7:1.02.170-6.amzn2.5 will be installed
---> Package gzip.x86_64 0:1.5-10.amzn2.0.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                     Arch   Version                Repository      Size
================================================================================
Installing:
 wazuh-agent                 x86_64 4.4.0-1                /wazuh-agent-4.4.0-1.x86_64
                                                                           25 M
Installing for dependencies:
 acl                         x86_64 2.2.51-14.amzn2        amzn2-core      82 k
 audit-libs                  x86_64 2.8.1-3.amzn2.1        amzn2-core      99 k
 cracklib                    x86_64 2.9.0-11.amzn2.0.2     amzn2-core      80 k
 cracklib-dicts              x86_64 2.9.0-11.amzn2.0.2     amzn2-core     3.6 M
 cryptsetup-libs             x86_64 1.7.4-4.amzn2          amzn2-core     224 k
 dbus                        x86_64 1:1.10.24-7.amzn2      amzn2-core     247 k
 dbus-libs                   x86_64 1:1.10.24-7.amzn2      amzn2-core     169 k
 device-mapper               x86_64 7:1.02.170-6.amzn2.5   amzn2-core     297 k
 device-mapper-libs          x86_64 7:1.02.170-6.amzn2.5   amzn2-core     326 k
 elfutils-default-yama-scope noarch 0.176-2.amzn2          amzn2-core      33 k
 elfutils-libs               x86_64 0.176-2.amzn2          amzn2-core     293 k
 gzip                        x86_64 1.5-10.amzn2.0.1       amzn2-core     129 k
 hostname                    x86_64 3.13-3.amzn2.0.2       amzn2-core      17 k
 initscripts                 x86_64 9.49.47-1.amzn2.0.2    amzn2-core     440 k
 iproute                     x86_64 5.10.0-2.amzn2.0.3     amzn2-core     649 k
 iputils                     x86_64 20160308-10.amzn2.0.2  amzn2-core     147 k
 kmod                        x86_64 25-3.amzn2.0.2         amzn2-core     111 k
 kmod-libs                   x86_64 25-3.amzn2.0.2         amzn2-core      59 k
 libcap-ng                   x86_64 0.7.5-4.amzn2.0.4      amzn2-core      25 k
 libfdisk                    x86_64 2.30.2-2.amzn2.0.7     amzn2-core     238 k
 libidn                      x86_64 1.28-4.amzn2.0.2       amzn2-core     209 k
 libmnl                      x86_64 1.0.3-7.amzn2.0.2      amzn2-core      23 k
 libpwquality                x86_64 1.2.3-5.amzn2          amzn2-core      84 k
 libsemanage                 x86_64 2.5-11.amzn2           amzn2-core     152 k
 libsmartcols                x86_64 2.30.2-2.amzn2.0.7     amzn2-core     155 k
 libutempter                 x86_64 1.1.6-4.amzn2.0.2      amzn2-core      25 k
 lz4                         x86_64 1.7.5-2.amzn2.0.1      amzn2-core      99 k
 pam                         x86_64 1.1.8-23.amzn2.0.1     amzn2-core     715 k
 procps-ng                   x86_64 3.3.10-26.amzn2        amzn2-core     292 k
 psmisc                      x86_64 22.20-15.amzn2.0.2     amzn2-core     141 k
 qrencode-libs               x86_64 3.4.1-3.amzn2.0.2      amzn2-core      50 k
 shadow-utils                x86_64 2:4.1.5.1-24.amzn2.0.2 amzn2-core     1.1 M
 systemd                     x86_64 219-78.amzn2.0.18      amzn2-core     5.0 M
 systemd-libs                x86_64 219-78.amzn2.0.18      amzn2-core     408 k
 sysvinit-tools              x86_64 2.88-14.dsf.amzn2.0.2  amzn2-core      62 k
 ustr                        x86_64 1.0.4-16.amzn2.0.3     amzn2-core      96 k
 util-linux                  x86_64 2.30.2-2.amzn2.0.7     amzn2-core     2.3 M

Transaction Summary
================================================================================
Install  1 Package (+37 Dependent packages)

Total size: 43 M
Total download size: 18 M
Installed size: 86 M
Is this ok [y/d/N]: y
Downloading packages:
(1/37): audit-libs-2.8.1-3.amzn2.1.x86_64.rpm              |  99 kB   00:00     
(2/37): acl-2.2.51-14.amzn2.x86_64.rpm                     |  82 kB   00:00     
(3/37): cracklib-2.9.0-11.amzn2.0.2.x86_64.rpm             |  80 kB   00:00     
(4/37): cryptsetup-libs-1.7.4-4.amzn2.x86_64.rpm           | 224 kB   00:00     
(5/37): dbus-1.10.24-7.amzn2.x86_64.rpm                    | 247 kB   00:00     
(6/37): dbus-libs-1.10.24-7.amzn2.x86_64.rpm               | 169 kB   00:00     
(7/37): device-mapper-1.02.170-6.amzn2.5.x86_64.rpm        | 297 kB   00:00     
(8/37): device-mapper-libs-1.02.170-6.amzn2.5.x86_64.rpm   | 326 kB   00:00     
(9/37): elfutils-default-yama-scope-0.176-2.amzn2.noarch.r |  33 kB   00:00     
(10/37): elfutils-libs-0.176-2.amzn2.x86_64.rpm            | 293 kB   00:00     
(11/37): gzip-1.5-10.amzn2.0.1.x86_64.rpm                  | 129 kB   00:00     
(12/37): hostname-3.13-3.amzn2.0.2.x86_64.rpm              |  17 kB   00:00     
(13/37): cracklib-dicts-2.9.0-11.amzn2.0.2.x86_64.rpm      | 3.6 MB   00:01     
(14/37): initscripts-9.49.47-1.amzn2.0.2.x86_64.rpm        | 440 kB   00:00     
(15/37): iputils-20160308-10.amzn2.0.2.x86_64.rpm          | 147 kB   00:00     
(16/37): iproute-5.10.0-2.amzn2.0.3.x86_64.rpm             | 649 kB   00:00     
(17/37): kmod-25-3.amzn2.0.2.x86_64.rpm                    | 111 kB   00:00     
(18/37): kmod-libs-25-3.amzn2.0.2.x86_64.rpm               |  59 kB   00:00     
(19/37): libcap-ng-0.7.5-4.amzn2.0.4.x86_64.rpm            |  25 kB   00:00     
(20/37): libidn-1.28-4.amzn2.0.2.x86_64.rpm                | 209 kB   00:00     
(21/37): libfdisk-2.30.2-2.amzn2.0.7.x86_64.rpm            | 238 kB   00:00     
(22/37): libpwquality-1.2.3-5.amzn2.x86_64.rpm             |  84 kB   00:00     
(23/37): libmnl-1.0.3-7.amzn2.0.2.x86_64.rpm               |  23 kB   00:00     
(24/37): libsemanage-2.5-11.amzn2.x86_64.rpm               | 152 kB   00:00     
(25/37): libsmartcols-2.30.2-2.amzn2.0.7.x86_64.rpm        | 155 kB   00:00     
(26/37): libutempter-1.1.6-4.amzn2.0.2.x86_64.rpm          |  25 kB   00:00     
(27/37): lz4-1.7.5-2.amzn2.0.1.x86_64.rpm                  |  99 kB   00:00     
(28/37): procps-ng-3.3.10-26.amzn2.x86_64.rpm              | 292 kB   00:00     
(29/37): pam-1.1.8-23.amzn2.0.1.x86_64.rpm                 | 715 kB   00:01     
(30/37): qrencode-libs-3.4.1-3.amzn2.0.2.x86_64.rpm        |  50 kB   00:00     
(31/37): psmisc-22.20-15.amzn2.0.2.x86_64.rpm              | 141 kB   00:00     
(32/37): shadow-utils-4.1.5.1-24.amzn2.0.2.x86_64.rpm      | 1.1 MB   00:00     
(33/37): systemd-libs-219-78.amzn2.0.18.x86_64.rpm         | 408 kB   00:00     
(34/37): sysvinit-tools-2.88-14.dsf.amzn2.0.2.x86_64.rpm   |  62 kB   00:00     
(35/37): ustr-1.0.4-16.amzn2.0.3.x86_64.rpm                |  96 kB   00:00     
(36/37): util-linux-2.30.2-2.amzn2.0.7.x86_64.rpm          | 2.3 MB   00:01     
(37/37): systemd-219-78.amzn2.0.18.x86_64.rpm              | 5.0 MB   00:04     
--------------------------------------------------------------------------------
Total                                              1.7 MB/s |  18 MB  00:10     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libcap-ng-0.7.5-4.amzn2.0.4.x86_64                          1/38 
  Installing : audit-libs-2.8.1-3.amzn2.1.x86_64                           2/38 
  Installing : kmod-25-3.amzn2.0.2.x86_64                                  3/38 
  Installing : lz4-1.7.5-2.amzn2.0.1.x86_64                                4/38 
  Installing : hostname-3.13-3.amzn2.0.2.x86_64                            5/38 
  Installing : kmod-libs-25-3.amzn2.0.2.x86_64                             6/38 
  Installing : acl-2.2.51-14.amzn2.x86_64                                  7/38 
  Installing : sysvinit-tools-2.88-14.dsf.amzn2.0.2.x86_64                 8/38 
  Installing : psmisc-22.20-15.amzn2.0.2.x86_64                            9/38 
  Installing : libmnl-1.0.3-7.amzn2.0.2.x86_64                            10/38 
  Installing : iproute-5.10.0-2.amzn2.0.3.x86_64                          11/38 
  Installing : libidn-1.28-4.amzn2.0.2.x86_64                             12/38 
  Installing : qrencode-libs-3.4.1-3.amzn2.0.2.x86_64                     13/38 
  Installing : ustr-1.0.4-16.amzn2.0.3.x86_64                             14/38 
  Installing : libsemanage-2.5-11.amzn2.x86_64                            15/38 
  Installing : 2:shadow-utils-4.1.5.1-24.amzn2.0.2.x86_64                 16/38 
  Installing : libutempter-1.1.6-4.amzn2.0.2.x86_64                       17/38 
  Installing : libsmartcols-2.30.2-2.amzn2.0.7.x86_64                     18/38 
  Installing : gzip-1.5-10.amzn2.0.1.x86_64                               19/38 
  Installing : cracklib-2.9.0-11.amzn2.0.2.x86_64                         20/38 
  Installing : cracklib-dicts-2.9.0-11.amzn2.0.2.x86_64                   21/38 
  Installing : libpwquality-1.2.3-5.amzn2.x86_64                          22/38 
  Installing : pam-1.1.8-23.amzn2.0.1.x86_64                              23/38 
  Installing : libfdisk-2.30.2-2.amzn2.0.7.x86_64                         24/38 
  Installing : util-linux-2.30.2-2.amzn2.0.7.x86_64                       25/38 
  Installing : 7:device-mapper-1.02.170-6.amzn2.5.x86_64                  26/38 
  Installing : 7:device-mapper-libs-1.02.170-6.amzn2.5.x86_64             27/38 
  Installing : cryptsetup-libs-1.7.4-4.amzn2.x86_64                       28/38 
  Installing : elfutils-libs-0.176-2.amzn2.x86_64                         29/38 
  Installing : systemd-libs-219-78.amzn2.0.18.x86_64                      30/38 
  Installing : 1:dbus-libs-1.10.24-7.amzn2.x86_64                         31/38 
  Installing : systemd-219-78.amzn2.0.18.x86_64                           32/38 
Failed to get D-Bus connection: Operation not permitted
  Installing : elfutils-default-yama-scope-0.176-2.amzn2.noarch           33/38 
  Installing : 1:dbus-1.10.24-7.amzn2.x86_64                              34/38 
  Installing : iputils-20160308-10.amzn2.0.2.x86_64                       35/38 
  Installing : procps-ng-3.3.10-26.amzn2.x86_64                           36/38 
  Installing : initscripts-9.49.47-1.amzn2.0.2.x86_64                     37/38 
warning: /etc/adjtime created as /etc/adjtime.rpmnew
  Installing : wazuh-agent-4.4.0-1.x86_64                                 38/38 
  Verifying  : libfdisk-2.30.2-2.amzn2.0.7.x86_64                          1/38 
  Verifying  : libutempter-1.1.6-4.amzn2.0.2.x86_64                        2/38 
  Verifying  : gzip-1.5-10.amzn2.0.1.x86_64                                3/38 
  Verifying  : elfutils-default-yama-scope-0.176-2.amzn2.noarch            4/38 
  Verifying  : libsmartcols-2.30.2-2.amzn2.0.7.x86_64                      5/38 
  Verifying  : initscripts-9.49.47-1.amzn2.0.2.x86_64                      6/38 
  Verifying  : iproute-5.10.0-2.amzn2.0.3.x86_64                           7/38 
  Verifying  : systemd-libs-219-78.amzn2.0.18.x86_64                       8/38 
  Verifying  : cracklib-2.9.0-11.amzn2.0.2.x86_64                          9/38 
  Verifying  : 1:dbus-libs-1.10.24-7.amzn2.x86_64                         10/38 
  Verifying  : ustr-1.0.4-16.amzn2.0.3.x86_64                             11/38 
  Verifying  : qrencode-libs-3.4.1-3.amzn2.0.2.x86_64                     12/38 
  Verifying  : cryptsetup-libs-1.7.4-4.amzn2.x86_64                       13/38 
  Verifying  : libidn-1.28-4.amzn2.0.2.x86_64                             14/38 
  Verifying  : libmnl-1.0.3-7.amzn2.0.2.x86_64                            15/38 
  Verifying  : libcap-ng-0.7.5-4.amzn2.0.4.x86_64                         16/38 
  Verifying  : lz4-1.7.5-2.amzn2.0.1.x86_64                               17/38 
  Verifying  : psmisc-22.20-15.amzn2.0.2.x86_64                           18/38 
  Verifying  : libpwquality-1.2.3-5.amzn2.x86_64                          19/38 
  Verifying  : 7:device-mapper-libs-1.02.170-6.amzn2.5.x86_64             20/38 
  Verifying  : sysvinit-tools-2.88-14.dsf.amzn2.0.2.x86_64                21/38 
  Verifying  : cracklib-dicts-2.9.0-11.amzn2.0.2.x86_64                   22/38 
  Verifying  : procps-ng-3.3.10-26.amzn2.x86_64                           23/38 
  Verifying  : pam-1.1.8-23.amzn2.0.1.x86_64                              24/38 
  Verifying  : iputils-20160308-10.amzn2.0.2.x86_64                       25/38 
  Verifying  : audit-libs-2.8.1-3.amzn2.1.x86_64                          26/38 
  Verifying  : systemd-219-78.amzn2.0.18.x86_64                           27/38 
  Verifying  : kmod-25-3.amzn2.0.2.x86_64                                 28/38 
  Verifying  : acl-2.2.51-14.amzn2.x86_64                                 29/38 
  Verifying  : libsemanage-2.5-11.amzn2.x86_64                            30/38 
  Verifying  : 1:dbus-1.10.24-7.amzn2.x86_64                              31/38 
  Verifying  : elfutils-libs-0.176-2.amzn2.x86_64                         32/38 
  Verifying  : 2:shadow-utils-4.1.5.1-24.amzn2.0.2.x86_64                 33/38 
  Verifying  : wazuh-agent-4.4.0-1.x86_64                                 34/38 
  Verifying  : util-linux-2.30.2-2.amzn2.0.7.x86_64                       35/38 
  Verifying  : kmod-libs-25-3.amzn2.0.2.x86_64                            36/38 
  Verifying  : 7:device-mapper-1.02.170-6.amzn2.5.x86_64                  37/38 
  Verifying  : hostname-3.13-3.amzn2.0.2.x86_64                           38/38 

Installed:
  wazuh-agent.x86_64 0:4.4.0-1                                                  

Dependency Installed:
  acl.x86_64 0:2.2.51-14.amzn2                                                  
  audit-libs.x86_64 0:2.8.1-3.amzn2.1                                           
  cracklib.x86_64 0:2.9.0-11.amzn2.0.2                                          
  cracklib-dicts.x86_64 0:2.9.0-11.amzn2.0.2                                    
  cryptsetup-libs.x86_64 0:1.7.4-4.amzn2                                        
  dbus.x86_64 1:1.10.24-7.amzn2                                                 
  dbus-libs.x86_64 1:1.10.24-7.amzn2                                            
  device-mapper.x86_64 7:1.02.170-6.amzn2.5                                     
  device-mapper-libs.x86_64 7:1.02.170-6.amzn2.5                                
  elfutils-default-yama-scope.noarch 0:0.176-2.amzn2                            
  elfutils-libs.x86_64 0:0.176-2.amzn2                                          
  gzip.x86_64 0:1.5-10.amzn2.0.1                                                
  hostname.x86_64 0:3.13-3.amzn2.0.2                                            
  initscripts.x86_64 0:9.49.47-1.amzn2.0.2                                      
  iproute.x86_64 0:5.10.0-2.amzn2.0.3                                           
  iputils.x86_64 0:20160308-10.amzn2.0.2                                        
  kmod.x86_64 0:25-3.amzn2.0.2                                                  
  kmod-libs.x86_64 0:25-3.amzn2.0.2                                             
  libcap-ng.x86_64 0:0.7.5-4.amzn2.0.4                                          
  libfdisk.x86_64 0:2.30.2-2.amzn2.0.7                                          
  libidn.x86_64 0:1.28-4.amzn2.0.2                                              
  libmnl.x86_64 0:1.0.3-7.amzn2.0.2                                             
  libpwquality.x86_64 0:1.2.3-5.amzn2                                           
  libsemanage.x86_64 0:2.5-11.amzn2                                             
  libsmartcols.x86_64 0:2.30.2-2.amzn2.0.7                                      
  libutempter.x86_64 0:1.1.6-4.amzn2.0.2                                        
  lz4.x86_64 0:1.7.5-2.amzn2.0.1                                                
  pam.x86_64 0:1.1.8-23.amzn2.0.1                                               
  procps-ng.x86_64 0:3.3.10-26.amzn2                                            
  psmisc.x86_64 0:22.20-15.amzn2.0.2                                            
  qrencode-libs.x86_64 0:3.4.1-3.amzn2.0.2                                      
  shadow-utils.x86_64 2:4.1.5.1-24.amzn2.0.2                                    
  systemd.x86_64 0:219-78.amzn2.0.18                                            
  systemd-libs.x86_64 0:219-78.amzn2.0.18                                       
  sysvinit-tools.x86_64 0:2.88-14.dsf.amzn2.0.2                                 
  ustr.x86_64 0:1.0.4-16.amzn2.0.3                                              
  util-linux.x86_64 0:2.30.2-2.amzn2.0.7                                        

Complete!
RHEL 9

Red Hat Universal Base Image 9 (RPMs) - BaseOS  264 kB/s | 543 kB     00:02    
Red Hat Universal Base Image 9 (RPMs) - AppStre 671 kB/s | 1.4 MB     00:02    
Red Hat Universal Base Image 9 (RPMs) - CodeRea 5.3 kB/s |  14 kB     00:02    
Last metadata expiration check: 0:00:01 ago on Thu Sep 15 11:44:49 2022.
Dependencies resolved.
================================================================================
 Package                 Arch       Version              Repository        Size
================================================================================
Installing:
 wazuh-agent             x86_64     4.4.0-1              @commandline     8.7 M
Installing dependencies:
 initscripts-service     noarch     10.11.4-1.el9        ubi-9-baseos      16 k
 shadow-utils            x86_64     2:4.9-3.el9          ubi-9-baseos     1.2 M

Transaction Summary
================================================================================
Install  3 Packages

Total size: 9.9 M
Total download size: 1.2 M
Installed size: 29 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): initscripts-service-10.11.4-1.el9.noarch  51 kB/s |  16 kB     00:00    
(2/2): shadow-utils-4.9-3.el9.x86_64.rpm        443 kB/s | 1.2 MB     00:02    
--------------------------------------------------------------------------------
Total                                           448 kB/s | 1.2 MB     00:02     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : shadow-utils-2:4.9-3.el9.x86_64                        1/3 
  Installing       : initscripts-service-10.11.4-1.el9.noarch               2/3 
  Running scriptlet: wazuh-agent-4.4.0-1.x86_64                             3/3 
  Installing       : wazuh-agent-4.4.0-1.x86_64                             3/3 
  Running scriptlet: wazuh-agent-4.4.0-1.x86_64                             3/3 
  Verifying        : initscripts-service-10.11.4-1.el9.noarch               1/3 
  Verifying        : shadow-utils-2:4.9-3.el9.x86_64                        2/3 
  Verifying        : wazuh-agent-4.4.0-1.x86_64                             3/3 
Installed products updated.

Installed:
  initscripts-service-10.11.4-1.el9.noarch    shadow-utils-2:4.9-3.el9.x86_64   
  wazuh-agent-4.4.0-1.x86_64                 

Complete!

[root@ed00d8f5740f home]# yum info shadow-utils
Updating Subscription Management repositories.
Unable to read consumer identity
Subscription Manager is operating in container mode.

This system is not registered with an entitlement server. You can use subscription-manager to register.

Last metadata expiration check: 0:02:26 ago on Thu Sep 15 11:44:49 2022.
Installed Packages
Name         : shadow-utils
Epoch        : 2
Version      : 4.9
Release      : 3.el9
Architecture : x86_64
Size         : 3.7 M
Source       : shadow-utils-4.9-3.el9.src.rpm
Repository   : @System
From repo    : ubi-9-baseos
Summary      : Utilities for managing accounts and shadow password files
URL          : https://github.com/shadow-maint/shadow
License      : BSD and GPLv2+
Description  : The shadow-utils package includes the necessary programs for
             : converting UNIX password files to the shadow password format,
             : plus programs for managing user and group accounts. The pwconv
             : command converts passwords to the shadow password format. The
             : pwunconv command unconverts shadow passwords and generates a
             : passwd file (a standard UNIX password file). The pwck command
             : checks the integrity of password and shadow files. The lastlog
             : command prints out the last login times for all users. The
             : useradd, userdel, and usermod commands are used for managing user
             : accounts. The groupadd, groupdel, and groupmod commands are used
             : for managing group accounts.
RHEL 8
Red Hat Universal Base Image 8 (RPMs) - BaseOS  1.6 MB/s | 803 kB     00:00    
Red Hat Universal Base Image 8 (RPMs) - AppStre 3.3 MB/s | 3.0 MB     00:00    
Red Hat Universal Base Image 8 (RPMs) - CodeRea 124 kB/s |  20 kB     00:00    
Dependencies resolved.
================================================================================
 Package          Arch       Version                Repository             Size
================================================================================
Installing:
 wazuh-agent      x86_64     4.4.0-1                @commandline          8.7 M
Installing dependencies:
 initscripts      x86_64     10.00.17-1.el8_6.2     ubi-8-baseos-rpms     340 k
 procps-ng        x86_64     3.3.15-6.el8           ubi-8-baseos-rpms     329 k
 shadow-utils     x86_64     2:4.6-16.el8           ubi-8-baseos-rpms     1.2 M

Transaction Summary
================================================================================
Install  4 Packages

Total size: 11 M
Total download size: 1.9 M
Installed size: 31 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): procps-ng-3.3.15-6.el8.x86_64.rpm        567 kB/s | 329 kB     00:00    
(2/3): initscripts-10.00.17-1.el8_6.2.x86_64.rp 567 kB/s | 340 kB     00:00    
(3/3): shadow-utils-4.6-16.el8.x86_64.rpm       1.6 MB/s | 1.2 MB     00:00    
--------------------------------------------------------------------------------
Total                                           2.4 MB/s | 1.9 MB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : shadow-utils-2:4.6-16.el8.x86_64                       1/4 
  Installing       : procps-ng-3.3.15-6.el8.x86_64                          2/4 
  Installing       : initscripts-10.00.17-1.el8_6.2.x86_64                  3/4 
  Running scriptlet: initscripts-10.00.17-1.el8_6.2.x86_64                  3/4 
  Running scriptlet: wazuh-agent-4.4.0-1.x86_64                             4/4 
  Installing       : wazuh-agent-4.4.0-1.x86_64                             4/4 
  Running scriptlet: wazuh-agent-4.4.0-1.x86_64                             4/4 
  Verifying        : initscripts-10.00.17-1.el8_6.2.x86_64                  1/4 
  Verifying        : shadow-utils-2:4.6-16.el8.x86_64                       2/4 
  Verifying        : procps-ng-3.3.15-6.el8.x86_64                          3/4 
  Verifying        : wazuh-agent-4.4.0-1.x86_64                             4/4 
Installed products updated.

Installed:
  initscripts-10.00.17-1.el8_6.2.x86_64      procps-ng-3.3.15-6.el8.x86_64     
  shadow-utils-2:4.6-16.el8.x86_64           wazuh-agent-4.4.0-1.x86_64        

Complete!
RHEL 7

Unable to remove shadow-utils

[root@rhel7 vagrant]# yum remove shadow-utils
Loaded plugins: product-id, search-disabled-repos
Resolving Dependencies
--> Running transaction check
---> Package shadow-utils.x86_64 2:4.6-5.el7 will be erased
--> Processing Dependency: /usr/sbin/useradd for package: openssh-server-7.4p1-21.el7.x86_64
--> Processing Dependency: /usr/sbin/useradd for package: 1:dbus-1.10.24-15.el7.x86_64
--> Processing Dependency: /usr/sbin/useradd for package: 2:postfix-2.10.1-9.el7.x86_64
--> Processing Dependency: /usr/sbin/groupadd for package: initscripts-9.49.53-1.el7.x86_64
--> Processing Dependency: /usr/sbin/groupadd for package: 2:postfix-2.10.1-9.el7.x86_64
--> Processing Dependency: /usr/sbin/groupadd for package: systemd-219-78.el7.x86_64
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package dbus.x86_64 1:1.10.24-15.el7 will be erased
--> Processing Dependency: dbus for package: tuned-2.11.0-9.el7.noarch
--> Processing Dependency: dbus for package: polkit-0.112-26.el7.x86_64
--> Processing Dependency: dbus >= 1.1 for package: 1:NetworkManager-1.18.8-1.el7.x86_64
---> Package initscripts.x86_64 0:9.49.53-1.el7 will be erased
--> Processing Dependency: initscripts >= 5.86-1 for package: kbd-1.15.5-15.el7.x86_64
--> Processing Dependency: initscripts for package: 12:dhclient-4.2.5-82.el7.x86_64
--> Processing Dependency: initscripts for package: rhnsd-5.0.13-10.el7.x86_64
--> Processing Dependency: initscripts for package: rhnsd-5.0.13-10.el7.x86_64
--> Processing Dependency: initscripts >= 8.83-1 for package: plymouth-0.8.9-0.34.20140113.el7.x86_64
---> Package openssh-server.x86_64 0:7.4p1-21.el7 will be erased
---> Package postfix.x86_64 2:2.10.1-9.el7 will be erased
---> Package systemd.x86_64 0:219-78.el7 will be erased
--> Processing Dependency: systemd for package: sysstat-10.1.5-19.el7.x86_64
--> Processing Dependency: systemd for package: sysstat-10.1.5-19.el7.x86_64
--> Processing Dependency: systemd for package: sysstat-10.1.5-19.el7.x86_64
--> Processing Dependency: systemd for package: cronie-1.4.11-23.el7.x86_64
--> Processing Dependency: systemd for package: cronie-1.4.11-23.el7.x86_64
--> Processing Dependency: systemd for package: cronie-1.4.11-23.el7.x86_64
--> Processing Dependency: systemd >= 219 for package: dracut-033-572.el7.x86_64
--> Processing Dependency: systemd >= 189-3 for package: 7:device-mapper-1.02.170-6.el7.x86_64
--> Processing Dependency: systemd for package: haveged-1.9.13-1.el7.x86_64
--> Processing Dependency: systemd for package: haveged-1.9.13-1.el7.x86_64
--> Processing Dependency: systemd for package: haveged-1.9.13-1.el7.x86_64
--> Processing Dependency: systemd = 219-78.el7 for package: systemd-sysv-219-78.el7.x86_64
--> Processing Dependency: systemd for package: elfutils-default-yama-scope-0.176-5.el7.noarch
--> Processing Dependency: systemd for package: elfutils-default-yama-scope-0.176-5.el7.noarch
--> Processing Dependency: systemd for package: elfutils-default-yama-scope-0.176-5.el7.noarch
--> Processing Dependency: systemd for package: subscription-manager-1.24.42-1.el7.x86_64
--> Processing Dependency: systemd for package: subscription-manager-1.24.42-1.el7.x86_64
--> Processing Dependency: systemd for package: subscription-manager-1.24.42-1.el7.x86_64
--> Processing Dependency: systemd for package: ebtables-2.0.10-16.el7.x86_64
--> Processing Dependency: systemd for package: ebtables-2.0.10-16.el7.x86_64
--> Processing Dependency: systemd for package: ebtables-2.0.10-16.el7.x86_64
--> Processing Dependency: systemd for package: chrony-3.4-1.el7.x86_64
--> Processing Dependency: systemd for package: chrony-3.4-1.el7.x86_64
--> Processing Dependency: systemd for package: chrony-3.4-1.el7.x86_64
--> Processing Dependency: systemd for package: iputils-20160308-10.el7.x86_64
--> Processing Dependency: systemd for package: iputils-20160308-10.el7.x86_64
--> Processing Dependency: systemd for package: iputils-20160308-10.el7.x86_64
--> Processing Dependency: systemd for package: rsyslog-8.24.0-55.el7.x86_64
--> Processing Dependency: systemd for package: rsyslog-8.24.0-55.el7.x86_64
--> Processing Dependency: systemd for package: rsyslog-8.24.0-55.el7.x86_64
--> Processing Dependency: systemd for package: hwdata-0.252-9.7.el7.x86_64
--> Processing Dependency: systemd for package: hwdata-0.252-9.7.el7.x86_64
--> Processing Dependency: systemd for package: hwdata-0.252-9.7.el7.x86_64
--> Processing Dependency: systemd for package: firewalld-0.6.3-11.el7.noarch
--> Processing Dependency: systemd for package: firewalld-0.6.3-11.el7.noarch
--> Processing Dependency: systemd for package: firewalld-0.6.3-11.el7.noarch
--> Processing Dependency: systemd-units for package: rsync-3.1.2-10.el7.x86_64
--> Processing Dependency: systemd-units for package: rsync-3.1.2-10.el7.x86_64
--> Processing Dependency: systemd-units for package: rsync-3.1.2-10.el7.x86_64
--> Processing Dependency: systemd-units >= 189-3 for package: 7:lvm2-2.02.187-6.el7.x86_64
--> Processing Dependency: systemd-units >= 189-3 for package: 7:lvm2-2.02.187-6.el7.x86_64
--> Processing Dependency: systemd-units >= 189-3 for package: 7:lvm2-2.02.187-6.el7.x86_64
--> Processing Dependency: systemd-units for package: 1:wpa_supplicant-2.6-12.el7.x86_64
--> Processing Dependency: systemd-units for package: 1:wpa_supplicant-2.6-12.el7.x86_64
--> Processing Dependency: systemd-units for package: 1:wpa_supplicant-2.6-12.el7.x86_64
--> Processing Dependency: systemd-units for package: audit-2.8.5-4.el7.x86_64
--> Processing Dependency: systemd-units for package: audit-2.8.5-4.el7.x86_64
--> Processing Dependency: systemd-units for package: audit-2.8.5-4.el7.x86_64
--> Processing Dependency: systemd-units for package: 10:qemu-guest-agent-2.12.0-3.el7.x86_64
--> Processing Dependency: systemd-units for package: 10:qemu-guest-agent-2.12.0-3.el7.x86_64
--> Processing Dependency: systemd-units for package: 10:qemu-guest-agent-2.12.0-3.el7.x86_64
--> Processing Dependency: systemd-units for package: kexec-tools-2.0.15-51.el7.x86_64
--> Processing Dependency: systemd-units for package: kexec-tools-2.0.15-51.el7.x86_64
--> Processing Dependency: systemd-units for package: kexec-tools-2.0.15-51.el7.x86_64
--> Processing Dependency: systemd-units for package: 7:device-mapper-event-1.02.170-6.el7.x86_64
--> Processing Dependency: systemd-units for package: 7:device-mapper-event-1.02.170-6.el7.x86_64
--> Processing Dependency: systemd-units for package: 7:device-mapper-event-1.02.170-6.el7.x86_64
--> Processing Dependency: systemd-units for package: 3:irqbalance-1.0.7-12.el7.x86_64
--> Processing Dependency: systemd-units for package: 3:irqbalance-1.0.7-12.el7.x86_64
--> Processing Dependency: systemd-units for package: 3:irqbalance-1.0.7-12.el7.x86_64
--> Processing Dependency: udev for package: libdrm-2.4.97-2.el7.x86_64
--> Processing Dependency: udev for package: os-prober-1.58-9.el7.x86_64
--> Processing Dependency: udev for package: biosdevname-0.7.3-2.el7.x86_64
--> Running transaction check
---> Package NetworkManager.x86_64 1:1.18.8-1.el7 will be erased
--> Processing Dependency: NetworkManager = 1:1.18.8-1.el7 for package: 1:NetworkManager-tui-1.18.8-1.el7.x86_64
--> Processing Dependency: NetworkManager(x86-64) = 1:1.18.8-1.el7 for package: 1:NetworkManager-team-1.18.8-1.el7.x86_64
---> Package audit.x86_64 0:2.8.5-4.el7 will be erased
---> Package biosdevname.x86_64 0:0.7.3-2.el7 will be erased
---> Package chrony.x86_64 0:3.4-1.el7 will be erased
---> Package cronie.x86_64 0:1.4.11-23.el7 will be erased
--> Processing Dependency: cronie = 1.4.11-23.el7 for package: cronie-anacron-1.4.11-23.el7.x86_64
---> Package device-mapper.x86_64 7:1.02.170-6.el7 will be erased
--> Processing Dependency: device-mapper = 7:1.02.170-6.el7 for package: 7:device-mapper-libs-1.02.170-6.el7.x86_64
---> Package device-mapper-event.x86_64 7:1.02.170-6.el7 will be erased
--> Processing Dependency: device-mapper-event = 7:1.02.170-6.el7 for package: 7:lvm2-libs-2.02.187-6.el7.x86_64
---> Package dhclient.x86_64 12:4.2.5-82.el7 will be erased
--> Processing Dependency: dhclient for package: dracut-network-033-572.el7.x86_64
---> Package dracut.x86_64 0:033-572.el7 will be erased
--> Processing Dependency: dracut for package: plymouth-scripts-0.8.9-0.34.20140113.el7.x86_64
--> Processing Dependency: dracut for package: kmod-20-28.el7.x86_64
--> Processing Dependency: dracut = 033-572.el7 for package: dracut-config-rescue-033-572.el7.x86_64
---> Package ebtables.x86_64 0:2.0.10-16.el7 will be erased
---> Package elfutils-default-yama-scope.noarch 0:0.176-5.el7 will be erased
--> Processing Dependency: default-yama-scope for package: elfutils-libs-0.176-5.el7.x86_64
---> Package firewalld.noarch 0:0.6.3-11.el7 will be erased
---> Package haveged.x86_64 0:1.9.13-1.el7 will be erased
---> Package hwdata.x86_64 0:0.252-9.7.el7 will be erased
--> Processing Dependency: hwdata for package: libpciaccess-0.14-1.el7.x86_64
--> Processing Dependency: hwdata for package: python-hwdata-1.7.3-4.el7.noarch
--> Processing Dependency: hwdata for package: lshw-B.02.18-17.el7.x86_64
---> Package iputils.x86_64 0:20160308-10.el7 will be erased
---> Package irqbalance.x86_64 3:1.0.7-12.el7 will be erased
---> Package kbd.x86_64 0:1.15.5-15.el7 will be erased
---> Package kexec-tools.x86_64 0:2.0.15-51.el7 will be erased
---> Package libdrm.x86_64 0:2.4.97-2.el7 will be erased
---> Package lvm2.x86_64 7:2.02.187-6.el7 will be erased
---> Package os-prober.x86_64 0:1.58-9.el7 will be erased
--> Processing Dependency: os-prober for package: 1:grub2-tools-2.02-0.87.el7.x86_64
--> Processing Dependency: os-prober for package: 1:grub2-tools-extra-2.02-0.87.el7.x86_64
---> Package plymouth.x86_64 0:0.8.9-0.34.20140113.el7 will be erased
---> Package polkit.x86_64 0:0.112-26.el7 will be erased
--> Processing Dependency: libpolkit-gobject-1.so.0()(64bit) for package: polkit-pkla-compat-0.1-4.el7.x86_64
---> Package qemu-guest-agent.x86_64 10:2.12.0-3.el7 will be erased
---> Package rhnsd.x86_64 0:5.0.13-10.el7 will be erased
--> Processing Dependency: rhnsd for package: rhn-setup-2.0.2-24.el7.x86_64
---> Package rsync.x86_64 0:3.1.2-10.el7 will be erased
---> Package rsyslog.x86_64 0:8.24.0-55.el7 will be erased
---> Package subscription-manager.x86_64 0:1.24.42-1.el7 will be erased
---> Package sysstat.x86_64 0:10.1.5-19.el7 will be erased
---> Package systemd-sysv.x86_64 0:219-78.el7 will be erased
---> Package tuned.noarch 0:2.11.0-9.el7 will be erased
---> Package wpa_supplicant.x86_64 1:2.6-12.el7 will be erased
--> Running transaction check
---> Package NetworkManager-team.x86_64 1:1.18.8-1.el7 will be erased
---> Package NetworkManager-tui.x86_64 1:1.18.8-1.el7 will be erased
---> Package cronie-anacron.x86_64 0:1.4.11-23.el7 will be erased
---> Package device-mapper-libs.x86_64 7:1.02.170-6.el7 will be erased
--> Processing Dependency: libdevmapper.so.1.02()(64bit) for package: 7:device-mapper-event-libs-1.02.170-6.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02()(64bit) for package: cryptsetup-libs-2.0.3-6.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02()(64bit) for package: kpartx-0.4.9-133.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02()(64bit) for package: 1:grub2-tools-minimal-2.02-0.87.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02()(64bit) for package: parted-3.1-32.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02(Base)(64bit) for package: 7:device-mapper-event-libs-1.02.170-6.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02(Base)(64bit) for package: cryptsetup-libs-2.0.3-6.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02(Base)(64bit) for package: kpartx-0.4.9-133.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02(Base)(64bit) for package: 1:grub2-tools-minimal-2.02-0.87.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02(Base)(64bit) for package: parted-3.1-32.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02(DM_1_02_103)(64bit) for package: 7:device-mapper-event-libs-1.02.170-6.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02(DM_1_02_97)(64bit) for package: 7:device-mapper-event-libs-1.02.170-6.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02(DM_1_02_97)(64bit) for package: cryptsetup-libs-2.0.3-6.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02(DM_1_02_97)(64bit) for package: kpartx-0.4.9-133.el7.x86_64
---> Package dracut-config-rescue.x86_64 0:033-572.el7 will be erased
---> Package dracut-network.x86_64 0:033-572.el7 will be erased
---> Package elfutils-libs.x86_64 0:0.176-5.el7 will be erased
--> Processing Dependency: libdw.so.1()(64bit) for package: libgudev1-219-78.el7.x86_64
--> Processing Dependency: libdw.so.1()(64bit) for package: systemd-libs-219-78.el7.x86_64
---> Package grub2-tools.x86_64 1:2.02-0.87.el7 will be erased
--> Processing Dependency: grub2-tools = 1:2.02-0.87.el7 for package: 1:grub2-pc-2.02-0.87.el7.x86_64
---> Package grub2-tools-extra.x86_64 1:2.02-0.87.el7 will be erased
---> Package kmod.x86_64 0:20-28.el7 will be erased
---> Package libpciaccess.x86_64 0:0.14-1.el7 will be erased
---> Package lshw.x86_64 0:B.02.18-17.el7 will be erased
---> Package lvm2-libs.x86_64 7:2.02.187-6.el7 will be erased
---> Package plymouth-scripts.x86_64 0:0.8.9-0.34.20140113.el7 will be erased
---> Package polkit-pkla-compat.x86_64 0:0.1-4.el7 will be erased
---> Package python-hwdata.noarch 0:1.7.3-4.el7 will be erased
--> Processing Dependency: python-hwdata for package: rhn-client-tools-2.0.2-24.el7.x86_64
---> Package rhn-setup.x86_64 0:2.0.2-24.el7 will be erased
--> Processing Dependency: rhn-setup for package: yum-rhn-plugin-2.0.1-10.el7.noarch
--> Running transaction check
---> Package cryptsetup-libs.x86_64 0:2.0.3-6.el7 will be erased
---> Package device-mapper-event-libs.x86_64 7:1.02.170-6.el7 will be erased
---> Package grub2-pc.x86_64 1:2.02-0.87.el7 will be erased
--> Processing Dependency: grub2-pc = 1:2.02-0.87.el7 for package: 1:grub2-2.02-0.87.el7.x86_64
---> Package grub2-tools-minimal.x86_64 1:2.02-0.87.el7 will be erased
---> Package kpartx.x86_64 0:0.4.9-133.el7 will be erased
---> Package libgudev1.x86_64 0:219-78.el7 will be erased
--> Processing Dependency: libgudev-1.0.so.0()(64bit) for package: python-gudev-147.2-7.el7.x86_64
--> Processing Dependency: libgudev1 >= 147 for package: python-gudev-147.2-7.el7.x86_64
---> Package parted.x86_64 0:3.1-32.el7 will be erased
---> Package rhn-client-tools.x86_64 0:2.0.2-24.el7 will be erased
--> Processing Dependency: rhn-client-tools = 2.0.2-24.el7 for package: rhn-check-2.0.2-24.el7.x86_64
---> Package systemd-libs.x86_64 0:219-78.el7 will be erased
--> Processing Dependency: libsystemd-daemon.so.0()(64bit) for package: 12:dhcp-libs-4.2.5-82.el7.x86_64
--> Processing Dependency: libsystemd.so.0()(64bit) for package: procps-ng-3.3.10-28.el7.x86_64
--> Processing Dependency: libsystemd.so.0()(64bit) for package: util-linux-2.23.2-65.el7.x86_64
--> Processing Dependency: libsystemd.so.0()(64bit) for package: 1:dbus-libs-1.10.24-15.el7.x86_64
--> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: procps-ng-3.3.10-28.el7.x86_64
--> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: util-linux-2.23.2-65.el7.x86_64
--> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: 1:dbus-libs-1.10.24-15.el7.x86_64
--> Processing Dependency: libudev.so.1()(64bit) for package: plymouth-core-libs-0.8.9-0.34.20140113.el7.x86_64
--> Processing Dependency: libudev.so.1()(64bit) for package: 1:NetworkManager-libnm-1.18.8-1.el7.x86_64
--> Processing Dependency: libudev.so.1()(64bit) for package: util-linux-2.23.2-65.el7.x86_64
--> Processing Dependency: libudev.so.1(LIBUDEV_183)(64bit) for package: plymouth-core-libs-0.8.9-0.34.20140113.el7.x86_64
--> Processing Dependency: libudev.so.1(LIBUDEV_183)(64bit) for package: 1:NetworkManager-libnm-1.18.8-1.el7.x86_64
--> Processing Dependency: libudev.so.1(LIBUDEV_183)(64bit) for package: util-linux-2.23.2-65.el7.x86_64
--> Processing Dependency: systemd-libs for package: python-pyudev-0.15-9.el7.noarch
---> Package yum-rhn-plugin.noarch 0:2.0.1-10.el7 will be erased
--> Running transaction check
---> Package NetworkManager-libnm.x86_64 1:1.18.8-1.el7 will be erased
---> Package dbus-libs.x86_64 1:1.10.24-15.el7 will be erased
--> Processing Dependency: libdbus-1.so.3()(64bit) for package: dbus-python-1.1.1-9.el7.x86_64
--> Processing Dependency: libdbus-1.so.3()(64bit) for package: dbus-glib-0.100-7.el7.x86_64
--> Processing Dependency: libdbus-1.so.3()(64bit) for package: teamd-1.29-3.el7.x86_64
--> Processing Dependency: libdbus-1.so.3(LIBDBUS_1_3)(64bit) for package: teamd-1.29-3.el7.x86_64
---> Package dhcp-libs.x86_64 12:4.2.5-82.el7 will be erased
--> Processing Dependency: dhcp-libs(x86-64) = 12:4.2.5-82.el7 for package: 12:dhcp-common-4.2.5-82.el7.x86_64
---> Package grub2.x86_64 1:2.02-0.87.el7 will be erased
---> Package plymouth-core-libs.x86_64 0:0.8.9-0.34.20140113.el7 will be erased
---> Package procps-ng.x86_64 0:3.3.10-28.el7 will be erased
---> Package python-gudev.x86_64 0:147.2-7.el7 will be erased
---> Package python-pyudev.noarch 0:0.15-9.el7 will be erased
---> Package rhn-check.x86_64 0:2.0.2-24.el7 will be erased
---> Package util-linux.x86_64 0:2.23.2-65.el7 will be erased
--> Processing Dependency: /sbin/nologin for package: openssh-7.4p1-21.el7.x86_64
--> Processing Dependency: util-linux for package: virt-what-1.18-4.el7.x86_64
--> Processing Dependency: util-linux for package: usermode-1.111-6.el7.x86_64
--> Processing Dependency: util-linux for package: policycoreutils-2.5-34.el7.x86_64
--> Running transaction check
---> Package dbus-glib.x86_64 0:0.100-7.el7 will be erased
---> Package dbus-python.x86_64 0:1.1.1-9.el7 will be erased
--> Processing Dependency: dbus-python for package: python-firewall-0.6.3-11.el7.noarch
--> Processing Dependency: dbus-python >= 0.80 for package: python-slip-dbus-0.4.0-4.el7.noarch
---> Package dhcp-common.x86_64 12:4.2.5-82.el7 will be erased
---> Package openssh.x86_64 0:7.4p1-21.el7 will be erased
--> Processing Dependency: openssh = 7.4p1-21.el7 for package: openssh-clients-7.4p1-21.el7.x86_64
---> Package policycoreutils.x86_64 0:2.5-34.el7 will be erased
--> Processing Dependency: policycoreutils for package: authconfig-6.2.8-30.el7.x86_64
---> Package teamd.x86_64 0:1.29-3.el7 will be erased
---> Package usermode.x86_64 0:1.111-6.el7 will be erased
---> Package virt-what.x86_64 0:1.18-4.el7 will be erased
--> Running transaction check
---> Package authconfig.x86_64 0:6.2.8-30.el7 will be erased
---> Package openssh-clients.x86_64 0:7.4p1-21.el7 will be erased
---> Package python-firewall.noarch 0:0.6.3-11.el7 will be erased
---> Package python-slip-dbus.noarch 0:0.4.0-4.el7 will be erased
--> Processing Dependency: /etc/cron.d for package: crontabs-1.11-6.20121102git.el7.noarch
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package crontabs.noarch 0:1.11-6.20121102git.el7 will be erased
--> Processing Dependency: crontabs for package: mlocate-0.26-8.el7.x86_64
--> Running transaction check
---> Package mlocate.x86_64 0:0.26-8.el7 will be erased
--> Finished Dependency Resolution
Error: Trying to remove "systemd", which is protected
[root@rhel7 vagrant]# yum install wazuh-agent-4.4.0-1.x86_64.rpm 
Loaded plugins: product-id, search-disabled-repos
Examining wazuh-agent-4.4.0-1.x86_64.rpm: wazuh-agent-4.4.0-1.x86_64
Marking wazuh-agent-4.4.0-1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package wazuh-agent.x86_64 0:4.4.0-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package         Arch       Version       Repository                       Size
================================================================================
Installing:
 wazuh-agent     x86_64     4.4.0-1       /wazuh-agent-4.4.0-1.x86_64      25 M

Transaction Summary
================================================================================
Install  1 Package

Total size: 25 M
Installed size: 25 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : wazuh-agent-4.4.0-1.x86_64                                   1/1 
  Verifying  : wazuh-agent-4.4.0-1.x86_64                                   1/1 
epel/x86_64/metalink                                     |  14 kB     00:00     
epel/x86_64                                              | 4.7 kB     00:00     
epel/x86_64/group_gz                                     |  97 kB     00:00     
epel/x86_64/updateinfo                                   | 1.0 MB     00:00     
epel/x86_64/primary_db                                   | 7.0 MB     00:56     

Installed:
  wazuh-agent.x86_64 0:4.4.0-1                                                  

Complete!

[root@rhel7 vagrant]# yum info shadow-utils
Loaded plugins: product-id, search-disabled-repos
Installed Packages
Name        : shadow-utils
Arch        : x86_64
Epoch       : 2
Version     : 4.6
Release     : 5.el7
Size        : 3.7 M
Repo        : installed
From repo   : anaconda
Summary     : Utilities for managing accounts and shadow password files
URL         : http://pkg-shadow.alioth.debian.org/
License     : BSD and GPLv2+
Description : The shadow-utils package includes the necessary programs for
            : converting UNIX password files to the shadow password format, plus
            : programs for managing user and group accounts. The pwconv command
            : converts passwords to the shadow password format. The pwunconv
            : command unconverts shadow passwords and generates a passwd file (a
            : standard UNIX password file). The pwck command checks the
            : integrity of password and shadow files. The lastlog command prints
            : out the last login times for all users. The useradd, userdel, and
            : usermod commands are used for managing user accounts. The
            : groupadd, groupdel, and groupmod commands are used for managing
            : group accounts.

CentOS 8
[root@4e1a753ea25a /]# yum remove shadow-utils
Failed to set locale, defaulting to C.UTF-8
Dependencies resolved.
================================================================================
 Package              Architecture   Version              Repository       Size
================================================================================
Removing:
 shadow-utils         x86_64         2:4.6-12.el8         @System         3.8 M

Transaction Summary
================================================================================
Remove  1 Package

Freed space: 3.8 M
Is this ok [y/N]: y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Erasing          : shadow-utils-2:4.6-12.el8.x86_64                       1/1 
  Running scriptlet: shadow-utils-2:4.6-12.el8.x86_64                       1/1 
  Verifying        : shadow-utils-2:4.6-12.el8.x86_64                       1/1 

Removed:
  shadow-utils-2:4.6-12.el8.x86_64                                              

Complete!
[root@4e1a753ea25a home]# yum install wazuh-agent-4.4.0-1.x86_64.rpm 
Failed to set locale, defaulting to C.UTF-8
CentOS Linux 8 - AppStream                      3.8 MB/s | 8.4 MB     00:02    
CentOS Linux 8 - BaseOS                         4.6 MB/s | 4.6 MB     00:00    
CentOS Linux 8 - Extras                          38 kB/s |  10 kB     00:00    
Dependencies resolved.
================================================================================
 Package            Architecture Version               Repository          Size
================================================================================
Installing:
 wazuh-agent        x86_64       4.4.0-1               @commandline       8.7 M
Installing dependencies:
 initscripts        x86_64       10.00.15-1.el8        baseos             339 k
 shadow-utils       x86_64       2:4.6-14.el8          baseos             1.2 M

Transaction Summary
================================================================================
Install  3 Packages

Total size: 10 M
Total download size: 1.6 M
Installed size: 30 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): initscripts-10.00.15-1.el8.x86_64.rpm    1.6 MB/s | 339 kB     00:00    
(2/2): shadow-utils-4.6-14.el8.x86_64.rpm       4.3 MB/s | 1.2 MB     00:00    
--------------------------------------------------------------------------------
Total                                           5.4 MB/s | 1.6 MB     00:00     
warning: /var/cache/dnf/baseos-398269605bdca3dc/packages/initscripts-10.00.15-1.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY
CentOS Linux 8 - BaseOS                         1.6 MB/s | 1.6 kB     00:00    
Importing GPG key 0x8483C65D:
 Userid     : "CentOS (CentOS Official Signing Key) <[email protected]>"
 Fingerprint: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Is this ok [y/N]: y
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : shadow-utils-2:4.6-14.el8.x86_64                       1/3 
  Installing       : initscripts-10.00.15-1.el8.x86_64                      2/3 
  Running scriptlet: initscripts-10.00.15-1.el8.x86_64                      2/3 
  Running scriptlet: wazuh-agent-4.4.0-1.x86_64                             3/3 
  Installing       : wazuh-agent-4.4.0-1.x86_64                             3/3 
  Running scriptlet: wazuh-agent-4.4.0-1.x86_64                             3/3 
  Verifying        : initscripts-10.00.15-1.el8.x86_64                      1/3 
  Verifying        : shadow-utils-2:4.6-14.el8.x86_64                       2/3 
  Verifying        : wazuh-agent-4.4.0-1.x86_64                             3/3 

Installed:
  initscripts-10.00.15-1.el8.x86_64       shadow-utils-2:4.6-14.el8.x86_64      
  wazuh-agent-4.4.0-1.x86_64             

Complete!
[root@4e1a753ea25a home]# yum info shadow-utils                   
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 0:00:44 ago on Thu Sep 15 12:21:16 2022.
Installed Packages
Name         : shadow-utils
Epoch        : 2
Version      : 4.6
Release      : 14.el8
Architecture : x86_64
Size         : 3.8 M
Source       : shadow-utils-4.6-14.el8.src.rpm
Repository   : @System
From repo    : baseos
Summary      : Utilities for managing accounts and shadow password files
URL          : http://pkg-shadow.alioth.debian.org/
License      : BSD and GPLv2+
Description  : The shadow-utils package includes the necessary programs for
             : converting UNIX password files to the shadow password format,
             : plus programs for managing user and group accounts. The pwconv
             : command converts passwords to the shadow password format. The
             : pwunconv command unconverts shadow passwords and generates a
             : passwd file (a standard UNIX password file). The pwck command
             : checks the integrity of password and shadow files. The lastlog
             : command prints out the last login times for all users. The
             : useradd, userdel, and usermod commands are used for managing user
             : accounts. The groupadd, groupdel, and groupmod commands are used
             : for managing group accounts.
CentOS 7

Unable to remove shadow-utils

[root@cc92301abb98 /]# yum remove shadow-utils
Loaded plugins: fastestmirror, ovl
Resolving Dependencies
--> Running transaction check
---> Package shadow-utils.x86_64 2:4.6-5.el7 will be erased
--> Processing Dependency: /usr/sbin/useradd for package: 1:dbus-1.10.24-15.el7.x86_64
--> Processing Dependency: /usr/sbin/groupadd for package: systemd-219-78.el7.x86_64
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package dbus.x86_64 1:1.10.24-15.el7 will be erased
---> Package systemd.x86_64 0:219-78.el7 will be erased
--> Processing Dependency: systemd for package: iputils-20160308-10.el7.x86_64
--> Processing Dependency: systemd for package: iputils-20160308-10.el7.x86_64
--> Processing Dependency: systemd for package: iputils-20160308-10.el7.x86_64
--> Processing Dependency: systemd >= 219 for package: dracut-033-572.el7.x86_64
--> Processing Dependency: systemd for package: elfutils-default-yama-scope-0.176-5.el7.noarch
--> Processing Dependency: systemd for package: elfutils-default-yama-scope-0.176-5.el7.noarch
--> Processing Dependency: systemd for package: elfutils-default-yama-scope-0.176-5.el7.noarch
--> Processing Dependency: systemd >= 189-3 for package: 7:device-mapper-1.02.170-6.el7.x86_64
--> Running transaction check
---> Package device-mapper.x86_64 7:1.02.170-6.el7 will be erased
--> Processing Dependency: device-mapper = 7:1.02.170-6.el7 for package: 7:device-mapper-libs-1.02.170-6.el7.x86_64
---> Package dracut.x86_64 0:033-572.el7 will be erased
--> Processing Dependency: dracut for package: kmod-20-28.el7.x86_64
---> Package elfutils-default-yama-scope.noarch 0:0.176-5.el7 will be erased
--> Processing Dependency: default-yama-scope for package: elfutils-libs-0.176-5.el7.x86_64
---> Package iputils.x86_64 0:20160308-10.el7 will be erased
--> Running transaction check
---> Package device-mapper-libs.x86_64 7:1.02.170-6.el7 will be erased
--> Processing Dependency: libdevmapper.so.1.02()(64bit) for package: kpartx-0.4.9-133.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02()(64bit) for package: cryptsetup-libs-2.0.3-6.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02(Base)(64bit) for package: kpartx-0.4.9-133.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02(Base)(64bit) for package: cryptsetup-libs-2.0.3-6.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02(DM_1_02_97)(64bit) for package: kpartx-0.4.9-133.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02(DM_1_02_97)(64bit) for package: cryptsetup-libs-2.0.3-6.el7.x86_64
---> Package elfutils-libs.x86_64 0:0.176-5.el7 will be erased
--> Processing Dependency: libdw.so.1()(64bit) for package: systemd-libs-219-78.el7.x86_64
---> Package kmod.x86_64 0:20-28.el7 will be erased
--> Running transaction check
---> Package cryptsetup-libs.x86_64 0:2.0.3-6.el7 will be erased
---> Package kpartx.x86_64 0:0.4.9-133.el7 will be erased
---> Package systemd-libs.x86_64 0:219-78.el7 will be erased
--> Processing Dependency: libsystemd.so.0()(64bit) for package: procps-ng-3.3.10-28.el7.x86_64
--> Processing Dependency: libsystemd.so.0()(64bit) for package: util-linux-2.23.2-65.el7.x86_64
--> Processing Dependency: libsystemd.so.0()(64bit) for package: 1:dbus-libs-1.10.24-15.el7.x86_64
--> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: procps-ng-3.3.10-28.el7.x86_64
--> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: util-linux-2.23.2-65.el7.x86_64
--> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: 1:dbus-libs-1.10.24-15.el7.x86_64
--> Processing Dependency: libudev.so.1()(64bit) for package: util-linux-2.23.2-65.el7.x86_64
--> Processing Dependency: libudev.so.1(LIBUDEV_183)(64bit) for package: util-linux-2.23.2-65.el7.x86_64
--> Running transaction check
---> Package dbus-libs.x86_64 1:1.10.24-15.el7 will be erased
--> Processing Dependency: libdbus-1.so.3()(64bit) for package: dbus-python-1.1.1-9.el7.x86_64
--> Processing Dependency: libdbus-1.so.3()(64bit) for package: dbus-glib-0.100-7.el7.x86_64
---> Package procps-ng.x86_64 0:3.3.10-28.el7 will be erased
---> Package util-linux.x86_64 0:2.23.2-65.el7 will be erased
--> Running transaction check
---> Package dbus-glib.x86_64 0:0.100-7.el7 will be erased
---> Package dbus-python.x86_64 0:1.1.1-9.el7 will be erased
--> Finished Dependency Resolution
Error: Trying to remove "systemd", which is protected
[root@cc92301abb98 home]# yum install wazuh-agent-4.4.0-1.x86_64.rpm 
Loaded plugins: fastestmirror, ovl
Examining wazuh-agent-4.4.0-1.x86_64.rpm: wazuh-agent-4.4.0-1.x86_64
Marking wazuh-agent-4.4.0-1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package wazuh-agent.x86_64 0:4.4.0-1 will be installed
--> Processing Dependency: /sbin/service for package: wazuh-agent-4.4.0-1.x86_64
Determining fastest mirrors
 * base: ftp.csuc.cat
 * extras: ftp.csuc.cat
 * updates: ftp.csuc.cat
base                                                     | 3.6 kB     00:00     
extras                                                   | 2.9 kB     00:00     
updates                                                  | 2.9 kB     00:00     
(1/4): base/7/x86_64/group_gz                              | 153 kB   00:00     
(2/4): extras/7/x86_64/primary_db                          | 250 kB   00:00     
(3/4): base/7/x86_64/primary_db                            | 6.1 MB   00:01     
(4/4): updates/7/x86_64/primary_db                         |  17 MB   00:03     
--> Processing Dependency: /sbin/service for package: wazuh-agent-4.4.0-1.x86_64
--> Running transaction check
---> Package initscripts.x86_64 0:9.49.53-1.el7_9.1 will be installed
--> Processing Dependency: sysvinit-tools >= 2.87-5 for package: initscripts-9.49.53-1.el7_9.1.x86_64
--> Processing Dependency: iproute for package: initscripts-9.49.53-1.el7_9.1.x86_64
--> Running transaction check
---> Package iproute.x86_64 0:4.11.0-30.el7 will be installed
--> Processing Dependency: libmnl.so.0(LIBMNL_1.0)(64bit) for package: iproute-4.11.0-30.el7.x86_64
--> Processing Dependency: libxtables.so.10()(64bit) for package: iproute-4.11.0-30.el7.x86_64
--> Processing Dependency: libmnl.so.0()(64bit) for package: iproute-4.11.0-30.el7.x86_64
---> Package sysvinit-tools.x86_64 0:2.88-14.dsf.el7 will be installed
--> Running transaction check
---> Package iptables.x86_64 0:1.4.21-35.el7 will be installed
--> Processing Dependency: libnfnetlink.so.0()(64bit) for package: iptables-1.4.21-35.el7.x86_64
--> Processing Dependency: libnetfilter_conntrack.so.3()(64bit) for package: iptables-1.4.21-35.el7.x86_64
---> Package libmnl.x86_64 0:1.0.3-7.el7 will be installed
--> Running transaction check
---> Package libnetfilter_conntrack.x86_64 0:1.0.6-1.el7_3 will be installed
---> Package libnfnetlink.x86_64 0:1.0.1-4.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package             Arch   Version           Repository                   Size
================================================================================
Installing:
 wazuh-agent         x86_64 4.4.0-1           /wazuh-agent-4.4.0-1.x86_64  25 M
Installing for dependencies:
 initscripts         x86_64 9.49.53-1.el7_9.1 updates                     440 k
 iproute             x86_64 4.11.0-30.el7     base                        805 k
 iptables            x86_64 1.4.21-35.el7     base                        432 k
 libmnl              x86_64 1.0.3-7.el7       base                         23 k
 libnetfilter_conntrack
                     x86_64 1.0.6-1.el7_3     base                         55 k
 libnfnetlink        x86_64 1.0.1-4.el7       base                         26 k
 sysvinit-tools      x86_64 2.88-14.dsf.el7   base                         63 k

Transaction Summary
================================================================================
Install  1 Package (+7 Dependent packages)

Total size: 27 M
Total download size: 1.8 M
Installed size: 30 M
Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/7/base/packages/libmnl-1.0.3-7.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for libmnl-1.0.3-7.el7.x86_64.rpm is not installed
(1/7): libmnl-1.0.3-7.el7.x86_64.rpm                       |  23 kB   00:00     
(2/7): libnetfilter_conntrack-1.0.6-1.el7_3.x86_64.rpm     |  55 kB   00:00     
(3/7): libnfnetlink-1.0.1-4.el7.x86_64.rpm                 |  26 kB   00:00     
(4/7): sysvinit-tools-2.88-14.dsf.el7.x86_64.rpm           |  63 kB   00:00     
(5/7): iptables-1.4.21-35.el7.x86_64.rpm                   | 432 kB   00:00     
Public key for initscripts-9.49.53-1.el7_9.1.x86_64.rpm is not installed
(6/7): initscripts-9.49.53-1.el7_9.1.x86_64.rpm            | 440 kB   00:00     
(7/7): iproute-4.11.0-30.el7.x86_64.rpm                    | 805 kB   00:00     
--------------------------------------------------------------------------------
Total                                              4.1 MB/s | 1.8 MB  00:00     
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
 Userid     : "CentOS-7 Key (CentOS 7 Official Signing Key) <[email protected]>"
 Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
 Package    : centos-release-7-9.2009.0.el7.centos.x86_64 (@CentOS)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libmnl-1.0.3-7.el7.x86_64                                    1/8 
  Installing : libnfnetlink-1.0.1-4.el7.x86_64                              2/8 
  Installing : libnetfilter_conntrack-1.0.6-1.el7_3.x86_64                  3/8 
  Installing : iptables-1.4.21-35.el7.x86_64                                4/8 
  Installing : iproute-4.11.0-30.el7.x86_64                                 5/8 
  Installing : sysvinit-tools-2.88-14.dsf.el7.x86_64                        6/8 
  Installing : initscripts-9.49.53-1.el7_9.1.x86_64                         7/8 
  Installing : wazuh-agent-4.4.0-1.x86_64                                   8/8 
  Verifying  : libnfnetlink-1.0.1-4.el7.x86_64                              1/8 
  Verifying  : initscripts-9.49.53-1.el7_9.1.x86_64                         2/8 
  Verifying  : libmnl-1.0.3-7.el7.x86_64                                    3/8 
  Verifying  : iproute-4.11.0-30.el7.x86_64                                 4/8 
  Verifying  : libnetfilter_conntrack-1.0.6-1.el7_3.x86_64                  5/8 
  Verifying  : wazuh-agent-4.4.0-1.x86_64                                   6/8 
  Verifying  : sysvinit-tools-2.88-14.dsf.el7.x86_64                        7/8 
  Verifying  : iptables-1.4.21-35.el7.x86_64                                8/8 

Installed:
  wazuh-agent.x86_64 0:4.4.0-1                                                  

Dependency Installed:
  initscripts.x86_64 0:9.49.53-1.el7_9.1                                        
  iproute.x86_64 0:4.11.0-30.el7                                                
  iptables.x86_64 0:1.4.21-35.el7                                               
  libmnl.x86_64 0:1.0.3-7.el7                                                   
  libnetfilter_conntrack.x86_64 0:1.0.6-1.el7_3                                 
  libnfnetlink.x86_64 0:1.0.1-4.el7                                             
  sysvinit-tools.x86_64 0:2.88-14.dsf.el7                                       

Complete!
[root@cc92301abb98 home]# yum info shadow-utils
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: ftp.csuc.cat
 * extras: ftp.csuc.cat
 * updates: ftp.csuc.cat
Installed Packages
Name        : shadow-utils
Arch        : x86_64
Epoch       : 2
Version     : 4.6
Release     : 5.el7
Size        : 3.7 M
Repo        : installed
From repo   : CentOS
Summary     : Utilities for managing accounts and shadow password files
URL         : http://pkg-shadow.alioth.debian.org/
License     : BSD and GPLv2+
Description : The shadow-utils package includes the necessary programs for
            : converting UNIX password files to the shadow password format, plus
            : programs for managing user and group accounts. The pwconv command
            : converts passwords to the shadow password format. The pwunconv
            : command unconverts shadow passwords and generates a passwd file (a
            : standard UNIX password file). The pwck command checks the
            : integrity of password and shadow files. The lastlog command prints
            : out the last login times for all users. The useradd, userdel, and
            : usermod commands are used for managing user accounts. The
            : groupadd, groupdel, and groupmod commands are used for managing
            : group accounts.
CentOS 6
[root@2530aaf81134 /]# yum remove shadow-utils
Loaded plugins: fastestmirror, ovl
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package shadow-utils.x86_64 2:4.1.5.1-5.el6 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package            Arch         Version               Repository          Size
================================================================================
Removing:
 shadow-utils       x86_64       2:4.1.5.1-5.el6       @CentOS/6.10       3.3 M

Transaction Summary
================================================================================
Remove        1 Package(s)

Installed size: 3.3 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing    : 2:shadow-utils-4.1.5.1-5.el6.x86_64                          1/1 
  Verifying  : 2:shadow-utils-4.1.5.1-5.el6.x86_64                          1/1 

Removed:
  shadow-utils.x86_64 2:4.1.5.1-5.el6                                           

Complete!
[root@2530aaf81134 home]# yum install wazuh-agent-4.4.0-1.x86_64.rpm 
Loaded plugins: fastestmirror, ovl
Setting up Install Process
Examining wazuh-agent-4.4.0-1.x86_64.rpm: wazuh-agent-4.4.0-1.x86_64
Marking wazuh-agent-4.4.0-1.x86_64.rpm to be installed
Loading mirror speeds from cached hostfile
base                                                     | 3.7 kB     00:00     
base/primary_db                                          | 4.7 MB     00:00     
extras                                                   | 3.4 kB     00:00     
extras/primary_db                                        |  29 kB     00:00     
updates                                                  | 3.4 kB     00:00     
updates/primary_db                                       |  12 MB     00:01     
Resolving Dependencies
--> Running transaction check
---> Package wazuh-agent.x86_64 0:4.4.0-1 will be installed
--> Processing Dependency: /sbin/service for package: wazuh-agent-4.4.0-1.x86_64
--> Processing Dependency: /sbin/service for package: wazuh-agent-4.4.0-1.x86_64
--> Processing Dependency: /usr/sbin/groupadd for package: wazuh-agent-4.4.0-1.x86_64
--> Processing Dependency: /usr/sbin/useradd for package: wazuh-agent-4.4.0-1.x86_64
--> Running transaction check
---> Package initscripts.x86_64 0:9.03.61-1.el6.centos will be installed
--> Processing Dependency: util-linux-ng >= 2.16 for package: initscripts-9.03.61-1.el6.centos.x86_64
--> Processing Dependency: upstart >= 0.6.5-11 for package: initscripts-9.03.61-1.el6.centos.x86_64
--> Processing Dependency: udev >= 125-1 for package: initscripts-9.03.61-1.el6.centos.x86_64
--> Processing Dependency: sysvinit-tools >= 2.87-6 for package: initscripts-9.03.61-1.el6.centos.x86_64
--> Processing Dependency: plymouth for package: initscripts-9.03.61-1.el6.centos.x86_64
--> Processing Dependency: /sbin/pidof for package: initscripts-9.03.61-1.el6.centos.x86_64
--> Processing Dependency: /sbin/ip for package: initscripts-9.03.61-1.el6.centos.x86_64
--> Processing Dependency: /sbin/blkid for package: initscripts-9.03.61-1.el6.centos.x86_64
--> Processing Dependency: /sbin/arping for package: initscripts-9.03.61-1.el6.centos.x86_64
---> Package shadow-utils.x86_64 2:4.1.5.1-5.el6 will be installed
--> Running transaction check
---> Package iproute.x86_64 0:2.6.32-57.el6 will be installed
--> Processing Dependency: iptables >= 1.4.5 for package: iproute-2.6.32-57.el6.x86_64
--> Processing Dependency: libxtables.so.4()(64bit) for package: iproute-2.6.32-57.el6.x86_64
---> Package iputils.x86_64 0:20071127-24.el6 will be installed
---> Package plymouth.x86_64 0:0.8.3-29.el6.centos will be installed
--> Processing Dependency: system-logos for package: plymouth-0.8.3-29.el6.centos.x86_64
--> Processing Dependency: libdrm_radeon.so.1()(64bit) for package: plymouth-0.8.3-29.el6.centos.x86_64
--> Processing Dependency: libdrm_nouveau.so.1()(64bit) for package: plymouth-0.8.3-29.el6.centos.x86_64
--> Processing Dependency: libdrm_intel.so.1()(64bit) for package: plymouth-0.8.3-29.el6.centos.x86_64
--> Processing Dependency: libdrm.so.2()(64bit) for package: plymouth-0.8.3-29.el6.centos.x86_64
---> Package sysvinit-tools.x86_64 0:2.87-6.dsf.el6 will be installed
---> Package udev.x86_64 0:147-2.74.el6_10 will be installed
--> Processing Dependency: hwdata for package: udev-147-2.74.el6_10.x86_64
---> Package upstart.x86_64 0:0.6.5-17.el6 will be installed
---> Package util-linux-ng.x86_64 0:2.17.2-12.28.el6_9.2 will be installed
--> Running transaction check
---> Package hwdata.noarch 0:0.233-20.1.el6 will be installed
---> Package iptables.x86_64 0:1.4.7-19.el6 will be installed
--> Processing Dependency: policycoreutils for package: iptables-1.4.7-19.el6.x86_64
---> Package libdrm.x86_64 0:2.4.65-2.el6 will be installed
--> Processing Dependency: libpciaccess.so.0()(64bit) for package: libdrm-2.4.65-2.el6.x86_64
---> Package redhat-logos.noarch 0:60.0.14-12.el6.centos will be installed
--> Running transaction check
---> Package libpciaccess.x86_64 0:0.13.4-1.el6 will be installed
---> Package policycoreutils.x86_64 0:2.0.83-30.1.el6_8 will be installed
--> Processing Dependency: libdbus-glib-1.so.2()(64bit) for package: policycoreutils-2.0.83-30.1.el6_8.x86_64
--> Running transaction check
---> Package dbus-glib.x86_64 0:0.86-6.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package         Arch   Version               Repository                   Size
================================================================================
Installing:
 wazuh-agent     x86_64 4.4.0-1               /wazuh-agent-4.4.0-1.x86_64  25 M
Installing for dependencies:
 dbus-glib       x86_64 0.86-6.el6            base                        170 k
 hwdata          noarch 0.233-20.1.el6        base                        1.4 M
 initscripts     x86_64 9.03.61-1.el6.centos  base                        949 k
 iproute         x86_64 2.6.32-57.el6         base                        386 k
 iptables        x86_64 1.4.7-19.el6          base                        255 k
 iputils         x86_64 20071127-24.el6       base                        121 k
 libdrm          x86_64 2.4.65-2.el6          base                        136 k
 libpciaccess    x86_64 0.13.4-1.el6          base                         24 k
 plymouth        x86_64 0.8.3-29.el6.centos   base                         89 k
 policycoreutils x86_64 2.0.83-30.1.el6_8     base                        663 k
 redhat-logos    noarch 60.0.14-12.el6.centos base                         15 M
 shadow-utils    x86_64 2:4.1.5.1-5.el6       base                        1.0 M
 sysvinit-tools  x86_64 2.87-6.dsf.el6        base                         60 k
 udev            x86_64 147-2.74.el6_10       updates                     358 k
 upstart         x86_64 0.6.5-17.el6          base                        177 k
 util-linux-ng   x86_64 2.17.2-12.28.el6_9.2  base                        1.6 M

Transaction Summary
================================================================================
Install      17 Package(s)

Total size: 47 M
Total download size: 22 M
Installed size: 69 M
Is this ok [y/N]: y
Downloading Packages:
(1/16): dbus-glib-0.86-6.el6.x86_64.rpm                  | 170 kB     00:00     
(2/16): hwdata-0.233-20.1.el6.noarch.rpm                 | 1.4 MB     00:00     
(3/16): initscripts-9.03.61-1.el6.centos.x86_64.rpm      | 949 kB     00:00     
(4/16): iproute-2.6.32-57.el6.x86_64.rpm                 | 386 kB     00:00     
(5/16): iptables-1.4.7-19.el6.x86_64.rpm                 | 255 kB     00:00     
(6/16): iputils-20071127-24.el6.x86_64.rpm               | 121 kB     00:00     
(7/16): libdrm-2.4.65-2.el6.x86_64.rpm                   | 136 kB     00:00     
(8/16): libpciaccess-0.13.4-1.el6.x86_64.rpm             |  24 kB     00:00     
(9/16): plymouth-0.8.3-29.el6.centos.x86_64.rpm          |  89 kB     00:00     
(10/16): policycoreutils-2.0.83-30.1.el6_8.x86_64.rpm    | 663 kB     00:00     
(11/16): redhat-logos-60.0.14-12.el6.centos.noarch.rpm   |  15 MB     00:02     
(12/16): shadow-utils-4.1.5.1-5.el6.x86_64.rpm           | 1.0 MB     00:00     
(13/16): sysvinit-tools-2.87-6.dsf.el6.x86_64.rpm        |  60 kB     00:00     
(14/16): udev-147-2.74.el6_10.x86_64.rpm                 | 358 kB     00:00     
(15/16): upstart-0.6.5-17.el6.x86_64.rpm                 | 177 kB     00:00     
(16/16): util-linux-ng-2.17.2-12.28.el6_9.2.x86_64.rpm   | 1.6 MB     00:00     
--------------------------------------------------------------------------------
Total                                           4.0 MB/s |  22 MB     00:05     
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
 Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <[email protected]>
 Package: centos-release-6-10.el6.centos.12.3.x86_64 (@CentOS/6.10)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 2:shadow-utils-4.1.5.1-5.el6.x86_64                         1/17 
  Installing : hwdata-0.233-20.1.el6.noarch                                2/17 
  Installing : sysvinit-tools-2.87-6.dsf.el6.x86_64                        3/17 
  Installing : libpciaccess-0.13.4-1.el6.x86_64                            4/17 
  Installing : dbus-glib-0.86-6.el6.x86_64                                 5/17 
  Installing : redhat-logos-60.0.14-12.el6.centos.noarch                   6/17 
  Installing : upstart-0.6.5-17.el6.x86_64                                 7/17 
  Installing : policycoreutils-2.0.83-30.1.el6_8.x86_64                    8/17 
  Installing : iptables-1.4.7-19.el6.x86_64                                9/17 
  Installing : iproute-2.6.32-57.el6.x86_64                               10/17 
  Installing : libdrm-2.4.65-2.el6.x86_64                                 11/17 
  Installing : iputils-20071127-24.el6.x86_64                             12/17 
  Installing : plymouth-0.8.3-29.el6.centos.x86_64                        13/17 
  Installing : util-linux-ng-2.17.2-12.28.el6_9.2.x86_64                  14/17 
install-info: No such file or directory for /usr/share/info/ipc.info
  Installing : initscripts-9.03.61-1.el6.centos.x86_64                    15/17 
  Installing : udev-147-2.74.el6_10.x86_64                                16/17 
udevd[66]: error setting /sys/class/firmware/timeout: Read-only file system

  Installing : wazuh-agent-4.4.0-1.x86_64                                 17/17 
  Verifying  : plymouth-0.8.3-29.el6.centos.x86_64                         1/17 
  Verifying  : 2:shadow-utils-4.1.5.1-5.el6.x86_64                         2/17 
  Verifying  : policycoreutils-2.0.83-30.1.el6_8.x86_64                    3/17 
  Verifying  : wazuh-agent-4.4.0-1.x86_64                                  4/17 
  Verifying  : upstart-0.6.5-17.el6.x86_64                                 5/17 
  Verifying  : redhat-logos-60.0.14-12.el6.centos.noarch                   6/17 
  Verifying  : sysvinit-tools-2.87-6.dsf.el6.x86_64                        7/17 
  Verifying  : initscripts-9.03.61-1.el6.centos.x86_64                     8/17 
  Verifying  : iptables-1.4.7-19.el6.x86_64                                9/17 
  Verifying  : hwdata-0.233-20.1.el6.noarch                               10/17 
  Verifying  : udev-147-2.74.el6_10.x86_64                                11/17 
  Verifying  : util-linux-ng-2.17.2-12.28.el6_9.2.x86_64                  12/17 
  Verifying  : iputils-20071127-24.el6.x86_64                             13/17 
  Verifying  : dbus-glib-0.86-6.el6.x86_64                                14/17 
  Verifying  : libpciaccess-0.13.4-1.el6.x86_64                           15/17 
  Verifying  : libdrm-2.4.65-2.el6.x86_64                                 16/17 
  Verifying  : iproute-2.6.32-57.el6.x86_64                               17/17 

Installed:
  wazuh-agent.x86_64 0:4.4.0-1                                                  

Dependency Installed:
  dbus-glib.x86_64 0:0.86-6.el6                                                 
  hwdata.noarch 0:0.233-20.1.el6                                                
  initscripts.x86_64 0:9.03.61-1.el6.centos                                     
  iproute.x86_64 0:2.6.32-57.el6                                                
  iptables.x86_64 0:1.4.7-19.el6                                                
  iputils.x86_64 0:20071127-24.el6                                              
  libdrm.x86_64 0:2.4.65-2.el6                                                  
  libpciaccess.x86_64 0:0.13.4-1.el6                                            
  plymouth.x86_64 0:0.8.3-29.el6.centos                                         
  policycoreutils.x86_64 0:2.0.83-30.1.el6_8                                    
  redhat-logos.noarch 0:60.0.14-12.el6.centos                                   
  shadow-utils.x86_64 2:4.1.5.1-5.el6                                           
  sysvinit-tools.x86_64 0:2.87-6.dsf.el6                                        
  udev.x86_64 0:147-2.74.el6_10                                                 
  upstart.x86_64 0:0.6.5-17.el6                                                 
  util-linux-ng.x86_64 0:2.17.2-12.28.el6_9.2                                   

Complete!
[root@2530aaf81134 home]# yum info shadow-utils                   
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
Installed Packages
Name        : shadow-utils
Arch        : x86_64
Epoch       : 2
Version     : 4.1.5.1
Release     : 5.el6
Size        : 3.3 M
Repo        : installed
From repo   : base
Summary     : Utilities for managing accounts and shadow password files
URL         : http://pkg-shadow.alioth.debian.org/
License     : BSD and GPLv2+
Description : The shadow-utils package includes the necessary programs for
            : converting UNIX password files to the shadow password format, plus
            : programs for managing user and group accounts. The pwconv command
            : converts passwords to the shadow password format. The pwunconv
            : command unconverts shadow passwords and generates a passwd file (a
            : standard UNIX password file). The pwck command checks the
            : integrity of password and shadow files. The lastlog command prints
            : out the last login times for all users. The useradd, userdel, and
            : usermod commands are used for managing user accounts. The
            : groupadd, groupdel, and groupmod commands are used for managing
            : group accounts.

OS Version Able to uninstall shadow-utils yum install Dependencies installed
Red Hat 9 🟢 🟢 🟢
Red Hat 8 🟢 🟢 🟢
Red Hat 7 🔴 🟢
CentOS 8 🟢 🟢 🟢
CentOS 7 🔴 🟢 🟢
CentOS 6 🟢 🟢 🟢
Amazon Linux 2 🔴 🟢 🟢

miguelfdez99 avatar Sep 15 '22 12:09 miguelfdez99

Update report

DEB Binaries

Command Ubuntu 22 Ubuntu 20 Ubuntu 18 Ubuntu 16 Ubuntu 14 Debian 11 Debian 10 Debian 9 Debian 8 Debian 7
mkdir 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢
rm 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢
service 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢
systemctl 🔴 🔴 🔴 🟢 🔴 🔴 🔴 🔴 🔴 🔴
mv 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢
touch 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢
cp 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢
grep 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢
pgrep 🟢 🟢 🟢 🟢 🟢 🔴 🔴 🔴 🟢 🔴
kill 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢
getent 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢
addgroup 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🔴
adduser 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🔴
base64 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢
chmod 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢
chown 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢
find 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢
deluser 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🔴
delgroup 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🟢 🔴

Tested with the official docker images from Debian and Ubuntu.

Script created for the testing
#!/bin/bash

declare -a commands=( mkdir rm service systemctl mv touch cp grep pgrep kill getent addgroup adduser base64 chmod chown find deluser delgroup )

for command in "${commands[@]}"; do
    if ! command -v "$command" > /dev/null 2>&1; then
        echo "Command $command not found"
    fi
done

miguelfdez99 avatar Sep 15 '22 13:09 miguelfdez99

Update report

RPM Binaries

Command Red Hat 9 Red Hat 8 Red Hat 7 CentOS 8 CentOS 7 CentOS 6 Amazon Linux 2
mkdir 🟢 🟢 🟢 🟢 🟢 🟢 🟢
rm 🟢 🟢 🟢 🟢 🟢 🟢 🟢
service 🔴 🔴 🟢 🔴 🔴 🔴 🔴
systemctl 🟢 🟢 🟢 🟢 🟢 🔴 🔴
mv 🟢 🟢 🟢 🟢 🟢 🟢 🟢
touch 🟢 🟢 🟢 🟢 🟢 🟢 🟢
cp 🟢 🟢 🟢 🟢 🟢 🟢 🟢
grep 🟢 🟢 🟢 🟢 🟢 🟢 🟢
pgrep 🔴 🔴 🟢 🟢 🟢 🟢 🔴
kill 🟢 🟢 🟢 🟢 🟢 🟢 🟢
getent 🟢 🟢 🟢 🟢 🟢 🟢 🟢
groupadd 🟢 🟢 🟢 🟢 🟢 🟢 🟢
groupdel 🟢 🟢 🟢 🟢 🟢 🟢 🟢
echo 🟢 🟢 🟢 🟢 🟢 🟢 🟢
chmod 🟢 🟢 🟢 🟢 🟢 🟢 🟢
chown 🟢 🟢 🟢 🟢 🟢 🟢 🟢
find 🟢 🟢 🟢 🟢 🟢 🟢 🟢
sed 🟢 🟢 🟢 🟢 🟢 🟢 🟢
chkconfig 🔴 🟢 🟢 🟢 🟢 🟢 🟢
userdel 🟢 🟢 🟢 🟢 🟢 🟢 🟢
useradd 🟢 🟢 🟢 🟢 🟢 🟢 🟢

Tested with the official docker images from Red Hat, CentOS and Amazon Linux. RHEL 7 tested in a virtual machine, no docker image available.

Script created for the testing
#!/bin/bash

declare -a commands=( mkdir rm service systemctl mv touch cp grep pgrep kill getent groupadd useradd echo sed chmod chown find userdel groupdel chkconfig )

for command in "${commands[@]}"; do
    if ! command -v "$command" > /dev/null 2>&1; then
        echo "Command $command not found"
    fi
done

miguelfdez99 avatar Sep 15 '22 15:09 miguelfdez99

Update report

yum install install the dependencies if they are not in the system in most cases, apt-get install does not.

Considering this fact, it only makes sense to study adding the dependencies inside the DEB specs. In this #1624 (comment) I have tried to uninstall the dependencies adduser debconf and libc6. They are too important to be removed in Debian-based systems. For instance, removing adduser will also remove the apt-get binary.

The only dependency from DEB specs that should be considered to be included in the packages is lsb-release. #1624 (comment) Here we can see the operating system's behavior when we include lsb-release dependency in the specs.

In some OS when you update the system before installing the agent with apt-get install the dependency lsb-releasewill be installed even if the package does't have it included.

Installing wazuh-agent in Debian 9. lsb-releasenot installed and not including in the package, only as a dependency:

root@8358d26d0f07:/# apt-get install lsb-release
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package lsb-release
root@8358d26d0f07:/# apt-get install ./wazuh-agent_4.4.0-1_amd64.deb 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'wazuh-agent' instead of './wazuh-agent_4.4.0-1_amd64.deb'
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:
 wazuh-agent : Depends: lsb-release but it is not installable
E: Unable to correct problems, you have held broken packages.
root@8358d26d0f07:/# apt-get update             
Get:1 http://security.debian.org/debian-security stretch/updates InRelease [59.1 kB]
Ign:2 http://deb.debian.org/debian stretch InRelease    
Get:3 http://deb.debian.org/debian stretch-updates InRelease [93.6 kB]
Get:4 http://deb.debian.org/debian stretch Release [118 kB]
Get:5 http://deb.debian.org/debian stretch Release.gpg [3177 B]
Get:6 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [782 kB]
Get:7 http://deb.debian.org/debian stretch/main amd64 Packages [7080 kB]
Fetched 8135 kB in 1s (5091 kB/s)                        
Reading package lists... Done
root@8358d26d0f07:/# apt-get install ./wazuh-agent_4.4.0-1_amd64.deb 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'wazuh-agent' instead of './wazuh-agent_4.4.0-1_amd64.deb'
The following additional packages will be installed:
  bzip2 dh-python distro-info-data file libexpat1 libmagic-mgc libmagic1 libmpdec2
  libpython3-stdlib libpython3.5-minimal libpython3.5-stdlib libreadline7
  libsqlite3-0 libssl1.1 lsb-release mime-support python3 python3-minimal
  python3.5 python3.5-minimal readline-common xz-utils
Suggested packages:
  bzip2-doc libdpkg-perl lsb python3-doc python3-tk python3-venv python3.5-venv
  python3.5-doc binutils binfmt-support readline-doc
The following NEW packages will be installed:
  bzip2 dh-python distro-info-data file libexpat1 libmagic-mgc libmagic1 libmpdec2
  libpython3-stdlib libpython3.5-minimal libpython3.5-stdlib libreadline7
  libsqlite3-0 libssl1.1 lsb-release mime-support python3 python3-minimal
  python3.5 python3.5-minimal readline-common wazuh-agent xz-utils
0 upgraded, 23 newly installed, 0 to remove and 2 not upgraded.
Need to get 7932 kB/16.9 MB of archives.
After this operation, 66.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian stretch/main amd64 python3-minimal amd64 3.5.3-1 [35.3 kB]
Get:2 http://security.debian.org/debian-security stretch/updates/main amd64 libssl1.1 amd64 1.1.0l-1~deb9u6 [1360 kB]
Get:3 http://deb.debian.org/debian stretch/main amd64 mime-support all 3.60 [36.7 kB]
Get:4 http://deb.debian.org/debian stretch/main amd64 libmpdec2 amd64 2.4.2-1 [85.2 kB]
Get:5 http://deb.debian.org/debian stretch/main amd64 readline-common all 7.0-3 [70.4 kB]
Get:6 /wazuh-agent_4.4.0-1_amd64.deb wazuh-agent amd64 4.4.0-1 [9005 kB]  
Get:7 http://deb.debian.org/debian stretch/main amd64 libreadline7 amd64 7.0-3 [151 kB]
Get:8 http://deb.debian.org/debian stretch/main amd64 libpython3-stdlib amd64 3.5.3-1 [18.6 kB]
Get:9 http://deb.debian.org/debian stretch/main amd64 dh-python all 2.20170125 [86.8 kB]
Get:10 http://deb.debian.org/debian stretch/main amd64 python3 amd64 3.5.3-1 [21.6 kB]
Get:11 http://deb.debian.org/debian stretch/main amd64 bzip2 amd64 1.0.6-8.1 [47.5 kB]
Get:12 http://deb.debian.org/debian stretch/main amd64 libmagic-mgc amd64 1:5.30-1+deb9u3 [222 kB]
Get:13 http://deb.debian.org/debian stretch/main amd64 libmagic1 amd64 1:5.30-1+deb9u3 [111 kB]
Get:14 http://deb.debian.org/debian stretch/main amd64 file amd64 1:5.30-1+deb9u3 [64.2 kB]
Get:15 http://deb.debian.org/debian stretch/main amd64 distro-info-data all 0.36 [5810 B]
Get:16 http://deb.debian.org/debian stretch/main amd64 lsb-release all 9.20161125 [27.1 kB]
Get:17 http://security.debian.org/debian-security stretch/updates/main amd64 libpython3.5-minimal amd64 3.5.3-1+deb9u5 [574 kB]
Get:18 http://security.debian.org/debian-security stretch/updates/main amd64 libexpat1 amd64 2.2.0-2+deb9u5 [84.7 kB]
Get:19 http://security.debian.org/debian-security stretch/updates/main amd64 python3.5-minimal amd64 3.5.3-1+deb9u5 [1692 kB]
Get:20 http://security.debian.org/debian-security stretch/updates/main amd64 libsqlite3-0 amd64 3.16.2-5+deb9u3 [574 kB]
Get:21 http://security.debian.org/debian-security stretch/updates/main amd64 libpython3.5-stdlib amd64 3.5.3-1+deb9u5 [2167 kB]
Get:22 http://security.debian.org/debian-security stretch/updates/main amd64 python3.5 amd64 3.5.3-1+deb9u5 [231 kB]
Get:23 http://security.debian.org/debian-security stretch/updates/main amd64 xz-utils amd64 5.2.2-1.2+deb9u1 [266 kB]
Fetched 7932 kB in 1s (6220 kB/s) 
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libssl1.1:amd64.
(Reading database ... 6502 files and directories currently installed.)
Preparing to unpack .../00-libssl1.1_1.1.0l-1~deb9u6_amd64.deb ...
Unpacking libssl1.1:amd64 (1.1.0l-1~deb9u6) ...
Selecting previously unselected package libpython3.5-minimal:amd64.
Preparing to unpack .../01-libpython3.5-minimal_3.5.3-1+deb9u5_amd64.deb ...
Unpacking libpython3.5-minimal:amd64 (3.5.3-1+deb9u5) ...
Selecting previously unselected package libexpat1:amd64.
Preparing to unpack .../02-libexpat1_2.2.0-2+deb9u5_amd64.deb ...
Unpacking libexpat1:amd64 (2.2.0-2+deb9u5) ...
Selecting previously unselected package python3.5-minimal.
Preparing to unpack .../03-python3.5-minimal_3.5.3-1+deb9u5_amd64.deb ...
Unpacking python3.5-minimal (3.5.3-1+deb9u5) ...
Selecting previously unselected package python3-minimal.
Preparing to unpack .../04-python3-minimal_3.5.3-1_amd64.deb ...
Unpacking python3-minimal (3.5.3-1) ...
Selecting previously unselected package mime-support.
Preparing to unpack .../05-mime-support_3.60_all.deb ...
Unpacking mime-support (3.60) ...
Selecting previously unselected package libmpdec2:amd64.
Preparing to unpack .../06-libmpdec2_2.4.2-1_amd64.deb ...
Unpacking libmpdec2:amd64 (2.4.2-1) ...
Selecting previously unselected package readline-common.
Preparing to unpack .../07-readline-common_7.0-3_all.deb ...
Unpacking readline-common (7.0-3) ...
Selecting previously unselected package libreadline7:amd64.
Preparing to unpack .../08-libreadline7_7.0-3_amd64.deb ...
Unpacking libreadline7:amd64 (7.0-3) ...
Selecting previously unselected package libsqlite3-0:amd64.
Preparing to unpack .../09-libsqlite3-0_3.16.2-5+deb9u3_amd64.deb ...
Unpacking libsqlite3-0:amd64 (3.16.2-5+deb9u3) ...
Selecting previously unselected package libpython3.5-stdlib:amd64.
Preparing to unpack .../10-libpython3.5-stdlib_3.5.3-1+deb9u5_amd64.deb ...
Unpacking libpython3.5-stdlib:amd64 (3.5.3-1+deb9u5) ...
Selecting previously unselected package python3.5.
Preparing to unpack .../11-python3.5_3.5.3-1+deb9u5_amd64.deb ...
Unpacking python3.5 (3.5.3-1+deb9u5) ...
Selecting previously unselected package libpython3-stdlib:amd64.
Preparing to unpack .../12-libpython3-stdlib_3.5.3-1_amd64.deb ...
Unpacking libpython3-stdlib:amd64 (3.5.3-1) ...
Selecting previously unselected package dh-python.
Preparing to unpack .../13-dh-python_2.20170125_all.deb ...
Unpacking dh-python (2.20170125) ...
Setting up libssl1.1:amd64 (1.1.0l-1~deb9u6) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up libpython3.5-minimal:amd64 (3.5.3-1+deb9u5) ...
Setting up libexpat1:amd64 (2.2.0-2+deb9u5) ...
Setting up python3.5-minimal (3.5.3-1+deb9u5) ...
Setting up python3-minimal (3.5.3-1) ...
Selecting previously unselected package python3.
(Reading database ... 7495 files and directories currently installed.)
Preparing to unpack .../0-python3_3.5.3-1_amd64.deb ...
Unpacking python3 (3.5.3-1) ...
Selecting previously unselected package bzip2.
Preparing to unpack .../1-bzip2_1.0.6-8.1_amd64.deb ...
Unpacking bzip2 (1.0.6-8.1) ...
Selecting previously unselected package libmagic-mgc.
Preparing to unpack .../2-libmagic-mgc_1%3a5.30-1+deb9u3_amd64.deb ...
Unpacking libmagic-mgc (1:5.30-1+deb9u3) ...
Selecting previously unselected package libmagic1:amd64.
Preparing to unpack .../3-libmagic1_1%3a5.30-1+deb9u3_amd64.deb ...
Unpacking libmagic1:amd64 (1:5.30-1+deb9u3) ...
Selecting previously unselected package file.
Preparing to unpack .../4-file_1%3a5.30-1+deb9u3_amd64.deb ...
Unpacking file (1:5.30-1+deb9u3) ...
Selecting previously unselected package xz-utils.
Preparing to unpack .../5-xz-utils_5.2.2-1.2+deb9u1_amd64.deb ...
Unpacking xz-utils (5.2.2-1.2+deb9u1) ...
Selecting previously unselected package distro-info-data.
Preparing to unpack .../6-distro-info-data_0.36_all.deb ...
Unpacking distro-info-data (0.36) ...
Selecting previously unselected package lsb-release.
Preparing to unpack .../7-lsb-release_9.20161125_all.deb ...
Unpacking lsb-release (9.20161125) ...
Selecting previously unselected package wazuh-agent.
Preparing to unpack .../8-wazuh-agent_4.4.0-1_amd64.deb ...
Unpacking wazuh-agent (4.4.0-1) ...
Setting up readline-common (7.0-3) ...
Setting up mime-support (3.60) ...
Setting up libreadline7:amd64 (7.0-3) ...
Setting up distro-info-data (0.36) ...
Setting up libmagic-mgc (1:5.30-1+deb9u3) ...
Setting up bzip2 (1.0.6-8.1) ...
Setting up libmagic1:amd64 (1:5.30-1+deb9u3) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Setting up xz-utils (5.2.2-1.2+deb9u1) ...
update-alternatives: using /usr/bin/xz to provide /usr/bin/lzma (lzma) in auto mode
Setting up libsqlite3-0:amd64 (3.16.2-5+deb9u3) ...
Setting up libmpdec2:amd64 (2.4.2-1) ...
Setting up libpython3.5-stdlib:amd64 (3.5.3-1+deb9u5) ...
Setting up file (1:5.30-1+deb9u3) ...
Setting up python3.5 (3.5.3-1+deb9u5) ...
Setting up libpython3-stdlib:amd64 (3.5.3-1) ...
Setting up python3 (3.5.3-1) ...
running python rtupdate hooks for python3.5...
running python post-rtupdate hooks for python3.5...
Setting up lsb-release (9.20161125) ...
Setting up dh-python (2.20170125) ...
Setting up wazuh-agent (4.4.0-1) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...

miguelfdez99 avatar Sep 16 '22 12:09 miguelfdez99

Tests DEB systems

:green_circle: Wazuh agent

Try and remove all dependecies for Wazuh agent in Ubuntu 20
root@ubuntu20:/home/vagrant# apt-get remove libc6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  amd64-microcode distro-info-data javascript-common laptop-detect libjs-jquery libmagic-mgc libsensors-config ncurses-term ruby-minitest ruby-net-telnet ruby-power-assert ruby-test-unit ruby-xmlrpc
  usb-modeswitch-data wireless-regdb xkb-data
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  accountsservice adduser apparmor apport apt apt-utils at base-files base-passwd bash bc bcache-tools bind9-dnsutils bind9-host bind9-libs bolt bsdmainutils bsdutils btrfs-progs busybox-initramfs byobu bzip2
  ca-certificates cloud-guest-utils cloud-initramfs-copymods cloud-initramfs-dyn-netconf command-not-found console-setup console-setup-linux coreutils cpio crda cron cryptsetup cryptsetup-bin
  cryptsetup-initramfs cryptsetup-run curl dash dbus dbus-user-session dconf-gsettings-backend dconf-service debconf debconf-i18n debianutils diffutils dirmngr distro-info dmeventd dmidecode dmsetup dosfstools
  dpkg e2fsprogs ed eject ethtool fdisk file findutils fonts-lato friendly-recovery ftp fuse fwupd gawk gdisk gettext-base gir1.2-glib-2.0 gir1.2-packagekitglib-1.0 git glib-networking glib-networking-services
  gnupg gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv grep groff-base grub-common grub-gfxpayload-lists grub-pc grub-pc-bin grub2-common gsettings-desktop-schemas gzip haveged
  hdparm hostname htop ifplugd ifupdown info init init-system-helpers initramfs-tools initramfs-tools-bin initramfs-tools-core install-info intel-microcode iproute2 iptables iputils-ping iputils-tracepath
  irqbalance isc-dhcp-client isc-dhcp-common iucode-tool iw kbd keyboard-configuration kmod kpartx landscape-common language-pack-en language-pack-en-base language-pack-gnome-en language-pack-gnome-en-base
  language-selector-common less libaccountsservice0 libacl1 libaio1 libapparmor1 libappstream4 libapt-pkg6.0 libarchive13 libargon2-1 libasn1-8-heimdal libasound2 libassuan0 libatasmart4 libatm1 libattr1
  libaudit1 libblkid1 libblockdev-crypto2 libblockdev-fs2 libblockdev-loop2 libblockdev-part-err2 libblockdev-part2 libblockdev-swap2 libblockdev-utils2 libblockdev2 libbrotli1 libbsd0 libbz2-1.0 libc-bin
  libc6 libcanberra0 libcap-ng0 libcap2 libcap2-bin libcbor0.6 libcom-err2 libcrypt1 libcryptsetup12 libcurl3-gnutls libcurl4 libdaemon0 libdb5.3 libdbus-1-3 libdconf1 libdebconfclient0
  libdevmapper-event1.02.1 libdevmapper1.02.1 libdns-export1109 libdrm2 libdw1 libedit2 libefiboot1 libefivar1 libelf1 liberror-perl libestr0 libevent-2.1-7 libexpat1 libext2fs2 libfastjson4 libfdisk1 libffi7
  libfido2-1 libfl2 libfreetype6 libfribidi0 libfuse2 libfwupd2 libfwupdplugin1 libfwupdplugin5 libgcab-1.0-0 libgcc-s1 libgcrypt20 libgdbm-compat4 libgdbm6 libgirepository-1.0-1 libglib2.0-0 libglib2.0-bin
  libgmp10 libgnutls30 libgpg-error0 libgpgme11 libgpm2 libgssapi-krb5-2 libgssapi3-heimdal libgstreamer1.0-0 libgudev-1.0-0 libgusb2 libhavege1 libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal
  libhogweed5 libhx509-5-heimdal libicu66 libidn2-0 libip4tc2 libip6tc2 libisc-export1105 libisns0 libjcat1 libjson-c4 libjson-glib-1.0-0 libk5crypto3 libkeyutils1 libkmod2 libkrb5-26-heimdal libkrb5-3
  libkrb5support0 libksba8 libldap-2.4-2 liblmdb0 liblocale-gettext-perl libltdl7 liblua5.2-0 liblvm2cmd2.03 liblz4-1 liblzma5 liblzo2-2 libmagic1 libmaxminddb0 libmbim-glib4 libmbim-proxy libmm-glib0 libmnl0
  libmount1 libmpdec2 libmpfr6 libmspack0 libncurses6 libncursesw6 libnetfilter-conntrack3 libnetplan0 libnettle7 libnewt0.52 libnfnetlink0 libnftnl11 libnghttp2-14 libnl-3-200 libnl-genl-3-200 libnpth0
  libnspr4 libnss-systemd libnss3 libntfs-3g883 libnuma1 libogg0 libp11-kit0 libpackagekit-glib2-18 libpam-cap libpam-modules libpam-modules-bin libpam-runtime libpam-systemd libpam0g libparted-fs-resize0
  libparted2 libpcap0.8 libpci3 libpcre2-8-0 libpcre3 libperl5.30 libpipeline1 libplymouth5 libpng16-16 libpolkit-agent-1-0 libpolkit-gobject-1-0 libpopt0 libprocps8 libproxy1v5 libpsl5 libpython3-stdlib
  libpython3.8 libpython3.8-minimal libpython3.8-stdlib libqmi-glib5 libqmi-proxy libreadline5 libreadline8 libroken18-heimdal librtmp1 libruby2.7 libsasl2-2 libsasl2-modules libsasl2-modules-db libseccomp2
  libselinux1 libsemanage1 libsensors5 libsepol1 libsgutils2-2 libsigsegv2 libslang2 libsmartcols1 libsmbios-c2 libsodium23 libsoup2.4-1 libsqlite3-0 libss2 libssh-4 libssl1.1 libstdc++6 libstemmer0d
  libsystemd0 libtasn1-6 libtcl8.6 libtdb1 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libtinfo6 libtss2-esys0 libuchardet0 libudev1 libudisks2-0 libunistring2 libunwind8 liburcu6
  libusb-1.0-0 libutempter0 libuuid1 libuv1 libvolume-key1 libvorbis0a libvorbisfile3 libwind0-heimdal libwrap0 libx11-6 libxau6 libxcb1 libxdmcp6 libxext6 libxml2 libxmlb1 libxmlb2 libxmlsec1
  libxmlsec1-openssl libxmuu1 libxslt1.1 libxtables12 libyaml-0-2 libzstd1 linux-base linux-cloud-tools-5.4.0-137 linux-cloud-tools-5.4.0-137-generic linux-cloud-tools-5.4.0-42
  linux-cloud-tools-5.4.0-42-generic linux-cloud-tools-common linux-cloud-tools-generic linux-cloud-tools-virtual linux-generic linux-headers-5.4.0-137 linux-headers-5.4.0-137-generic linux-headers-5.4.0-42
  linux-headers-5.4.0-42-generic linux-headers-generic linux-image-5.4.0-137-generic linux-image-5.4.0-42-generic linux-image-generic linux-modules-extra-5.4.0-137-generic linux-modules-extra-5.4.0-42-generic
  linux-tools-5.4.0-42 linux-tools-5.4.0-42-generic linux-tools-common locales login logrotate logsave lsb-release lshw lsof ltrace lvm2 lz4 man-db mawk mdadm mlocate modemmanager mount mtr-tiny
  multipath-tools nano ncurses-bin netcat-openbsd netplan.io networkd-dispatcher ntfs-3g open-iscsi open-vm-tools openssh-client openssh-server openssh-sftp-server openssl os-prober overlayroot packagekit
  packagekit-tools parted passwd pastebinit patch pciutils perl perl-base perl-modules-5.30 pinentry-curses plymouth plymouth-theme-ubuntu-text policykit-1 pollinate popularity-contest procps psmisc python3
  python3-apport python3-apt python3-attr python3-automat python3-blinker python3-certifi python3-cffi-backend python3-chardet python3-click python3-colorama python3-commandnotfound python3-configobj
  python3-constantly python3-cryptography python3-dbus python3-debconf python3-debian python3-distro python3-distro-info python3-distupgrade python3-entrypoints python3-gdbm python3-gi python3-hamcrest
  python3-httplib2 python3-hyperlink python3-idna python3-incremental python3-jwt python3-keyring python3-launchpadlib python3-lazr.restfulclient python3-lazr.uri python3-minimal python3-nacl python3-netifaces
  python3-newt python3-oauthlib python3-openssl python3-pexpect python3-pkg-resources python3-problem-report python3-ptyprocess python3-pyasn1 python3-pyasn1-modules python3-pymacaroons python3-requests
  python3-requests-unixsocket python3-secretstorage python3-service-identity python3-simplejson python3-six python3-software-properties python3-systemd python3-twisted python3-twisted-bin
  python3-update-manager python3-urllib3 python3-wadllib python3-yaml python3-zope.interface python3.8 python3.8-minimal rake readline-common rsync rsyslog ruby ruby2.7 rubygems-integration run-one sbsigntool
  screen secureboot-db sed sg3-utils sg3-utils-udev shared-mime-info snapd software-properties-common sosreport squashfs-tools ssh-import-id strace sudo sysstat systemd systemd-sysv systemd-timesyncd
  sysvinit-utils tar tasksel tasksel-data tcpdump telnet thin-provisioning-tools time tmux tpm-udev tzdata ubuntu-advantage-tools ubuntu-minimal ubuntu-release-upgrader-core ubuntu-server ubuntu-standard ucf
  udev udisks2 ufw unattended-upgrades unzip update-manager-core update-notifier-common usb-modeswitch usbutils util-linux uuid-runtime vim vim-common vim-nox vim-tiny virtualbox-guest-utils wget whiptail
  xauth xdg-user-dirs xfsprogs xxd xz-utils zerofree zip zlib1g
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) gpgv (due to apt) libapt-pkg6.0 (due to apt) libc6 (due to apt) libgcc-s1 (due to apt) libgnutls30 (due to apt) libseccomp2 (due to apt) libstdc++6 (due to apt)
  libsystemd0 (due to apt) base-files libcrypt1 (due to base-files) base-passwd libdebconfclient0 (due to base-passwd) bash libtinfo6 (due to bash) debianutils (due to bash) bsdutils coreutils
  libacl1 (due to coreutils) libattr1 (due to coreutils) libselinux1 (due to coreutils) dash dpkg (due to dash) debconf (due to dash) diffutils libbz2-1.0 (due to dpkg) liblzma5 (due to dpkg)
  libzstd1 (due to dpkg) zlib1g (due to dpkg) tar (due to dpkg) e2fsprogs libblkid1 (due to e2fsprogs) libcom-err2 (due to e2fsprogs) libext2fs2 (due to e2fsprogs) libss2 (due to e2fsprogs)
  libuuid1 (due to e2fsprogs) logsave (due to e2fsprogs) fdisk libfdisk1 (due to fdisk) libmount1 (due to fdisk) libncursesw6 (due to fdisk) libsmartcols1 (due to fdisk) findutils grep libpcre3 (due to grep)
  install-info (due to grep) gzip hostname init systemd-sysv (due to init) init-system-helpers (due to init) perl-base (due to init-system-helpers) libc-bin login libaudit1 (due to login)
  libpam0g (due to login) libpam-runtime (due to login) libpam-modules (due to login) mount util-linux (due to mount) ncurses-bin sed sysvinit-utils libcap-ng0 (due to util-linux) libudev1 (due to util-linux)
0 upgraded, 0 newly installed, 572 to remove and 0 not upgraded.
After this operation, 1,391 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] 
Abort.
root@ubuntu20:/home/vagrant# apt-get remove lsb-release
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libdw1
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
  apport command-not-found landscape-common linux-tools-5.4.0-42 linux-tools-5.4.0-42-generic linux-tools-common lsb-release open-vm-tools pastebinit plymouth-theme-ubuntu-text python3-apport
  python3-commandnotfound python3-distro python3-distupgrade python3-launchpadlib python3-lazr.restfulclient python3-software-properties python3-update-manager software-properties-common ssh-import-id
  ubuntu-minimal ubuntu-release-upgrader-core ubuntu-server unattended-upgrades update-manager-core update-notifier-common
0 upgraded, 0 newly installed, 26 to remove and 0 not upgraded.
After this operation, 36.1 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 111809 files and directories currently installed.)
Removing ubuntu-server (1.450.2) ...
Removing apport (2.20.11-0ubuntu27.25) ...
Removing command-not-found (20.04.6) ...
Removing landscape-common (19.12-0ubuntu4.3) ...
Removing linux-tools-5.4.0-42-generic (5.4.0-42.46) ...
Removing linux-tools-5.4.0-42 (5.4.0-42.46) ...
Removing linux-tools-common (5.4.0-137.154) ...
Removing software-properties-common (0.99.9.10) ...
Removing python3-software-properties (0.99.9.10) ...
Removing python3-apport (2.20.11-0ubuntu27.25) ...
Removing open-vm-tools (2:11.3.0-2ubuntu0~ubuntu20.04.4) ...
Removing pastebinit (1.5.1-1) ...
Removing plymouth-theme-ubuntu-text (0.9.4git20200323-0ubuntu6.2) ...
update-initramfs: deferring update (trigger activated)
Removing python3-commandnotfound (20.04.6) ...
Removing ssh-import-id (5.10-0ubuntu1) ...
Removing python3-launchpadlib (1.10.13-1) ...
Removing python3-lazr.restfulclient (0.14.2-2build1) ...
Removing python3-distro (1.4.0-1) ...
Removing update-notifier-common (3.192.30.16) ...
Removing update-manager-core (1:20.04.10.11) ...
dpkg: warning: while removing update-manager-core, directory '/var/lib/update-manager' not empty so not removed
Removing ubuntu-release-upgrader-core (1:20.04.39) ...
Removing ubuntu-minimal (1.450.2) ...
Removing unattended-upgrades (2.3ubuntu0.3) ...
Removing python3-distupgrade (1:20.04.39) ...
Removing python3-update-manager (1:20.04.10.11) ...
Removing lsb-release (11.1.0ubuntu2) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for dbus (1.12.16-2ubuntu2.3) ...
Processing triggers for initramfs-tools (0.136ubuntu6.7) ...
update-initramfs: Generating /boot/initrd.img-5.4.0-137-generic
root@ubuntu20:/home/vagrant# apt-get remove deb-conf
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package deb-conf
root@ubuntu20:/home/vagrant# apt-get remove debconf
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:
 libxml2 : Depends: libicu66 (>= 66.1-1~) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
root@ubuntu20:/home/vagrant# apt-get remove adduser
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  laptop-detect libatasmart4 libblockdev-fs2 libblockdev-loop2 libblockdev-part-err2 libblockdev-part2 libblockdev-swap2 libblockdev-utils2 libblockdev2 libdw1 libestr0 libfastjson4 libfwupdplugin5
  libmbim-glib4 libmbim-proxy libmm-glib0 libnetplan0 libnspr4 libnss3 libparted-fs-resize0 libqmi-glib5 libqmi-proxy libudisks2-0 libwrap0 libxmlb2 python3-dbus python3-gi python3-netifaces usb-modeswitch
  usb-modeswitch-data
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  anacron
Suggested packages:
  default-mta | mail-transport-agent rsyslog | system-log-daemon
Recommended packages:
  cron | cron-daemon
The following packages will be REMOVED:
  accountsservice adduser apt apt-utils cloud-initramfs-copymods cloud-initramfs-dyn-netconf cron cryptsetup-initramfs dbus dbus-user-session dconf-gsettings-backend dconf-service dirmngr friendly-recovery
  fuse fwupd glib-networking gnupg gpg-wks-client gsettings-desktop-schemas ifupdown init initramfs-tools initramfs-tools-core kpartx language-selector-common libappstream4 libblockdev-crypto2 libnss-systemd
  libpam-systemd libsoup2.4-1 libtss2-esys0 libvolume-key1 mdadm mlocate modemmanager multipath-tools netplan.io networkd-dispatcher ntfs-3g open-iscsi openssh-client openssh-server openssh-sftp-server
  overlayroot packagekit packagekit-tools plymouth policykit-1 pollinate python3-keyring python3-secretstorage rsyslog sg3-utils-udev snapd systemd systemd-sysv systemd-timesyncd tasksel tasksel-data tcpdump
  tpm-udev ubuntu-standard udev udisks2 uuid-runtime virtualbox-guest-utils
The following NEW packages will be installed:
  anacron
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) init systemd-sysv (due to init)
0 upgraded, 1 newly installed, 67 to remove and 0 not upgraded.
Need to get 27.9 kB of archives.
After this operation, 250 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] 
Abort.

All dependencies except lsb-release possibly break the system and remove the installation command apt-get, when tried to be uninstalled.

Installing the Wazuh agent as per the documentation, and checking all dependencies are installed
root@ubuntu20:/home/vagrant# curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH | gpg --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/wazuh.gpg --import && chmod 644 /usr/share/keyrings/wazuh.gpg
 
gpg: directory '/root/.gnupg' created
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key 96B3EE5F29111145: public key "Wazuh.com (Wazuh Signing Key) <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1
root@ubuntu20:/home/vagrant# 
root@ubuntu20:/home/vagrant# echo "deb [signed-by=/usr/share/keyrings/wazuh.gpg] https://packages.wazuh.com/4.x/apt/ stable main" | tee -a /etc/apt/sources.list.d/wazuh.list
deb [signed-by=/usr/share/keyrings/wazuh.gpg] https://packages.wazuh.com/4.x/apt/ stable main
root@ubuntu20:/home/vagrant# apt-get update
Get:1 https://packages.wazuh.com/4.x/apt stable InRelease [17.3 kB]
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]                                 
Hit:3 http://us.archive.ubuntu.com/ubuntu focal InRelease                               
Get:4 https://packages.wazuh.com/4.x/apt stable/main amd64 Packages [25.9 kB]  
Get:5 https://packages.wazuh.com/4.x/apt stable/main i386 Packages [8,116 B]                          
Get:6 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:7 http://security.ubuntu.com/ubuntu focal-security/main i386 Packages [559 kB]
Get:8 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [2,007 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]               
Get:10 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [327 kB]
Get:11 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [12.2 kB]      
Get:12 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [1,508 kB] 
Get:13 http://security.ubuntu.com/ubuntu focal-security/restricted Translation-en [213 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [2,384 kB]
Get:15 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [797 kB]          
Get:16 http://security.ubuntu.com/ubuntu focal-security/universe i386 Packages [581 kB]     
Get:17 http://security.ubuntu.com/ubuntu focal-security/universe Translation-en [156 kB]   
Get:18 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [17.0 kB]  
Get:19 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [22.9 kB]                             
Get:20 http://security.ubuntu.com/ubuntu focal-security/multiverse Translation-en [5,488 B]                             
Get:21 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 c-n-f Metadata [528 B]      
Get:22 http://us.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [788 kB]
Get:23 http://us.archive.ubuntu.com/ubuntu focal-updates/main Translation-en [409 kB]
Get:24 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [16.3 kB]
Get:25 http://us.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [1,610 kB]
Get:26 http://us.archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [227 kB]
Get:27 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1,026 kB]
Get:28 http://us.archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages [711 kB]
Get:29 http://us.archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [239 kB]
Get:30 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [23.6 kB]
Fetched 14.0 MB in 5s (2,701 kB/s)                                   
Reading package lists... Done
root@ubuntu20:/home/vagrant# apt-get install wazuh-agent
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libdw1
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  lsb-release
The following NEW packages will be installed:
  lsb-release wazuh-agent
0 upgraded, 2 newly installed, 0 to remove and 27 not upgraded.
Need to get 8,874 kB of archives.
After this operation, 29.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://packages.wazuh.com/4.x/apt stable/main amd64 wazuh-agent amd64 4.3.10-1 [8,864 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu focal/main amd64 lsb-release all 11.1.0ubuntu2 [10.6 kB]
Fetched 8,874 kB in 3s (2,922 kB/s)                                                        
Preconfiguring packages ...
Selecting previously unselected package lsb-release.
(Reading database ... 110902 files and directories currently installed.)
Preparing to unpack .../lsb-release_11.1.0ubuntu2_all.deb ...
Unpacking lsb-release (11.1.0ubuntu2) ...
Selecting previously unselected package wazuh-agent.
Preparing to unpack .../wazuh-agent_4.3.10-1_amd64.deb ...
Unpacking wazuh-agent (4.3.10-1) ...
Setting up lsb-release (11.1.0ubuntu2) ...
Setting up wazuh-agent (4.3.10-1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for systemd (245.4-4ubuntu3.19) ...
root@ubuntu20:/home/vagrant# systemctl status wazuh-agent
● wazuh-agent.service - Wazuh agent
     Loaded: loaded (/lib/systemd/system/wazuh-agent.service; disabled; vendor preset: enabled)
     Active: inactive (dead)
root@ubuntu20:/home/vagrant# systemctl start wazuh-agent
Job for wazuh-agent.service failed because the control process exited with error code.
See "systemctl status wazuh-agent.service" and "journalctl -xe" for details.
root@ubuntu20:/home/vagrant# systemctl status wazuh-agent
● wazuh-agent.service - Wazuh agent
     Loaded: loaded (/lib/systemd/system/wazuh-agent.service; disabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2023-02-21 11:19:09 UTC; 6s ago
    Process: 14162 ExecStart=/usr/bin/env /var/ossec/bin/wazuh-control start (code=exited, status=1/FAILURE)

Feb 21 11:19:09 ubuntu20 systemd[1]: Starting Wazuh agent...
Feb 21 11:19:09 ubuntu20 env[14170]: 2023/02/21 11:19:09 wazuh-agentd: ERROR: (4112): Invalid server address found: 'MANAGER_IP'
Feb 21 11:19:09 ubuntu20 env[14170]: 2023/02/21 11:19:09 wazuh-agentd: CRITICAL: (1215): No client configured. Exiting.
Feb 21 11:19:09 ubuntu20 env[14162]: wazuh-agentd: Configuration error. Exiting
Feb 21 11:19:09 ubuntu20 systemd[1]: wazuh-agent.service: Control process exited, code=exited, status=1/FAILURE
Feb 21 11:19:09 ubuntu20 systemd[1]: wazuh-agent.service: Failed with result 'exit-code'.
Feb 21 11:19:09 ubuntu20 systemd[1]: Failed to start Wazuh agent.

The documentation for the Wazuh agent is complete and all dependencies correctly install. There is also no unnecesary installation

:yellow_circle: Wazuh dashboard

Trying to remove dependencies for the Wazuh dashboard
root@ubuntu20:/home/vagrant# apt-get remove debconf
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:
 libxml2 : Depends: libicu66 (>= 66.1-1~) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
root@ubuntu20:/home/vagrant# apt-get remove adduser
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  laptop-detect libatasmart4 libblockdev-fs2 libblockdev-loop2 libblockdev-part-err2 libblockdev-part2 libblockdev-swap2 libblockdev-utils2 libblockdev2 libdw1 libestr0 libfastjson4 libfwupdplugin5
  libmbim-glib4 libmbim-proxy libmm-glib0 libnetplan0 libnspr4 libnss3 libparted-fs-resize0 libqmi-glib5 libqmi-proxy libudisks2-0 libwrap0 libxmlb2 python3-dbus python3-gi python3-netifaces usb-modeswitch
  usb-modeswitch-data
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  anacron
Suggested packages:
  default-mta | mail-transport-agent rsyslog | system-log-daemon
Recommended packages:
  cron | cron-daemon
The following packages will be REMOVED:
  accountsservice adduser apt apt-utils cloud-initramfs-copymods cloud-initramfs-dyn-netconf cron cryptsetup-initramfs dbus dbus-user-session dconf-gsettings-backend dconf-service dirmngr friendly-recovery
  fuse fwupd glib-networking gnupg gpg-wks-client gsettings-desktop-schemas ifupdown init initramfs-tools initramfs-tools-core kpartx language-selector-common libappstream4 libblockdev-crypto2 libnss-systemd
  libpam-systemd libsoup2.4-1 libtss2-esys0 libvolume-key1 mdadm mlocate modemmanager multipath-tools netplan.io networkd-dispatcher ntfs-3g open-iscsi openssh-client openssh-server openssh-sftp-server
  overlayroot packagekit packagekit-tools plymouth policykit-1 pollinate python3-keyring python3-secretstorage rsyslog sg3-utils-udev snapd systemd systemd-sysv systemd-timesyncd tasksel tasksel-data tcpdump
  tpm-udev ubuntu-standard udev udisks2 uuid-runtime virtualbox-guest-utils wazuh-manager
The following NEW packages will be installed:
  anacron
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) init systemd-sysv (due to init)
0 upgraded, 1 newly installed, 68 to remove and 27 not upgraded.
Need to get 27.9 kB of archives.
After this operation, 710 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] 
Abort.
root@ubuntu20:/home/vagrant# apt-get remove curl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libdw1
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
  curl pollinate
0 upgraded, 0 newly installed, 2 to remove and 27 not upgraded.
After this operation, 507 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 129609 files and directories currently installed.)
Removing pollinate (4.33-3ubuntu1.20.04.1) ...
Removing curl (7.68.0-1ubuntu2.15) ...
Processing triggers for man-db (2.9.1-1) ...
root@ubuntu20:/home/vagrant# apt-get remove tar
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:
 libicu66 : Depends: tzdata (> 2019c-3ubuntu1~) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
root@ubuntu20:/home/vagrant# apt-get remove libcap2-bin
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  isc-dhcp-common libatm1 libdns-export1109 libdw1 libisc-export1105 libnetplan0 libpam-cap python3-netifaces
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  byobu ifupdown iproute2 iputils-ping isc-dhcp-client libcap2-bin libgstreamer1.0-0 netplan.io packagekit packagekit-tools
0 upgraded, 0 newly installed, 10 to remove and 27 not upgraded.
After this operation, 10.8 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 129593 files and directories currently installed.)
Removing byobu (5.133-0ubuntu1) ...
Removing ifupdown (0.8.35ubuntu1) ...
Removing netplan.io (0.104-0ubuntu2~20.04.2) ...
dpkg: warning: while removing netplan.io, directory '/usr/share/netplan/netplan/cli/commands' not empty so not removed
dpkg: warning: while removing netplan.io, directory '/etc/netplan' not empty so not removed
Removing isc-dhcp-client (4.4.1-2.1ubuntu5.20.04.4) ...
Removing iproute2 (5.5.0-1ubuntu1) ...
Removing iputils-ping (3:20190709-3) ...
Removing packagekit-tools (1.1.13-2ubuntu1.1) ...
Removing packagekit (1.1.13-2ubuntu1.1) ...
Removing libgstreamer1.0-0:amd64 (1.16.3-0ubuntu1.1) ...
Removing libcap2-bin (1:2.32-1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for dbus (1.12.16-2ubuntu2.3) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
Installing Wazuh Dashboard as per the documentation checking if all installations are necessary
root@ubuntu20:/home/vagrant# apt-get remove -y curl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  curl pollinate ubuntu-server
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
After this operation, 559 kB disk space will be freed.
(Reading database ... 111809 files and directories currently installed.)
Removing ubuntu-server (1.450.2) ...
Removing pollinate (4.33-3ubuntu1.20.04.1) ...
Removing curl (7.68.0-1ubuntu2.15) ...
Processing triggers for man-db (2.9.1-1) ...
root@ubuntu20:/home/vagrant# apt-get remove gnupg
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  isc-dhcp-common libatm1 libdns-export1109 libisc-export1105 libnetplan0 libnspr4 libnss3 libpam-cap
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  gnupg libblockdev-crypto2 libvolume-key1
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
After this operation, 684 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 111088 files and directories currently installed.)
Removing libblockdev-crypto2:amd64 (2.23-2ubuntu3) ...
Removing libvolume-key1 (0.3.12-3.1) ...
Removing gnupg (2.2.19-3ubuntu2.2) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for install-info (6.7.0.dfsg.2-5) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
root@ubuntu20:/home/vagrant# apt-get remove apt-transport-https
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'apt-transport-https' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  isc-dhcp-common libatm1 libdns-export1109 libisc-export1105 libnetplan0 libnspr4 libnss3 libpam-cap
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@ubuntu20:/home/vagrant# curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH | gpg --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/wazuh.gpg --import && chmod 644 /usr/share/keyrings/wazuh.gpg
 
Command 'curl' not found, but can be installed with:

snap install curl  # version 7.87.0, or
apt  install curl  # version 7.68.0-1ubuntu2.15

See 'snap info curl' for additional versions.

gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
root@ubuntu20:/home/vagrant# apt-get install curl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  isc-dhcp-common libatm1 libdns-export1109 libisc-export1105 libnetplan0 libnspr4 libnss3 libpam-cap
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  curl
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 161 kB of archives.
After this operation, 413 kB of additional disk space will be used.
Ign:1 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 curl amd64 7.68.0-1ubuntu2.15
Get:1 http://security.ubuntu.com/ubuntu focal-updates/main amd64 curl amd64 7.68.0-1ubuntu2.15 [161 kB]
Fetched 161 kB in 27s (5,960 B/s)
Selecting previously unselected package curl.
(Reading database ... 111033 files and directories currently installed.)
Preparing to unpack .../curl_7.68.0-1ubuntu2.15_amd64.deb ...
Unpacking curl (7.68.0-1ubuntu2.15) ...
Setting up curl (7.68.0-1ubuntu2.15) ...
Processing triggers for man-db (2.9.1-1) ...
root@ubuntu20:/home/vagrant# curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH | gpg --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/wazuh.gpg --import && chmod 644 /usr/share/keyrings/wazuh.gpg
bash: /usr/bin/gpg: No such file or directory
(23) Failed writing body
root@ubuntu20:/home/vagrant# apt-get install curl gnupg
Reading package lists... Done
Building dependency tree       
Reading state information... Done
curl is already the newest version (7.68.0-1ubuntu2.15).
The following packages were automatically installed and are no longer required:
  isc-dhcp-common libassuan0:i386 libatasmart4 libatm1 libblockdev-fs2 libblockdev-loop2 libblockdev-part-err2 libblockdev-part2 libblockdev-swap2 libblockdev-utils2 libblockdev2 libdns-export1109
  libisc-export1105 libmbim-glib4 libmbim-proxy libmm-glib0 libnetplan0 libnspr4 libnss3 libpam-cap libparted-fs-resize0 libqmi-glib5 libqmi-proxy libreadline8:i386 libsqlite3-0:i386 libudisks2-0 libxmlb2
  modemmanager udisks2 usb-modeswitch usb-modeswitch-data
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  gpg gpg-wks-client gpg-wks-server
Suggested packages:
  parcimonie xloadimage
The following NEW packages will be installed:
  gnupg gpg gpg-wks-client gpg-wks-server
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/929 kB of archives.
After this operation, 2,128 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package gpg.
(Reading database ... 111111 files and directories currently installed.)
Preparing to unpack .../gpg_2.2.19-3ubuntu2.2_amd64.deb ...
Unpacking gpg (2.2.19-3ubuntu2.2) ...
Selecting previously unselected package gpg-wks-client.
Preparing to unpack .../gpg-wks-client_2.2.19-3ubuntu2.2_amd64.deb ...
Unpacking gpg-wks-client (2.2.19-3ubuntu2.2) ...
Selecting previously unselected package gpg-wks-server.
Preparing to unpack .../gpg-wks-server_2.2.19-3ubuntu2.2_amd64.deb ...
Unpacking gpg-wks-server (2.2.19-3ubuntu2.2) ...
Selecting previously unselected package gnupg.
Preparing to unpack .../gnupg_2.2.19-3ubuntu2.2_all.deb ...
Unpacking gnupg (2.2.19-3ubuntu2.2) ...
Setting up gpg (2.2.19-3ubuntu2.2) ...
Setting up gpg-wks-client (2.2.19-3ubuntu2.2) ...
Setting up gpg-wks-server (2.2.19-3ubuntu2.2) ...
Setting up gnupg (2.2.19-3ubuntu2.2) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for install-info (6.7.0.dfsg.2-5) ...
root@ubuntu20:/home/vagrant# curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH | gpg --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/wazuh.gpg --import && chmod 644 /usr/share/keyrings/wazuh.gpg
gpg: key 96B3EE5F29111145: "Wazuh.com (Wazuh Signing Key) <[email protected]>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
root@ubuntu20:/home/vagrant# echo "deb [signed-by=/usr/share/keyrings/wazuh.gpg] https://packages.wazuh.com/4.x/apt/ stable main" | tee -a /etc/apt/sources.list.d/wazuh.list
deb [signed-by=/usr/share/keyrings/wazuh.gpg] https://packages.wazuh.com/4.x/apt/ stable main
root@ubuntu20:/home/vagrant# apt-get update
Get:1 https://packages.wazuh.com/4.x/apt stable InRelease [17.3 kB]
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]                                       
Hit:3 http://us.archive.ubuntu.com/ubuntu focal InRelease                              
Get:4 https://packages.wazuh.com/4.x/apt stable/main i386 Packages [8,116 B]           
Get:5 https://packages.wazuh.com/4.x/apt stable/main amd64 Packages [25.9 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:7 http://security.ubuntu.com/ubuntu focal-security/main i386 Packages [559 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:9 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [2,007 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [788 kB]       
Get:11 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [327 kB]
Get:12 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [12.2 kB]      
Get:13 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [1,508 kB] 
Get:14 http://security.ubuntu.com/ubuntu focal-security/restricted Translation-en [213 kB]
Get:15 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [797 kB]    
Get:16 http://security.ubuntu.com/ubuntu focal-security/universe i386 Packages [581 kB]
Get:17 http://security.ubuntu.com/ubuntu focal-security/universe Translation-en [156 kB]          
Get:18 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [17.0 kB]    
Get:19 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [22.9 kB]                           
Get:20 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [2,384 kB]                         
Get:21 http://security.ubuntu.com/ubuntu focal-security/multiverse Translation-en [5,488 B]
Get:22 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 c-n-f Metadata [528 B]      
Get:23 http://us.archive.ubuntu.com/ubuntu focal-updates/main Translation-en [409 kB]
Get:24 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [16.3 kB]
Get:25 http://us.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [1,610 kB]
Get:26 http://us.archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [227 kB]
Get:27 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1,026 kB]
Get:28 http://us.archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages [711 kB]
Get:29 http://us.archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [239 kB]                                                                                                                         
Get:30 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [23.6 kB]
Fetched 14.0 MB in 14s (1,024 kB/s)         
Reading package lists... Done
root@ubuntu20:/home/vagrant# apt-get install -y wazuh-dashboard
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  isc-dhcp-common libassuan0:i386 libatasmart4 libatm1 libblockdev-fs2 libblockdev-loop2 libblockdev-part-err2 libblockdev-part2 libblockdev-swap2 libblockdev-utils2 libblockdev2 libdns-export1109
  libisc-export1105 libmbim-glib4 libmbim-proxy libmm-glib0 libnetplan0 libnspr4 libnss3 libparted-fs-resize0 libqmi-glib5 libqmi-proxy libreadline8:i386 libsqlite3-0:i386 libudisks2-0 libxmlb2 modemmanager
  udisks2 usb-modeswitch usb-modeswitch-data
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libcap2-bin
The following NEW packages will be installed:
  libcap2-bin wazuh-dashboard
0 upgraded, 2 newly installed, 0 to remove and 30 not upgraded.
Need to get 131 MB of archives.
After this operation, 635 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libcap2-bin amd64 1:2.32-1 [26.2 kB]
Get:2 https://packages.wazuh.com/4.x/apt stable/main amd64 wazuh-dashboard amd64 4.3.10-1 [130 MB]                                                                                                                
Fetched 131 MB in 47s (2,802 kB/s)                                                                                                                                                                                
Selecting previously unselected package libcap2-bin.
(Reading database ... 111169 files and directories currently installed.)
Preparing to unpack .../libcap2-bin_1%3a2.32-1_amd64.deb ...
Unpacking libcap2-bin (1:2.32-1) ...
Selecting previously unselected package wazuh-dashboard.
Preparing to unpack .../wazuh-dashboard_4.3.10-1_amd64.deb ...
Creating wazuh-dashboard group... OK
Creating wazuh-dashboard user... OK
Unpacking wazuh-dashboard (4.3.10-1) ...
Setting up libcap2-bin (1:2.32-1) ...
Setting up wazuh-dashboard (4.3.10-1) ...
Processing triggers for man-db (2.9.1-1) ...
root@ubuntu20:/home/vagrant# 

As a summary, the external installation of the package dependencies is unnecessary, as apt-get installs them when installing the package. The installation of apt-transport-https also seems unnecessary. Finally, the documentation is not the same format as with the agent, as in the agent, the necessary commands to add the repository aren't explicitely installed.

:yellow_circle: Wazuh indexer

Try removing all DEB package dependencies
root@ubuntu20:/home/vagrant# apt-get remove -y debconf
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:
 libxml2 : Depends: libicu66 (>= 66.1-1~) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
root@ubuntu20:/home/vagrant# apt-get remove -y adduser
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  laptop-detect libatasmart4 libblockdev-fs2 libblockdev-loop2 libblockdev-part-err2 libblockdev-part2 libblockdev-swap2 libblockdev-utils2 libblockdev2 libestr0 libfastjson4 libfwupdplugin5 libmbim-glib4
  libmbim-proxy libmm-glib0 libnetplan0 libnspr4 libnss3 libparted-fs-resize0 libqmi-glib5 libqmi-proxy libudisks2-0 libwrap0 libxmlb2 python3-netifaces usb-modeswitch usb-modeswitch-data
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  anacron
Suggested packages:
  default-mta | mail-transport-agent rsyslog | system-log-daemon
Recommended packages:
  cron | cron-daemon
The following packages will be REMOVED:
  accountsservice adduser apport apt apt-utils cloud-initramfs-copymods cloud-initramfs-dyn-netconf cron cryptsetup-initramfs dbus dbus-user-session dconf-gsettings-backend dconf-service dirmngr
  friendly-recovery fuse fwupd glib-networking gnupg gpg-wks-client gsettings-desktop-schemas ifupdown init initramfs-tools initramfs-tools-core kpartx landscape-common language-selector-common libappstream4
  libblockdev-crypto2 libnss-systemd libpam-systemd libsoup2.4-1 libtss2-esys0 libvolume-key1 mdadm mlocate modemmanager multipath-tools netplan.io networkd-dispatcher ntfs-3g open-iscsi openssh-client
  openssh-server openssh-sftp-server overlayroot packagekit packagekit-tools plymouth plymouth-theme-ubuntu-text policykit-1 pollinate python3-apport python3-keyring python3-launchpadlib python3-secretstorage
  rsyslog sg3-utils-udev snapd software-properties-common ssh-import-id systemd systemd-sysv systemd-timesyncd tasksel tasksel-data tcpdump tpm-udev ubuntu-minimal ubuntu-server ubuntu-standard udev udisks2
  update-notifier-common uuid-runtime virtualbox-guest-utils
The following NEW packages will be installed:
  anacron
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) init systemd-sysv (due to init)
0 upgraded, 1 newly installed, 77 to remove and 0 not upgraded.
E: Essential packages were removed and -y was used without --allow-remove-essential.
root@ubuntu20:/home/vagrant# apt-get remove -y procps
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libwrap0 openssh-sftp-server ssh-import-id
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  openssh-server procps run-one ubuntu-minimal
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
After this operation, 2,460 kB disk space will be freed.
(Reading database ... 111809 files and directories currently installed.)
Removing openssh-server (1:8.2p1-4ubuntu0.5) ...
Removing ubuntu-minimal (1.450.2) ...
Removing run-one (1.17-0ubuntu1) ...
Removing procps (2:3.3.16-1ubuntu2.3) ...
Processing triggers for man-db (2.9.1-1) ...
root@ubuntu20:/home/vagrant# 
Install the Wazuh indexer as per the documentation
root@ubuntu20:/home/vagrant# curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH | gpg --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/wazuh.gpg --import && chmod 644 /usr/share/keyrings/wazuh.gpg
gpg: keyring '/usr/share/keyrings/wazuh.gpg' created
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key 96B3EE5F29111145: public key "Wazuh.com (Wazuh Signing Key) <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1
root@ubuntu20:/home/vagrant# echo "deb [signed-by=/usr/share/keyrings/wazuh.gpg] https://packages.wazuh.com/4.x/apt/ stable main" | tee -a /etc/apt/sources.list.d/wazuh.list
deb [signed-by=/usr/share/keyrings/wazuh.gpg] https://packages.wazuh.com/4.x/apt/ stable main
root@ubuntu20:/home/vagrant# apt-get update
Get:1 https://packages.wazuh.com/4.x/apt stable InRelease [17.3 kB]
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]                                                                  
Hit:3 http://us.archive.ubuntu.com/ubuntu focal InRelease                                               
Get:4 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:5 http://security.ubuntu.com/ubuntu focal-security/main i386 Packages [559 kB]        
Get:6 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB] 
Get:7 https://packages.wazuh.com/4.x/apt stable/main i386 Packages [8,116 B]            
Get:8 http://us.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [788 kB]              
Get:9 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [2,007 kB]
Get:10 https://packages.wazuh.com/4.x/apt stable/main amd64 Packages [25.9 kB]           
Get:11 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [327 kB]                 
Get:12 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [12.2 kB]    
Get:13 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [1,508 kB]      
Get:14 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [2,384 kB]           
Get:15 http://security.ubuntu.com/ubuntu focal-security/restricted Translation-en [213 kB]    
Get:16 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [797 kB]           
Get:17 http://security.ubuntu.com/ubuntu focal-security/universe i386 Packages [581 kB]            
Get:18 http://security.ubuntu.com/ubuntu focal-security/universe Translation-en [156 kB]       
Get:19 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [17.0 kB]      
Get:20 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [22.9 kB]                           
Get:21 http://us.archive.ubuntu.com/ubuntu focal-updates/main Translation-en [409 kB]                          
Get:22 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [16.3 kB]   
Get:23 http://us.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [1,610 kB]   
Get:24 http://us.archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [227 kB]
Get:25 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1,026 kB]   
Get:26 http://us.archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages [711 kB]
Get:27 http://security.ubuntu.com/ubuntu focal-security/multiverse Translation-en [5,488 B]               
Get:28 http://us.archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [239 kB]                             
Get:29 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 c-n-f Metadata [528 B]                       
Get:30 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [23.6 kB]     
Fetched 14.0 MB in 4s (3,195 kB/s)                            
Reading package lists... Done
root@ubuntu20:/home/vagrant# apt-get -y install wazuh-indexer
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libassuan0:i386 libatasmart4 libblockdev-fs2 libblockdev-loop2 libblockdev-part-err2 libblockdev-part2 libblockdev-swap2 libblockdev-utils2 libblockdev2 libmbim-glib4 libmbim-proxy libmm-glib0 libnspr4
  libnss3 libparted-fs-resize0 libqmi-glib5 libqmi-proxy libreadline8:i386 libsqlite3-0:i386 libudisks2-0 libwrap0 libxmlb2 modemmanager openssh-sftp-server ssh-import-id udisks2 usb-modeswitch
  usb-modeswitch-data
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  procps
The following NEW packages will be installed:
  procps wazuh-indexer
0 upgraded, 2 newly installed, 0 to remove and 30 not upgraded.
Need to get 357 MB/357 MB of archives.
After this operation, 640 MB of additional disk space will be used.
Get:1 https://packages.wazuh.com/4.x/apt stable/main amd64 wazuh-indexer amd64 4.3.10-1 [357 MB]
Fetched 357 MB in 1min 19s (4,535 kB/s)                                                                                                                                                                           
Selecting previously unselected package procps.
(Reading database ... 111776 files and directories currently installed.)
Preparing to unpack .../procps_2%3a3.3.16-1ubuntu2.3_amd64.deb ...
Unpacking procps (2:3.3.16-1ubuntu2.3) ...
Selecting previously unselected package wazuh-indexer.
Preparing to unpack .../wazuh-indexer_4.3.10-1_amd64.deb ...
Creating wazuh-indexer group... OK
Creating wazuh-indexer user... OK
Unpacking wazuh-indexer (4.3.10-1) ...
Setting up procps (2:3.3.16-1ubuntu2.3) ...
update-alternatives: using /usr/bin/w.procps to provide /usr/bin/w (w) in auto mode
Setting up wazuh-indexer (4.3.10-1) ...
Created opensearch keystore in /etc/wazuh-indexer/opensearch.keystore
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for systemd (245.4-4ubuntu3.19) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
root@ubuntu20:/home/vagrant# systemctl daemon-reload
root@ubuntu20:/home/vagrant# systemctl enable wazuh-indexer
Synchronizing state of wazuh-indexer.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable wazuh-indexer
Created symlink /etc/systemd/system/multi-user.target.wants/wazuh-indexer.service → /lib/systemd/system/wazuh-indexer.service.
root@ubuntu20:/home/vagrant# systemctl start wazuh-indexer
Job for wazuh-indexer.service failed because the control process exited with error code.
See "systemctl status wazuh-indexer.service" and "journalctl -xe" for details.
root@ubuntu20:/home/vagrant# systemctl status wazuh-indexer
● wazuh-indexer.service - Wazuh-indexer
     Loaded: loaded (/lib/systemd/system/wazuh-indexer.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2023-02-21 13:06:59 UTC; 8s ago
       Docs: https://documentation.wazuh.com
    Process: 6930 ExecStart=/usr/share/wazuh-indexer/bin/systemd-entrypoint -p ${PID_DIR}/wazuh-indexer.pid --quiet (code=exited, status=1/FAILURE)
   Main PID: 6930 (code=exited, status=1/FAILURE)

Feb 21 13:06:59 ubuntu20 systemd-entrypoint[6930]:         at org.opensearch.bootstrap.OpenSearch.execute(OpenSearch.java:169)
Feb 21 13:06:59 ubuntu20 systemd-entrypoint[6930]:         at org.opensearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:100)
Feb 21 13:06:59 ubuntu20 systemd-entrypoint[6930]:         at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:138)
Feb 21 13:06:59 ubuntu20 systemd-entrypoint[6930]:         at org.opensearch.cli.Command.main(Command.java:101)
Feb 21 13:06:59 ubuntu20 systemd-entrypoint[6930]:         at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:135)
Feb 21 13:06:59 ubuntu20 systemd-entrypoint[6930]:         at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:101)
Feb 21 13:06:59 ubuntu20 systemd-entrypoint[6930]: For complete error details, refer to the log at /var/log/wazuh-indexer/wazuh-cluster.log
Feb 21 13:06:59 ubuntu20 systemd[1]: wazuh-indexer.service: Main process exited, code=exited, status=1/FAILURE
Feb 21 13:06:59 ubuntu20 systemd[1]: wazuh-indexer.service: Failed with result 'exit-code'.
Feb 21 13:06:59 ubuntu20 systemd[1]: Failed to start Wazuh-indexer.
root@ubuntu20:/home/vagrant# 

The same as with the Wazuh dashboard, the explicit installation of the dependencies doesn't seem necessary

:green_circle: Wazuh manager

Try removing all Wazuh manager dependencies
root@ubuntu20:/home/vagrant# apt-get remove lsb-release
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libassuan0:i386 libatasmart4 libblockdev-fs2 libblockdev-loop2 libblockdev-part-err2 libblockdev-part2 libblockdev-swap2 libblockdev-utils2 libblockdev2 libdw1 libmbim-glib4 libmbim-proxy libmm-glib0
  libnspr4 libnss3 libparted-fs-resize0 libqmi-glib5 libqmi-proxy libreadline8:i386 libsqlite3-0:i386 libudisks2-0 libwrap0 libxmlb2 modemmanager openssh-sftp-server udisks2 usb-modeswitch usb-modeswitch-data
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  apport command-not-found landscape-common linux-tools-5.4.0-42 linux-tools-5.4.0-42-generic linux-tools-common lsb-release open-vm-tools pastebinit plymouth-theme-ubuntu-text python3-apport
  python3-commandnotfound python3-distro python3-distupgrade python3-launchpadlib python3-lazr.restfulclient python3-update-manager ssh-import-id ubuntu-release-upgrader-core unattended-upgrades
  update-manager-core update-notifier-common
0 upgraded, 0 newly installed, 22 to remove and 27 not upgraded.
After this operation, 35.6 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 111844 files and directories currently installed.)
Removing apport (2.20.11-0ubuntu27.25) ...
Removing command-not-found (20.04.6) ...
Removing landscape-common (19.12-0ubuntu4.3) ...
Removing linux-tools-5.4.0-42-generic (5.4.0-42.46) ...
Removing linux-tools-5.4.0-42 (5.4.0-42.46) ...
Removing linux-tools-common (5.4.0-137.154) ...
Removing update-notifier-common (3.192.30.16) ...
Removing update-manager-core (1:20.04.10.11) ...
dpkg: warning: while removing update-manager-core, directory '/var/lib/update-manager' not empty so not removed
Removing ubuntu-release-upgrader-core (1:20.04.39) ...
Removing python3-apport (2.20.11-0ubuntu27.25) ...
Removing open-vm-tools (2:11.3.0-2ubuntu0~ubuntu20.04.4) ...
Removing pastebinit (1.5.1-1) ...
Removing plymouth-theme-ubuntu-text (0.9.4git20200323-0ubuntu6.2) ...
update-initramfs: deferring update (trigger activated)
Removing python3-commandnotfound (20.04.6) ...
Removing ssh-import-id (5.10-0ubuntu1) ...
Removing python3-launchpadlib (1.10.13-1) ...
Removing python3-lazr.restfulclient (0.14.2-2build1) ...
Removing python3-distro (1.4.0-1) ...
Removing unattended-upgrades (2.3ubuntu0.3) ...
Removing python3-distupgrade (1:20.04.39) ...
Removing python3-update-manager (1:20.04.10.11) ...
Removing lsb-release (11.1.0ubuntu2) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for initramfs-tools (0.136ubuntu6.7) ...
update-initramfs: Generating /boot/initrd.img-5.4.0-137-generic
root@ubuntu20:/home/vagrant# apt-get remove adduser 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gpg-wks-server laptop-detect libassuan0:i386 libatasmart4 libblockdev-fs2 libblockdev-loop2 libblockdev-part-err2 libblockdev-part2 libblockdev-swap2 libblockdev-utils2 libblockdev2 libdw1 libestr0
  libfastjson4 libmbim-glib4 libmbim-proxy libmm-glib0 libnetplan0 libnspr4 libnss3 libparted-fs-resize0 libqmi-glib5 libqmi-proxy libreadline8:i386 libsqlite3-0:i386 libudisks2-0 libwrap0 libxmlb2
  python3-dbus python3-gi python3-netifaces usb-modeswitch usb-modeswitch-data
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  anacron
Suggested packages:
  default-mta | mail-transport-agent rsyslog | system-log-daemon
Recommended packages:
  cron | cron-daemon
The following packages will be REMOVED:
  accountsservice adduser apt apt-utils cloud-initramfs-copymods cloud-initramfs-dyn-netconf cron cryptsetup-initramfs dbus dbus-user-session dconf-gsettings-backend dconf-service dirmngr friendly-recovery
  fuse glib-networking gnupg gpg-wks-client gsettings-desktop-schemas ifupdown init initramfs-tools initramfs-tools-core kpartx language-selector-common libappstream4 libnss-systemd libpam-systemd libsoup2.4-1
  libtss2-esys0 mdadm mlocate modemmanager multipath-tools netplan.io networkd-dispatcher ntfs-3g open-iscsi openssh-client openssh-sftp-server overlayroot packagekit packagekit-tools plymouth policykit-1
  pollinate python3-keyring python3-secretstorage rsyslog sg3-utils-udev snapd systemd systemd-sysv systemd-timesyncd tasksel tasksel-data tcpdump tpm-udev ubuntu-standard udev udisks2 uuid-runtime
  virtualbox-guest-utils
The following NEW packages will be installed:
  anacron
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) init systemd-sysv (due to init)
0 upgraded, 1 newly installed, 63 to remove and 27 not upgraded.
Need to get 27.9 kB of archives.
After this operation, 242 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] 
Abort.
root@ubuntu20:/home/vagrant# apt-get remove debconf
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:
 libxml2 : Depends: libicu66 (>= 66.1-1~) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
root@ubuntu20:/home/vagrant# apt-get remove libc6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  amd64-microcode distro-info-data javascript-common laptop-detect libassuan0:i386 libjs-jquery libmagic-mgc libsensors-config libsqlite3-0:i386 ncurses-term ruby-minitest ruby-net-telnet ruby-power-assert
  ruby-test-unit ruby-xmlrpc usb-modeswitch-data wireless-regdb xkb-data
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  accountsservice adduser apparmor apt apt-utils at base-files base-passwd bash bc bcache-tools bind9-dnsutils bind9-host bind9-libs bolt bsdmainutils bsdutils btrfs-progs busybox-initramfs byobu bzip2
  ca-certificates cloud-guest-utils cloud-initramfs-copymods cloud-initramfs-dyn-netconf console-setup console-setup-linux coreutils cpio crda cron cryptsetup cryptsetup-bin cryptsetup-initramfs cryptsetup-run
  curl dash dbus dbus-user-session dconf-gsettings-backend dconf-service debconf debconf-i18n debianutils diffutils dirmngr distro-info dmeventd dmidecode dmsetup dosfstools dpkg e2fsprogs ed eject ethtool
  fdisk file findutils fonts-lato friendly-recovery ftp fuse gawk gdisk gettext-base gir1.2-glib-2.0 gir1.2-packagekitglib-1.0 git glib-networking glib-networking-services gnupg gnupg-utils gpg gpg-agent
  gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv grep groff-base grub-common grub-gfxpayload-lists grub-pc grub-pc-bin grub2-common gsettings-desktop-schemas gzip haveged hdparm hostname htop ifplugd
  ifupdown info init init-system-helpers initramfs-tools initramfs-tools-bin initramfs-tools-core install-info intel-microcode iproute2 iptables iputils-ping iputils-tracepath irqbalance isc-dhcp-client
  isc-dhcp-common iucode-tool iw kbd keyboard-configuration kmod kpartx language-pack-en language-pack-en-base language-pack-gnome-en language-pack-gnome-en-base language-selector-common less
  libaccountsservice0 libacl1 libaio1 libapparmor1 libappstream4 libapt-pkg6.0 libarchive13 libargon2-1 libasn1-8-heimdal libasound2 libassuan0 libatasmart4 libatm1 libattr1 libaudit1 libblkid1 libblockdev-fs2
  libblockdev-loop2 libblockdev-part-err2 libblockdev-part2 libblockdev-swap2 libblockdev-utils2 libblockdev2 libbrotli1 libbsd0 libbz2-1.0 libc-bin libc6 libcanberra0 libcap-ng0 libcap2 libcap2-bin libcbor0.6
  libcom-err2 libcrypt1 libcryptsetup12 libcurl3-gnutls libcurl4 libdaemon0 libdb5.3 libdbus-1-3 libdconf1 libdebconfclient0 libdevmapper-event1.02.1 libdevmapper1.02.1 libdns-export1109 libdrm2 libdw1
  libedit2 libefiboot1 libefivar1 libelf1 liberror-perl libestr0 libevent-2.1-7 libexpat1 libext2fs2 libfastjson4 libfdisk1 libffi7 libfido2-1 libfl2 libfreetype6 libfribidi0 libfuse2 libgcab-1.0-0 libgcc-s1
  libgcrypt20 libgdbm-compat4 libgdbm6 libgirepository-1.0-1 libglib2.0-0 libglib2.0-bin libgmp10 libgnutls30 libgpg-error0 libgpm2 libgssapi-krb5-2 libgssapi3-heimdal libgstreamer1.0-0 libgudev-1.0-0 libgusb2
  libhavege1 libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhogweed5 libhx509-5-heimdal libicu66 libidn2-0 libip4tc2 libip6tc2 libisc-export1105 libisns0 libjson-c4 libjson-glib-1.0-0
  libk5crypto3 libkeyutils1 libkmod2 libkrb5-26-heimdal libkrb5-3 libkrb5support0 libksba8 libldap-2.4-2 liblmdb0 liblocale-gettext-perl libltdl7 liblua5.2-0 liblvm2cmd2.03 liblz4-1 liblzma5 liblzo2-2
  libmagic1 libmaxminddb0 libmbim-glib4 libmbim-proxy libmm-glib0 libmnl0 libmount1 libmpdec2 libmpfr6 libmspack0 libncurses6 libncursesw6 libnetfilter-conntrack3 libnetplan0 libnettle7 libnewt0.52
  libnfnetlink0 libnftnl11 libnghttp2-14 libnl-3-200 libnl-genl-3-200 libnpth0 libnspr4 libnss-systemd libnss3 libntfs-3g883 libnuma1 libogg0 libp11-kit0 libpackagekit-glib2-18 libpam-cap libpam-modules
  libpam-modules-bin libpam-runtime libpam-systemd libpam0g libparted-fs-resize0 libparted2 libpcap0.8 libpci3 libpcre2-8-0 libpcre3 libperl5.30 libpipeline1 libplymouth5 libpng16-16 libpolkit-agent-1-0
  libpolkit-gobject-1-0 libpopt0 libprocps8 libproxy1v5 libpsl5 libpython3-stdlib libpython3.8 libpython3.8-minimal libpython3.8-stdlib libqmi-glib5 libqmi-proxy libreadline5 libreadline8 libreadline8:i386
  libroken18-heimdal librtmp1 libruby2.7 libsasl2-2 libsasl2-modules libsasl2-modules-db libseccomp2 libselinux1 libsemanage1 libsensors5 libsepol1 libsgutils2-2 libsigsegv2 libslang2 libsmartcols1
  libsmbios-c2 libsodium23 libsoup2.4-1 libsqlite3-0 libss2 libssh-4 libssl1.1 libstdc++6 libstemmer0d libsystemd0 libtasn1-6 libtcl8.6 libtdb1 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl
  libtinfo6 libtss2-esys0 libuchardet0 libudev1 libudisks2-0 libunistring2 libunwind8 liburcu6 libusb-1.0-0 libutempter0 libuuid1 libuv1 libvorbis0a libvorbisfile3 libwind0-heimdal libwrap0 libx11-6 libxau6
  libxcb1 libxdmcp6 libxext6 libxml2 libxmlb1 libxmlb2 libxmlsec1 libxmlsec1-openssl libxmuu1 libxslt1.1 libxtables12 libyaml-0-2 libzstd1 linux-base linux-cloud-tools-5.4.0-137
  linux-cloud-tools-5.4.0-137-generic linux-cloud-tools-5.4.0-42 linux-cloud-tools-5.4.0-42-generic linux-cloud-tools-common linux-cloud-tools-generic linux-cloud-tools-virtual linux-generic
  linux-headers-5.4.0-137 linux-headers-5.4.0-137-generic linux-headers-5.4.0-42 linux-headers-5.4.0-42-generic linux-headers-generic linux-image-5.4.0-137-generic linux-image-5.4.0-42-generic
  linux-image-generic linux-modules-extra-5.4.0-137-generic linux-modules-extra-5.4.0-42-generic locales login logrotate logsave lshw lsof ltrace lvm2 lz4 man-db mawk mdadm mlocate modemmanager mount mtr-tiny
  multipath-tools nano ncurses-bin netcat-openbsd netplan.io networkd-dispatcher ntfs-3g open-iscsi openssh-client openssh-sftp-server openssl os-prober overlayroot packagekit packagekit-tools parted passwd
  patch pciutils perl perl-base perl-modules-5.30 pinentry-curses plymouth policykit-1 pollinate popularity-contest procps psmisc python3 python3-apt python3-attr python3-automat python3-blinker
  python3-certifi python3-cffi-backend python3-chardet python3-click python3-colorama python3-configobj python3-constantly python3-cryptography python3-dbus python3-debconf python3-debian python3-distro-info
  python3-entrypoints python3-gdbm python3-gi python3-hamcrest python3-httplib2 python3-hyperlink python3-idna python3-incremental python3-jwt python3-keyring python3-lazr.uri python3-minimal python3-nacl
  python3-netifaces python3-newt python3-oauthlib python3-openssl python3-pexpect python3-pkg-resources python3-problem-report python3-ptyprocess python3-pyasn1 python3-pyasn1-modules python3-pymacaroons
  python3-requests python3-requests-unixsocket python3-secretstorage python3-service-identity python3-simplejson python3-six python3-systemd python3-twisted python3-twisted-bin python3-urllib3 python3-wadllib
  python3-yaml python3-zope.interface python3.8 python3.8-minimal rake readline-common rsync rsyslog ruby ruby2.7 rubygems-integration sbsigntool screen secureboot-db sed sg3-utils sg3-utils-udev
  shared-mime-info snapd sosreport squashfs-tools strace sudo sysstat systemd systemd-sysv systemd-timesyncd sysvinit-utils tar tasksel tasksel-data tcpdump telnet thin-provisioning-tools time tmux tpm-udev
  tzdata ubuntu-advantage-tools ubuntu-standard ucf udev udisks2 ufw unzip usb-modeswitch usbutils util-linux uuid-runtime vim vim-common vim-nox vim-tiny virtualbox-guest-utils wget whiptail xauth
  xdg-user-dirs xfsprogs xxd xz-utils zerofree zip zlib1g
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) gpgv (due to apt) libapt-pkg6.0 (due to apt) libc6 (due to apt) libgcc-s1 (due to apt) libgnutls30 (due to apt) libseccomp2 (due to apt) libstdc++6 (due to apt)
  libsystemd0 (due to apt) base-files libcrypt1 (due to base-files) base-passwd libdebconfclient0 (due to base-passwd) bash libtinfo6 (due to bash) debianutils (due to bash) bsdutils coreutils
  libacl1 (due to coreutils) libattr1 (due to coreutils) libselinux1 (due to coreutils) dash dpkg (due to dash) debconf (due to dash) diffutils libbz2-1.0 (due to dpkg) liblzma5 (due to dpkg)
  libzstd1 (due to dpkg) zlib1g (due to dpkg) tar (due to dpkg) e2fsprogs libblkid1 (due to e2fsprogs) libcom-err2 (due to e2fsprogs) libext2fs2 (due to e2fsprogs) libss2 (due to e2fsprogs)
  libuuid1 (due to e2fsprogs) logsave (due to e2fsprogs) fdisk libfdisk1 (due to fdisk) libmount1 (due to fdisk) libncursesw6 (due to fdisk) libsmartcols1 (due to fdisk) findutils grep libpcre3 (due to grep)
  install-info (due to grep) gzip hostname init systemd-sysv (due to init) init-system-helpers (due to init) perl-base (due to init-system-helpers) libc-bin login libaudit1 (due to login)
  libpam0g (due to login) libpam-runtime (due to login) libpam-modules (due to login) mount util-linux (due to mount) ncurses-bin sed sysvinit-utils libcap-ng0 (due to util-linux) libudev1 (due to util-linux)
0 upgraded, 0 newly installed, 537 to remove and 3 not upgraded.
After this operation, 1,344 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] 
Abort.
root@ubuntu20:/home/vagrant# 
Install the Wazuh manager according to the documentation ``` root@ubuntu20:/home/vagrant# apt-get update Hit:1 https://packages.wazuh.com/4.x/apt stable InRelease Hit:2 http://us.archive.ubuntu.com/ubuntu focal InRelease Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB] Hit:4 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease Get:5 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB] Fetched 222 kB in 1s (160 kB/s) Reading package lists... Done root@ubuntu20:/home/vagrant# apt-get -y install wazuh-manager Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libassuan0:i386 libatasmart4 libblockdev-fs2 libblockdev-loop2 libblockdev-part-err2 libblockdev-part2 libblockdev-swap2 libblockdev-utils2 libblockdev2 libdw1 libmbim-glib4 libmbim-proxy libmm-glib0 libnspr4 libnss3 libparted-fs-resize0 libqmi-glib5 libqmi-proxy libreadline8:i386 libsqlite3-0:i386 libudisks2-0 libwrap0 libxmlb2 modemmanager openssh-sftp-server udisks2 usb-modeswitch usb-modeswitch-data Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: lsb-release Suggested packages: expect The following NEW packages will be installed: lsb-release wazuh-manager 0 upgraded, 2 newly installed, 0 to remove and 27 not upgraded. Need to get 120 MB of archives. After this operation, 460 MB of additional disk space will be used. Get:1 https://packages.wazuh.com/4.x/apt stable/main amd64 wazuh-manager amd64 4.3.10-1 [120 MB] Get:2 http://us.archive.ubuntu.com/ubuntu focal/main amd64 lsb-release all 11.1.0ubuntu2 [10.6 kB] Fetched 120 MB in 58s (2,078 kB/s) Selecting previously unselected package lsb-release. (Reading database ... 110973 files and directories currently installed.) Preparing to unpack .../lsb-release_11.1.0ubuntu2_all.deb ... Unpacking lsb-release (11.1.0ubuntu2) ... Selecting previously unselected package wazuh-manager. Preparing to unpack .../wazuh-manager_4.3.10-1_amd64.deb ... Unpacking wazuh-manager (4.3.10-1) ... Setting up lsb-release (11.1.0ubuntu2) ... Setting up wazuh-manager (4.3.10-1) ... Processing triggers for man-db (2.9.1-1) ... Processing triggers for systemd (245.4-4ubuntu3.19) ... root@ubuntu20:/home/vagrant# systemctl daemon-reload root@ubuntu20:/home/vagrant# systemctl enable wazuh-manager Synchronizing state of wazuh-manager.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable wazuh-manager Created symlink /etc/systemd/system/multi-user.target.wants/wazuh-manager.service → /lib/systemd/system/wazuh-manager.service. root@ubuntu20:/home/vagrant# systemctl start wazuh-manager root@ubuntu20:/home/vagrant# systemctl status wazuh-manager ● wazuh-manager.service - Wazuh manager Loaded: loaded (/lib/systemd/system/wazuh-manager.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2023-02-21 13:23:05 UTC; 6s ago Process: 56813 ExecStart=/usr/bin/env /var/ossec/bin/wazuh-control start (code=exited, status=0/SUCCESS) Tasks: 109 (limit: 4612) Memory: 372.5M CGroup: /system.slice/wazuh-manager.service ├─56886 /var/ossec/framework/python/bin/python3 /var/ossec/api/scripts/wazuh-apid.py ├─56926 /var/ossec/bin/wazuh-authd ├─56942 /var/ossec/bin/wazuh-db ├─56962 /var/ossec/bin/wazuh-execd ├─56974 /var/ossec/bin/wazuh-analysisd ├─57017 /var/ossec/bin/wazuh-syscheckd ├─57031 /var/ossec/bin/wazuh-remoted ├─57041 /var/ossec/bin/wazuh-logcollector ├─57070 /var/ossec/framework/python/bin/python3 /var/ossec/api/scripts/wazuh-apid.py ├─57073 /var/ossec/framework/python/bin/python3 /var/ossec/api/scripts/wazuh-apid.py ├─57085 /var/ossec/bin/wazuh-monitord └─57095 /var/ossec/bin/wazuh-modulesd

Feb 21 13:22:59 ubuntu20 env[56813]: Started wazuh-db... Feb 21 13:22:59 ubuntu20 env[56813]: Started wazuh-execd... Feb 21 13:23:00 ubuntu20 env[56813]: Started wazuh-analysisd... Feb 21 13:23:01 ubuntu20 env[56813]: Started wazuh-syscheckd... Feb 21 13:23:01 ubuntu20 env[56813]: Started wazuh-remoted... Feb 21 13:23:02 ubuntu20 env[56813]: Started wazuh-logcollector... Feb 21 13:23:02 ubuntu20 env[56813]: Started wazuh-monitord... Feb 21 13:23:03 ubuntu20 env[56813]: Started wazuh-modulesd... Feb 21 13:23:05 ubuntu20 env[56813]: Completed. Feb 21 13:23:05 ubuntu20 systemd[1]: Started Wazuh manager. root@ubuntu20:/home/vagrant#

</details>

In the case of the Wazuh manager, the dependencies aren't installed explicitely, only `gnupg` and `apt-transport-https`, needed for the installation process.

verdx avatar Feb 21 '23 13:02 verdx

Tests RPM systems

:green_circle: Wazuh agent

In the case of the Wazuh agent for RPM systems, the only installation dependency is package coreutils, which can not be removed:

Try removing all dependencies
[root@centos7 vagrant]# yum remove -y coreutils
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package coreutils.x86_64 0:8.22-24.el7_9.2 will be erased
--> Processing Dependency: coreutils for package: open-vm-tools-11.0.5-3.el7_9.4.x86_64
--> Processing Dependency: coreutils for package: rpm-4.11.3-48.el7_9.x86_64
--> Processing Dependency: coreutils >= 5.92 for package: logrotate-3.8.6-19.el7.x86_64
--> Processing Dependency: coreutils for package: dracut-033-572.el7.x86_64
--> Processing Dependency: coreutils for package: 1:openssl-1.0.2k-25.el7_9.x86_64
--> Processing Dependency: coreutils for package: policycoreutils-2.5-34.el7.x86_64
--> Processing Dependency: coreutils for package: initscripts-9.49.53-1.el7_9.1.x86_64
--> Processing Dependency: coreutils for package: initscripts-9.49.53-1.el7_9.1.x86_64
--> Processing Dependency: coreutils for package: gzip-1.5-11.el7_9.x86_64
--> Processing Dependency: coreutils for package: rpcbind-0.2.0-49.el7.x86_64
--> Processing Dependency: coreutils for package: rpcbind-0.2.0-49.el7.x86_64
--> Processing Dependency: coreutils for package: os-prober-1.58-9.el7.x86_64
--> Processing Dependency: coreutils for package: wazuh-agent-4.3.10-1.x86_64
--> Processing Dependency: coreutils for package: man-db-2.6.3-11.el7.x86_64
--> Processing Dependency: coreutils for package: krb5-libs-1.15.1-55.el7_9.x86_64
--> Processing Dependency: coreutils for package: 12:dhclient-4.2.5-83.el7.centos.1.x86_64
--> Processing Dependency: coreutils for package: audit-2.8.5-4.el7.x86_64
--> Processing Dependency: coreutils for package: audit-2.8.5-4.el7.x86_64
--> Processing Dependency: fileutils for package: 1:nfs-utils-1.3.0-0.68.el7.2.x86_64
--> Processing Dependency: sh-utils for package: 1:nfs-utils-1.3.0-0.68.el7.2.x86_64
--> Processing Dependency: textutils for package: 1:nfs-utils-1.3.0-0.68.el7.2.x86_64
--> Running transaction check
---> Package audit.x86_64 0:2.8.5-4.el7 will be erased
---> Package dhclient.x86_64 12:4.2.5-83.el7.centos.1 will be erased
---> Package dracut.x86_64 0:033-572.el7 will be erased
--> Processing Dependency: dracut for package: kmod-20-28.el7.x86_64
---> Package gzip.x86_64 0:1.5-11.el7_9 will be erased
--> Processing Dependency: gzip for package: cracklib-2.9.0-11.el7.x86_64
---> Package initscripts.x86_64 0:9.49.53-1.el7_9.1 will be erased
--> Processing Dependency: initscripts >= 5.86-1 for package: kbd-1.15.5-16.el7_9.x86_64
---> Package krb5-libs.x86_64 0:1.15.1-55.el7_9 will be erased
--> Processing Dependency: krb5-libs >= 1.15.1 for package: samba-client-libs-4.10.16-20.el7_9.x86_64
--> Processing Dependency: krb5-libs >= 1.15 for package: gssproxy-0.7.0-30.el7_9.x86_64
--> Processing Dependency: libgssapi_krb5.so.2()(64bit) for package: openssh-server-7.4p1-22.el7_9.x86_64
--> Processing Dependency: libgssapi_krb5.so.2()(64bit) for package: gssproxy-0.7.0-30.el7_9.x86_64
--> Processing Dependency: libgssapi_krb5.so.2()(64bit) for package: libtirpc-0.2.4-0.16.el7.x86_64
--> Processing Dependency: libgssapi_krb5.so.2()(64bit) for package: cyrus-sasl-lib-2.1.26-24.el7_9.x86_64
--> Processing Dependency: libgssapi_krb5.so.2()(64bit) for package: openssh-clients-7.4p1-22.el7_9.x86_64
--> Processing Dependency: libgssapi_krb5.so.2()(64bit) for package: 1:cups-libs-1.6.3-51.el7.x86_64
--> Processing Dependency: libgssapi_krb5.so.2()(64bit) for package: libcurl-7.29.0-59.el7_9.1.x86_64
--> Processing Dependency: libgssapi_krb5.so.2()(64bit) for package: 1:openssl-libs-1.0.2k-25.el7_9.x86_64
--> Processing Dependency: libgssapi_krb5.so.2()(64bit) for package: samba-client-libs-4.10.16-20.el7_9.x86_64
--> Processing Dependency: libgssapi_krb5.so.2()(64bit) for package: 32:bind-export-libs-9.11.4-26.P2.el7_9.13.x86_64
--> Processing Dependency: libgssapi_krb5.so.2()(64bit) for package: samba-common-libs-4.10.16-20.el7_9.x86_64
--> Processing Dependency: libgssapi_krb5.so.2()(64bit) for package: samba-libs-4.10.16-20.el7_9.x86_64
--> Processing Dependency: libgssapi_krb5.so.2(gssapi_krb5_2_MIT)(64bit) for package: openssh-server-7.4p1-22.el7_9.x86_64
--> Processing Dependency: libgssapi_krb5.so.2(gssapi_krb5_2_MIT)(64bit) for package: gssproxy-0.7.0-30.el7_9.x86_64
--> Processing Dependency: libgssapi_krb5.so.2(gssapi_krb5_2_MIT)(64bit) for package: openssh-clients-7.4p1-22.el7_9.x86_64
--> Processing Dependency: libgssapi_krb5.so.2(gssapi_krb5_2_MIT)(64bit) for package: 1:cups-libs-1.6.3-51.el7.x86_64
--> Processing Dependency: libgssapi_krb5.so.2(gssapi_krb5_2_MIT)(64bit) for package: libcurl-7.29.0-59.el7_9.1.x86_64
--> Processing Dependency: libgssapi_krb5.so.2(gssapi_krb5_2_MIT)(64bit) for package: samba-client-libs-4.10.16-20.el7_9.x86_64
--> Processing Dependency: libgssapi_krb5.so.2(gssapi_krb5_2_MIT)(64bit) for package: 32:bind-export-libs-9.11.4-26.P2.el7_9.13.x86_64
--> Processing Dependency: libgssapi_krb5.so.2(gssapi_krb5_2_MIT)(64bit) for package: libtirpc-0.2.4-0.16.el7.x86_64
--> Processing Dependency: libgssrpc.so.4()(64bit) for package: gssproxy-0.7.0-30.el7_9.x86_64
--> Processing Dependency: libgssrpc.so.4(gssrpc_4_MIT)(64bit) for package: gssproxy-0.7.0-30.el7_9.x86_64
--> Processing Dependency: libk5crypto.so.3()(64bit) for package: openssh-server-7.4p1-22.el7_9.x86_64
--> Processing Dependency: libk5crypto.so.3()(64bit) for package: gssproxy-0.7.0-30.el7_9.x86_64
--> Processing Dependency: libk5crypto.so.3()(64bit) for package: libtirpc-0.2.4-0.16.el7.x86_64
--> Processing Dependency: libk5crypto.so.3()(64bit) for package: cyrus-sasl-lib-2.1.26-24.el7_9.x86_64
--> Processing Dependency: libk5crypto.so.3()(64bit) for package: openssh-clients-7.4p1-22.el7_9.x86_64
--> Processing Dependency: libk5crypto.so.3()(64bit) for package: 1:cups-libs-1.6.3-51.el7.x86_64
--> Processing Dependency: libk5crypto.so.3()(64bit) for package: libcurl-7.29.0-59.el7_9.1.x86_64
--> Processing Dependency: libk5crypto.so.3()(64bit) for package: 1:openssl-libs-1.0.2k-25.el7_9.x86_64
--> Processing Dependency: libk5crypto.so.3()(64bit) for package: samba-client-libs-4.10.16-20.el7_9.x86_64
--> Processing Dependency: libk5crypto.so.3()(64bit) for package: 32:bind-export-libs-9.11.4-26.P2.el7_9.13.x86_64
--> Processing Dependency: libk5crypto.so.3()(64bit) for package: samba-common-libs-4.10.16-20.el7_9.x86_64
--> Processing Dependency: libk5crypto.so.3()(64bit) for package: samba-libs-4.10.16-20.el7_9.x86_64
--> Processing Dependency: libk5crypto.so.3(k5crypto_3_MIT)(64bit) for package: samba-client-libs-4.10.16-20.el7_9.x86_64
--> Processing Dependency: libk5crypto.so.3(k5crypto_3_MIT)(64bit) for package: 1:openssl-libs-1.0.2k-25.el7_9.x86_64
--> Processing Dependency: libk5crypto.so.3(k5crypto_3_MIT)(64bit) for package: gssproxy-0.7.0-30.el7_9.x86_64
--> Processing Dependency: libkrb5.so.3()(64bit) for package: openssh-server-7.4p1-22.el7_9.x86_64
--> Processing Dependency: libkrb5.so.3()(64bit) for package: gssproxy-0.7.0-30.el7_9.x86_64
--> Processing Dependency: libkrb5.so.3()(64bit) for package: libtirpc-0.2.4-0.16.el7.x86_64
--> Processing Dependency: libkrb5.so.3()(64bit) for package: cifs-utils-6.2-10.el7.x86_64
--> Processing Dependency: libkrb5.so.3()(64bit) for package: openssh-clients-7.4p1-22.el7_9.x86_64
--> Processing Dependency: libkrb5.so.3()(64bit) for package: 1:cups-libs-1.6.3-51.el7.x86_64
--> Processing Dependency: libkrb5.so.3()(64bit) for package: libcurl-7.29.0-59.el7_9.1.x86_64
--> Processing Dependency: libkrb5.so.3()(64bit) for package: 1:openssl-libs-1.0.2k-25.el7_9.x86_64
--> Processing Dependency: libkrb5.so.3()(64bit) for package: samba-client-libs-4.10.16-20.el7_9.x86_64
--> Processing Dependency: libkrb5.so.3()(64bit) for package: 32:bind-export-libs-9.11.4-26.P2.el7_9.13.x86_64
--> Processing Dependency: libkrb5.so.3()(64bit) for package: samba-common-libs-4.10.16-20.el7_9.x86_64
--> Processing Dependency: libkrb5.so.3()(64bit) for package: cyrus-sasl-lib-2.1.26-24.el7_9.x86_64
--> Processing Dependency: libkrb5.so.3()(64bit) for package: samba-libs-4.10.16-20.el7_9.x86_64
--> Processing Dependency: libkrb5.so.3(krb5_3_MIT)(64bit) for package: openssh-server-7.4p1-22.el7_9.x86_64
--> Processing Dependency: libkrb5.so.3(krb5_3_MIT)(64bit) for package: gssproxy-0.7.0-30.el7_9.x86_64
--> Processing Dependency: libkrb5.so.3(krb5_3_MIT)(64bit) for package: cifs-utils-6.2-10.el7.x86_64
--> Processing Dependency: libkrb5.so.3(krb5_3_MIT)(64bit) for package: 1:openssl-libs-1.0.2k-25.el7_9.x86_64
--> Processing Dependency: libkrb5.so.3(krb5_3_MIT)(64bit) for package: samba-client-libs-4.10.16-20.el7_9.x86_64
--> Processing Dependency: libkrb5.so.3(krb5_3_MIT)(64bit) for package: 32:bind-export-libs-9.11.4-26.P2.el7_9.13.x86_64
--> Processing Dependency: libkrb5support.so.0()(64bit) for package: cyrus-sasl-lib-2.1.26-24.el7_9.x86_64
---> Package logrotate.x86_64 0:3.8.6-19.el7 will be erased
--> Processing Dependency: logrotate >= 3.5.2 for package: rsyslog-8.24.0-57.el7_9.3.x86_64
---> Package man-db.x86_64 0:2.6.3-11.el7 will be erased
---> Package nfs-utils.x86_64 1:1.3.0-0.68.el7.2 will be erased
---> Package open-vm-tools.x86_64 0:11.0.5-3.el7_9.4 will be erased
---> Package openssl.x86_64 1:1.0.2k-25.el7_9 will be erased
---> Package os-prober.x86_64 0:1.58-9.el7 will be erased
--> Processing Dependency: os-prober for package: 1:grub2-tools-2.02-0.87.0.2.el7.centos.11.x86_64
--> Processing Dependency: os-prober for package: 1:grub2-tools-extra-2.02-0.87.0.2.el7.centos.11.x86_64
---> Package policycoreutils.x86_64 0:2.5-34.el7 will be erased
--> Processing Dependency: policycoreutils for package: authconfig-6.2.8-30.el7.x86_64
---> Package rpcbind.x86_64 0:0.2.0-49.el7 will be erased
--> Processing Dependency: rpcbind for package: 1:quota-4.01-19.el7.x86_64
---> Package rpm.x86_64 0:4.11.3-48.el7_9 will be erased
--> Processing Dependency: rpm >= 4.11.3-22 for package: yum-3.4.3-168.el7.centos.noarch
--> Processing Dependency: rpm = 4.11.3-48.el7_9 for package: rpm-libs-4.11.3-48.el7_9.x86_64
--> Processing Dependency: rpm = 4.11.3-48.el7_9 for package: rpm-python-4.11.3-48.el7_9.x86_64
---> Package wazuh-agent.x86_64 0:4.3.10-1 will be erased
--> Running transaction check
---> Package authconfig.x86_64 0:6.2.8-30.el7 will be erased
---> Package bind-export-libs.x86_64 32:9.11.4-26.P2.el7_9.13 will be erased
---> Package cifs-utils.x86_64 0:6.2-10.el7 will be erased
---> Package cracklib.x86_64 0:2.9.0-11.el7 will be erased
--> Processing Dependency: cracklib = 2.9.0-11.el7 for package: cracklib-dicts-2.9.0-11.el7.x86_64
--> Processing Dependency: libcrack.so.2()(64bit) for package: libpwquality-1.2.3-5.el7.x86_64
--> Processing Dependency: libcrack.so.2()(64bit) for package: pam-1.1.8-23.el7.x86_64
---> Package cups-libs.x86_64 1:1.6.3-51.el7 will be erased
---> Package cyrus-sasl-lib.x86_64 0:2.1.26-24.el7_9 will be erased
--> Processing Dependency: libsasl2.so.3()(64bit) for package: 2:postfix-2.10.1-9.el7.x86_64
--> Processing Dependency: libsasl2.so.3()(64bit) for package: openldap-2.4.44-25.el7_9.x86_64
---> Package grub2-tools.x86_64 1:2.02-0.87.0.2.el7.centos.11 will be erased
--> Processing Dependency: grub2-tools = 1:2.02-0.87.0.2.el7.centos.11 for package: 1:grub2-pc-2.02-0.87.0.2.el7.centos.11.x86_64
---> Package grub2-tools-extra.x86_64 1:2.02-0.87.0.2.el7.centos.11 will be erased
---> Package gssproxy.x86_64 0:0.7.0-30.el7_9 will be erased
---> Package kbd.x86_64 0:1.15.5-16.el7_9 will be erased
---> Package kmod.x86_64 0:20-28.el7 will be erased
--> Processing Dependency: kmod >= 18-4 for package: systemd-219-78.el7_9.7.x86_64
---> Package libcurl.x86_64 0:7.29.0-59.el7_9.1 will be erased
--> Processing Dependency: libcurl >= 7.29.0 for package: python-pycurl-7.19.0-19.el7.x86_64
--> Processing Dependency: libcurl = 7.29.0-59.el7_9.1 for package: curl-7.29.0-59.el7_9.1.x86_64
--> Processing Dependency: libcurl.so.4()(64bit) for package: gnupg2-2.0.22-5.el7_5.x86_64
--> Processing Dependency: libcurl.so.4()(64bit) for package: 1:NetworkManager-1.18.8-2.el7_9.x86_64
--> Processing Dependency: libcurl.so.4()(64bit) for package: python-pycurl-7.19.0-19.el7.x86_64
--> Processing Dependency: libcurl.so.4()(64bit) for package: curl-7.29.0-59.el7_9.1.x86_64
---> Package libtirpc.x86_64 0:0.2.4-0.16.el7 will be erased
---> Package openssh-clients.x86_64 0:7.4p1-22.el7_9 will be erased
---> Package openssh-server.x86_64 0:7.4p1-22.el7_9 will be erased
---> Package openssl-libs.x86_64 1:1.0.2k-25.el7_9 will be erased
--> Processing Dependency: libcrypto.so.10()(64bit) for package: openssh-7.4p1-22.el7_9.x86_64
--> Processing Dependency: libcrypto.so.10()(64bit) for package: xmlsec1-openssl-1.2.20-7.el7_4.x86_64
--> Processing Dependency: libcrypto.so.10()(64bit) for package: fipscheck-1.4.1-6.el7.x86_64
--> Processing Dependency: libcrypto.so.10()(64bit) for package: libevent-2.0.21-4.el7.x86_64
--> Processing Dependency: libcrypto.so.10()(64bit) for package: libssh2-1.8.0-4.el7.x86_64
--> Processing Dependency: libcrypto.so.10()(64bit) for package: python-libs-2.7.5-92.el7_9.x86_64
--> Processing Dependency: libcrypto.so.10()(64bit) for package: 1:wpa_supplicant-2.6-12.el7_9.2.x86_64
--> Processing Dependency: libcrypto.so.10()(64bit) for package: iputils-20160308-10.el7.x86_64
--> Processing Dependency: libcrypto.so.10()(64bit) for package: trousers-0.3.14-2.el7.x86_64
--> Processing Dependency: libcrypto.so.10()(64bit) for package: 1:mariadb-libs-5.5.68-1.el7.x86_64
--> Processing Dependency: libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) for package: xmlsec1-openssl-1.2.20-7.el7_4.x86_64
--> Processing Dependency: libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) for package: openssh-7.4p1-22.el7_9.x86_64
--> Processing Dependency: libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) for package: python-libs-2.7.5-92.el7_9.x86_64
--> Processing Dependency: libcrypto.so.10(OPENSSL_1.0.2)(64bit) for package: 1:wpa_supplicant-2.6-12.el7_9.2.x86_64
--> Processing Dependency: libcrypto.so.10(OPENSSL_1.0.2)(64bit) for package: openssh-7.4p1-22.el7_9.x86_64
--> Processing Dependency: libcrypto.so.10(OPENSSL_1.0.2)(64bit) for package: python-libs-2.7.5-92.el7_9.x86_64
--> Processing Dependency: libcrypto.so.10(libcrypto.so.10)(64bit) for package: xmlsec1-openssl-1.2.20-7.el7_4.x86_64
--> Processing Dependency: libcrypto.so.10(libcrypto.so.10)(64bit) for package: fipscheck-1.4.1-6.el7.x86_64
--> Processing Dependency: libcrypto.so.10(libcrypto.so.10)(64bit) for package: libevent-2.0.21-4.el7.x86_64
--> Processing Dependency: libcrypto.so.10(libcrypto.so.10)(64bit) for package: openssh-7.4p1-22.el7_9.x86_64
--> Processing Dependency: libcrypto.so.10(libcrypto.so.10)(64bit) for package: libssh2-1.8.0-4.el7.x86_64
--> Processing Dependency: libcrypto.so.10(libcrypto.so.10)(64bit) for package: iputils-20160308-10.el7.x86_64
--> Processing Dependency: libcrypto.so.10(libcrypto.so.10)(64bit) for package: 1:wpa_supplicant-2.6-12.el7_9.2.x86_64
--> Processing Dependency: libcrypto.so.10(libcrypto.so.10)(64bit) for package: python-libs-2.7.5-92.el7_9.x86_64
--> Processing Dependency: libcrypto.so.10(libcrypto.so.10)(64bit) for package: trousers-0.3.14-2.el7.x86_64
--> Processing Dependency: libcrypto.so.10(libcrypto.so.10)(64bit) for package: 1:mariadb-libs-5.5.68-1.el7.x86_64
--> Processing Dependency: libssl.so.10()(64bit) for package: 1:wpa_supplicant-2.6-12.el7_9.2.x86_64
--> Processing Dependency: libssl.so.10()(64bit) for package: libevent-2.0.21-4.el7.x86_64
--> Processing Dependency: libssl.so.10()(64bit) for package: libssh2-1.8.0-4.el7.x86_64
--> Processing Dependency: libssl.so.10()(64bit) for package: xmlsec1-openssl-1.2.20-7.el7_4.x86_64
--> Processing Dependency: libssl.so.10()(64bit) for package: python-libs-2.7.5-92.el7_9.x86_64
--> Processing Dependency: libssl.so.10()(64bit) for package: trousers-0.3.14-2.el7.x86_64
--> Processing Dependency: libssl.so.10()(64bit) for package: 1:mariadb-libs-5.5.68-1.el7.x86_64
--> Processing Dependency: libssl.so.10(libssl.so.10)(64bit) for package: 1:wpa_supplicant-2.6-12.el7_9.2.x86_64
--> Processing Dependency: libssl.so.10(libssl.so.10)(64bit) for package: python-libs-2.7.5-92.el7_9.x86_64
--> Processing Dependency: libssl.so.10(libssl.so.10)(64bit) for package: 1:mariadb-libs-5.5.68-1.el7.x86_64
--> Processing Dependency: libssl.so.10(libssl.so.10)(64bit) for package: libevent-2.0.21-4.el7.x86_64
---> Package quota.x86_64 1:4.01-19.el7 will be erased
---> Package rpm-libs.x86_64 0:4.11.3-48.el7_9 will be erased
--> Processing Dependency: librpm.so.3()(64bit) for package: deltarpm-3.6-3.el7.x86_64
--> Processing Dependency: librpm.so.3()(64bit) for package: rpm-build-libs-4.11.3-48.el7_9.x86_64
--> Processing Dependency: librpmio.so.3()(64bit) for package: deltarpm-3.6-3.el7.x86_64
--> Processing Dependency: librpmio.so.3()(64bit) for package: rpm-build-libs-4.11.3-48.el7_9.x86_64
--> Processing Dependency: rpm-libs(x86-64) = 4.11.3-48.el7_9 for package: rpm-build-libs-4.11.3-48.el7_9.x86_64
---> Package rpm-python.x86_64 0:4.11.3-48.el7_9 will be erased
---> Package rsyslog.x86_64 0:8.24.0-57.el7_9.3 will be erased
---> Package samba-client-libs.x86_64 0:4.10.16-20.el7_9 will be erased
--> Processing Dependency: libreplace-samba4.so()(64bit) for package: libwbclient-4.10.16-20.el7_9.x86_64
--> Processing Dependency: libreplace-samba4.so(SAMBA_4.10.16)(64bit) for package: libwbclient-4.10.16-20.el7_9.x86_64
--> Processing Dependency: samba-client-libs = 4.10.16-20.el7_9 for package: libwbclient-4.10.16-20.el7_9.x86_64
---> Package samba-common-libs.x86_64 0:4.10.16-20.el7_9 will be erased
---> Package samba-libs.x86_64 0:4.10.16-20.el7_9 will be erased
---> Package yum.noarch 0:3.4.3-168.el7.centos will be erased
--> Processing Dependency: yum >= 3.0 for package: yum-plugin-fastestmirror-1.1.31-54.el7_8.noarch
--> Processing Dependency: yum >= 3.4.3-143 for package: yum-utils-1.1.31-54.el7_8.noarch
--> Running transaction check
---> Package NetworkManager.x86_64 1:1.18.8-2.el7_9 will be erased
--> Processing Dependency: NetworkManager = 1:1.18.8-2.el7_9 for package: 1:NetworkManager-tui-1.18.8-2.el7_9.x86_64
--> Processing Dependency: NetworkManager(x86-64) = 1:1.18.8-2.el7_9 for package: 1:NetworkManager-team-1.18.8-2.el7_9.x86_64
---> Package cracklib-dicts.x86_64 0:2.9.0-11.el7 will be erased
---> Package curl.x86_64 0:7.29.0-59.el7_9.1 will be erased
---> Package deltarpm.x86_64 0:3.6-3.el7 will be erased
---> Package fipscheck.x86_64 0:1.4.1-6.el7 will be erased
---> Package gnupg2.x86_64 0:2.0.22-5.el7_5 will be erased
--> Processing Dependency: gnupg2 for package: gpgme-1.3.2-5.el7.x86_64
---> Package grub2-pc.x86_64 1:2.02-0.87.0.2.el7.centos.11 will be erased
--> Processing Dependency: grub2-pc = 1:2.02-0.87.0.2.el7.centos.11 for package: 1:grub2-2.02-0.87.0.2.el7.centos.11.x86_64
---> Package iputils.x86_64 0:20160308-10.el7 will be erased
---> Package libevent.x86_64 0:2.0.21-4.el7 will be erased
--> Processing Dependency: libevent-2.0.so.5()(64bit) for package: libverto-libevent-0.2.5-4.el7.x86_64
---> Package libpwquality.x86_64 0:1.2.3-5.el7 will be erased
---> Package libssh2.x86_64 0:1.8.0-4.el7 will be erased
---> Package libwbclient.x86_64 0:4.10.16-20.el7_9 will be erased
---> Package mariadb-libs.x86_64 1:5.5.68-1.el7 will be erased
---> Package openldap.x86_64 0:2.4.44-25.el7_9 will be erased
--> Processing Dependency: liblber-2.4.so.2()(64bit) for package: sudo-1.8.23-10.el7_9.3.x86_64
--> Processing Dependency: liblber-2.4.so.2()(64bit) for package: 12:dhcp-libs-4.2.5-83.el7.centos.1.x86_64
--> Processing Dependency: libldap-2.4.so.2()(64bit) for package: sudo-1.8.23-10.el7_9.3.x86_64
--> Processing Dependency: libldap-2.4.so.2()(64bit) for package: libuser-0.60-9.el7.x86_64
--> Processing Dependency: libldap-2.4.so.2()(64bit) for package: 12:dhcp-libs-4.2.5-83.el7.centos.1.x86_64
--> Processing Dependency: libldap-2.4.so.2()(64bit) for package: libnfsidmap-0.25-19.el7.x86_64
--> Processing Dependency: openldap for package: libnfsidmap-0.25-19.el7.x86_64
---> Package openssh.x86_64 0:7.4p1-22.el7_9 will be erased
---> Package pam.x86_64 0:1.1.8-23.el7 will be erased
--> Processing Dependency: libpam.so.0()(64bit) for package: cronie-1.4.11-24.el7_9.x86_64
--> Processing Dependency: libpam.so.0()(64bit) for package: systemd-libs-219-78.el7_9.7.x86_64
--> Processing Dependency: libpam.so.0()(64bit) for package: util-linux-2.23.2-65.el7_9.1.x86_64
--> Processing Dependency: libpam.so.0()(64bit) for package: passwd-0.79-6.el7.x86_64
--> Processing Dependency: libpam.so.0()(64bit) for package: polkit-0.112-26.el7_9.1.x86_64
--> Processing Dependency: libpam.so.0()(64bit) for package: cronie-anacron-1.4.11-24.el7_9.x86_64
--> Processing Dependency: libpam.so.0(LIBPAM_1.0)(64bit) for package: systemd-libs-219-78.el7_9.7.x86_64
--> Processing Dependency: libpam.so.0(LIBPAM_1.0)(64bit) for package: cronie-1.4.11-24.el7_9.x86_64
--> Processing Dependency: libpam.so.0(LIBPAM_1.0)(64bit) for package: polkit-0.112-26.el7_9.1.x86_64
--> Processing Dependency: libpam.so.0(LIBPAM_1.0)(64bit) for package: passwd-0.79-6.el7.x86_64
--> Processing Dependency: libpam.so.0(LIBPAM_1.0)(64bit) for package: util-linux-2.23.2-65.el7_9.1.x86_64
--> Processing Dependency: libpam.so.0(LIBPAM_EXTENSION_1.0)(64bit) for package: systemd-libs-219-78.el7_9.7.x86_64
--> Processing Dependency: libpam.so.0(LIBPAM_MODUTIL_1.0)(64bit) for package: systemd-libs-219-78.el7_9.7.x86_64
--> Processing Dependency: libpam_misc.so.0()(64bit) for package: systemd-libs-219-78.el7_9.7.x86_64
--> Processing Dependency: libpam_misc.so.0()(64bit) for package: passwd-0.79-6.el7.x86_64
--> Processing Dependency: libpam_misc.so.0()(64bit) for package: util-linux-2.23.2-65.el7_9.1.x86_64
--> Processing Dependency: libpam_misc.so.0(LIBPAM_MISC_1.0)(64bit) for package: systemd-libs-219-78.el7_9.7.x86_64
--> Processing Dependency: libpam_misc.so.0(LIBPAM_MISC_1.0)(64bit) for package: passwd-0.79-6.el7.x86_64
--> Processing Dependency: libpam_misc.so.0(LIBPAM_MISC_1.0)(64bit) for package: util-linux-2.23.2-65.el7_9.1.x86_64
--> Processing Dependency: pam >= 1.0.1 for package: cronie-1.4.11-24.el7_9.x86_64
--> Processing Dependency: pam >= 1.0.90 for package: passwd-0.79-6.el7.x86_64
--> Processing Dependency: pam >= 1.1.3-7 for package: util-linux-2.23.2-65.el7_9.1.x86_64
---> Package postfix.x86_64 2:2.10.1-9.el7 will be erased
---> Package python-libs.x86_64 0:2.7.5-92.el7_9 will be erased
--> Processing Dependency: libpython2.7.so.1.0()(64bit) for package: python-perf-3.10.0-1160.83.1.el7.x86_64
--> Processing Dependency: libpython2.7.so.1.0()(64bit) for package: pyxattr-0.5.1-5.el7.x86_64
--> Processing Dependency: libpython2.7.so.1.0()(64bit) for package: pygpgme-0.3-9.el7.x86_64
--> Processing Dependency: libpython2.7.so.1.0()(64bit) for package: python-2.7.5-92.el7_9.x86_64
--> Processing Dependency: libpython2.7.so.1.0()(64bit) for package: yum-metadata-parser-1.1.4-10.el7.x86_64
--> Processing Dependency: libpython2.7.so.1.0()(64bit) for package: python-tdb-1.3.18-1.el7.x86_64
--> Processing Dependency: libpython2.7.so.1.0()(64bit) for package: newt-python-0.52.15-4.el7.x86_64
--> Processing Dependency: libpython2.7.so.1.0()(64bit) for package: pyliblzma-0.5.3-11.el7.x86_64
--> Processing Dependency: libpython2.7.so.1.0()(64bit) for package: libxml2-python-2.9.1-6.el7_9.6.x86_64
--> Processing Dependency: libpython2.7.so.1.0()(64bit) for package: pytalloc-2.1.16-1.el7.x86_64
--> Processing Dependency: libpython2.7.so.1.0()(64bit) for package: pyldb-1.5.4-2.el7.x86_64
--> Processing Dependency: libpython2.7.so.1.0()(64bit) for package: python-schedutils-0.4-6.el7.x86_64
--> Processing Dependency: python-libs(x86-64) = 2.7.5-92.el7_9 for package: python-2.7.5-92.el7_9.x86_64
---> Package python-pycurl.x86_64 0:7.19.0-19.el7 will be erased
--> Processing Dependency: python-pycurl for package: python-urlgrabber-3.10-10.el7.noarch
---> Package rpm-build-libs.x86_64 0:4.11.3-48.el7_9 will be erased
---> Package systemd.x86_64 0:219-78.el7_9.7 will be erased
--> Processing Dependency: systemd >= 189-3 for package: 7:device-mapper-1.02.170-6.el7_9.5.x86_64
--> Processing Dependency: systemd for package: firewalld-0.6.3-13.el7_9.noarch
--> Processing Dependency: systemd for package: firewalld-0.6.3-13.el7_9.noarch
--> Processing Dependency: systemd for package: firewalld-0.6.3-13.el7_9.noarch
--> Processing Dependency: systemd for package: 1:dbus-1.10.24-15.el7.x86_64
--> Processing Dependency: systemd for package: 1:dbus-1.10.24-15.el7.x86_64
--> Processing Dependency: systemd for package: 1:dbus-1.10.24-15.el7.x86_64
--> Processing Dependency: systemd for package: hypervkvpd-0-0.34.20180415git.el7.x86_64
--> Processing Dependency: systemd for package: hypervkvpd-0-0.34.20180415git.el7.x86_64
--> Processing Dependency: systemd for package: hypervkvpd-0-0.34.20180415git.el7.x86_64
--> Processing Dependency: systemd = 219-78.el7_9.7 for package: systemd-sysv-219-78.el7_9.7.x86_64
--> Processing Dependency: systemd for package: elfutils-default-yama-scope-0.176-5.el7.noarch
--> Processing Dependency: systemd for package: elfutils-default-yama-scope-0.176-5.el7.noarch
--> Processing Dependency: systemd for package: elfutils-default-yama-scope-0.176-5.el7.noarch
--> Processing Dependency: systemd for package: hypervvssd-0-0.34.20180415git.el7.x86_64
--> Processing Dependency: systemd for package: hypervvssd-0-0.34.20180415git.el7.x86_64
--> Processing Dependency: systemd for package: hypervvssd-0-0.34.20180415git.el7.x86_64
--> Processing Dependency: systemd for package: ebtables-2.0.10-16.el7.x86_64
--> Processing Dependency: systemd for package: ebtables-2.0.10-16.el7.x86_64
--> Processing Dependency: systemd for package: ebtables-2.0.10-16.el7.x86_64
--> Processing Dependency: systemd for package: hypervfcopyd-0-0.34.20180415git.el7.x86_64
--> Processing Dependency: systemd for package: hypervfcopyd-0-0.34.20180415git.el7.x86_64
--> Processing Dependency: systemd for package: hypervfcopyd-0-0.34.20180415git.el7.x86_64
--> Processing Dependency: systemd for package: chrony-3.4-1.el7.x86_64
--> Processing Dependency: systemd for package: chrony-3.4-1.el7.x86_64
--> Processing Dependency: systemd for package: chrony-3.4-1.el7.x86_64
--> Processing Dependency: systemd for package: tuned-2.11.0-12.el7_9.noarch
--> Processing Dependency: systemd for package: tuned-2.11.0-12.el7_9.noarch
--> Processing Dependency: systemd for package: tuned-2.11.0-12.el7_9.noarch
--> Processing Dependency: systemd for package: hwdata-0.252-9.7.el7.x86_64
--> Processing Dependency: systemd for package: hwdata-0.252-9.7.el7.x86_64
--> Processing Dependency: systemd for package: hwdata-0.252-9.7.el7.x86_64
--> Processing Dependency: systemd-units for package: 10:qemu-guest-agent-2.12.0-3.el7.x86_64
--> Processing Dependency: systemd-units for package: 10:qemu-guest-agent-2.12.0-3.el7.x86_64
--> Processing Dependency: systemd-units for package: 10:qemu-guest-agent-2.12.0-3.el7.x86_64
--> Processing Dependency: systemd-units for package: 3:irqbalance-1.0.7-12.el7.x86_64
--> Processing Dependency: systemd-units for package: 3:irqbalance-1.0.7-12.el7.x86_64
--> Processing Dependency: systemd-units for package: 3:irqbalance-1.0.7-12.el7.x86_64
--> Processing Dependency: systemd-units for package: rsync-3.1.2-12.el7_9.x86_64
--> Processing Dependency: systemd-units for package: rsync-3.1.2-12.el7_9.x86_64
--> Processing Dependency: systemd-units for package: rsync-3.1.2-12.el7_9.x86_64
--> Processing Dependency: udev for package: libdrm-2.4.97-2.el7.x86_64
--> Processing Dependency: udev for package: biosdevname-0.7.3-2.el7.x86_64
---> Package trousers.x86_64 0:0.3.14-2.el7 will be erased
--> Processing Dependency: trousers >= 0.3.11.2 for package: gnutls-3.3.29-9.el7_6.x86_64
---> Package wpa_supplicant.x86_64 1:2.6-12.el7_9.2 will be erased
---> Package xmlsec1-openssl.x86_64 0:1.2.20-7.el7_4 will be erased
---> Package yum-plugin-fastestmirror.noarch 0:1.1.31-54.el7_8 will be erased
---> Package yum-utils.noarch 0:1.1.31-54.el7_8 will be erased
--> Running transaction check
---> Package NetworkManager-team.x86_64 1:1.18.8-2.el7_9 will be erased
---> Package NetworkManager-tui.x86_64 1:1.18.8-2.el7_9 will be erased
---> Package biosdevname.x86_64 0:0.7.3-2.el7 will be erased
---> Package chrony.x86_64 0:3.4-1.el7 will be erased
---> Package cronie.x86_64 0:1.4.11-24.el7_9 will be erased
---> Package cronie-anacron.x86_64 0:1.4.11-24.el7_9 will be erased
---> Package dbus.x86_64 1:1.10.24-15.el7 will be erased
---> Package device-mapper.x86_64 7:1.02.170-6.el7_9.5 will be erased
--> Processing Dependency: device-mapper = 7:1.02.170-6.el7_9.5 for package: 7:device-mapper-libs-1.02.170-6.el7_9.5.x86_64
---> Package dhcp-libs.x86_64 12:4.2.5-83.el7.centos.1 will be erased
--> Processing Dependency: dhcp-libs(x86-64) = 12:4.2.5-83.el7.centos.1 for package: 12:dhcp-common-4.2.5-83.el7.centos.1.x86_64
---> Package ebtables.x86_64 0:2.0.10-16.el7 will be erased
---> Package elfutils-default-yama-scope.noarch 0:0.176-5.el7 will be erased
--> Processing Dependency: default-yama-scope for package: elfutils-libs-0.176-5.el7.x86_64
---> Package firewalld.noarch 0:0.6.3-13.el7_9 will be erased
---> Package gnutls.x86_64 0:3.3.29-9.el7_6 will be erased
---> Package gpgme.x86_64 0:1.3.2-5.el7 will be erased
---> Package grub2.x86_64 1:2.02-0.87.0.2.el7.centos.11 will be erased
---> Package hwdata.x86_64 0:0.252-9.7.el7 will be erased
--> Processing Dependency: hwdata for package: pciutils-3.5.1-3.el7.x86_64
--> Processing Dependency: hwdata for package: libpciaccess-0.14-1.el7.x86_64
--> Processing Dependency: hwdata for package: lshw-B.02.18-17.el7.x86_64
---> Package hypervfcopyd.x86_64 0:0-0.34.20180415git.el7 will be erased
--> Processing Dependency: hypervfcopyd = 0-0.34.20180415git.el7 for package: hyperv-daemons-0-0.34.20180415git.el7.x86_64
---> Package hypervkvpd.x86_64 0:0-0.34.20180415git.el7 will be erased
---> Package hypervvssd.x86_64 0:0-0.34.20180415git.el7 will be erased
---> Package irqbalance.x86_64 3:1.0.7-12.el7 will be erased
---> Package libdrm.x86_64 0:2.4.97-2.el7 will be erased
---> Package libnfsidmap.x86_64 0:0.25-19.el7 will be erased
---> Package libuser.x86_64 0:0.60-9.el7 will be erased
---> Package libverto-libevent.x86_64 0:0.2.5-4.el7 will be erased
---> Package libxml2-python.x86_64 0:2.9.1-6.el7_9.6 will be erased
---> Package newt-python.x86_64 0:0.52.15-4.el7 will be erased
---> Package passwd.x86_64 0:0.79-6.el7 will be erased
---> Package polkit.x86_64 0:0.112-26.el7_9.1 will be erased
--> Processing Dependency: libpolkit-gobject-1.so.0()(64bit) for package: polkit-pkla-compat-0.1-4.el7.x86_64
---> Package pygpgme.x86_64 0:0.3-9.el7 will be erased
---> Package pyldb.x86_64 0:1.5.4-2.el7 will be erased
---> Package pyliblzma.x86_64 0:0.5.3-11.el7 will be erased
---> Package pytalloc.x86_64 0:2.1.16-1.el7 will be erased
---> Package python.x86_64 0:2.7.5-92.el7_9 will be erased
--> Processing Dependency: python(abi) = 2.7 for package: python-configobj-4.7.2-7.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: python-kitchen-1.1.1-5.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: python-iniparse-0.4-9.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: python-firewall-0.6.3-13.el7_9.noarch
--> Processing Dependency: python(abi) = 2.7 for package: dbus-python-1.1.1-9.el7.x86_64
--> Processing Dependency: python(abi) = 2.7 for package: python-gobject-base-3.22.0-1.el7_4.1.x86_64
--> Processing Dependency: python(abi) = 2.7 for package: python-linux-procfs-0.4.11-4.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: python-chardet-2.2.1-3.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: python-slip-0.4.0-4.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: python-pyudev-0.15-9.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: python-slip-dbus-0.4.0-4.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: libselinux-python-2.5-15.el7.x86_64
--> Processing Dependency: python(abi) = 2.7 for package: python-decorator-3.4.0-3.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: python-configobj-4.7.2-7.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: python-kitchen-1.1.1-5.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: python-iniparse-0.4-9.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: python-firewall-0.6.3-13.el7_9.noarch
--> Processing Dependency: python(abi) = 2.7 for package: dbus-python-1.1.1-9.el7.x86_64
--> Processing Dependency: python(abi) = 2.7 for package: python-gobject-base-3.22.0-1.el7_4.1.x86_64
--> Processing Dependency: python(abi) = 2.7 for package: python-linux-procfs-0.4.11-4.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: python-chardet-2.2.1-3.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: python-slip-0.4.0-4.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: python-pyudev-0.15-9.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: python-slip-dbus-0.4.0-4.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: libselinux-python-2.5-15.el7.x86_64
--> Processing Dependency: python(abi) = 2.7 for package: python-decorator-3.4.0-3.el7.noarch
---> Package python-perf.x86_64 0:3.10.0-1160.83.1.el7 will be erased
---> Package python-schedutils.x86_64 0:0.4-6.el7 will be erased
---> Package python-tdb.x86_64 0:1.3.18-1.el7 will be erased
---> Package python-urlgrabber.noarch 0:3.10-10.el7 will be erased
---> Package pyxattr.x86_64 0:0.5.1-5.el7 will be erased
---> Package qemu-guest-agent.x86_64 10:2.12.0-3.el7 will be erased
---> Package rsync.x86_64 0:3.1.2-12.el7_9 will be erased
---> Package sudo.x86_64 0:1.8.23-10.el7_9.3 will be erased
---> Package systemd-libs.x86_64 0:219-78.el7_9.7 will be erased
--> Processing Dependency: libsystemd.so.0()(64bit) for package: procps-ng-3.3.10-28.el7.x86_64
--> Processing Dependency: libsystemd.so.0()(64bit) for package: 1:dbus-libs-1.10.24-15.el7.x86_64
--> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: procps-ng-3.3.10-28.el7.x86_64
--> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: 1:dbus-libs-1.10.24-15.el7.x86_64
--> Processing Dependency: libudev.so.1()(64bit) for package: 1:NetworkManager-libnm-1.18.8-2.el7_9.x86_64
--> Processing Dependency: libudev.so.1(LIBUDEV_183)(64bit) for package: 1:NetworkManager-libnm-1.18.8-2.el7_9.x86_64
---> Package systemd-sysv.x86_64 0:219-78.el7_9.7 will be erased
---> Package tuned.noarch 0:2.11.0-12.el7_9 will be erased
---> Package util-linux.x86_64 0:2.23.2-65.el7_9.1 will be erased
--> Processing Dependency: util-linux for package: virt-what-1.18-4.el7_9.1.x86_64
---> Package yum-metadata-parser.x86_64 0:1.1.4-10.el7 will be erased
--> Running transaction check
---> Package NetworkManager-libnm.x86_64 1:1.18.8-2.el7_9 will be erased
---> Package dbus-libs.x86_64 1:1.10.24-15.el7 will be erased
--> Processing Dependency: libdbus-1.so.3()(64bit) for package: teamd-1.29-3.el7.x86_64
--> Processing Dependency: libdbus-1.so.3()(64bit) for package: dbus-glib-0.100-7.el7.x86_64
--> Processing Dependency: libdbus-1.so.3()(64bit) for package: avahi-libs-0.6.31-20.el7.x86_64
--> Processing Dependency: libdbus-1.so.3(LIBDBUS_1_3)(64bit) for package: teamd-1.29-3.el7.x86_64
--> Processing Dependency: libdbus-1.so.3(LIBDBUS_1_3)(64bit) for package: avahi-libs-0.6.31-20.el7.x86_64
---> Package dbus-python.x86_64 0:1.1.1-9.el7 will be erased
---> Package device-mapper-libs.x86_64 7:1.02.170-6.el7_9.5 will be erased
--> Processing Dependency: libdevmapper.so.1.02()(64bit) for package: parted-3.1-32.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02()(64bit) for package: 1:grub2-tools-minimal-2.02-0.87.0.2.el7.centos.11.x86_64
--> Processing Dependency: libdevmapper.so.1.02()(64bit) for package: cryptsetup-libs-2.0.3-6.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02()(64bit) for package: kpartx-0.4.9-136.el7_9.x86_64
--> Processing Dependency: libdevmapper.so.1.02(Base)(64bit) for package: parted-3.1-32.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02(Base)(64bit) for package: 1:grub2-tools-minimal-2.02-0.87.0.2.el7.centos.11.x86_64
--> Processing Dependency: libdevmapper.so.1.02(Base)(64bit) for package: cryptsetup-libs-2.0.3-6.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02(Base)(64bit) for package: kpartx-0.4.9-136.el7_9.x86_64
--> Processing Dependency: libdevmapper.so.1.02(DM_1_02_97)(64bit) for package: cryptsetup-libs-2.0.3-6.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02(DM_1_02_97)(64bit) for package: kpartx-0.4.9-136.el7_9.x86_64
---> Package dhcp-common.x86_64 12:4.2.5-83.el7.centos.1 will be erased
---> Package elfutils-libs.x86_64 0:0.176-5.el7 will be erased
---> Package hyperv-daemons.x86_64 0:0-0.34.20180415git.el7 will be erased
---> Package libpciaccess.x86_64 0:0.14-1.el7 will be erased
---> Package libselinux-python.x86_64 0:2.5-15.el7 will be erased
---> Package lshw.x86_64 0:B.02.18-17.el7 will be erased
---> Package pciutils.x86_64 0:3.5.1-3.el7 will be erased
---> Package polkit-pkla-compat.x86_64 0:0.1-4.el7 will be erased
---> Package procps-ng.x86_64 0:3.3.10-28.el7 will be erased
---> Package python-chardet.noarch 0:2.2.1-3.el7 will be erased
---> Package python-configobj.noarch 0:4.7.2-7.el7 will be erased
---> Package python-decorator.noarch 0:3.4.0-3.el7 will be erased
---> Package python-firewall.noarch 0:0.6.3-13.el7_9 will be erased
---> Package python-gobject-base.x86_64 0:3.22.0-1.el7_4.1 will be erased
---> Package python-iniparse.noarch 0:0.4-9.el7 will be erased
---> Package python-kitchen.noarch 0:1.1.1-5.el7 will be erased
---> Package python-linux-procfs.noarch 0:0.4.11-4.el7 will be erased
---> Package python-pyudev.noarch 0:0.15-9.el7 will be erased
---> Package python-slip.noarch 0:0.4.0-4.el7 will be erased
---> Package python-slip-dbus.noarch 0:0.4.0-4.el7 will be erased
---> Package virt-what.x86_64 0:1.18-4.el7_9.1 will be erased
--> Running transaction check
---> Package avahi-libs.x86_64 0:0.6.31-20.el7 will be erased
---> Package cryptsetup-libs.x86_64 0:2.0.3-6.el7 will be erased
---> Package dbus-glib.x86_64 0:0.100-7.el7 will be erased
---> Package grub2-tools-minimal.x86_64 1:2.02-0.87.0.2.el7.centos.11 will be erased
---> Package kpartx.x86_64 0:0.4.9-136.el7_9 will be erased
---> Package parted.x86_64 0:3.1-32.el7 will be erased
---> Package teamd.x86_64 0:1.29-3.el7 will be erased
--> Processing Dependency: /usr/bin/python for package: gettext-0.19.8.1-3.el7.x86_64
--> Processing Dependency: /etc/cron.d for package: crontabs-1.11-6.20121102git.el7.noarch
--> Processing Dependency: /usr/bin/sha512sum for package: selinux-policy-3.13.1-268.el7_9.2.noarch
--> Processing Dependency: /usr/bin/fipscheck for package: fipscheck-lib-1.4.1-6.el7.x86_64
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package crontabs.noarch 0:1.11-6.20121102git.el7 will be erased
---> Package fipscheck-lib.x86_64 0:1.4.1-6.el7 will be erased
---> Package gettext.x86_64 0:0.19.8.1-3.el7 will be erased
---> Package selinux-policy.noarch 0:3.13.1-268.el7_9.2 will be erased
--> Processing Dependency: selinux-policy = 3.13.1-268.el7_9.2 for package: selinux-policy-targeted-3.13.1-268.el7_9.2.noarch
--> Processing Dependency: selinux-policy = 3.13.1-268.el7_9.2 for package: selinux-policy-targeted-3.13.1-268.el7_9.2.noarch
--> Running transaction check
---> Package selinux-policy-targeted.noarch 0:3.13.1-268.el7_9.2 will be erased
--> Finished Dependency Resolution
Error: Trying to remove "systemd", which is protected
Error: Trying to remove "yum", which is protected
[root@centos7 vagrant]# 
Try installing the wazuh-agent package as per the documentation
[root@centos7 vagrant]# rpm --import https://packages.wazuh.com/key/GPG-KEY-WAZUH
[root@centos7 vagrant]# cat > /etc/yum.repos.d/wazuh.repo << EOF
> [wazuh]
> gpgcheck=1
> gpgkey=https://packages.wazuh.com/key/GPG-KEY-WAZUH
> enabled=1
> name=EL-\$releasever - Wazuh
> baseurl=https://packages.wazuh.com/4.x/yum/
> protect=1
> EOF
[root@centos7 vagrant]# WAZUH_MANAGER="10.0.0.2" yum install wazuh-agent
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.airenetworks.es
 * extras: mirror.airenetworks.es
 * updates: mirror.airenetworks.es
Resolving Dependencies
--> Running transaction check
---> Package wazuh-agent.x86_64 0:4.3.10-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================================================
 Package                                               Arch                                             Version                                              Repository                                       Size
===================================================================================================================================================================================================================
Installing:
 wazuh-agent                                           x86_64                                           4.3.10-1                                             wazuh                                           8.6 M

Transaction Summary
===================================================================================================================================================================================================================
Install  1 Package

Total download size: 8.6 M
Installed size: 25 M
Is this ok [y/d/N]: y
Downloading packages:
wazuh-agent-4.3.10-1.x86_64.rpm                                                                                                                                                             | 8.6 MB  00:00:24     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : wazuh-agent-4.3.10-1.x86_64                                                                                                                                                                     1/1 
  Verifying  : wazuh-agent-4.3.10-1.x86_64                                                                                                                                                                     1/1 

Installed:
  wazuh-agent.x86_64 0:4.3.10-1                                                                                                                                                                                    

Complete!
[root@centos7 vagrant]# 

:green_circle: Wazuh manager

The Wazuh manager also has coreutils as its only dependency and the same process of installation in the documentation.

:yellow_circle: Wazuh indexer

The Wazuh indexer also has coreutils as its only dependency but it must be explicitely installed according to the documentation, which is unneccessary.

:yellow_circle: Wazuh dashboard

Try to remove the dependencies for the Wazuh dashboard
[root@centos7 vagrant]# yum remove -y libcap
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package libcap.x86_64 0:2.22-11.el7 will be erased
--> Processing Dependency: libcap for package: 1:nfs-utils-1.3.0-0.68.el7.2.x86_64
--> Processing Dependency: libcap(x86-64) >= 2.16 for package: rpm-libs-4.11.3-48.el7_9.x86_64
--> Processing Dependency: libcap.so.2()(64bit) for package: rpm-4.11.3-48.el7_9.x86_64
--> Processing Dependency: libcap.so.2()(64bit) for package: coreutils-8.22-24.el7_9.2.x86_64
--> Processing Dependency: libcap.so.2()(64bit) for package: rpm-python-4.11.3-48.el7_9.x86_64
--> Processing Dependency: libcap.so.2()(64bit) for package: chrony-3.4-1.el7.x86_64
--> Processing Dependency: libcap.so.2()(64bit) for package: systemd-219-78.el7_9.7.x86_64
--> Processing Dependency: libcap.so.2()(64bit) for package: 1:nfs-utils-1.3.0-0.68.el7.2.x86_64
--> Processing Dependency: libcap.so.2()(64bit) for package: rpm-libs-4.11.3-48.el7_9.x86_64
--> Processing Dependency: libcap.so.2()(64bit) for package: rpm-build-libs-4.11.3-48.el7_9.x86_64
--> Processing Dependency: libcap.so.2()(64bit) for package: systemd-libs-219-78.el7_9.7.x86_64
--> Processing Dependency: libcap.so.2()(64bit) for package: iputils-20160308-10.el7.x86_64
--> Processing Dependency: libcap.so.2()(64bit) for package: samba-client-libs-4.10.16-20.el7_9.x86_64
--> Processing Dependency: libcap.so.2()(64bit) for package: 32:bind-export-libs-9.11.4-26.P2.el7_9.13.x86_64
--> Processing Dependency: libcap.so.2()(64bit) for package: samba-common-libs-4.10.16-20.el7_9.x86_64
--> Processing Dependency: libcap.so.2()(64bit) for package: 12:dhclient-4.2.5-83.el7.centos.1.x86_64
--> Processing Dependency: libcap.so.2()(64bit) for package: samba-libs-4.10.16-20.el7_9.x86_64
--> Running transaction check
---> Package bind-export-libs.x86_64 32:9.11.4-26.P2.el7_9.13 will be erased
---> Package chrony.x86_64 0:3.4-1.el7 will be erased
---> Package coreutils.x86_64 0:8.22-24.el7_9.2 will be erased
--> Processing Dependency: coreutils >= 5.92 for package: logrotate-3.8.6-19.el7.x86_64
--> Processing Dependency: coreutils for package: dracut-033-572.el7.x86_64
--> Processing Dependency: coreutils for package: 1:openssl-1.0.2k-25.el7_9.x86_64
--> Processing Dependency: coreutils for package: policycoreutils-2.5-34.el7.x86_64
--> Processing Dependency: coreutils for package: initscripts-9.49.53-1.el7_9.1.x86_64
--> Processing Dependency: coreutils for package: initscripts-9.49.53-1.el7_9.1.x86_64
--> Processing Dependency: coreutils for package: gzip-1.5-11.el7_9.x86_64
--> Processing Dependency: coreutils for package: rpcbind-0.2.0-49.el7.x86_64
--> Processing Dependency: coreutils for package: rpcbind-0.2.0-49.el7.x86_64
--> Processing Dependency: coreutils for package: os-prober-1.58-9.el7.x86_64
--> Processing Dependency: coreutils for package: open-vm-tools-11.0.5-3.el7_9.4.x86_64
--> Processing Dependency: coreutils for package: man-db-2.6.3-11.el7.x86_64
--> Processing Dependency: coreutils for package: krb5-libs-1.15.1-55.el7_9.x86_64
--> Processing Dependency: coreutils for package: audit-2.8.5-4.el7.x86_64
--> Processing Dependency: coreutils for package: audit-2.8.5-4.el7.x86_64
---> Package dhclient.x86_64 12:4.2.5-83.el7.centos.1 will be erased
---> Package iputils.x86_64 0:20160308-10.el7 will be erased
---> Package nfs-utils.x86_64 1:1.3.0-0.68.el7.2 will be erased
---> Package rpm.x86_64 0:4.11.3-48.el7_9 will be erased
--> Processing Dependency: rpm >= 4.11.3-22 for package: yum-3.4.3-168.el7.centos.noarch
---> Package rpm-build-libs.x86_64 0:4.11.3-48.el7_9 will be erased
---> Package rpm-libs.x86_64 0:4.11.3-48.el7_9 will be erased
--> Processing Dependency: librpm.so.3()(64bit) for package: deltarpm-3.6-3.el7.x86_64
--> Processing Dependency: librpm.so.3()(64bit) for package: 1:grub2-tools-2.02-0.87.0.2.el7.centos.11.x86_64
--> Processing Dependency: librpmio.so.3()(64bit) for package: deltarpm-3.6-3.el7.x86_64
---> Package rpm-python.x86_64 0:4.11.3-48.el7_9 will be erased
---> Package samba-client-libs.x86_64 0:4.10.16-20.el7_9 will be erased
--> Processing Dependency: libreplace-samba4.so()(64bit) for package: libwbclient-4.10.16-20.el7_9.x86_64
--> Processing Dependency: libreplace-samba4.so(SAMBA_4.10.16)(64bit) for package: libwbclient-4.10.16-20.el7_9.x86_64
--> Processing Dependency: samba-client-libs = 4.10.16-20.el7_9 for package: libwbclient-4.10.16-20.el7_9.x86_64
---> Package samba-common-libs.x86_64 0:4.10.16-20.el7_9 will be erased
---> Package samba-libs.x86_64 0:4.10.16-20.el7_9 will be erased
---> Package systemd.x86_64 0:219-78.el7_9.7 will be erased
--> Processing Dependency: systemd for package: rsyslog-8.24.0-57.el7_9.3.x86_64
--> Processing Dependency: systemd for package: rsyslog-8.24.0-57.el7_9.3.x86_64
--> Processing Dependency: systemd for package: rsyslog-8.24.0-57.el7_9.3.x86_64
--> Processing Dependency: systemd >= 189-3 for package: 7:device-mapper-1.02.170-6.el7_9.5.x86_64
--> Processing Dependency: systemd for package: firewalld-0.6.3-13.el7_9.noarch
--> Processing Dependency: systemd for package: firewalld-0.6.3-13.el7_9.noarch
--> Processing Dependency: systemd for package: firewalld-0.6.3-13.el7_9.noarch
--> Processing Dependency: systemd for package: 1:dbus-1.10.24-15.el7.x86_64
--> Processing Dependency: systemd for package: 1:dbus-1.10.24-15.el7.x86_64
--> Processing Dependency: systemd for package: 1:dbus-1.10.24-15.el7.x86_64
--> Processing Dependency: systemd for package: cronie-1.4.11-24.el7_9.x86_64
--> Processing Dependency: systemd for package: cronie-1.4.11-24.el7_9.x86_64
--> Processing Dependency: systemd for package: cronie-1.4.11-24.el7_9.x86_64
--> Processing Dependency: systemd for package: hypervkvpd-0-0.34.20180415git.el7.x86_64
--> Processing Dependency: systemd for package: hypervkvpd-0-0.34.20180415git.el7.x86_64
--> Processing Dependency: systemd for package: hypervkvpd-0-0.34.20180415git.el7.x86_64
--> Processing Dependency: systemd for package: hypervvssd-0-0.34.20180415git.el7.x86_64
--> Processing Dependency: systemd for package: hypervvssd-0-0.34.20180415git.el7.x86_64
--> Processing Dependency: systemd for package: hypervvssd-0-0.34.20180415git.el7.x86_64
--> Processing Dependency: systemd = 219-78.el7_9.7 for package: systemd-sysv-219-78.el7_9.7.x86_64
--> Processing Dependency: systemd for package: elfutils-default-yama-scope-0.176-5.el7.noarch
--> Processing Dependency: systemd for package: elfutils-default-yama-scope-0.176-5.el7.noarch
--> Processing Dependency: systemd for package: elfutils-default-yama-scope-0.176-5.el7.noarch
--> Processing Dependency: systemd for package: 1:NetworkManager-1.18.8-2.el7_9.x86_64
--> Processing Dependency: systemd for package: 1:NetworkManager-1.18.8-2.el7_9.x86_64
--> Processing Dependency: systemd for package: 1:NetworkManager-1.18.8-2.el7_9.x86_64
--> Processing Dependency: systemd for package: ebtables-2.0.10-16.el7.x86_64
--> Processing Dependency: systemd for package: ebtables-2.0.10-16.el7.x86_64
--> Processing Dependency: systemd for package: ebtables-2.0.10-16.el7.x86_64
--> Processing Dependency: systemd for package: hypervfcopyd-0-0.34.20180415git.el7.x86_64
--> Processing Dependency: systemd for package: hypervfcopyd-0-0.34.20180415git.el7.x86_64
--> Processing Dependency: systemd for package: hypervfcopyd-0-0.34.20180415git.el7.x86_64
--> Processing Dependency: systemd for package: tuned-2.11.0-12.el7_9.noarch
--> Processing Dependency: systemd for package: tuned-2.11.0-12.el7_9.noarch
--> Processing Dependency: systemd for package: tuned-2.11.0-12.el7_9.noarch
--> Processing Dependency: systemd for package: 2:postfix-2.10.1-9.el7.x86_64
--> Processing Dependency: systemd for package: 2:postfix-2.10.1-9.el7.x86_64
--> Processing Dependency: systemd for package: 2:postfix-2.10.1-9.el7.x86_64
--> Processing Dependency: systemd for package: hwdata-0.252-9.7.el7.x86_64
--> Processing Dependency: systemd for package: hwdata-0.252-9.7.el7.x86_64
--> Processing Dependency: systemd for package: hwdata-0.252-9.7.el7.x86_64
--> Processing Dependency: systemd for package: polkit-0.112-26.el7_9.1.x86_64
--> Processing Dependency: systemd for package: polkit-0.112-26.el7_9.1.x86_64
--> Processing Dependency: systemd for package: polkit-0.112-26.el7_9.1.x86_64
--> Processing Dependency: systemd-units for package: openssh-server-7.4p1-22.el7_9.x86_64
--> Processing Dependency: systemd-units for package: openssh-server-7.4p1-22.el7_9.x86_64
--> Processing Dependency: systemd-units for package: openssh-server-7.4p1-22.el7_9.x86_64
--> Processing Dependency: systemd-units for package: gssproxy-0.7.0-30.el7_9.x86_64
--> Processing Dependency: systemd-units for package: gssproxy-0.7.0-30.el7_9.x86_64
--> Processing Dependency: systemd-units for package: gssproxy-0.7.0-30.el7_9.x86_64
--> Processing Dependency: systemd-units for package: 3:irqbalance-1.0.7-12.el7.x86_64
--> Processing Dependency: systemd-units for package: 3:irqbalance-1.0.7-12.el7.x86_64
--> Processing Dependency: systemd-units for package: 3:irqbalance-1.0.7-12.el7.x86_64
--> Processing Dependency: systemd-units for package: 10:qemu-guest-agent-2.12.0-3.el7.x86_64
--> Processing Dependency: systemd-units for package: 10:qemu-guest-agent-2.12.0-3.el7.x86_64
--> Processing Dependency: systemd-units for package: 10:qemu-guest-agent-2.12.0-3.el7.x86_64
--> Processing Dependency: systemd-units for package: rsync-3.1.2-12.el7_9.x86_64
--> Processing Dependency: systemd-units for package: rsync-3.1.2-12.el7_9.x86_64
--> Processing Dependency: systemd-units for package: rsync-3.1.2-12.el7_9.x86_64
--> Processing Dependency: systemd-units for package: 1:wpa_supplicant-2.6-12.el7_9.2.x86_64
--> Processing Dependency: systemd-units for package: 1:wpa_supplicant-2.6-12.el7_9.2.x86_64
--> Processing Dependency: systemd-units for package: 1:wpa_supplicant-2.6-12.el7_9.2.x86_64
--> Processing Dependency: systemd-units for package: trousers-0.3.14-2.el7.x86_64
--> Processing Dependency: systemd-units for package: trousers-0.3.14-2.el7.x86_64
--> Processing Dependency: systemd-units for package: trousers-0.3.14-2.el7.x86_64
--> Processing Dependency: systemd-units for package: 1:quota-4.01-19.el7.x86_64
--> Processing Dependency: systemd-units for package: 1:quota-4.01-19.el7.x86_64
--> Processing Dependency: systemd-units for package: 1:quota-4.01-19.el7.x86_64
--> Processing Dependency: udev for package: libdrm-2.4.97-2.el7.x86_64
--> Processing Dependency: udev for package: biosdevname-0.7.3-2.el7.x86_64
---> Package systemd-libs.x86_64 0:219-78.el7_9.7 will be erased
--> Processing Dependency: libsystemd-daemon.so.0()(64bit) for package: 12:dhcp-libs-4.2.5-83.el7.centos.1.x86_64
--> Processing Dependency: libsystemd.so.0()(64bit) for package: procps-ng-3.3.10-28.el7.x86_64
--> Processing Dependency: libsystemd.so.0()(64bit) for package: util-linux-2.23.2-65.el7_9.1.x86_64
--> Processing Dependency: libsystemd.so.0()(64bit) for package: 1:dbus-libs-1.10.24-15.el7.x86_64
--> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: procps-ng-3.3.10-28.el7.x86_64
--> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: util-linux-2.23.2-65.el7_9.1.x86_64
--> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: 1:dbus-libs-1.10.24-15.el7.x86_64
--> Processing Dependency: libudev.so.1()(64bit) for package: 1:NetworkManager-tui-1.18.8-2.el7_9.x86_64
--> Processing Dependency: libudev.so.1()(64bit) for package: 1:NetworkManager-libnm-1.18.8-2.el7_9.x86_64
--> Processing Dependency: libudev.so.1()(64bit) for package: util-linux-2.23.2-65.el7_9.1.x86_64
--> Processing Dependency: libudev.so.1()(64bit) for package: 7:device-mapper-libs-1.02.170-6.el7_9.5.x86_64
--> Processing Dependency: libudev.so.1(LIBUDEV_183)(64bit) for package: 1:NetworkManager-libnm-1.18.8-2.el7_9.x86_64
--> Processing Dependency: libudev.so.1(LIBUDEV_183)(64bit) for package: util-linux-2.23.2-65.el7_9.1.x86_64
--> Processing Dependency: libudev.so.1(LIBUDEV_183)(64bit) for package: 7:device-mapper-libs-1.02.170-6.el7_9.5.x86_64
--> Processing Dependency: systemd-libs for package: python-pyudev-0.15-9.el7.noarch
--> Running transaction check
---> Package NetworkManager.x86_64 1:1.18.8-2.el7_9 will be erased
--> Processing Dependency: NetworkManager(x86-64) = 1:1.18.8-2.el7_9 for package: 1:NetworkManager-team-1.18.8-2.el7_9.x86_64
---> Package NetworkManager-libnm.x86_64 1:1.18.8-2.el7_9 will be erased
---> Package NetworkManager-tui.x86_64 1:1.18.8-2.el7_9 will be erased
---> Package audit.x86_64 0:2.8.5-4.el7 will be erased
---> Package biosdevname.x86_64 0:0.7.3-2.el7 will be erased
---> Package cronie.x86_64 0:1.4.11-24.el7_9 will be erased
--> Processing Dependency: cronie = 1.4.11-24.el7_9 for package: cronie-anacron-1.4.11-24.el7_9.x86_64
---> Package dbus.x86_64 1:1.10.24-15.el7 will be erased
---> Package dbus-libs.x86_64 1:1.10.24-15.el7 will be erased
--> Processing Dependency: libdbus-1.so.3()(64bit) for package: dbus-python-1.1.1-9.el7.x86_64
--> Processing Dependency: libdbus-1.so.3()(64bit) for package: teamd-1.29-3.el7.x86_64
--> Processing Dependency: libdbus-1.so.3()(64bit) for package: dbus-glib-0.100-7.el7.x86_64
--> Processing Dependency: libdbus-1.so.3()(64bit) for package: avahi-libs-0.6.31-20.el7.x86_64
--> Processing Dependency: libdbus-1.so.3(LIBDBUS_1_3)(64bit) for package: teamd-1.29-3.el7.x86_64
--> Processing Dependency: libdbus-1.so.3(LIBDBUS_1_3)(64bit) for package: avahi-libs-0.6.31-20.el7.x86_64
---> Package deltarpm.x86_64 0:3.6-3.el7 will be erased
---> Package device-mapper.x86_64 7:1.02.170-6.el7_9.5 will be erased
---> Package device-mapper-libs.x86_64 7:1.02.170-6.el7_9.5 will be erased
--> Processing Dependency: libdevmapper.so.1.02()(64bit) for package: parted-3.1-32.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02()(64bit) for package: 1:grub2-tools-minimal-2.02-0.87.0.2.el7.centos.11.x86_64
--> Processing Dependency: libdevmapper.so.1.02()(64bit) for package: cryptsetup-libs-2.0.3-6.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02()(64bit) for package: 1:grub2-tools-extra-2.02-0.87.0.2.el7.centos.11.x86_64
--> Processing Dependency: libdevmapper.so.1.02()(64bit) for package: kpartx-0.4.9-136.el7_9.x86_64
--> Processing Dependency: libdevmapper.so.1.02(Base)(64bit) for package: parted-3.1-32.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02(Base)(64bit) for package: 1:grub2-tools-minimal-2.02-0.87.0.2.el7.centos.11.x86_64
--> Processing Dependency: libdevmapper.so.1.02(Base)(64bit) for package: cryptsetup-libs-2.0.3-6.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02(Base)(64bit) for package: 1:grub2-tools-extra-2.02-0.87.0.2.el7.centos.11.x86_64
--> Processing Dependency: libdevmapper.so.1.02(Base)(64bit) for package: kpartx-0.4.9-136.el7_9.x86_64
--> Processing Dependency: libdevmapper.so.1.02(DM_1_02_97)(64bit) for package: cryptsetup-libs-2.0.3-6.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02(DM_1_02_97)(64bit) for package: kpartx-0.4.9-136.el7_9.x86_64
---> Package dhcp-libs.x86_64 12:4.2.5-83.el7.centos.1 will be erased
--> Processing Dependency: dhcp-libs(x86-64) = 12:4.2.5-83.el7.centos.1 for package: 12:dhcp-common-4.2.5-83.el7.centos.1.x86_64
---> Package dracut.x86_64 0:033-572.el7 will be erased
--> Processing Dependency: dracut for package: kmod-20-28.el7.x86_64
---> Package ebtables.x86_64 0:2.0.10-16.el7 will be erased
---> Package elfutils-default-yama-scope.noarch 0:0.176-5.el7 will be erased
--> Processing Dependency: default-yama-scope for package: elfutils-libs-0.176-5.el7.x86_64
---> Package firewalld.noarch 0:0.6.3-13.el7_9 will be erased
---> Package grub2-tools.x86_64 1:2.02-0.87.0.2.el7.centos.11 will be erased
--> Processing Dependency: grub2-tools = 1:2.02-0.87.0.2.el7.centos.11 for package: 1:grub2-pc-2.02-0.87.0.2.el7.centos.11.x86_64
---> Package gssproxy.x86_64 0:0.7.0-30.el7_9 will be erased
---> Package gzip.x86_64 0:1.5-11.el7_9 will be erased
--> Processing Dependency: gzip for package: cracklib-2.9.0-11.el7.x86_64
---> Package hwdata.x86_64 0:0.252-9.7.el7 will be erased
--> Processing Dependency: hwdata for package: pciutils-3.5.1-3.el7.x86_64
--> Processing Dependency: hwdata for package: libpciaccess-0.14-1.el7.x86_64
--> Processing Dependency: hwdata for package: lshw-B.02.18-17.el7.x86_64
---> Package hypervfcopyd.x86_64 0:0-0.34.20180415git.el7 will be erased
--> Processing Dependency: hypervfcopyd = 0-0.34.20180415git.el7 for package: hyperv-daemons-0-0.34.20180415git.el7.x86_64
---> Package hypervkvpd.x86_64 0:0-0.34.20180415git.el7 will be erased
---> Package hypervvssd.x86_64 0:0-0.34.20180415git.el7 will be erased
---> Package initscripts.x86_64 0:9.49.53-1.el7_9.1 will be erased
--> Processing Dependency: initscripts >= 5.86-1 for package: kbd-1.15.5-16.el7_9.x86_64
---> Package irqbalance.x86_64 3:1.0.7-12.el7 will be erased
---> Package krb5-libs.x86_64 0:1.15.1-55.el7_9 will be erased
--> Processing Dependency: libgssapi_krb5.so.2()(64bit) for package: cyrus-sasl-lib-2.1.26-24.el7_9.x86_64
--> Processing Dependency: libgssapi_krb5.so.2()(64bit) for package: openssh-clients-7.4p1-22.el7_9.x86_64
--> Processing Dependency: libgssapi_krb5.so.2()(64bit) for package: 1:cups-libs-1.6.3-51.el7.x86_64
--> Processing Dependency: libgssapi_krb5.so.2()(64bit) for package: libcurl-7.29.0-59.el7_9.1.x86_64
--> Processing Dependency: libgssapi_krb5.so.2()(64bit) for package: 1:openssl-libs-1.0.2k-25.el7_9.x86_64
--> Processing Dependency: libgssapi_krb5.so.2()(64bit) for package: libtirpc-0.2.4-0.16.el7.x86_64
--> Processing Dependency: libgssapi_krb5.so.2(gssapi_krb5_2_MIT)(64bit) for package: 1:cups-libs-1.6.3-51.el7.x86_64
--> Processing Dependency: libgssapi_krb5.so.2(gssapi_krb5_2_MIT)(64bit) for package: libcurl-7.29.0-59.el7_9.1.x86_64
--> Processing Dependency: libgssapi_krb5.so.2(gssapi_krb5_2_MIT)(64bit) for package: libtirpc-0.2.4-0.16.el7.x86_64
--> Processing Dependency: libgssapi_krb5.so.2(gssapi_krb5_2_MIT)(64bit) for package: openssh-clients-7.4p1-22.el7_9.x86_64
--> Processing Dependency: libk5crypto.so.3()(64bit) for package: cyrus-sasl-lib-2.1.26-24.el7_9.x86_64
--> Processing Dependency: libk5crypto.so.3()(64bit) for package: openssh-clients-7.4p1-22.el7_9.x86_64
--> Processing Dependency: libk5crypto.so.3()(64bit) for package: 1:cups-libs-1.6.3-51.el7.x86_64
--> Processing Dependency: libk5crypto.so.3()(64bit) for package: libcurl-7.29.0-59.el7_9.1.x86_64
--> Processing Dependency: libk5crypto.so.3()(64bit) for package: 1:openssl-libs-1.0.2k-25.el7_9.x86_64
--> Processing Dependency: libk5crypto.so.3()(64bit) for package: libtirpc-0.2.4-0.16.el7.x86_64
--> Processing Dependency: libk5crypto.so.3(k5crypto_3_MIT)(64bit) for package: 1:openssl-libs-1.0.2k-25.el7_9.x86_64
--> Processing Dependency: libkrb5.so.3()(64bit) for package: cifs-utils-6.2-10.el7.x86_64
--> Processing Dependency: libkrb5.so.3()(64bit) for package: openssh-clients-7.4p1-22.el7_9.x86_64
--> Processing Dependency: libkrb5.so.3()(64bit) for package: 1:cups-libs-1.6.3-51.el7.x86_64
--> Processing Dependency: libkrb5.so.3()(64bit) for package: libcurl-7.29.0-59.el7_9.1.x86_64
--> Processing Dependency: libkrb5.so.3()(64bit) for package: 1:openssl-libs-1.0.2k-25.el7_9.x86_64
--> Processing Dependency: libkrb5.so.3()(64bit) for package: libtirpc-0.2.4-0.16.el7.x86_64
--> Processing Dependency: libkrb5.so.3()(64bit) for package: cyrus-sasl-lib-2.1.26-24.el7_9.x86_64
--> Processing Dependency: libkrb5.so.3(krb5_3_MIT)(64bit) for package: cifs-utils-6.2-10.el7.x86_64
--> Processing Dependency: libkrb5.so.3(krb5_3_MIT)(64bit) for package: 1:openssl-libs-1.0.2k-25.el7_9.x86_64
--> Processing Dependency: libkrb5support.so.0()(64bit) for package: cyrus-sasl-lib-2.1.26-24.el7_9.x86_64
---> Package libdrm.x86_64 0:2.4.97-2.el7 will be erased
---> Package libwbclient.x86_64 0:4.10.16-20.el7_9 will be erased
---> Package logrotate.x86_64 0:3.8.6-19.el7 will be erased
---> Package man-db.x86_64 0:2.6.3-11.el7 will be erased
---> Package open-vm-tools.x86_64 0:11.0.5-3.el7_9.4 will be erased
---> Package openssh-server.x86_64 0:7.4p1-22.el7_9 will be erased
---> Package openssl.x86_64 1:1.0.2k-25.el7_9 will be erased
---> Package os-prober.x86_64 0:1.58-9.el7 will be erased
---> Package policycoreutils.x86_64 0:2.5-34.el7 will be erased
--> Processing Dependency: policycoreutils for package: authconfig-6.2.8-30.el7.x86_64
---> Package polkit.x86_64 0:0.112-26.el7_9.1 will be erased
--> Processing Dependency: libpolkit-gobject-1.so.0()(64bit) for package: polkit-pkla-compat-0.1-4.el7.x86_64
---> Package postfix.x86_64 2:2.10.1-9.el7 will be erased
---> Package procps-ng.x86_64 0:3.3.10-28.el7 will be erased
---> Package python-pyudev.noarch 0:0.15-9.el7 will be erased
---> Package qemu-guest-agent.x86_64 10:2.12.0-3.el7 will be erased
---> Package quota.x86_64 1:4.01-19.el7 will be erased
---> Package rpcbind.x86_64 0:0.2.0-49.el7 will be erased
---> Package rsync.x86_64 0:3.1.2-12.el7_9 will be erased
---> Package rsyslog.x86_64 0:8.24.0-57.el7_9.3 will be erased
---> Package systemd-sysv.x86_64 0:219-78.el7_9.7 will be erased
---> Package trousers.x86_64 0:0.3.14-2.el7 will be erased
--> Processing Dependency: trousers >= 0.3.11.2 for package: gnutls-3.3.29-9.el7_6.x86_64
---> Package tuned.noarch 0:2.11.0-12.el7_9 will be erased
---> Package util-linux.x86_64 0:2.23.2-65.el7_9.1 will be erased
--> Processing Dependency: /sbin/nologin for package: openssh-7.4p1-22.el7_9.x86_64
--> Processing Dependency: util-linux for package: virt-what-1.18-4.el7_9.1.x86_64
---> Package wpa_supplicant.x86_64 1:2.6-12.el7_9.2 will be erased
---> Package yum.noarch 0:3.4.3-168.el7.centos will be erased
--> Processing Dependency: yum >= 3.0 for package: yum-plugin-fastestmirror-1.1.31-54.el7_8.noarch
--> Processing Dependency: yum >= 3.4.3-143 for package: yum-utils-1.1.31-54.el7_8.noarch
--> Running transaction check
---> Package NetworkManager-team.x86_64 1:1.18.8-2.el7_9 will be erased
---> Package authconfig.x86_64 0:6.2.8-30.el7 will be erased
---> Package avahi-libs.x86_64 0:0.6.31-20.el7 will be erased
---> Package cifs-utils.x86_64 0:6.2-10.el7 will be erased
---> Package cracklib.x86_64 0:2.9.0-11.el7 will be erased
--> Processing Dependency: cracklib = 2.9.0-11.el7 for package: cracklib-dicts-2.9.0-11.el7.x86_64
--> Processing Dependency: libcrack.so.2()(64bit) for package: libpwquality-1.2.3-5.el7.x86_64
--> Processing Dependency: libcrack.so.2()(64bit) for package: pam-1.1.8-23.el7.x86_64
---> Package cronie-anacron.x86_64 0:1.4.11-24.el7_9 will be erased
---> Package cryptsetup-libs.x86_64 0:2.0.3-6.el7 will be erased
---> Package cups-libs.x86_64 1:1.6.3-51.el7 will be erased
---> Package cyrus-sasl-lib.x86_64 0:2.1.26-24.el7_9 will be erased
--> Processing Dependency: libsasl2.so.3()(64bit) for package: openldap-2.4.44-25.el7_9.x86_64
---> Package dbus-glib.x86_64 0:0.100-7.el7 will be erased
---> Package dbus-python.x86_64 0:1.1.1-9.el7 will be erased
--> Processing Dependency: dbus-python >= 0.80 for package: python-slip-dbus-0.4.0-4.el7.noarch
--> Processing Dependency: dbus-python for package: python-firewall-0.6.3-13.el7_9.noarch
---> Package dhcp-common.x86_64 12:4.2.5-83.el7.centos.1 will be erased
---> Package elfutils-libs.x86_64 0:0.176-5.el7 will be erased
---> Package gnutls.x86_64 0:3.3.29-9.el7_6 will be erased
---> Package grub2-pc.x86_64 1:2.02-0.87.0.2.el7.centos.11 will be erased
--> Processing Dependency: grub2-pc = 1:2.02-0.87.0.2.el7.centos.11 for package: 1:grub2-2.02-0.87.0.2.el7.centos.11.x86_64
---> Package grub2-tools-extra.x86_64 1:2.02-0.87.0.2.el7.centos.11 will be erased
---> Package grub2-tools-minimal.x86_64 1:2.02-0.87.0.2.el7.centos.11 will be erased
---> Package hyperv-daemons.x86_64 0:0-0.34.20180415git.el7 will be erased
---> Package kbd.x86_64 0:1.15.5-16.el7_9 will be erased
---> Package kmod.x86_64 0:20-28.el7 will be erased
---> Package kpartx.x86_64 0:0.4.9-136.el7_9 will be erased
---> Package libcurl.x86_64 0:7.29.0-59.el7_9.1 will be erased
--> Processing Dependency: libcurl >= 7.29.0 for package: python-pycurl-7.19.0-19.el7.x86_64
--> Processing Dependency: libcurl = 7.29.0-59.el7_9.1 for package: curl-7.29.0-59.el7_9.1.x86_64
--> Processing Dependency: libcurl.so.4()(64bit) for package: gnupg2-2.0.22-5.el7_5.x86_64
--> Processing Dependency: libcurl.so.4()(64bit) for package: python-pycurl-7.19.0-19.el7.x86_64
--> Processing Dependency: libcurl.so.4()(64bit) for package: curl-7.29.0-59.el7_9.1.x86_64
---> Package libpciaccess.x86_64 0:0.14-1.el7 will be erased
---> Package libtirpc.x86_64 0:0.2.4-0.16.el7 will be erased
---> Package lshw.x86_64 0:B.02.18-17.el7 will be erased
---> Package openssh.x86_64 0:7.4p1-22.el7_9 will be erased
---> Package openssh-clients.x86_64 0:7.4p1-22.el7_9 will be erased
---> Package openssl-libs.x86_64 1:1.0.2k-25.el7_9 will be erased
--> Processing Dependency: libcrypto.so.10()(64bit) for package: fipscheck-1.4.1-6.el7.x86_64
--> Processing Dependency: libcrypto.so.10()(64bit) for package: libevent-2.0.21-4.el7.x86_64
--> Processing Dependency: libcrypto.so.10()(64bit) for package: libssh2-1.8.0-4.el7.x86_64
--> Processing Dependency: libcrypto.so.10()(64bit) for package: xmlsec1-openssl-1.2.20-7.el7_4.x86_64
--> Processing Dependency: libcrypto.so.10()(64bit) for package: python-libs-2.7.5-92.el7_9.x86_64
--> Processing Dependency: libcrypto.so.10()(64bit) for package: 1:mariadb-libs-5.5.68-1.el7.x86_64
--> Processing Dependency: libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) for package: xmlsec1-openssl-1.2.20-7.el7_4.x86_64
--> Processing Dependency: libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) for package: python-libs-2.7.5-92.el7_9.x86_64
--> Processing Dependency: libcrypto.so.10(OPENSSL_1.0.2)(64bit) for package: python-libs-2.7.5-92.el7_9.x86_64
--> Processing Dependency: libcrypto.so.10(libcrypto.so.10)(64bit) for package: fipscheck-1.4.1-6.el7.x86_64
--> Processing Dependency: libcrypto.so.10(libcrypto.so.10)(64bit) for package: libevent-2.0.21-4.el7.x86_64
--> Processing Dependency: libcrypto.so.10(libcrypto.so.10)(64bit) for package: libssh2-1.8.0-4.el7.x86_64
--> Processing Dependency: libcrypto.so.10(libcrypto.so.10)(64bit) for package: xmlsec1-openssl-1.2.20-7.el7_4.x86_64
--> Processing Dependency: libcrypto.so.10(libcrypto.so.10)(64bit) for package: python-libs-2.7.5-92.el7_9.x86_64
--> Processing Dependency: libcrypto.so.10(libcrypto.so.10)(64bit) for package: 1:mariadb-libs-5.5.68-1.el7.x86_64
--> Processing Dependency: libssl.so.10()(64bit) for package: xmlsec1-openssl-1.2.20-7.el7_4.x86_64
--> Processing Dependency: libssl.so.10()(64bit) for package: libssh2-1.8.0-4.el7.x86_64
--> Processing Dependency: libssl.so.10()(64bit) for package: python-libs-2.7.5-92.el7_9.x86_64
--> Processing Dependency: libssl.so.10()(64bit) for package: 1:mariadb-libs-5.5.68-1.el7.x86_64
--> Processing Dependency: libssl.so.10()(64bit) for package: libevent-2.0.21-4.el7.x86_64
--> Processing Dependency: libssl.so.10(libssl.so.10)(64bit) for package: python-libs-2.7.5-92.el7_9.x86_64
--> Processing Dependency: libssl.so.10(libssl.so.10)(64bit) for package: 1:mariadb-libs-5.5.68-1.el7.x86_64
--> Processing Dependency: libssl.so.10(libssl.so.10)(64bit) for package: libevent-2.0.21-4.el7.x86_64
---> Package parted.x86_64 0:3.1-32.el7 will be erased
---> Package pciutils.x86_64 0:3.5.1-3.el7 will be erased
---> Package polkit-pkla-compat.x86_64 0:0.1-4.el7 will be erased
---> Package teamd.x86_64 0:1.29-3.el7 will be erased
---> Package virt-what.x86_64 0:1.18-4.el7_9.1 will be erased
---> Package yum-plugin-fastestmirror.noarch 0:1.1.31-54.el7_8 will be erased
---> Package yum-utils.noarch 0:1.1.31-54.el7_8 will be erased
--> Running transaction check
---> Package cracklib-dicts.x86_64 0:2.9.0-11.el7 will be erased
---> Package curl.x86_64 0:7.29.0-59.el7_9.1 will be erased
---> Package fipscheck.x86_64 0:1.4.1-6.el7 will be erased
---> Package gnupg2.x86_64 0:2.0.22-5.el7_5 will be erased
--> Processing Dependency: gnupg2 for package: gpgme-1.3.2-5.el7.x86_64
---> Package grub2.x86_64 1:2.02-0.87.0.2.el7.centos.11 will be erased
---> Package libevent.x86_64 0:2.0.21-4.el7 will be erased
--> Processing Dependency: libevent-2.0.so.5()(64bit) for package: libverto-libevent-0.2.5-4.el7.x86_64
---> Package libpwquality.x86_64 0:1.2.3-5.el7 will be erased
---> Package libssh2.x86_64 0:1.8.0-4.el7 will be erased
---> Package mariadb-libs.x86_64 1:5.5.68-1.el7 will be erased
---> Package openldap.x86_64 0:2.4.44-25.el7_9 will be erased
--> Processing Dependency: liblber-2.4.so.2()(64bit) for package: sudo-1.8.23-10.el7_9.3.x86_64
--> Processing Dependency: libldap-2.4.so.2()(64bit) for package: sudo-1.8.23-10.el7_9.3.x86_64
--> Processing Dependency: libldap-2.4.so.2()(64bit) for package: libuser-0.60-9.el7.x86_64
--> Processing Dependency: libldap-2.4.so.2()(64bit) for package: libnfsidmap-0.25-19.el7.x86_64
--> Processing Dependency: openldap for package: libnfsidmap-0.25-19.el7.x86_64
---> Package pam.x86_64 0:1.1.8-23.el7 will be erased
--> Processing Dependency: libpam.so.0()(64bit) for package: passwd-0.79-6.el7.x86_64
--> Processing Dependency: libpam.so.0(LIBPAM_1.0)(64bit) for package: passwd-0.79-6.el7.x86_64
--> Processing Dependency: libpam_misc.so.0()(64bit) for package: passwd-0.79-6.el7.x86_64
--> Processing Dependency: libpam_misc.so.0(LIBPAM_MISC_1.0)(64bit) for package: passwd-0.79-6.el7.x86_64
--> Processing Dependency: pam >= 1.0.90 for package: passwd-0.79-6.el7.x86_64
---> Package python-firewall.noarch 0:0.6.3-13.el7_9 will be erased
---> Package python-libs.x86_64 0:2.7.5-92.el7_9 will be erased
--> Processing Dependency: libpython2.7.so.1.0()(64bit) for package: python-perf-3.10.0-1160.83.1.el7.x86_64
--> Processing Dependency: libpython2.7.so.1.0()(64bit) for package: pyxattr-0.5.1-5.el7.x86_64
--> Processing Dependency: libpython2.7.so.1.0()(64bit) for package: pygpgme-0.3-9.el7.x86_64
--> Processing Dependency: libpython2.7.so.1.0()(64bit) for package: python-2.7.5-92.el7_9.x86_64
--> Processing Dependency: libpython2.7.so.1.0()(64bit) for package: yum-metadata-parser-1.1.4-10.el7.x86_64
--> Processing Dependency: libpython2.7.so.1.0()(64bit) for package: python-tdb-1.3.18-1.el7.x86_64
--> Processing Dependency: libpython2.7.so.1.0()(64bit) for package: newt-python-0.52.15-4.el7.x86_64
--> Processing Dependency: libpython2.7.so.1.0()(64bit) for package: pyliblzma-0.5.3-11.el7.x86_64
--> Processing Dependency: libpython2.7.so.1.0()(64bit) for package: libxml2-python-2.9.1-6.el7_9.6.x86_64
--> Processing Dependency: libpython2.7.so.1.0()(64bit) for package: pytalloc-2.1.16-1.el7.x86_64
--> Processing Dependency: libpython2.7.so.1.0()(64bit) for package: pyldb-1.5.4-2.el7.x86_64
--> Processing Dependency: libpython2.7.so.1.0()(64bit) for package: python-schedutils-0.4-6.el7.x86_64
--> Processing Dependency: python-libs(x86-64) = 2.7.5-92.el7_9 for package: python-2.7.5-92.el7_9.x86_64
---> Package python-pycurl.x86_64 0:7.19.0-19.el7 will be erased
--> Processing Dependency: python-pycurl for package: python-urlgrabber-3.10-10.el7.noarch
---> Package python-slip-dbus.noarch 0:0.4.0-4.el7 will be erased
---> Package xmlsec1-openssl.x86_64 0:1.2.20-7.el7_4 will be erased
--> Running transaction check
---> Package gpgme.x86_64 0:1.3.2-5.el7 will be erased
---> Package libnfsidmap.x86_64 0:0.25-19.el7 will be erased
---> Package libuser.x86_64 0:0.60-9.el7 will be erased
---> Package libverto-libevent.x86_64 0:0.2.5-4.el7 will be erased
---> Package libxml2-python.x86_64 0:2.9.1-6.el7_9.6 will be erased
---> Package newt-python.x86_64 0:0.52.15-4.el7 will be erased
---> Package passwd.x86_64 0:0.79-6.el7 will be erased
---> Package pygpgme.x86_64 0:0.3-9.el7 will be erased
---> Package pyldb.x86_64 0:1.5.4-2.el7 will be erased
---> Package pyliblzma.x86_64 0:0.5.3-11.el7 will be erased
---> Package pytalloc.x86_64 0:2.1.16-1.el7 will be erased
---> Package python.x86_64 0:2.7.5-92.el7_9 will be erased
--> Processing Dependency: python(abi) = 2.7 for package: python-configobj-4.7.2-7.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: python-kitchen-1.1.1-5.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: python-iniparse-0.4-9.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: python-gobject-base-3.22.0-1.el7_4.1.x86_64
--> Processing Dependency: python(abi) = 2.7 for package: python-linux-procfs-0.4.11-4.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: python-chardet-2.2.1-3.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: python-slip-0.4.0-4.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: libselinux-python-2.5-15.el7.x86_64
--> Processing Dependency: python(abi) = 2.7 for package: python-decorator-3.4.0-3.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: python-configobj-4.7.2-7.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: python-kitchen-1.1.1-5.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: python-iniparse-0.4-9.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: python-gobject-base-3.22.0-1.el7_4.1.x86_64
--> Processing Dependency: python(abi) = 2.7 for package: python-linux-procfs-0.4.11-4.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: python-chardet-2.2.1-3.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: python-slip-0.4.0-4.el7.noarch
--> Processing Dependency: python(abi) = 2.7 for package: libselinux-python-2.5-15.el7.x86_64
--> Processing Dependency: python(abi) = 2.7 for package: python-decorator-3.4.0-3.el7.noarch
---> Package python-perf.x86_64 0:3.10.0-1160.83.1.el7 will be erased
---> Package python-schedutils.x86_64 0:0.4-6.el7 will be erased
---> Package python-tdb.x86_64 0:1.3.18-1.el7 will be erased
---> Package python-urlgrabber.noarch 0:3.10-10.el7 will be erased
---> Package pyxattr.x86_64 0:0.5.1-5.el7 will be erased
---> Package sudo.x86_64 0:1.8.23-10.el7_9.3 will be erased
---> Package yum-metadata-parser.x86_64 0:1.1.4-10.el7 will be erased
--> Running transaction check
---> Package libselinux-python.x86_64 0:2.5-15.el7 will be erased
---> Package python-chardet.noarch 0:2.2.1-3.el7 will be erased
---> Package python-configobj.noarch 0:4.7.2-7.el7 will be erased
---> Package python-decorator.noarch 0:3.4.0-3.el7 will be erased
---> Package python-gobject-base.x86_64 0:3.22.0-1.el7_4.1 will be erased
---> Package python-iniparse.noarch 0:0.4-9.el7 will be erased
---> Package python-kitchen.noarch 0:1.1.1-5.el7 will be erased
---> Package python-linux-procfs.noarch 0:0.4.11-4.el7 will be erased
---> Package python-slip.noarch 0:0.4.0-4.el7 will be erased
--> Processing Dependency: /usr/bin/python for package: gettext-0.19.8.1-3.el7.x86_64
--> Processing Dependency: /etc/cron.d for package: crontabs-1.11-6.20121102git.el7.noarch
--> Processing Dependency: /usr/bin/sha512sum for package: selinux-policy-3.13.1-268.el7_9.2.noarch
--> Processing Dependency: /usr/bin/fipscheck for package: fipscheck-lib-1.4.1-6.el7.x86_64
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package crontabs.noarch 0:1.11-6.20121102git.el7 will be erased
---> Package fipscheck-lib.x86_64 0:1.4.1-6.el7 will be erased
---> Package gettext.x86_64 0:0.19.8.1-3.el7 will be erased
---> Package selinux-policy.noarch 0:3.13.1-268.el7_9.2 will be erased
--> Processing Dependency: selinux-policy = 3.13.1-268.el7_9.2 for package: selinux-policy-targeted-3.13.1-268.el7_9.2.noarch
--> Processing Dependency: selinux-policy = 3.13.1-268.el7_9.2 for package: selinux-policy-targeted-3.13.1-268.el7_9.2.noarch
--> Running transaction check
---> Package selinux-policy-targeted.noarch 0:3.13.1-268.el7_9.2 will be erased
--> Finished Dependency Resolution
Error: Trying to remove "systemd", which is protected
Error: Trying to remove "yum", which is protected
[root@centos7 vagrant]# 

The same as with coreutils happens, the system would break if libcap was removed. In addition, it would be installed as a dependency for the package.

Install the Wazuh dashboard as per the documentation
[root@centos7 vagrant]# yum -y install wazuh-dashboard
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.airenetworks.es
 * extras: mirror.airenetworks.es
 * updates: mirror.airenetworks.es
Resolving Dependencies
--> Running transaction check
---> Package wazuh-dashboard.x86_64 0:4.3.10-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================================================
 Package                                                  Arch                                            Version                                             Repository                                      Size
===================================================================================================================================================================================================================
Installing:
 wazuh-dashboard                                          x86_64                                          4.3.10-1                                            wazuh                                          150 M

Transaction Summary
===================================================================================================================================================================================================================
Install  1 Package

Total download size: 150 M
Installed size: 587 M
Downloading packages:
wazuh-dashboard-4.3.10-1.x86_64.rpm                                                                                                                                                         | 150 MB  00:01:36     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : wazuh-dashboard-4.3.10-1.x86_64                                                                                                                                                                 1/1 
  Verifying  : wazuh-dashboard-4.3.10-1.x86_64                                                                                                                                                                 1/1 

Installed:
  wazuh-dashboard.x86_64 0:4.3.10-1                                                                                                                                                                                

Complete!
[root@centos7 vagrant]# 

verdx avatar Feb 21 '23 14:02 verdx

This issue should be reviewed again, a list of agent dependencies must be defined, and compare this list with the documentation and the steps established in the Wazuh dashboard UI.

rauldpm avatar Mar 24 '23 14:03 rauldpm

The issue is on hold for: https://github.com/wazuh/wazuh-jenkins/issues/4834

verdx avatar Mar 24 '23 14:03 verdx

Update

As of right now, version 4.4.1 the only difference between the documentation and the deployment as explained in the dashboard is the following:

  • Using the documentation, the repository is added to the list and the package is installed with the correspondent package manager. Only in the case of Debian 7, 8, and Ubuntu 14 systems some previous installations are needed (gnupg apt-transport-https) to add the repository key
  • Using the Wazuh dashboard explanation you add more deployment variables and the repository is not added, the package is directly installed using a link.

In neither of them are dependencies specified to install previously and the difference seems justified. When using the documentation the explanation and installation is more detailed, but when using the deployment screen users are probably searching for a simple command with which to install agents quickly.

verdx avatar Apr 27 '23 11:04 verdx

Since 4.4.1 there has not been any incident which has referred to this issue, and the last comment explains the last doubt, so I am closing the issue. If necessary, feel free to reopen the issue to investigate it and complete it with missing information.

MarcelKemp avatar Jan 30 '24 11:01 MarcelKemp