Skip to content

[Error] Terminal works abnormally with el7/e8 #1830

@beeender

Description

@beeender

Describe the bug

This happens to el7/el8, but no problem with el9.

After enter the container, keys work strangely. Arrow keys don't move, ctrl-c will just terminate the distrobox session.

Peek.2025-08-28.09-07.mp4

But it works fine by using podman exec -it access the same container.

To Reproduce

distrobox create -i docker.io/almalinux/8-init --init --name alma8

distrobox enter alma8

Expected behavior

Key inputs should work normally.

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

exec dry-run result

exec
--interactive
--detach-keys=
--user=root
--workdir=/home/cc/repo/postgis/raster/rt_pg
--env=CONTAINER_ID=alma8
--env=DISTROBOX_ENTER_PATH=/usr/bin/distrobox-enter
--env=COLORTERM=truecolor
--env=CSF_MDTVTexturesDirectory=/usr/share/opencascade/resources/Textures
--env=GREP_COLOR=37;45
--env=XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session2
--env=GLFW_IM_MODULE=ibus
--env=TERM_PROGRAM_VERSION=3.5a
--env=GTK_IM_MODULE=fcitx
--env=WLR_NO_HARDWARE_CURSORS=1
--env=TMUX_CONF=/home/cc/.config/tmux/tmux.conf
--env=CSF_DrawPluginDefaults=/usr/share/opencascade/resources/DrawResources
--env=TMUX=/tmp/tmux-1000/default,4010,0
--env=LESS_TERMCAP_se=�[0m
--env=LESS_TERMCAP_so=�[00;47;30m
--env=CSF_LANGUAGE=us
--env=CSF_MIGRATION_TYPES=/usr/share/opencascade/resources/StdResource/MigrationSheet.txt
--env=GRADLE_HOME=/usr/share/java/gradle
--env=INPUT_METHOD=fcitx
--env=XDG_CONFIG_HOME=/home/cc/.config
--env=XMODIFIERS=@im=fcitx
--env=DESKTOP_SESSION=awesome
--env=CSF_OCCTResourcePath=/usr/share/opencascade/resources
--env=GREP_COLORS=mt=37;45
--env=CSF_STEPDefaults=/usr/share/opencascade/resources/XSTEPResource
--env=EDITOR=nvim
--env=GTK_MODULES=canberra-gtk-module
--env=PWD=/home/cc/repo/postgis/raster/rt_pg
--env=LOGNAME=cc
--env=XDG_SESSION_DESKTOP=
--env=XDG_SESSION_TYPE=x11
--env=DRAWHOME=/usr/share/opencascade/resources/DrawResources
--env=XAUTHORITY=/tmp/xauth_JnRlvo
--env=CSF_StandardLiteDefaults=/usr/share/opencascade/resources/StdResource
--env=MOTD_SHOWN=pam
--env=LANG=en_US.UTF-8
--env=LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.7z=01;31:*.ace=01;31:*.alz=01;31:*.apk=01;31:*.arc=01;31:*.arj=01;31:*.bz=01;31:*.bz2=01;31:*.cab=01;31:*.cpio=01;31:*.crate=01;31:*.deb=01;31:*.drpm=01;31:*.dwm=01;31:*.dz=01;31:*.ear=01;31:*.egg=01;31:*.esd=01;31:*.gz=01;31:*.jar=01;31:*.lha=01;31:*.lrz=01;31:*.lz=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.lzo=01;31:*.pyz=01;31:*.rar=01;31:*.rpm=01;31:*.rz=01;31:*.sar=01;31:*.swm=01;31:*.t7z=01;31:*.tar=01;31:*.taz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tgz=01;31:*.tlz=01;31:*.txz=01;31:*.tz=01;31:*.tzo=01;31:*.tzst=01;31:*.udeb=01;31:*.war=01;31:*.whl=01;31:*.wim=01;31:*.xz=01;31:*.z=01;31:*.zip=01;31:*.zoo=01;31:*.zst=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.jxl=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.crdownload=00;90:*.dpkg-dist=00;90:*.dpkg-new=00;90:*.dpkg-old=00;90:*.dpkg-tmp=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:*.swp=00;90:*.tmp=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:
--env=STARSHIP_SHELL=zsh
--env=NIX_SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
--env=TMUX_CONF_LOCAL=/home/cc/.config/tmux/tmux.conf.local
--env=CSF_ShadersDirectory=/usr/share/opencascade/resources/Shaders
--env=CSF_EXCEPTION_PROMPT=1
--env=CSF_XmlOcafResource=/usr/share/opencascade/resources/XmlOcafResource
--env=STARSHIP_SESSION_KEY=4106165994481416
--env=CSF_SHMessage=/usr/share/opencascade/resources/SHMessage
--env=SDL_IM_MODULE=fcitx
--env=XDG_SESSION_CLASS=user
--env=TERM=tmux-256color
--env=LESS_TERMCAP_mb=�[01;31m
--env=LESS_TERMCAP_me=�[0m
--env=LESS_TERMCAP_md=�[01;31m
--env=ZDOTDIR=/home/cc/.config/zsh
--env=ZEPHYR_TOOLCHAIN_VARIANT=zephyr
--env=USER=cc
--env=TMUX_PANE=%4
--env=CUDA_PATH=/opt/cuda
--env=TMUX_SOCKET=/tmp/tmux-1000/default
--env=CSF_StandardDefaults=/usr/share/opencascade/resources/StdResource
--env=CSF_IGESDefaults=/usr/share/opencascade/resources/XSTEPResource
--env=VISUAL=nvim
--env=DISPLAY=:0
--env=CSF_XCAFDefaults=/usr/share/opencascade/resources/StdResource
--env=GSK_RENDERER=ngl
--env=LESS_TERMCAP_ue=�[0m
--env=SHLVL=4
--env=LESS_TERMCAP_us=�[01;32m
--env=PAGER=nvimpager
--env=QT_IM_MODULE=fcitx
--env=CSF_PluginDefaults=/usr/share/opencascade/resources/StdResource
--env=CSF_TObjMessage=/usr/share/opencascade/resources/TObj
--env=XDG_SESSION_ID=2
--env=ATUIN_SESSION=0198e16b149e7de380fe8e82b197ee6b
--env=CASROOT=/usr
--env=TMUX_PROGRAM=/usr/bin/tmux
--env=ATUIN_HISTORY_ID=0198ee40959979208998987717fa8198
--env=XDG_RUNTIME_DIR=/run/user/1000
--env=MKLROOT=/opt/intel/oneapi/mkl/latest
--env=NVCC_CCBIN=/usr/bin/g++-14
--env=LC_TIME=en_US.UTF-8
--env=ZEPHYR_SDK_INSTALL_DIR=/opt/zephyr-sdk
--env=CSF_XSMessage=/usr/share/opencascade/resources/XSMessage
--env=LC_COLLATE=C
--env=GTK3_MODULES=xapp-gtk3-module
--env=MMGT_CLEAR=1
--env=CSF_TObjDefaults=/usr/share/opencascade/resources/StdResource
--env=GBM_BACKEND=nvidia-drm
--env=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
--env=MAIL=/var/spool/mail/cc
--env=DRAWDEFAULT=/usr/share/opencascade/resources/DrawResources/DrawDefault
--env=OLDPWD=/home/cc/repo/postgis
--env=TERM_PROGRAM=tmux
--env=PATH=/usr/lib/ccache/bin:/usr/local/bin:/usr/local/sbin:/home/cc/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/usr/bin:/opt/cuda/bin:/opt/cuda/nsight_compute:/opt/cuda/nsight_systems/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin:/home/cc/bin:/home/cc/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin:/home/cc/go/bin:/opt/google-cloud-cli/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/sbin:/sbin:/bin
--env=XDG_DATA_DIRS=/home/cc/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/home/cc/.nix-profile/share:/nix/var/nix/profiles/default/share
--env=XDG_CACHE_HOME=/home/cc/.cache
--env=XDG_CONFIG_HOME=/home/cc/.config
--env=XDG_DATA_HOME=/home/cc/.local/share
--env=XDG_STATE_HOME=/home/cc/.local/state
--env=XDG_CONFIG_DIRS=/etc/xdg
alma8 

podman log

Welcome to AlmaLinux 8.10 (Cerulean Leopard)!

Set hostname to <cc-desktop>.
Failed to open /dev/tty0: Permission denied
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Reached target Remote File Systems.
[  OK  ] Listening on Journal Socket.
[  OK  ] Listening on Process Core Dump Socket.
[  OK  ] Reached target Slices.
systemd-initctl.socket: Failed to create symlink /run/initctl → /dev/initctl, ignoring: Permission denied
[  OK  ] Listening on initctl Compatibility Named Pipe.
proc-sys-fs-binfmt_misc.automount: Refusing to start, unit to trigger not loaded.
[FAILED] Failed to set up automount Arbitrar…rmats File System Automount Point.
See 'systemctl status proc-sys-fs-binfmt_misc.automount' for details.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Listening on Journal Socket (/dev/log).
-.slice: Failed to set memory.min: Operation not permitted
-.slice: Failed to set memory.low: Operation not permitted
-.slice: Failed to set memory.high: Operation not permitted
-.slice: Failed to set memory.max: Operation not permitted
-.slice: Failed to set memory.swap.max: Operation not permitted
-.slice: Failed to set pids.max: Operation not permitted
         Starting Journal Service...
         Starting Create System Users...
[  OK  ] Reached target Network is Online.
[  OK  ] Reached target Paths.
[  OK  ] Reached target Swap.
[  OK  ] Reached target Local File Systems.
         Starting Rebuild Journal Catalog...
         Starting Rebuild Dynamic Linker Cache...
         Starting Apply Kernel Variables...
[  OK  ] Started Journal Service.
[  OK  ] Started Create System Users.
[  OK  ] Started Rebuild Journal Catalog.
[  OK  ] Started Rebuild Dynamic Linker Cache.
[  OK  ] Started Apply Kernel Variables.
         Starting Update is Completed...
         Starting Flush Journal to Persistent Storage...
[  OK  ] Started Update is Completed.
[  OK  ] Reached target System Initialization.
[  OK  ] Started dnf makecache --timer.
[  OK  ] Reached target Timers.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Started Flush Journal to Persistent Storage.
         Starting Permit User Sessions...
[  OK  ] Started Permit User Sessions.
[  OK  ] Reached target Multi-User System.
Startup finished in 189ms.
...

Desktop (please complete the following information):

❯ podman --version
podman version 5.6.0

❯ distrobox version
distrobox: 1.8.1.2

OS: Arch Linux x86_64
Shell: zsh 5.9

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions