-
Notifications
You must be signed in to change notification settings - Fork 76
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
sync fails under certain conditions due to python3-apt not being installed #398
Comments
From: @quba42 (quba42) I have noticed this warning in the past, I just never noticed any actual failures or adverse effects resulting from it. Looking at the original Katello bug report I am not 100% sure what exactly failed, and if it is really related to the warning. That being said I should probably stop kicking that particular can down the road and investigate. With respect to the warning I guess there are two possibilities:
I have no idea which is better or if this will solve the issue. Perhaps we can ask the user with the problem to retest the sync after manually installing the |
From: knzivid (knzivid) I noticed the same while syncing
I can retest the sync after installing python3-apt. Is there an ubuntu based docker image for pulp similar to pulp/pulp-oci-images? |
From: @quba42 (quba42) The short answer is: I don't think there is a pulp container image running on Debian or Ubuntu. Within the |
From: @quba42 (quba42) |
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution! |
This issue is no longer marked for closure. |
We have explored this annoying warning many times, and have never been able to come up with a better solution than ignoring it. |
Author: @jlsherrill (jsherril@redhat.com)
Redmine Issue: 8173, https://pulp.plan.io/issues/8173
A katello user here: https://projects.theforeman.org/issues/31701 reported this. When syncing a deb repo (unsure which one), it errors with:
/usr/lib/python3.6/site-packages/debian/deb822.py:727 UserWarning: Parsing of Deb822 data with python3-apt's apt_pkg was requested but this package is not importable. Is python3-apt installed?
Looking at the code, the default value for use_apt_pkg is True: https://salsa.debian.org/python-debian-team/python-debian/-/blob/master/lib/debian/deb822.py#L2331
and pulp isn't overriding it:
pulp_deb/pulp_deb/app/tasks/synchronizing.py
Line 546 in ff7bf43
so its defaulting to True.
A full traceback isn't available, nor what repository they were syncing, but we could ask for that info if needed.
The text was updated successfully, but these errors were encountered: