** Summary changed:

- 
/usr/bin/unattended-upgrade:apt_pkg.Error:try_to_upgrade:mark_upgrade_adjusted:call_adjusted:clear:/usr/bin/unattended-upgrade@2512:main:run:calculate_upgradable_pkgs:try_to_upgrade:rewind_cache:clear
+ apt.Cache._depcache.init() raises Error

** Summary changed:

- apt.Cache._depcache.init() raises Error
+ apt.Cache.clear() -> apt.Cache._depcache.init() raises Error

** Description changed:

+ Unattended-upgrades 2.1 triggers the following crash in python-apt:
+ 
+   File "/usr/bin/unattended-upgrade", line 1706, in try_to_upgrade
+     cache.mark_upgrade_adjusted(pkg, from_user=not pkg.is_auto_installed)
+   File "/usr/bin/unattended-upgrade", line 438, in mark_upgrade_adjusted
+     self.call_adjusted(apt.package.Package.mark_upgrade, pkg, **kwargs)
+   File "/usr/bin/unattended-upgrade", line 397, in call_adjusted
+     self.clear()
+   File "/usr/lib/python3/dist-packages/apt/cache.py", line 700, in clear
+     self._depcache.init()
+ apt_pkg.Error: E:The package intellij-idea-ultimate needs to be reinstalled, 
but I can't find an archive for it.
+ 
+ I think .clear() should not raise an error, but if it should u-u can
+ catch that.
+ 
+ ---
+ 
  The Ubuntu Error Tracker has been receiving reports about a problem regarding 
unattended-upgrades.  This problem was most recently seen with package version 
2.1, the problem page at 
https://errors.ubuntu.com/problem/798f1ab5a4a2784a0fadd6034a875901345682f9 
contains more details, including versions of packages affected, stacktrace or 
traceback, and individual crash reports.
  If you do not have access to the Ubuntu Error Tracker and are a software 
developer, you can request it at http://forms.canonical.com/reports/.

** Also affects: python-apt (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: unattended-upgrades (Ubuntu)
       Status: New => Opinion

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1871145

Title:
  apt.Cache.clear() -> apt.Cache._depcache.init() raises Error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/1871145/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to