Skip to content

[Error] DPkg::Pre-Invoke 'umount /var/log/journal' error on Ubuntu & Debian images #159

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

Closed
fossrob opened this issue Feb 4, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@fossrob
Copy link

fossrob commented Feb 4, 2022

Describe the bug
A previous fix #123 seems to have introduced a problem with other DEB based distributions. Installing packages or applying updates fails with an error:

umount: /var/log/journal: no mount point specified.
E: Problem executing scripts DPkg::Pre-Invoke 'umount /var/log/journal'
E: Sub-process returned an error code

Removing /etc/apt/apt.conf.d/00_distrobox stops the error from occurring.

To Reproduce

  • Create and enter an Ubuntu 20.04 distrobox
  • Perform a sudo apt update; sudo apt install -y sshpass

Expected behavior
The package installation proceeds without error.

Logs
apt.log
distrobox-enter.log
docker.log

Desktop (please complete the following information):

  • OS: CentOS
  • Version 7

Additional context
Using the latest version: distrobox: 1.2.12

@fossrob fossrob added the bug Something isn't working label Feb 4, 2022
@89luca89
Copy link
Owner

89luca89 commented Feb 4, 2022

Hi @edserhub
seems like it is because /var/log/journal was not mounted during the container setup
can you post a log of

docker logs ubuntu

To check why it was not mounted?

(or simply check on your host if /var/log/journal exists in the first place 😄 )

A fix is incoming for it 👍

@fossrob
Copy link
Author

fossrob commented Feb 4, 2022

Hi @89luca89

Thanks for the response!

Ahh /var/log/journal does not exist on the host. It's a fairly standard CentOS 7 installation. At least, there's nothing that's been customised around systemd / journald.

ubuntu-docker.log

@89luca89
Copy link
Owner

89luca89 commented Feb 4, 2022

Perfect that's what I was expecting 😄

Pushed right now a fix in: 77d6a65

Should work now, you can expect the fix to be part of the next release 👍

@fossrob
Copy link
Author

fossrob commented Feb 4, 2022

Amazing! 🙌🏻 I can confirm that 77d6a65 solves the issue for me. Thank you! 😊

@fossrob fossrob closed this as completed Feb 4, 2022
@89luca89
Copy link
Owner

89luca89 commented Feb 4, 2022

Glad it's fixed, thanks for the report!

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

2 participants