Hi,

I literally just tried to install wifiphisher using the ~$ sudo apt-get install wifiphisher command. I have no clue whether it actually installed wifiphisher, but what I'm more concerned about is that it went on and started removing literally all (some) of my applications and packages.

It's long, but here is the console activity (long lists of package names I replaced with `[repetition...]` with one package left before and after it):

Code:
kali@kali:~$ sudo apt-get install wifiphisher
[sudo] password for kali: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  baloo-kf5 [repetition...] user-manager
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  blueman [repetition...] winexe
Suggested packages:
  cython-doc [repetition...]
  sendmail-bin
Recommended packages:
  xsettingsd | xsettings-kde [repetition...] libgfapi0
The following packages will be REMOVED:
  ark [repetition...] systemsettings
The following NEW packages will be installed:
  dns-root-data [repetition...]
  wifiphisher
The following packages will be upgraded:
  blueman [repetition...] winexe
272 upgraded, 28 newly installed, 75 to remove and 2017 not upgraded.
Need to get 341 MB of archives.
After this operation, 155 MB disk space will be freed.
Do you want to continue? [Y/n] 
Get:1 http://mirror.serverius.net/kali kali-rolling/main amd64 libqt5x11extras5 amd64 5.15.2-2 [12.4 kB]
[repetition...]
Get:299 http://mirror.neostrada.nl/kali kali-rolling/main amd64 python3-roguehostapd amd64 1.2.3+git20191209-0kali1+b1 [404 kB]
Fetched 341 MB in 6min 17s (904 kB/s)                                          
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 426669 files and directories currently installed.)

### Now, here all of a sudden this $h*t started, which removed some of my applications and packages:

Removing kali-desktop-kde (2020.3.9) ...
Removing ark (4:20.04.0-1) ...
Removing bluedevil (4:5.17.5-2) ...
Removing kde-plasma-desktop (5:104) ...
Removing plasma-desktop (4:5.17.5-3) ...
Removing sddm-theme-breeze (4:5.17.5-4) ...
Removing kde-baseapps (4:17.08.3+5.104) ...
Removing konqueror (4:20.04.0-1) ...
Removing dolphin (4:20.04.2-1) ...
Removing gwenview (4:20.04.0-1) ...
Removing kaccounts-providers (4:17.08.3-2) ...
Removing kamera (4:20.04.2-1) ...
Removing kcalc (4:20.04.2-1) ...
Removing kscreen (4:5.17.5-2) ...
Removing kdeconnect (20.04.2-1) ...
Removing kde-cli-tools (4:5.17.5-2) ...
Removing kde-config-screenlocker (5.17.5-2) ...
Removing kde-config-sddm (4:5.17.5-2) ...
Removing kde-spectacle (20.04.1-1) ...
Removing kde-style-oxygen-qt5 (4:5.17.5-2) ...
Removing keditbookmarks (20.04.0-1) ...
Removing kfind (4:19.08.1-1+b1) ...
Removing khelpcenter (4:20.04.2-1) ...
Removing khotkeys (4:5.17.5-2) ...
Removing kinfocenter (4:5.17.5-2) ...
Removing kio-extras (4:19.12.3-1) ...
Removing kmenuedit (4:5.17.5-2) ...
Removing konsole (4:20.04.2-1) ...
Removing konsole-kpart (4:20.04.2-1) ...
Removing ksshaskpass (4:5.17.5-2) ...
Removing ksysguard (4:5.17.5-3) ...
Removing kwrite (4:20.04.1-1) ...
Removing ktexteditor-katepart (5.70.1-1) ...
Removing kwin-x11 (4:5.17.5-2+b1) ...
Removing okular (4:20.04.2-1) ...
Removing libokular5core9 (4:20.04.2-1) ...
Removing systemsettings (4:5.17.5-2) ...
Removing libkf5kdelibs4support5-bin (5.70.0-2) ...
Removing libkf5khtml5:amd64 (5.70.0-1) ...
Removing libkf5konq6:amd64 (4:20.04.0-1) ...
Removing libkf5kipi32.0.0:amd64 (4:19.08.1-1+b1) ...
Removing plasma-workspace (4:5.17.5-4) ...
Removing plasma-integration (5.17.5-2+b1) ...
Removing breeze (4:5.17.5-2) ...
Removing drkonqi (5.17.5-2) ...
Removing kactivitymanagerd (5.17.5-2) ...
Removing kwin-common (4:5.17.5-2+b1) ...
Removing libcolorcorrect5 (4:5.17.5-4) ...
Removing libkf5kcmutils5:amd64 (5.70.0-1) ...
Removing libkf5kdelibs4support5:amd64 (5.70.0-2) ...
Removing libnotificationmanager1 (4:5.17.5-4) ...
Removing libkf5kiofilewidgets5:amd64 (5.70.1-1) ...
Removing libkf5bookmarks5:amd64 (5.70.0-1) ...
(Reading database ... 418856 files and directories currently installed.)
Preparing to unpack .../000-libqt5x11extras5_5.15.2-2_amd64.deb ...
Unpacking libqt5x11extras5:amd64 (5.15.2-2) over (5.14.2-2) ...
Preparing to unpack .../001-libqt5dbus5_5.15.2+dfsg-5_amd64.deb ...
Unpacking libqt5dbus5:amd64 (5.15.2+dfsg-5) over (5.14.2+dfsg-4) ... [repetition...]
Preparing to unpack .../109-libpython3-dev_3.9.2-2_amd64.deb ...
Unpacking libpython3-dev:amd64 (3.9.2-2) over (3.8.2-3) ...
Setting up libpython3.9-minimal:amd64 (3.9.2-1) ...
Setting up python3.9-minimal (3.9.2-1) ...
(Reading database ... 419529 files and directories currently installed.)
Preparing to unpack .../python3-minimal_3.9.2-2_amd64.deb ...
Unpacking python3-minimal (3.9.2-2) over (3.8.2-3) ...
Setting up python3-minimal (3.9.2-2) ...
(Reading database ... 419529 files and directories currently installed.)
Preparing to unpack .../0-python3_3.9.2-2_amd64.deb ...
running python pre-rtupdate hooks for python3.9...
Unpacking python3 (3.9.2-2) over (3.8.2-3) ... [repetition...]
Preparing to unpack .../6-set_8.0.3+git20200609-0kali2_all.deb ...
Unpacking set (8.0.3+git20200609-0kali2) over (8.0.3-0kali1) ...
(Reading database ... 419532 files and directories currently installed.)
Removing python3-rekall-core (1.7.2~rc1+git20190104+dfsg-2) ...
Removing python3-rekall-lib (1.7.2~rc1+git20190104+dfsg-2) ...
dpkg: python3-crypto: dependency problems, but removing anyway as you requested:
 python3-pywerview depends on python3-crypto.
 patator depends on python3-crypto.
 creddump7 depends on python3-crypto; however:
  Package python3-crypto is to be removed.

Removing python3-crypto (2.6.1-13) ...
(Reading database ... 418917 files and directories currently installed.)
Preparing to unpack .../00-python3-cffi-backend_1.14.5-1_amd64.deb ...
Unpacking python3-cffi-backend:amd64 (1.14.5-1) over (1.14.0-2) ... [repetition...]
Preparing to unpack .../66-libqt5multimediawidgets5_5.15.2-3_amd64.deb ...
Unpacking libqt5multimediawidgets5:amd64 (5.15.2-3) over (5.14.2-2) ...
(Reading database ... 419579 files and directories currently installed.)
Removing powerdevil (4:5.17.5-2) ...
Removing plasma-pa (4:5.17.5-2) ...
dpkg: libkf5xmlgui5:amd64: dependency problems, but removing anyway as you requested:
 plasma-framework depends on libkf5xmlgui5 (>= 5.70.0~); however:
  Package libkf5xmlgui5:amd64 is to be removed.
 plasma-discover depends on libkf5xmlgui5 (>= 4.96.0); however:
  Package libkf5xmlgui5:amd64 is to be removed.
 libpowerdevilcore2 depends on libkf5xmlgui5 (>= 4.96.0). [repetition...]
 libkf5newstuff5:amd64 depends on libkf5xmlgui5 (>= 5.70.0~).

Removing libkf5xmlgui5:amd64 (5.70.0-1+b1) ...
dpkg: plasma-framework: dependency problems, but removing anyway as you requested:
 plasma-nm depends on plasma-framework.
 milou depends on plasma-framework.

Removing plasma-framework (5.70.1-1) ...
(Reading database ... 418757 files and directories currently installed.)
Preparing to unpack .../00-libqt5core5a_5.15.2+dfsg-5_amd64.deb ...
Unpacking libqt5core5a:amd64 (5.15.2+dfsg-5) over (5.14.2+dfsg-4) ... [repetition...]
Preparing to unpack .../33-kde-config-gtk-style_4%3a5.20.5-2_amd64.deb ...
Unpacking kde-config-gtk-style:amd64 (4:5.20.5-2) over (4:5.17.5-2) ...
(Reading database ... 418809 files and directories currently installed.)
Removing libkf5newstuff5:amd64 (5.70.0-1) ...
Removing libkf5parts-plugins (5.70.0-1) ...
Removing libkf5texteditor5:amd64 (5.70.1-1) ...
Removing libkf5parts5:amd64 (5.70.0-1) ...
Removing libweather-ion7 (4:5.17.5-4) ...
Removing libkf5plasmaquick5:amd64 (5.70.1-1) ...
Removing qml-module-org-kde-runnermodel (5.70.0-1) ...
Removing milou (4:5.17.5-2) ...
Removing libkf5runner5:amd64 (5.70.0-1) ...
Removing libkwin4-effect-builtins1 (4:5.17.5-2+b1) ...
Removing libkwineffects12 (4:5.17.5-2+b1) ...
Removing libpowerdevilcore2 (4:5.17.5-2) ...
Removing plasma-discover (5.17.5-2) ...
Removing plasma-nm (4:5.17.5-2) ...
Removing libkf5plasma5:amd64 (5.70.1-1) ...
Selecting previously unselected package hostapd.
(Reading database ... 417842 files and directories currently installed.)
Preparing to unpack .../00-hostapd_2%3a2.9.0-21_amd64.deb ...
Unpacking hostapd (2:2.9.0-21) ... [repetition...]
Preparing to unpack .../78-python3-pywerview_0.2.0+git20191220-0kali2_all.deb ...
Unpacking python3-pywerview (0.2.0+git20191220-0kali2) over (0.2.0+git20191220-0kali1) ...
Selecting previously unselected package python3-roguehostapd.
Preparing to unpack .../79-python3-roguehostapd_1.2.3+git20191209-0kali1+b1_amd64.deb ...
Unpacking python3-roguehostapd (1.2.3+git20191209-0kali1+b1) ...
Selecting previously unselected package wifiphisher.
Preparing to unpack .../80-wifiphisher_1.4+git20200611-0kali1_all.deb ...
Unpacking wifiphisher (1.4+git20200611-0kali1) ...
Setting up libkf5codecs-data (5.78.0-2) ... [repetition...]
Setting up breeze-cursor-theme (4:5.20.5-3) ...
Installing new version of config file /etc/X11/cursors/Breeze_Snow.theme ...
Installing new version of config file /etc/X11/cursors/breeze_cursors.theme ...
Setting up libkf5khtml-data (5.78.0-2) ... [repetition...]
Setting up libkf5xmlgui-data (5.78.0-2) ...
Installing new version of config file /etc/xdg/ui/ui_standards.rc ...
Setting up samba-common (2:4.13.5+dfsg-1) ...
Replacing config file /etc/samba/smb.conf with new version
Setting up dnsmasq-base (2.85-1) ... [repetition...]
Setting up hostapd (2:2.9.0-21) ...
update-rc.d: We have no instructions for the hostapd init script.
update-rc.d: It looks like a network service, we disable it.
hostapd.service is a disabled or a static unit, not starting it.
Created symlink /etc/systemd/system/hostapd.service → /dev/null.
Setting up libkf5dbusaddons-data (5.78.0-2) ... [repetition...]
Setting up python-matplotlib-data (3.3.4-1) ...
Installing new version of config file /etc/matplotlibrc ...
Setting up libproj19:amd64 (7.2.1-1) ... [repetition...]
Setting up python3 (3.9.2-2) ...
running python rtupdate hooks for python3.9...
/usr/share/legion/app/auxiliary.py:273: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if text is not '' and text is not ' ': [repetition...]
/usr/share/responder/utils.py:191: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if settings.Config.PY2OR3 is "PY2":
running python post-rtupdate hooks for python3.9...
Setting up libkf5waylandserver5:amd64 (4:5.78.0-2) ... [repetition...]
Setting up blueman (2.1.4-1+b1) ...
Installing new version of config file /etc/xdg/autostart/blueman.desktop ...
blueman-mechanism.service is a disabled or a static unit not running, not starting it.
Setting up python3-mpltoolkits.basemap (1.2.2+dfsg-1+b1) ... [repetition...]
Setting up samba-common-bin (2:4.13.5+dfsg-1) ...
Checking smb.conf with testparm
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Weak crypto is allowed
Server role: ROLE_STANDALONE

Done
Setting up qml-module-qtquick-dialogs:amd64 (5.15.2-2) ...
Setting up samba (2:4.13.5+dfsg-1) ...
Samba is not being run as an AD Domain Controller: Masking samba-ad-dc.service
Please ignore the following error about deb-systemd-helper not finding those services.
(samba-ad-dc.service already masked)
nmbd.service is a disabled or a static unit not running, not starting it.
samba-ad-dc.service is a disabled or a static unit not running, not starting it.
smbd.service is a disabled or a static unit not running, not starting it.
Setting up qml-module-qtquick-controls2:amd64 (5.15.2+dfsg-2) ... [repetition...]
Setting up libkf5quickaddons5:amd64 (5.78.0-2) ...
Processing triggers for shared-mime-info (1.15-1) ...
Processing triggers for bamfdaemon (0.5.4-2) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for kali-menu (2020.3.2) ... [repetition...]
Processing triggers for dbus (1.12.20-1) ...
So, umm... What the heck was that? As far as in my experience I never saw it removing random applications and packages by using the apt-get install command. Does anyone know how to prevent this in the future? In terms of recovery I think I will have to reinstall all the applications and packages manually.

Ty