[Error] Wrapper script keeps reappearing even after removal of distrobox
- Lenguaje dominante
- Go
- Estrellas
- 13k
- Forks
- 541
- Merge medio
- 20 h 47 min
- PR fusionados (30 d)
- 4
Descripción
**Describe the bug**
After deleting a distrobox container that had an exported binary, the distrobox wrapper script persists and keeps reappearing even after manual deletion. This prevents installing the actual binary on the host system.
**To Reproduce**
```
[host]$ distrobox create --image alpine --name dev
[host]$ distrobox enter dev
[dev]$ curl -fsSL https://claude.ai/install.sh
[dev]$ distrobox-export --bin .local/bin/claude
[host]$ distrobox stop dev
[host]$ distrobox rm dev
[host]$ sudo dnf remove distrobox
[host]$ rm .local/bin/claude
[host]$ cat .local/bin/claude (cat: .local/bin/claude: Not found)
[host]$ curl -fsSL https://claude.ai/install.sh
[host]$ cat .local/bin/claude
```
The last `cat` outputs
```
#!/bin/sh
# distrobox_binary
# name: dev
if [ -z "${CONTAINER_ID}" ]; then
exec "/usr/bin/distrobox-enter" -n dev -- '.local/bin/claude' "$@"
elif [ -n "${CONTAINER_ID}" ] && [ "${CONTAINER_ID}" != "dev" ]; then
exec distrobox-host-exec '/home/user/.local/bin/claude' "$@"
else
exec '.local/bin/claude' "$@"
fi
```
**Expected behavior**
Distrobox is removed from the system and should not create the script again. I'm unable to install the binary because distrobox recreates this script again which should not happen.
**Desktop (please complete the following information):**
- Are you using podman, docker or lilipod? podman version 5.7.1
- Which version of distrobox? 1.8.2.2
- Which host distribution? fedora 43
- How did you install distrobox? `dnf install distrobox podman`
**Additional context**
The system was a clean install of fedora 43. Distrobox, Podman are the only installed packages besides WM.
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.