python-apt icon indicating copy to clipboard operation
python-apt copied to clipboard

Using python-apt in a Debian 9 virtual machine

Open oceanicpanda opened this issue 6 years ago • 0 comments

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 main() File "sudohelper.py", line 5, in main cache.update() File "/usr/lib/python3/dist-packages/apt/cache.py", line 466, in update raise FetchFailedException() apt.cache.FetchFailedException

the same code works fine on the host machine also running Debian

oceanicpanda avatar May 04 '19 16:05 oceanicpanda