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] improved error messages on enter #1678

Open
langdon opened this issue Feb 4, 2025 · 0 comments
Open

[Error] improved error messages on enter #1678

langdon opened this issue Feb 4, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@langdon
Copy link

langdon commented Feb 4, 2025

Describe the bug
I introduced a typo in additional_packages. However, on enter, the only message is:

Starting container...                   	 [ OK ]
Installing basic packages...            	 Error: An error occurred

To Reproduce
Error in package name:
additional_packages="python-ipykernel ptyhon-devel gcc-c++ clang"

container based on fedora-toolbox by way of quay.io/langdon/langdon-toolbox

Expected behavior
A more detailed error message like:

Repositories loaded.
Failed to resolve the transaction:
Package "python3-3.13.1-2.fc41.x86_64" is already installed.
Package "python3-pip-24.2-1.fc41.noarch" is already installed.
Package "code-1.96.4-1736991167.el8.x86_64" is already installed.
No match for argument: ptyhon-devel
You can try to add to command line:
  --skip-unavailable to skip unavailable packages
+ '[' 1 -ne 0 ']'
+ printf 'Error: An error occurred\n'

Logs
Run the commands with --verbose and post the log here as a file upload
Attach also the output of podman logs or docker logs, possibly with --latest flag

ds100-box.log

i can reproduce the error and get the podman logs if you think it would be useful but it would be some effort.

Desktop (please complete the following information):

  • Are you using podman, docker or lilipod? -- podman
  • Which version or podman, docker or lilipod?
podman --version
podman version 5.3.2
  • Which version of distrobox?
distrobox --version
distrobox: 1.8.0
  • Which host distribution?
    Fedora 41
  • How did you install distrobox? -- Fedora repos

Additional context
Add any other context about the problem here.

Arguably an enhancement but I had to do a bunch of work to figure out a minor issue.

@langdon langdon added the bug Something isn't working label Feb 4, 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