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
Cannot open debian distrobox due to tzdata issue #715
Comments
Hi @john-ghatas |
I tried the same with an ubuntu container, this issue is not there. After further testing (downgrading/upgrading the tzdata package) I have isolated it to debian with the non-free repositories enabled. Not sure what can be done here to fix it. It might be an error in the way I added the extra repos |
I have the same issue with updating a debian distrobox. Steps to reproduce:
It will try to upgrade tzdata and fail. As a temporary workaround i'm skipping updating tzdata: |
thank you starquake for:
I can finally get back to installing pytorch, tensorflow and tensorflowRT on Fedora Silverblue 38 (by the way, distrobox was not installed on a clean re-install of FS 38). |
same with ubuntu 22.04. |
Not an issue here, have you enabled any third party repo that might be causing this? Also what distrobox version are you running this is fixed for ubuntu at least on the repo version. |
@john-ghatas distrobox: 1.4.2.1
that's pretty much it. I can't apt update. As it shows same error as you. |
Did you install distrobox from the repos of your distro or are you running the git version. I don't see these issues with ubuntu on the git version |
Small update, seeing the issue on the latest distrobox git version as well. For now I've held the package back
|
Pushed a potential fix with 1cde681 Now tzdata is added at the beginning and then mark hold it, we don't need update to this anyway as we sync with host I'll wait feedbacks before closing this |
Fixed the bug, it was not in that commit but this last one finally. Sadly you will need to recreate the container for it to be effective, as we move the localtime mount from podman to the init |
I can confirm that for newly created containers the issue is gone, APT doesn't try to update it anymore. For people not willing to recreate the container, they can circumvent the issue by adding something like this in their shell profile config file: test "${CONTAINER_ID}" = "MY_CONTAINER_NAME" && sudo apt-mark hold tzdata |
Just to be clear on my end. I tested the first commit - well, only the part about |
Right now this is solved |
That's good to know. Thanks for the fix 👍 |
Might be a regression, but when tzdata needed an update it threw up [x has stale file handle] and after a reboot re entering the distrobox showed the following error in the logs.
The text was updated successfully, but these errors were encountered: