Ufw 在安装过程中与 init systemd-sysv 冲突

Ufw 在安装过程中与 init systemd-sysv 冲突

我在电脑上安装了kali,但后来我尝试将其做成服务器,所以我安装了PHP、MySQL和apache2。我做了一些研究,它告诉我安装 UFW,所以我在终端输入:

sudo apt-get ufw

这是输出:

root@kali-k:~# sudo apt-get install ufw



 Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
      accountsservice apg appstream colord-data cracklib-runtime cups-pk-helper
      dns-root-data dnsmasq-base eject exfat-fuse exfat-utils
      gir1.2-accountsservice-1.0 gir1.2-clutter-gst-3.0 gir1.2-evince-3.0
      gir1.2-gck-1 gir1.2-gcr-3 gir1.2-gdm-1.0 gir1.2-gmenu-3.0
      gir1.2-gnomebluetooth-1.0 gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0
      gir1.2-gtkclutter-1.0 gir1.2-gweather-3.0 gir1.2-ibus-1.0 gir1.2-mutter-3.0
      gir1.2-networkmanager-1.0 gir1.2-nmgtk-1.0 gir1.2-packagekitglib-1.0
      gir1.2-polkit-1.0 gir1.2-telepathyglib-0.12 gir1.2-telepathylogger-0.2
      gir1.2-upowerglib-1.0 gnome-control-center-data gnome-session-bin
      gnome-session-common gnome-shell-common gnome-software-common gvfs-libs
      libaccountsservice0 libappstream-glib8 libappstream4 libatasmart4
      libcolord-gtk1 libcolorhug2 libcrack2 libdbd-mysql-perl libfwupd1
      libgail-3-0 libgcab-1.0-0 libgdm1 libgeoclue-2-0 libgnome-autoar-0-0
      libgnome-menu-3-0 libgtkspell3-3-0 libgusb2 libibus-1.0-5 libjim0.76
      libmbim-glib4 libmbim-proxy libmm-glib0 libmtp-common libmtp-runtime libmtp9
      libmusicbrainz5-2 libmusicbrainz5cc2v5 libmutter0i libndp0 libnfs8
      libnm-glib4 libnm-gtk0 libnm-util2 libnm0 libnma0 libnss-myhostname
      libpackagekit-glib2-18 libpolkit-agent-1-0 libpolkit-backend-1-0
      libpulse-mainloop-glib0 libpwquality-common libpwquality1 libqmi-glib5
      libqmi-proxy libreadline6 librygel-core-2.6-2 librygel-db-2.6-2
      librygel-renderer-2.6-2 librygel-server-2.6-2 libteamdctl0
      libtelepathy-logger3 libudisks2-0 libxcb-res0 mobile-broadband-provider-info
      modemmanager mousetweaks mutter mutter-common nautilus-data php7.0-mysql
      python3-software-properties rygel software-properties-common
      software-properties-gtk unattended-upgrades usb-modeswitch
      usb-modeswitch-data wpasupplicant xwayland
    Use 'sudo apt autoremove' to remove them.
    The following packages will be REMOVED:
      chrome-gnome-shell colord dbus-user-session ettercap-graphical gdm3
      gnome-control-center gnome-core gnome-disk-utility gnome-session
      gnome-settings-daemon gnome-shell gnome-shell-extension-dashtodock
      gnome-shell-extension-easyscreencast gnome-shell-extension-proxyswitcher
      gnome-shell-extension-workspacestodock gnome-shell-extensions gnome-software
      gnome-sushi gnome-tweak-tool gvfs gvfs-backends gvfs-daemons gvfs-fuse
      iio-sensor-proxy init libpam-systemd nautilus network-manager
      network-manager-gnome packagekit packagekit-tools policykit-1 rtkit systemd
      systemd-sysv udisks2
    The following NEW packages will be installed:
      ufw
    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, 1 newly installed, 36 to remove and 0 not upgraded.
    Need to get 138 kB of archives.
    After this operation, 78.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!'

我应该怎么办?

答案1

简而言之:

  • 这里的包管理器会提示您删除一堆必需的包,这将使您的系统无法使用。这是非常不明智的,不应该发生,除非源代码库被搞乱了。

  • Kali 是一个用于渗透测试的发行版,它的目的并不是充当任何类型的服务器。

  • 此外,Kali 不适合 Linux 新手。

您应该清除 Kali,忘记它并安装 Debian 或 Ubuntu 来开始体验 Linux。

相关内容