Project

Profile

Help

Issue #8173

closed

sync fails under certain conditions due to python3-apt not being installed

Added by jsherril@redhat.com about 3 years ago. Updated about 2 years ago.

Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Debian:
Platform Release:
Target Release - Debian:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Katello
Sprint:
Quarter:

Description

Ticket moved to GitHub: "pulp/pulp_deb/398":https://github.com/pulp/pulp_deb/issues/398


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: https://github.com/pulp/pulp_deb/blob/ff7bf434b0c3aabdf165f2f9793f4acce668c724/pulp_deb/app/tasks/synchronizing.py#L546

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.

Also available in: Atom PDF