Results 1 to 1 of 1

Thread: Installing Kali metapackage that requires a GUI for interaction

  1. #1
    Join Date
    2013-Mar
    Posts
    29

    Installing Kali metapackage that requires a GUI for interaction

    Within Kali's docker image, I am trying to install
    Code:
    kali-linux-default
    , but I'm being prompted by Kismet to do some stuff.

    Here's my basic Dockerfile:

    Code:
    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:

    Code:
    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 010-suid.md, which can be found
    at "/usr/share/doc/kismet-doc/readme/010-suid.md" in kismet-doc package or
    "https://www.kismetwireless.net/docs/readme/suid/".
    
    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?

    EDIT

    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 Linux .iso on VirtualBox; metapackage problem
    By csmith491 in forum Installing Archive
    Replies: 1
    Last Post: 2022-08-14, 13:57
  2. Nexus 7 , installing metapackage hangs on mariadb and forces reboot
    By jesuschristyall in forum NetHunter General Questions
    Replies: 0
    Last Post: 2021-05-11, 14:07
  3. 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
  4. Installing Kali-All Metapackage breaks msfconsole
    By ebola0 in forum TroubleShooting Archive
    Replies: 2
    Last Post: 2016-08-07, 18:59
  5. Installing kali-linux-full metapackage..
    By BazzaBoiii in forum Installing Archive
    Replies: 0
    Last Post: 2014-09-11, 21:56

Posting Permissions

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