[Bug 1871153] Re: /usr/bin/unattended-upgrade:apt.cache.CacheClosedException:/usr/bin/unattended-upgrade at 2512:main:run:do_auto_remove:cache_commit:commit:_fetch_archives

Balint Reczey balint.reczey at canonical.com
Mon Apr 6 16:04:12 UTC 2020


** Description changed:

+ Traceback (most recent call last):
+   File "/usr/bin/unattended-upgrade", line 2512, in <module>
+     sys.exit(main(options))
+   File "/usr/bin/unattended-upgrade", line 1986, in main
+     res = run(options, rootdir, mem_log, logfile_dpkg,
+   File "/usr/bin/unattended-upgrade", line 2307, in run
+     kernel_pkgs_kept_installed) = do_auto_remove(
+   File "/usr/bin/unattended-upgrade", line 1876, in do_auto_remove
+     res, error = cache_commit(cache, logfile_dpkg, verbose)
+   File "/usr/bin/unattended-upgrade", line 861, in cache_commit
+     res = cache.commit(install_progress=iprogress)
+   File "/usr/lib/python3/dist-packages/apt/cache.py", line 678, in commit
+     res = self._fetch_archives(fetcher, pm,
+   File "/usr/lib/python3/dist-packages/apt/cache.py", line 466, in _fetch_archives
+     raise CacheClosedException(
+ apt.cache.CacheClosedException: Cache object used after close() called
+ 
+ ---
+ 
  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/b923ed6f4c01a301c3d3910bdb0eed754b7214f7 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/.

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

Title:
  /usr/bin/unattended-upgrade:apt.cache.CacheClosedException:/usr/bin
  /unattended-
  upgrade at 2512:main:run:do_auto_remove:cache_commit:commit:_fetch_archives

Status in unattended-upgrades package in Ubuntu:
  New

Bug description:
  Traceback (most recent call last):
    File "/usr/bin/unattended-upgrade", line 2512, in <module>
      sys.exit(main(options))
    File "/usr/bin/unattended-upgrade", line 1986, in main
      res = run(options, rootdir, mem_log, logfile_dpkg,
    File "/usr/bin/unattended-upgrade", line 2307, in run
      kernel_pkgs_kept_installed) = do_auto_remove(
    File "/usr/bin/unattended-upgrade", line 1876, in do_auto_remove
      res, error = cache_commit(cache, logfile_dpkg, verbose)
    File "/usr/bin/unattended-upgrade", line 861, in cache_commit
      res = cache.commit(install_progress=iprogress)
    File "/usr/lib/python3/dist-packages/apt/cache.py", line 678, in commit
      res = self._fetch_archives(fetcher, pm,
    File "/usr/lib/python3/dist-packages/apt/cache.py", line 466, in _fetch_archives
      raise CacheClosedException(
  apt.cache.CacheClosedException: Cache object used after close() called

  ---

  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/b923ed6f4c01a301c3d3910bdb0eed754b7214f7 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/.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1871153/+subscriptions



More information about the foundations-bugs mailing list