Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • The apt package is not part of Python3's "batteries included". Neither did I find something which looks to be relevant in pypi. The nearest one I found was apt-wrapper but its documentation does not include this use case. Can you please add also instructions how to find the apt package to be imported? Commented Feb 25, 2023 at 14:49
  • 2
    @OmerZak one year later you probably already found this but for those who'd stumble by the apt module referred to by gavenkoa can be made available by installing the python3-apt Debian package. Commented Feb 18, 2024 at 13:35