Three days ago I noticed that my localhost on port 80 was occupied by an Apache server. I uninstalled it and started to find out if it was a sign of some kind of malware.
I found out from the logs:
I definitely didn't install it myself, because there was no apt-get install apache2 command or anything similar in bash
As I found out from the system logs, this server was installed along with the packages that are included in the git dependencies. That said, git was already previously installed on the system. That said, apache2 (I checked via
apt-cache rdepends) was not a dependency of any other package.In the interval that apache2 with dependencies was installed, I was installing docker using the tutorial from the official site. After installing apache2 directly, I started the docker installation.
sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release sudo apt-get install docker-ce=5:20.10.9~3-0~ubuntu-focal docker-ce-cli=5:20.10.9~3-0~ubuntu-focal containerd.io
apache2 dependencies in "secret" installing
end of "secret" installation and beginning of docker installing

