Results 1 to 1 of 1

Thread: Installing Kali metapackage that requires a GUI for interaction

  1. #1
    Join Date

    Installing Kali metapackage that requires a GUI for interaction

    Within Kali's docker image, I am trying to install
    , but I'm being prompted by Kismet to do some stuff.

    Here's my basic Dockerfile:

    FROM kalilinux/kali-rolling
    # Set environment variable for non-interactive install
    ENV DEBIAN_FRONTEND noninteractive
    # Run basic commands to update the image
    RUN apt update
    RUN apt dist-upgrade -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold"
    RUN apt autoremove -y
    RUN apt clean -y
    RUN apt install kali-linux-default -yq -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold"
    However, I get to this prompt:

    Checking NSS setup...
    Setting up libxcb-render-util0:amd64 (0.3.9-1+b1) ...
    Setting up xkb-data (2.29-2) ...
    Setting up liblzo2-2:amd64 (2.10-2) ...
    Setting up libntfs-3g883 (1:2017.3.23AR.3-3) ...
    Setting up libnpth0:amd64 (1.6-3) ...
    Setting up hdparm (9.58+ds-5) ...
    Setting up libprotobuf23:amd64 (3.12.3-2+b2) ...
    Setting up krb5-locales (1.18.3-4) ...
    Setting up kismet-capture-common (2020.12.R3-0kali1) ...
    debconf: unable to initialize frontend: Dialog
    debconf: (TERM is not set, so the dialog frontend is not usable.)
    debconf: falling back to frontend: Readline
    Configuring kismet-capture-common
    Kismet needs root privileges for some of its functions. However, running it as
    root ("sudo kismet") is not recommended, since running all of the code with
    elevated privileges increases the risk of bugs doing system-wide damage.
    Instead Kismet can be installed with the "setuid" bit set, which will allow it
    to grant these privileges automatically to the processes that need them,
    excluding the user interface and packet decoding parts.
    Enabling this feature allows users in the "kismet" group to run Kismet (and
    capture packets, change wireless card state, etc), so only thoroughly trusted
    users should be granted membership of the group.
    For more detailed information, see the Kismet, which can be found
    at "/usr/share/doc/kismet-doc/readme/" in kismet-doc package or
    Install Kismet "setuid root"? [yes/no] yes
    When hitting "yes" or "no", it just gets stuck and nothing happens. I assume this is because it's probably trying to display a terminal GUI so that other options can be selected. However, I thought the environment variable and the options that I provided with apt install would have actually just accepted whatever defaults were prompted?

    What do I need to do in order to continue accepting defaults and do a true, non-interactive install of kali-linux-default?


    Added an extra "q" and that solved it, turning "apt install -yq" to "apt install -yqq"
    Last edited by altjx; 2020-12-19 at 15:44.

Similar Threads

  1. Installing Kali metapackage (SDR Tools) Breaks apt-get (libqt4 related)
    By TacticalChaos in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2016-08-17, 19:49
  2. Installing Kali-All Metapackage breaks msfconsole
    By ebola0 in forum TroubleShooting Archive
    Replies: 2
    Last Post: 2016-08-07, 18:59
  3. Installing kali-linux-full metapackage..
    By BazzaBoiii in forum Installing Archive
    Replies: 0
    Last Post: 2014-09-11, 21:56
  4. Kali Update Breaks the POSTGRESQL Metapackage
    By amorandi in forum Installing Archive
    Replies: 1
    Last Post: 2013-05-10, 19:49

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts