2020-04-30 05:26:40 |
Michael Sparmann |
bug |
|
|
added bug |
2020-04-30 05:27:50 |
Michael Sparmann |
branch linked |
|
lp:~oheoh/command-not-found/command-not-found |
|
2020-04-30 06:09:19 |
Launchpad Janitor |
command-not-found (Ubuntu): status |
New |
Confirmed |
|
2020-04-30 08:44:04 |
Raphael Kienhöfer |
bug |
|
|
added subscriber Raphael Kienhöfer |
2020-05-02 05:03:24 |
Mathew Hodson |
command-not-found (Ubuntu): importance |
Undecided |
Medium |
|
2021-06-03 11:45:57 |
Anatoly Borodin |
bug |
|
|
added subscriber Anatoly Borodin |
2021-06-05 19:06:00 |
Michael Sparmann |
branch linked |
|
lp:command-not-found |
|
2021-06-05 19:06:59 |
Michael Sparmann |
branch unlinked |
lp:command-not-found |
|
|
2021-08-25 22:26:17 |
Brian Murray |
tags |
|
rls-ii-incoming |
|
2021-09-02 15:23:31 |
Matthieu Clemenceau |
tags |
rls-ii-incoming |
fr-1673 rls-ii-incoming |
|
2021-09-02 17:08:58 |
Brian Murray |
nominated for series |
|
Ubuntu Impish |
|
2021-09-02 17:08:58 |
Brian Murray |
bug task added |
|
command-not-found (Ubuntu Impish) |
|
2021-09-02 17:09:14 |
Brian Murray |
command-not-found (Ubuntu Impish): status |
Confirmed |
Triaged |
|
2021-09-02 17:09:26 |
Brian Murray |
tags |
fr-1673 rls-ii-incoming |
fr-1673 |
|
2021-09-23 13:50:55 |
Julian Andres Klode |
description |
On all Ubuntu releases since at least 19.10, enabling compressed APT package list storage with command-not-found installed leads to this crash in the cnf-update-db hook called by apt update:
Traceback (most recent call last):
File "/usr/lib/cnf-update-db", line 26, in <module>
col.create(db)
File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 93, in create
self._fill_commands(con)
File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 127, in _fill_commands
self._parse_single_commands_file(con, fp)
File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 165, in _parse_single_commands_file
suite=tagf.section["suite"]
KeyError: 'suite'
(To enable compressed APT list storage, add Acquire::GzipIndexes "true"; to an apt.conf fragment.)
This appears to be caused by apt downloading an lz4-compressed command list for command-not-found and cnf-update-db passing the /var/lib/apt/lists/*Commands-*.lz4 files to db/creator.py, which does not know about the compression and attempts to parse them as plain text. |
[Impact]
On all Ubuntu releases since at least 19.10, enabling compressed APT package list storage with command-not-found installed leads to this crash in the cnf-update-db hook called by apt update:
Traceback (most recent call last):
File "/usr/lib/cnf-update-db", line 26, in <module>
col.create(db)
File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 93, in create
self._fill_commands(con)
File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 127, in _fill_commands
self._parse_single_commands_file(con, fp)
File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 165, in _parse_single_commands_file
suite=tagf.section["suite"]
KeyError: 'suite'
(To enable compressed APT list storage, add Acquire::GzipIndexes "true"; to an apt.conf fragment.)
This appears to be caused by apt downloading an lz4-compressed command list for command-not-found and cnf-update-db passing the /var/lib/apt/lists/*Commands-*.lz4 files to db/creator.py, which does not know about the compression and attempts to parse them as plain text.
[Test plan]
Enable the option, purge old lists, and update to populate lists directory with compressed files; this will run cnf-update-db for you.
[Where problems could occur]
Replacing the open() call with subprocess.Popen for apt-helper seems like a minimal change. If apt-helper has problems, we check the return code and fail, keeping the old db in place. |
|
2021-09-23 13:57:55 |
Julian Andres Klode |
nominated for series |
|
Ubuntu Focal |
|
2021-09-23 13:57:55 |
Julian Andres Klode |
bug task added |
|
command-not-found (Ubuntu Focal) |
|
2021-09-24 16:19:20 |
Launchpad Janitor |
command-not-found (Ubuntu Impish): status |
Triaged |
Fix Released |
|
2021-09-24 17:01:30 |
Raphael Kienhöfer |
removed subscriber Raphael Kienhöfer |
|
|
|
2021-09-24 17:01:44 |
Raphael Kienhöfer |
bug |
|
|
added subscriber Raphael Kienhöfer |
2021-10-05 18:41:42 |
Brian Murray |
command-not-found (Ubuntu Focal): status |
New |
Fix Committed |
|
2021-10-05 18:41:43 |
Brian Murray |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2021-10-05 18:41:46 |
Brian Murray |
bug |
|
|
added subscriber SRU Verification |
2021-10-05 18:41:49 |
Brian Murray |
tags |
fr-1673 |
fr-1673 verification-needed verification-needed-focal |
|
2021-10-05 18:46:25 |
Brian Murray |
nominated for series |
|
Ubuntu Hirsute |
|
2021-10-05 18:46:25 |
Brian Murray |
bug task added |
|
command-not-found (Ubuntu Hirsute) |
|
2021-10-08 22:07:06 |
Steve Langasek |
command-not-found (Ubuntu Hirsute): status |
New |
Incomplete |
|
2021-10-09 19:07:34 |
Mark Wood-Patrick |
bug |
|
|
added subscriber Mark Wood-Patrick |
2021-10-10 01:57:26 |
Mathew Hodson |
command-not-found (Ubuntu Focal): importance |
Undecided |
Medium |
|
2021-10-10 01:57:29 |
Mathew Hodson |
command-not-found (Ubuntu Hirsute): importance |
Undecided |
Medium |
|
2021-10-11 07:08:08 |
John Freeman |
bug |
|
|
added subscriber John Freeman |
2021-10-19 18:29:47 |
Brian Murray |
command-not-found (Ubuntu Hirsute): status |
Incomplete |
Fix Committed |
|
2021-10-19 18:29:55 |
Brian Murray |
tags |
fr-1673 verification-needed verification-needed-focal |
fr-1673 verification-needed verification-needed-focal verification-needed-hirsute |
|
2022-01-04 18:11:37 |
Brian Murray |
tags |
fr-1673 verification-needed verification-needed-focal verification-needed-hirsute |
fr-1673 verification-done-focal verification-needed verification-needed-hirsute |
|
2022-01-04 23:59:14 |
Chris Halse Rogers |
tags |
fr-1673 verification-done-focal verification-needed verification-needed-hirsute |
fr-1673 verification-done verification-done-focal verification-done-hirsute |
|
2022-01-05 00:01:14 |
Launchpad Janitor |
command-not-found (Ubuntu Focal): status |
Fix Committed |
Fix Released |
|
2022-01-05 00:01:36 |
Chris Halse Rogers |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2022-01-05 00:02:14 |
Launchpad Janitor |
command-not-found (Ubuntu Hirsute): status |
Fix Committed |
Fix Released |
|
2022-01-05 11:29:16 |
Raphael Kienhöfer |
removed subscriber Raphael Kienhöfer |
|
|
|