Why Does My Docker Debian Image Crash When Installing Software?
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
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
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