ThePorgs / Exegol-images

Docker images of the Exegol project
https://exegol.readthedocs.io/
GNU General Public License v3.0
73 stars 56 forks source link

[BUG] packages.list file, necessary empty line #329

Open lap1nou opened 2 months ago

lap1nou commented 2 months ago

Describe the bug

Greetings,

I don't know if it's a bug or not, but creating a packages.list in my-resources without an empty line at the end doesn't actually install the packages.

Maybe it's not a bug, but personally I was confused as of why my package wasn't installing but maybe I'm alone.

Steps To Reproduce

  1. Create or modify a packages.list in my-resources like that:
    # The customization of some tools may require the installation of some packages or other dependencies.
    # To simplify this process, the name of the packages to be installed can be listed in this file.
    # All packages listed below will be installed automatically when creating a new Exegol container.
    eza

keys.list:

https://raw.githubusercontent.com/eza-community/eza/main/deb.asc

sources.list:

deb http://deb.gierens.de stable main
  1. Start an Exegol container, the eza package (or any specified package) should be installed but it's not, in order to fix it, one should add an empty line at the end of the file:
    # The customization of some tools may require the installation of some packages or other dependencies.
    # To simplify this process, the name of the packages to be installed can be listed in this file.
    # All packages listed below will be installed automatically when creating a new Exegol container.
    eza
    <----- HERE

Exegol Wrapper Version

[*] Exegol is currently in version v4.3.1
[*] Exegol Discord serv.: https://discord.gg/cXThyp7D6P
[*] Exegol documentation: https://exegol.rtfd.io/
[+] We thank Capgemini for supporting the project (helping with dev) πŸ™
[+] We thank HackTheBox for sponsoring the multi-arch support πŸ’š
[D] Pip installation: On βœ”
[D] Git source installation: Off πŸͺ“
[D] Host OS: Linux (Kernel)
[D] Arch: amd64
[D] Raw arch: x86_64
[D] Docker desktop: Off πŸͺ“
[D] Shell type: Linux
[D] Last wrapper update check: 07/04/2024

Exegol container information

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚             Name β”‚ TEST                                                                                                                                              β”‚
β”‚            Image β”‚ full - v.3.1.2 (Up to date) (amd64)                                                                                                               β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚          Comment β”‚ Exegol container for the machine TEST                                                                                                             β”‚
β”‚      Credentials β”‚ root : $PASSWORD                                                                                                             β”‚
β”‚          Desktop β”‚ Off πŸͺ“                                                                                                                                            β”‚
β”‚    Creation date β”‚ 12/04/2024 20:13                                                                                                                                  β”‚
β”‚              X11 β”‚ On βœ”                                                                                                                                              β”‚
β”‚          Network β”‚ bridge with VPN                                                                                                                                   β”‚
β”‚         Timezone β”‚ Off πŸͺ“                                                                                                                                            β”‚
β”‚ Exegol resources β”‚ On βœ” (/opt/resources)                                                                                                                             β”‚
β”‚     My resources β”‚ On βœ” (/opt/my-resources)                                                                                                                          β”‚
β”‚    Shell logging β”‚ On βœ” (/workspace/logs)                                                                                                                            β”‚
β”‚              VPN β”‚ VPN.conf                                                                                                                                         β”‚
β”‚       Privileged β”‚ Off βœ”                                                                                                                                             β”‚
β”‚     Capabilities β”‚ NET_ADMIN                                                                                                                                         β”‚
β”‚        Workspace β”‚ Dedicated (/workspace)                                                                                                                            β”‚
β”‚          Devices β”‚ /dev/net/tun:/dev/net/tun:rwm                                                                                                                     β”‚
β”‚             Envs β”‚ DISPLAY=:0                                                                                                                                        β”‚
β”‚                  β”‚ _JAVA_AWT_WM_NONREPARENTING=1                                                                                                                     β”‚
β”‚                  β”‚ QT_X11_NO_MITSHM=1                                                                                                                                β”‚
β”‚                  β”‚ EXEGOL_START_SHELL_LOGGING=asciinema                                                                                                              β”‚
β”‚                  β”‚ EXEGOL_START_SHELL_COMPRESS=True                                                                                                                  β”‚                                                                                                                                  
β”‚                  β”‚ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin                                                                                 β”‚
β”‚          Volumes β”‚ (RW) /root/.exegol/workspaces/TEST ➑ /workspace                                                                                                   β”‚
β”‚                  β”‚ (RO) /nix/store/y79bsl7bc530pg0kdff560ldd6c12qxi-python3.11-exegol/lib/python3.11/site-packages/exegol/utils/imgsync/spawn.sh ➑ /.exegol/spawn.sh β”‚
β”‚                  β”‚ (RW) /tmp/.X11-unix ➑ /tmp/.X11-unix                                                                                                              β”‚
β”‚                  β”‚ (RW) /root/.exegol/my-resources ➑ /opt/my-resources                                                                                               β”‚
β”‚                  β”‚ (RW) /root/.exegol/exegol-resources ➑ /opt/resources                                                                                              β”‚
β”‚                  β”‚ (RO) /root/VPN.conf ➑ /.exegol/vpn/config/client.ovpn                                                                                             β”‚
β”‚         Systctls β”‚ net.ipv6.conf.all.disable_ipv6 = 0                                                                                                                β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Exception

No response

Additional context

No response

Anything else?

No response

QU35T-code commented 2 months ago

Hey @lap1nou,

Cannot reproduce, can you retry with the dev branch ? (Exegol is currently in version v4.3.2b1 [dev-6c29d34a]) Also, can you send the output of the following commands ?

sources.list

❯ cat -e /Users/qu35t/.exegol/my-resources/setup/apt/sources.list
# This file allows to add apt repository, in order to install various packages later on$
# At the first start of an exegol container, this file will be copied to /etc/apt/sources.list.d/exegol_user_sources.list$
deb http://deb.gierens.de stable main$

packages.list

❯ cat -e /Users/qu35t/.exegol/my-resources/setup/apt/packages.list 
# The customization of some tools may require the installation of some packages or other dependencies.$
# To simplify this process, the name of the packages to be installed can be listed in this file.$
# All packages listed below will be installed automatically when creating a new Exegol container.$
eza$

keys.list

❯ cat -e /Users/qu35t/.exegol/my-resources/setup/apt/keys.list
# This file allows to automatically register a list of keys (using 'apt-key add') to add additional trusted repositories$
https://raw.githubusercontent.com/eza-community/eza/main/deb.asc$

Run :

> exegol start try

root@exegol-try /workspace # eza --help
Usage:
  eza [options] [files...]
lap1nou commented 2 months ago

Greetings @QU35T-code and thank you for your help,

$ exegol info

[*] Exegol is currently in version v4.3.2
[*] Exegol Discord serv.: https://discord.gg/cXThyp7D6P
[*] Exegol documentation: https://exegol.rtfd.io/

πŸ›Έ Available images
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Image tag β”‚ Size    β”‚ Status               β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ full      β”‚ 50.3GB  β”‚ Up to date (v.3.1.3) β”‚
β”‚ nightly   β”‚ ~55.4GB β”‚ Not installed        β”‚
β”‚ web       β”‚ ~24.8GB β”‚ Not installed        β”‚
β”‚ osint     β”‚ ~14.5GB β”‚ Not installed        β”‚
β”‚ light     β”‚ ~16.0GB β”‚ Not installed        β”‚
β”‚ ad        β”‚ ~40.5GB β”‚ Not installed        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ‘½ Available containers
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Container tag β”‚ State   β”‚ Image tag β”‚ Configurations         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ test          β”‚ Running β”‚ full      β”‚ Share timezone: Off πŸͺ“ β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
$ hexdump -C /root/.exegol/my-resources/setup/apt/packages.list

00000000  23 20 54 68 65 20 63 75  73 74 6f 6d 69 7a 61 74  |# The customizat|
00000010  69 6f 6e 20 6f 66 20 73  6f 6d 65 20 74 6f 6f 6c  |ion of some tool|
00000020  73 20 6d 61 79 20 72 65  71 75 69 72 65 20 74 68  |s may require th|
00000030  65 20 69 6e 73 74 61 6c  6c 61 74 69 6f 6e 20 6f  |e installation o|
00000040  66 20 73 6f 6d 65 20 70  61 63 6b 61 67 65 73 20  |f some packages |
00000050  6f 72 20 6f 74 68 65 72  20 64 65 70 65 6e 64 65  |or other depende|
00000060  6e 63 69 65 73 2e 0a 23  20 54 6f 20 73 69 6d 70  |ncies..# To simp|
00000070  6c 69 66 79 20 74 68 69  73 20 70 72 6f 63 65 73  |lify this proces|
00000080  73 2c 20 74 68 65 20 6e  61 6d 65 20 6f 66 20 74  |s, the name of t|
00000090  68 65 20 70 61 63 6b 61  67 65 73 20 74 6f 20 62  |he packages to b|
000000a0  65 20 69 6e 73 74 61 6c  6c 65 64 20 63 61 6e 20  |e installed can |
000000b0  62 65 20 6c 69 73 74 65  64 20 69 6e 20 74 68 69  |be listed in thi|
000000c0  73 20 66 69 6c 65 2e 0a  23 20 41 6c 6c 20 70 61  |s file..# All pa|
000000d0  63 6b 61 67 65 73 20 6c  69 73 74 65 64 20 62 65  |ckages listed be|
000000e0  6c 6f 77 20 77 69 6c 6c  20 62 65 20 69 6e 73 74  |low will be inst|
000000f0  61 6c 6c 65 64 20 61 75  74 6f 6d 61 74 69 63 61  |alled automatica|
00000100  6c 6c 79 20 77 68 65 6e  20 63 72 65 61 74 69 6e  |lly when creatin|
00000110  67 20 61 20 6e 65 77 20  45 78 65 67 6f 6c 20 63  |g a new Exegol c|
00000120  6f 6e 74 61 69 6e 65 72  2e 0a 65 7a 61 0a        |ontainer..eza.|
0000012e

I believe your packages.list file is not the same as mine, this one doesn't work:

$ cat -e /root/.exegol/my-resources/setup/apt/packages.list
# The customization of some tools may require the installation of some packages or other dependencies.$
# To simplify this process, the name of the packages to be installed can be listed in this file.$
# All packages listed below will be installed automatically when creating a new Exegol container.$
eza

but this one works fine but it got a LF at the end:

$ cat -e /root/.exegol/my-resources/setup/apt/packages.list
# The customization of some tools may require the installation of some packages or other dependencies.$
# To simplify this process, the name of the packages to be installed can be listed in this file.$
# All packages listed below will be installed automatically when creating a new Exegol container.$
eza$

Regards.