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] Distrobox on Fedora 40 fish shell is giving error when running distrobox enter #1416

Closed
spignelon opened this issue May 26, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@spignelon
Copy link

spignelon commented May 26, 2024

Describe the bug
Upon installation of distrobox and and creating an arch container, when i run distrobox enter arch it throws an error and commands inside the arch container does not work.

To Reproduce
Steps to reproduce the behavior:

$ distrobox-create --name arch --image archlinux:latest
Creating 'arch' using image archlinux:latest [ OK ]
Distrobox 'arch' successfully created.
To enter, run:

$ distrobox enter arch

Installing basic packages...                     [ OK ]
Setting up devpts mounts...                      [ OK ]
Setting up read-only mounts...                   [ OK ]
Setting up read-write mounts...                  [ OK ]
Setting up host's sockets integration...         [ OK ]
Integrating host's themes, icons, fonts...       [ OK ]
Setting up package manager exceptions...         [ OK ]
Setting up package manager hooks...              [ OK ]
Setting up pacman exceptions...                  [ OK ]
Setting up pacman hooks...                       [ OK ]
Setting up distrobox profile...                  [ OK ]
Setting up sudo...                               [ OK ]
Setting up user groups...                        [ OK ]
Setting up kerberos integration...               [ OK ]
Setting up user's group list...                  [ OK ]
Setting up existing user...                      [ OK ]
Setting up user home...                          [ OK ]
Ensuring user's access...                        [ OK ]

Container Setup Complete!
fish: Unknown command: host-spawn
/etc/fish/conf.d/distrobox_config.fish (line 1): 
host-spawn sh -c "printf "%s" \$XAUTHLOCALHOSTNAME"
^~~~~~~~~^
in command substitution
        called on line 15 of file /etc/fish/conf.d/distrobox_config.fish
from sourcing file /etc/fish/conf.d/distrobox_config.fish
        called on line 248 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
        called during startup
/etc/fish/conf.d/distrobox_config.fish (line 15): Unknown command
                set -gx XAUTHLOCALHOSTNAME (host-spawn sh -c "printf "%s" \$XAUTHLOCALHOSTNAME")
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
from sourcing file /etc/fish/conf.d/distrobox_config.fish
        called on line 248 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
        called during startup
Linux fedora 6.8.10-300.fc40.x86_64 x86_64
 23:55:45 up 10:27,  0 user,  load average: 0.94, 1.14, 1.38

$ pacman -Syu
pacman: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found (required by /usr/lib/libcurl.so.4)

Expected behavior
Normal functioning of distrobox enter arch command and normal functioning of pacman -Syu command

Logs
Distrobox --verbose logs: https://pastebin.com/raw/67Sj6uat
podman logs --latest output: podman_logs.txt

Desktop:

  • Are you using podman, docker or lilipod?
    Ans. Podman
  • Which version or podman, docker or lilipod?
    Ans. podman version 5.0.3
  • Which version of distrobox?
    Ans. distrobox: 1.7.2.1
  • Which host distribution?
    Ans. Fedora Linux 40 KDE Spin
  • How did you install distrobox?
    Ans. from official Fedora repos

Additional context
Using fish as my default shell

@spignelon spignelon added the bug Something isn't working label May 26, 2024
@CakZemprongzz
Copy link

CakZemprongzz commented May 28, 2024

Same issue as well for me in openSUSE Tumbleweed.

I have a temporary solution. According to arch wiki there is called pacman-static that should be possible to run without pacman and fix issue.

  1. Open this check the pinned comments and download the pre-compiled binaries
  2. Inside the Arch Linux distrobox type chmod +x pacman-static
  3. Do sudo ./pacman-static -Syu
  4. (Optional) Restart the distrobox

@89luca89
Copy link
Owner

Fixed in commit cd4f580

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

3 participants