This bug was fixed in the package command-not-found - 20.04.4
---
command-not-found (20.04.4) focal; urgency=medium
* Avoid crash if tmpdb is locked. Skip execution and let the other process
do its job. (LP: #1875760)
-- Lukas Märdian Mon, 03 Aug 2020
13:10:24 +0200
**
Hello Lukasz,
I could successfully verify this SRU inside a Focal LXD container for
command-not-found 20.04.4:
root@f:~# dpkg -l | grep command-not-found
ii command-not-found 20.04.4all
Suggest installation of packages in interactive bash
Hello errors.ubuntu.com, or anyone else affected,
Accepted command-not-found into focal-proposed. The package will build
now and be available at https://launchpad.net/ubuntu/+source/command-
not-found/20.04.4 in a few hours, and then in the -proposed repository.
Please help us by testing this
** Description changed:
+ [Impact]
+
+ The Ubuntu Error Tracker has been receiving reports about a problem
+ regarding command-not-found. c-n-f- crashes when there are two parallel
+ processes trying to update the tmpdb via its 'cnf-update-db' script.
+ Only the first process can lock the
Apparently version 20.04.3 has already be used/burned in focal.
Attaching another debdiff `cnf-focal2.debdiff`, to bump the version to 20.04.4
...
** Patch added: "cnf-focal2.debdiff"
This bug was fixed in the package command-not-found - 20.10.1
---
command-not-found (20.10.1) groovy; urgency=medium
* Avoid crash if tmpdb is locked. Skip execution and let the other process
do its job. (LP: #1875760)
-- Lukas Märdian Mon, 03 Aug 2020
13:06:59 +0200
**
** Changed in: command-not-found (Ubuntu)
Status: Triaged => Fix Committed
** Changed in: command-not-found (Ubuntu Focal)
Status: Triaged => In Progress
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
I've attached two debdiff patches to fix the problem for focal (command-
not-found 20.04.2) and groovy (command-not-found 20.10.0). I'm looking
for a sponsor/review.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
** Patch added: "cnf-groovy.debdiff"
https://bugs.launchpad.net/ubuntu/+source/command-not-found/+bug/1875760/+attachment/5398251/+files/cnf-groovy.debdiff
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
** Patch added: "cnf-focal.debdiff"
https://bugs.launchpad.net/ubuntu/+source/command-not-found/+bug/1875760/+attachment/5398252/+files/cnf-focal.debdiff
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
This is a working reproducer:
sudo cp /var/lib/command-not-found/commands.db
/var/lib/command-not-found/commands.db.tmp
sudo sqlite3 /var/lib/command-not-found/commands.db.tmp
SQLite version 3.31.1 2020-01-27 19:55:54
Enter ".help" for usage hints.
sqlite> PRAGMA locking_mode = EXCLUSIVE;
** Tags added: id-5ed914750353bc78c899460b
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1875760
Title:
/usr/lib/cnf-update-db:sqlite3.OperationalError:/usr/lib/cnf-update-
db@26:create
To
** Also affects: command-not-found (Ubuntu Focal)
Importance: Undecided
Status: New
** Tags removed: rls-ff-incoming
** Changed in: command-not-found (Ubuntu Focal)
Status: New => Triaged
** Changed in: command-not-found (Ubuntu)
Status: New => Triaged
** Changed in:
imho we should be resilient.
Catch errors, ignore them, report success / skip, and ensure that ux is
fine.
As a reproducer, one should be able to lock the db externally, run apt-
update and see how it looks like.
--
You received this bug notification because you are a member of Ubuntu
Bugs,
** Changed in: command-not-found (Ubuntu)
Importance: Undecided => Medium
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1875760
Title:
** Tags added: groovy
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1875760
Title:
/usr/lib/cnf-update-db:sqlite3.OperationalError:/usr/lib/cnf-update-
db@26:create
To manage notifications about
** Tags added: rls-ff-incoming
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1875760
Title:
/usr/lib/cnf-update-db:sqlite3.OperationalError:/usr/lib/cnf-update-
db@26:create
To manage
17 matches
Mail list logo