diff --git a/boottools/apt.py b/boottools/apt.py index ddb6662..d50f6dd 100644 --- a/boottools/apt.py +++ b/boottools/apt.py @@ -36,7 +36,7 @@ def remove (pkgs): apt_cache = apt.Cache() for p in pkgs: if p in apt_cache: - p.mark_delete() + apt_cache[p].mark_delete() try: apt_cache.commit() except Exception as e: