python-apt
python-apt copied to clipboard
Using python-apt in a Debian 9 virtual machine
When running the following code from a Python script run with sudo:
import apt cache = apt.cache.Cache() cache.update()
I receive the following error
Traceback (most recent call last):
File "sudohelper.py", line 9, in
the same code works fine on the host machine also running Debian