[Error] /usr/bin/distrobox-create: line 1049: RECYCLE: unbound variable
- Ngôn ngữ chính
- Go
- Star
- 13k
- Fork
- 541
- Merge trung bình
- 20 giờ 47 phút
- Pull request đã merge (30 ngày)
- 4
Mô tả
- make sure you've read the documentation.
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.
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🙇
Hướng dẫn đóng góp
Hướng nghiên cứu
Lỗi xảy ra tại dòng 1049 trong /usr/bin/distrobox-create, nơi biến RECYCLE được tham chiếu nhưng chưa được thiết lập. Trước tiên, hãy kiểm tra script xung quanh dòng đó để hiểu ngữ cảnh. Tìm nơi RECYCLE lẽ ra phải được định nghĩa, có thể trong một hàm hoặc khối điều kiện. Kiểm tra logic của script đối với việc tạo và tái sử dụng container. Chạy script với chế độ gỡ lỗi (set -x) để theo dõi việc gán biến và xem tại sao RECYCLE chưa được liên kết.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- bash, docker, shell
- Lĩnh vực
- cli
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 65/100