89luca89 / 89luca89/distrobox

[Error] /usr/bin/distrobox-create: line 1049: RECYCLE: unbound variable

Ouverte Adaptée aux débutants
#1,800 10 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
bug wait-on-user
Langage dominant
Go
Étoiles
13k
Forks
541
Merge moyen
20 h 47 min
PR mergées (30 j)
4

Description

- make sure you've read the documentation.

Image

i had find it in the info page of distrobox-create and i found nothing

- Ensure there isn't already an open issue about this.
- Ensure there isn't already a closed/resolved issue about this.

Image

Image
the only issue with key word "RECYCLE" is this and the RECYCLE is '$RECYCLE.BIN'

**Describe the bug**

`/usr/bin/distrobox-create: line 1049: RECYCLE: unbound variable` when trying to create any container

```log
╭─rika@Rika-FA607PI ~ ‹node-› ‹›
╰─$ distrobox-create --name alpine --image alpine:edge
Creating 'alpine' using image alpine:edge /usr/bin/distrobox-create: line 1049: RECYCLE: unbound variable
╭─rika@Rika-FA607PI ~ ‹node-› ‹›
╰─$ distrobox-create --name test --image ubuntu:latest 1 ↵
Creating 'test' using image ubuntu:latest /usr/bin/distrobox-create: line 1049: RECYCLE: unbound variable
╭─rika@Rika-FA607PI ~ ‹node-› ‹›
╰─$ distrobox-create --name test --image centos:stream10 1 ↵
Creating 'test' using image centos:stream10 /usr/bin/distrobox-create: line 1049: RECYCLE: unbound variable
╭─rika@Rika-FA607PI ~ ‹node-› ‹›
╰─$ distrobox-create --name test --image debian:stable 1 ↵
Creating 'test' using image debian:stable /usr/bin/distrobox-create: line 1049: RECYCLE: unbound variable
╭─rika@Rika-FA607PI ~ ‹node-› ‹›
╰─$ 1 ↵
```

and these images are already downloaded

```log
╭─rika@Rika-FA607PI ~ ‹node-› ‹›
╰─$ podman image list
REPOSITORY TAG IMAGE ID CREATED SIZE
registry.opensuse.org/opensuse/distrobox latest 40b21ce72d1d 19 hours ago 986 MB
docker.io/library/archlinux latest e22c3b9e7ce1 2 months ago 497 MB
quay.io/centos/centos stream10 40a16de4e249 6 months ago 623 MB
docker.io/library/debian stable 519c6b2ff578 6 months ago 243 MB
docker.io/library/alpine edge d6201085a185 6 months ago 8.13 MB
docker.io/library/ubuntu latest b1d9df8ab815 8 months ago 161 MB
9885b58a3a7b 11 months ago 16.2 MB
╭─rika@Rika-FA607PI ~ ‹node-› ‹›
╰─$
```

**To Reproduce**
just try to create any container

**Expected behavior**
the container can be created

**Logs**
[distrobox-create.log](https://github.com/user-attachments/files/21433187/distrobox-create.log)
[podman.log](https://github.com/user-attachments/files/21433200/podman.log)

**Desktop (please complete the following information):**
- Are you using podman, docker or lilipod?
- podman
- Which version or podman, docker or lilipod?
- 5.5.2-1.2, openSUSE
- Which version of distrobox?
- 1.8.1.2-1.2, openSUSE
- Which host distribution?
- openSUSE Tumbleweed 20250723
- How did you install distrobox?
- `sudo zypper in distrobox`

**Additional context**
i'am not a native english speaker so sorry for my poor english🙇

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

L’erreur se produit à la ligne 1049 de /usr/bin/distrobox-create, où la variable RECYCLE est référencée mais n’est pas définie. Commencez par examiner le script autour de cette ligne afin d’en comprendre le contexte. Cherchez où RECYCLE devrait être définie, éventuellement dans une fonction ou un bloc conditionnel. Vérifiez la logique du script pour la création et le recyclage des conteneurs. Exécutez le script avec le débogage (set -x) pour suivre l’affectation de la variable et voir pourquoi RECYCLE n’est pas liée.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
bash, docker, shell
Domaine
cli
Type d'issue
Bug
Difficulté
2/5
Temps estimé
1-3 heures
Activité
Calme
Clarté
Clairement spécifiée
Accessibilité débutants
65/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.