[Bug 1871824] Re: /usr/bin/unattended-upgrade:apt.cache.LockFailedException:__enter__:/usr/bin/unattended-upgrade at 2512:main:run:do_auto_remove:cache_commit:commit:__enter__
Balint Reczey
balint.reczey at canonical.com
Thu Apr 9 11:14:43 UTC 2020
** Description changed:
+ Traceback (most recent call last):
+ File "/usr/lib/python3/dist-packages/apt/cache.py", line 90, in __enter__
+ return self._lock.__enter__()
+ apt_pkg.Error: E:Could not get lock /var/cache/apt/archives/lock. It is held by process 2600 (synaptic)
+
+ During handling of the above exception, another exception occurred:
+
+ 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 675, in commit
+ with self._archive_lock:
+ File "/usr/lib/python3/dist-packages/apt/cache.py", line 92, in __enter__
+ raise LockFailedException(("Failed to lock directory %s: %s") %
+ apt.cache.LockFailedException: Failed to lock directory /var/cache/apt/archives/: E:Could not get lock /var/cache/apt/archives/lock. It is held by process 2600 (synaptic)
+
+ --
+
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/4eb313e6525a788c7921331a31ca051b830f1fc6 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/.
** Summary changed:
- /usr/bin/unattended-upgrade:apt.cache.LockFailedException:__enter__:/usr/bin/unattended-upgrade at 2512:main:run:do_auto_remove:cache_commit:commit:__enter__
+ Can't take lock while synaptic is running
** Also affects: synaptic (Ubuntu)
Importance: Undecided
Status: New
** Summary changed:
- Can't take lock while synaptic is running
+ Can't take archive lock while synaptic is running
** Changed in: unattended-upgrades (Ubuntu)
Status: New => Invalid
--
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/1871824
Title:
Can't take archive lock while synaptic is running
Status in synaptic package in Ubuntu:
New
Status in unattended-upgrades package in Ubuntu:
Invalid
Bug description:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apt/cache.py", line 90, in __enter__
return self._lock.__enter__()
apt_pkg.Error: E:Could not get lock /var/cache/apt/archives/lock. It is held by process 2600 (synaptic)
During handling of the above exception, another exception occurred:
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 675, in commit
with self._archive_lock:
File "/usr/lib/python3/dist-packages/apt/cache.py", line 92, in __enter__
raise LockFailedException(("Failed to lock directory %s: %s") %
apt.cache.LockFailedException: Failed to lock directory /var/cache/apt/archives/: E:Could not get lock /var/cache/apt/archives/lock. It is held by process 2600 (synaptic)
--
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/4eb313e6525a788c7921331a31ca051b830f1fc6 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/synaptic/+bug/1871824/+subscriptions
More information about the foundations-bugs
mailing list