Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Error] problem with distrobox assemble create --file file.ini in 1.8.1.2 #1702

Open
Pounii25 opened this issue Mar 2, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Pounii25
Copy link

Pounii25 commented Mar 2, 2025

Describe the bug
It seems that lines with init_hooks in the ini file are not executed

To Reproduce
try to execute any .ini file with init_hooks inside

Expected behavior
like in the previous version, performing distrobox assemble create --file file.ini create a distrobox container and execute all the init-hooks inside.

Logs
Distrobox 'multiviewer' successfully created.

  • printf 'To enter, run:\n\n'
    To enter, run:

  • '[' 0 -eq 1 ']'

  • '[' 1000 -eq 0 ']'

  • '[' 0 -eq 0 ']'

  • printf 'distrobox enter %s\n\n' multiviewer
    distrobox enter multiviewer

  • '[' 0 -eq 0 ']'

  • '[' 1 -ne 0 ']'

  • /usr/bin/distrobox-generate-entry multiviewer
    Successfully copied 2.05kB to /tmp/multiviewer.os-release

  • '[' -n 1 ']'

  • '[' 1 -eq 1 ']'

  • /usr/bin/distrobox enter multiviewer -- touch /dev/null
    Starting container... [ OK ]
    Installing basic packages... [ OK ]
    Setting up devpts mounts... [ OK ]
    Setting up read-only mounts... [ OK ]
    Setting up read-write mounts... [ OK ]
    Setting up host's sockets integration... [ OK ]
    Integrating host's themes, icons, fonts... [ OK ]
    Setting up distrobox profile... [ OK ]
    Setting up sudo... [ OK ]
    Setting up user groups... [ OK ]
    Setting up user's group list... [ OK ]
    Setting up existing user... [ OK ]
    Ensuring user's access... [ OK ]
    Executing init hooks... [ OK ]

Container Setup Complete!

  • '[' -n multiviewer-for-f1 ']'
  • /usr/bin/distrobox enter multiviewer -- touch /dev/null
  • IFS=¤
  • for apps in ${exported_apps}
  • IFS=' '
  • for app in ${apps}
  • /usr/bin/distrobox enter multiviewer -- distrobox-export --app multiviewer-for-f1
    Error: cannot find any desktop files.
    Error: trying to export a non-installed application.
  • rm -f /tmp/tmp.2MXGO6cfdD /tmp/tmp.Mq0kZcPQ3O

my .ini file

[multiviewer]
image=ubuntu:latest
pull=true
replace=true
start_now=true
# Comandi di inizializzazione per scaricare e installare Multiviewer
init_hooks=sudo apt install -y libcanberra-gtk-module libcanberra-gtk3-module
init_hooks=sudo apt-get install pulseaudio
init_hooks=mkdir -p /opt/multiviewer
init_hooks=cd /opt/multiviewer && wget -O multiviewer.deb "https://releases.multiviewer.app/download/232635194/multiviewer-for-f1_1.38.1_amd64.deb"
init_hooks=sudo dpkg -i /opt/multiviewer/multiviewer.deb || sudo apt install -f -y
init_hooks=rm -f /opt/multiviewer/multiviewer.deb
# Esportiamo l'applicazione direttamente
exported_apps="multiviewer-for-f1"
exported_bins_path="~/.local/bin"

when it comes to performing "Executing init hooks... [ OK ]" the execution takes barely a couple of seconds

@Pounii25 Pounii25 added the bug Something isn't working label Mar 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant