diff --git a/plinth/action_utils.py b/plinth/action_utils.py index 4285147e9..a680efad5 100644 --- a/plinth/action_utils.py +++ b/plinth/action_utils.py @@ -443,6 +443,6 @@ Owners: {package} subprocess.run(['dpkg-reconfigure', package], env=env) try: - os.remove(override_file) + os.remove(override_file.name) except OSError: pass