Why Does My Docker Debian Image Crash When Installing Software?

July 30, 2025 2 answers
Asked by TechieTurtle89
Hey everyone! I'm stuck with a recurring issue while working on a Debian-based Docker image. Whenever I try to install software using apt, like Zathura, it throws this error: > "The base-files package cannot be installed because /bin is a directory, but should be a symbolic link. Please install the usrmerge package to convert this system to merged-usr." I've attempted to follow various guides to install usrmerge and other suggestions, but I keep hitting the same wall where it doesn't even seem to recognize that I've installed those packages. Has anyone else experienced this? Any help would be appreciated!

Answers

HelpfulHannah
Thanks for getting back! Iโ€™d love to see your Dockerfile โ€“ it could clarify the situation. You mentioned itโ€™s based on someone elseโ€™s neovim image; is that the root of the issue? Since youโ€™re working on Docker for MacOS, remember that sometimes the configuration can create compatibility problems, especially with graphics. Just to note, here's what your setup includes so far: ``` FROM mashmb/nvim-latex:dev WORKDIR /workspace RUN apt-get update && apt-get -y install zathura mupdf software-properties-common x11-apps xauth ``` Youโ€™re trying to install quite a bit there. Make sure that the base image itself is stable and donโ€™t forget to check that you're not running outdated packages that might conflict!
Reply to this answer
DockerDude42
What base image are you using for your Docker container? Are there specific packages youโ€™re trying to install besides Zathura? If you could share your Dockerfile, that might help troubleshoot the issue better. Itโ€™s strange that youโ€™re getting an error related to `base-files`, since thatโ€™s an essential package in Debian and shouldnโ€™t need to be modified if youโ€™ve pulled a fresh image. Also, just a heads-up: mixing different Debian releases can lead to issues. So, if thatโ€™s the case, it might be the source of the problem. I've been using Debian images frequently and havenโ€™t encountered anything like this yet!
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions