distrobox icon indicating copy to clipboard operation
distrobox copied to clipboard

[Error] Error parsing reference when using different quotation marks

Open goto-loop opened this issue 7 months ago • 0 comments

Describe the bug I've been following the documentation for distrobox assemble and noticed that the command fails if both 'single' and "double" quotation marks are used within the same manifest file. If only one type is used, the command runs fine.

To Reproduce Run distrobox assemble create using the following manifest file. Notice the Signal installation uses single and the Spotify installation double quotation marks (commands are copy/pasted from the respective websites):

[testing]
image=debian:latest
pull=true

# Install Signal Desktop
init_hooks=wget -O- https://updates.signal.org/desktop/apt/keys.asc | gpg --dearmor > signal-desktop-keyring.gpg
init_hooks=cat signal-desktop-keyring.gpg | sudo tee /usr/share/keyrings/signal-desktop-keyring.gpg > /dev/null
init_hooks=echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main' | sudo tee /etc/apt/sources.list.d/signal-xenial.list
init_hooks=sudo apt update && sudo apt install -y signal-desktop
exported_apps=signal

# Install Spotify
init_hooks=curl -sS https://download.spotify.com/debian/pubkey_C85668DF69375001.gpg | sudo gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/spotify.gpg
init_hooks=echo "deb https://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
init_hooks=sudo apt-get update && sudo apt-get install -y spotify-client
exported_apps=/usr/share/spotify/spotify.desktop

This should result in the following output:

 - Creating testing...
Trying to pull docker.io/library/debian:latest...
Getting image source signatures
Copying blob 3e6b9d1a9511 skipped: already exists  
Copying config 59a6c609f6 done   | 
Writing manifest to image destination
59a6c609f641631b7966835a7298c01b9f0db9ddda5ad9f92e60e64ca40dfed8
Creating 'main | sudo tee /etc/apt/sources.list.d/signal-xenial.list && sudo apt update && sudo apt install -y signal-desktop && curl -sS https://download.spotify.com/debian/pubkey_C85668DF69375001.gpg | sudo gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/spotify.gpg && echo "deb https://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list && sudo apt-get update && sudo apt-get install -y spotify-client' using image debian:latest Error: parsing reference "https://repository.spotify.com": invalid reference format
 [ ERR ] failed to create container.

Expected behavior The container should be created without issues.

Desktop (please complete the following information):

  • Are you using podman, docker or lilipod? Podman
  • Which version or podman, docker or lilipod? 5.5.0
  • Which version of distrobox? 1.8.1.2
  • Which host distribution? Fedora 42 Kinoite
  • How did you install distrobox? Layered using rpm-ostree

goto-loop avatar May 28 '25 08:05 goto-loop