/usr/lib/update-notifier/apt_check.py:FileNotFoundError:/usr/lib/update-notifier/apt_check.py@16:check_output:run:__init__:_execute_child
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-notifier (Ubuntu) |
Fix Released
|
Undecided
|
Brian Murray | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Hirsute |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
update-
The Ubuntu Error Tracker has been receiving reports about a problem regarding update-notifier. This problem was most recently seen with package version 3.192.40.1, the problem page at https:/
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://
-------
[Impact]
Because update-notifier does not explicit have the `lsb-release` package as a dependency, users may install the package and rely on `apt-cdrom-check` to work, but it will fail, since it runs
the `lsb_release -sr` command on it.
[Test case]
To reproduce the issue:
1. Launch a xenial container
2. Install update-notifier on it
3. Run apt-cache depends update-
4. Verify that lsb-release does not appear
To verify that the error is fixed:
1. Install the new update-notifier from this ppa:
https:/
2. Run apt-cache depends update-
3. Verify that lsb-release will now appear as a dependency
[Where problems could occur]
We are only adding a missing dependency to the package. I cannot think of a problem that this might cause to the users of this package.
[Discussion]
We can verify that `apt-cdrom-check` does make use of the `lsb_release` command. Since we don't have that dependency on the package control file, errors can appear when users are executing/relying on that script.
Related branches
- git-ubuntu import: Pending requested
-
Diff: 31994 lines (+14280/-3) (has conflicts)135 files modifiedc.diff (+0/-0)
data/apt_check.py (+47/-0)
data/backend_helper.py (+3/-0)
data/package-data-downloader (+4/-0)
data/package-data-downloads-failed-permanently.in (+1/-1)
debian/changelog (+149/-0)
debian/control (+21/-0)
debian/rules (+3/-0)
debian/tests/control (+4/-0)
debian/update-notifier-common.postinst (+13/-0)
po/ace.po (+126/-0)
po/af.po (+115/-0)
po/am.po (+103/-0)
po/an.po (+106/-0)
po/ar.po (+112/-0)
po/ast.po (+114/-0)
po/az.po (+109/-0)
po/be.po (+109/-0)
po/bem.po (+126/-0)
po/bg.po (+114/-0)
po/bn.po (+114/-0)
po/bo.po (+124/-0)
po/br.po (+114/-0)
po/bs.po (+115/-0)
po/ca.po (+115/-0)
po/ca@valencia.po (+115/-0)
po/ckb.po (+110/-0)
po/crh.po (+112/-0)
po/cs.po (+109/-0)
po/csb.po (+117/-0)
po/cv.po (+124/-0)
po/cy.po (+120/-0)
po/da.po (+115/-0)
po/de.po (+115/-0)
po/de_DE.po (+109/-0)
po/dv.po (+124/-0)
po/el.po (+114/-0)
po/en.po (+126/-0)
po/en_AU.po (+115/-0)
po/en_CA.po (+115/-0)
po/en_GB.po (+115/-0)
po/eo.po (+114/-0)
po/es.po (+114/-0)
po/et.po (+114/-0)
po/eu.po (+115/-0)
po/fa.po (+113/-0)
po/fa_AF.po (+124/-0)
po/fi.po (+115/-0)
po/fil.po (+109/-0)
po/fo.po (+114/-0)
po/fr.po (+115/-0)
po/fr_CA.po (+126/-0)
po/fur.po (+108/-0)
po/fy.po (+114/-0)
po/ga.po (+110/-0)
po/gd.po (+111/-0)
po/gl.po (+116/-0)
po/gu.po (+132/-0)
po/he.po (+114/-0)
po/hi.po (+115/-0)
po/hr.po (+110/-0)
po/hu.po (+115/-0)
po/hy.po (+124/-0)
po/id.po (+114/-0)
po/is.po (+110/-0)
po/it.po (+115/-0)
po/ja.po (+112/-0)
po/jv.po (+126/-0)
po/ka.po (+113/-0)
po/kk.po (+113/-0)
po/km.po (+113/-0)
po/kn.po (+109/-0)
po/ko.po (+116/-0)
po/ku.po (+106/-0)
po/ky.po (+124/-0)
po/lo.po (+124/-0)
po/lt.po (+115/-0)
po/lv.po (+109/-0)
po/mhr.po (+94/-0)
po/mi.po (+126/-0)
po/mk.po (+109/-0)
po/ml.po (+105/-0)
po/mn.po (+114/-0)
po/mr.po (+104/-0)
po/ms.po (+115/-0)
po/mt.po (+128/-0)
po/my.po (+102/-0)
po/nb.po (+116/-0)
po/nds.po (+114/-0)
po/ne.po (+106/-0)
po/nl.po (+115/-0)
po/nn.po (+115/-0)
po/oc.po (+115/-0)
po/pa.po (+108/-0)
po/pl.po (+116/-0)
po/ps.po (+126/-0)
po/pt.po (+116/-0)
po/pt_BR.po (+116/-0)
po/pt_PT.po (+126/-0)
po/qu.po (+126/-0)
po/ro.po (+110/-0)
po/ru.po (+109/-0)
po/sco.po (+100/-0)
po/sd.po (+109/-0)
po/se.po (+109/-0)
po/shn.po (+126/-0)
po/si.po (+106/-0)
po/sk.po (+109/-0)
po/sl.po (+111/-0)
po/sq.po (+115/-0)
po/sr.po (+109/-0)
po/st.po (+126/-0)
po/sv.po (+115/-0)
po/ta.po (+104/-0)
po/te.po (+114/-0)
po/tg.po (+115/-0)
po/th.po (+113/-0)
po/tl.po (+106/-0)
po/tr.po (+114/-0)
po/ug.po (+113/-0)
po/uk.po (+109/-0)
po/update-notifier.pot (+346/-0)
po/ur.po (+100/-0)
po/uz.po (+111/-0)
po/vi.po (+113/-0)
po/xh.po (+135/-0)
po/zh_CN.po (+109/-0)
po/zh_HK.po (+109/-0)
po/zh_TW.po (+109/-0)
src/update.c (+5/-0)
tests/data/package-data-downloads-failed-permanently.in (+18/-1)
tests/data/package-data-downloads-failed.in (+19/-1)
tests/test_motd.py (+88/-0)
tests/test_package-data-downloader.py (+48/-0)
tests/test_pep8.py (+39/-0)
- git-ubuntu import: Pending requested
-
Diff: 29251 lines (+12561/-0) (has conflicts)173 files modified.bzr-builddeb/default.conf (+5/-0)
.bzrignore (+31/-0)
autogen.sh (+17/-0)
config.h.in (+3/-0)
configure.ac (+11/-0)
data/Makefile.am (+11/-0)
data/apt_check.py (+46/-0)
data/backend_helper.py (+6/-0)
data/com.ubuntu.update-notifier.gschema.xml.in (+4/-0)
data/notify-reboot-required (+3/-0)
data/package-data-downloader (+6/-0)
data/update-motd-fsck-at-reboot (+7/-0)
data/update-motd-hwe-eol (+14/-0)
data/update-motd-updates-available (+3/-0)
debian/90-updates-available (+3/-0)
debian/95-hwe-eol (+3/-0)
debian/changelog (+128/-0)
debian/compat (+4/-0)
debian/control (+28/-0)
debian/rules (+7/-0)
debian/systemd/unicast-local-avahi.override (+1/-0)
debian/systemd/unicast-local-avahi.path (+6/-0)
debian/systemd/unicast-local-avahi.service (+6/-0)
debian/systemd/update-notifier-crash.path (+3/-0)
debian/systemd/update-notifier-crash.service (+6/-0)
debian/tests/control (+4/-0)
debian/unicast-local-avahi.conf (+14/-0)
debian/update-notifier-common.cron.daily (+8/-0)
debian/update-notifier-common.cron.weekly (+15/-0)
debian/update-notifier-common.install (+6/-0)
debian/update-notifier-common.postinst (+7/-0)
debian/update-notifier-common.postrm (+8/-0)
debian/update-notifier-common.preinst (+8/-0)
debian/update-notifier-common.triggers (+4/-0)
debian/update-notifier-crash (+3/-0)
debian/update-notifier.install (+21/-0)
debian/update-notifier.links (+4/-0)
pixmaps/scalable/livepatch-on.svg (+1/-0)
pixmaps/scalable/livepatch-warning.svg (+1/-0)
po/POTFILES.in (+10/-0)
po/ace.po (+93/-0)
po/af.po (+103/-0)
po/am.po (+97/-0)
po/an.po (+100/-0)
po/ar.po (+106/-0)
po/ast.po (+102/-0)
po/az.po (+96/-0)
po/be.po (+103/-0)
po/bem.po (+93/-0)
po/bg.po (+102/-0)
po/bn.po (+102/-0)
po/bo.po (+93/-0)
po/br.po (+102/-0)
po/bs.po (+103/-0)
po/ca.po (+103/-0)
po/ca@valencia.po (+103/-0)
po/ckb.po (+96/-0)
po/crh.po (+103/-0)
po/cs.po (+103/-0)
po/csb.po (+104/-0)
po/cv.po (+93/-0)
po/cy.po (+105/-0)
po/da.po (+103/-0)
po/de.po (+103/-0)
po/de_DE.po (+93/-0)
po/dv.po (+93/-0)
po/el.po (+102/-0)
po/en.po (+93/-0)
po/en_AU.po (+103/-0)
po/en_CA.po (+103/-0)
po/en_GB.po (+103/-0)
po/eo.po (+102/-0)
po/es.po (+102/-0)
po/et.po (+102/-0)
po/eu.po (+103/-0)
po/fa.po (+101/-0)
po/fa_AF.po (+93/-0)
po/fi.po (+103/-0)
po/fil.po (+97/-0)
po/fo.po (+102/-0)
po/fr.po (+103/-0)
po/fr_CA.po (+93/-0)
po/fur.po (+98/-0)
po/fy.po (+102/-0)
po/ga.po (+98/-0)
po/gd.po (+105/-0)
po/gl.po (+103/-0)
po/gu.po (+97/-0)
po/he.po (+102/-0)
po/hi.po (+102/-0)
po/hr.po (+104/-0)
po/hu.po (+103/-0)
po/hy.po (+93/-0)
po/id.po (+102/-0)
po/is.po (+102/-0)
po/it.po (+103/-0)
po/ja.po (+101/-0)
po/jv.po (+93/-0)
po/ka.po (+101/-0)
po/kk.po (+101/-0)
po/km.po (+101/-0)
po/kn.po (+93/-0)
po/ko.po (+101/-0)
po/ku.po (+100/-0)
po/ky.po (+93/-0)
po/lo.po (+93/-0)
po/lt.po (+103/-0)
po/lv.po (+103/-0)
po/mhr.po (+93/-0)
po/mi.po (+93/-0)
po/mk.po (+99/-0)
po/ml.po (+97/-0)
po/mn.po (+102/-0)
po/mr.po (+97/-0)
po/ms.po (+103/-0)
po/mt.po (+93/-0)
po/my.po (+96/-0)
po/nb.po (+103/-0)
po/nds.po (+102/-0)
po/ne.po (+97/-0)
po/nl.po (+103/-0)
po/nn.po (+103/-0)
po/oc.po (+103/-0)
po/pa.po (+100/-0)
po/pl.po (+104/-0)
po/ps.po (+93/-0)
po/pt.po (+103/-0)
po/pt_BR.po (+103/-0)
po/pt_PT.po (+93/-0)
po/qu.po (+93/-0)
po/ro.po (+104/-0)
po/ru.po (+103/-0)
po/sco.po (+93/-0)
po/sd.po (+93/-0)
po/se.po (+93/-0)
po/shn.po (+93/-0)
po/si.po (+100/-0)
po/sk.po (+103/-0)
po/sl.po (+105/-0)
po/sq.po (+103/-0)
po/sr.po (+103/-0)
po/st.po (+93/-0)
po/sv.po (+103/-0)
po/ta.po (+97/-0)
po/te.po (+102/-0)
po/tg.po (+103/-0)
po/th.po (+101/-0)
po/tl.po (+99/-0)
po/tr.po (+102/-0)
po/ug.po (+101/-0)
po/uk.po (+103/-0)
po/ur.po (+93/-0)
po/uz.po (+99/-0)
po/vi.po (+101/-0)
po/xh.po (+93/-0)
po/zh_CN.po (+101/-0)
po/zh_HK.po (+101/-0)
po/zh_TW.po (+101/-0)
src/Makefile.am (+23/-0)
src/avahi.c (+47/-0)
src/avahi.h (+3/-0)
src/crash.c (+13/-0)
src/hooks.c (+6/-0)
src/livepatch-tray.c (+16/-0)
src/livepatch-utils.c (+4/-0)
src/livepatch-utils.h (+9/-0)
src/system-crash.c (+8/-0)
src/update-notifier.c (+43/-0)
src/update-notifier.h (+16/-0)
src/update.c (+8/-0)
tests/pyflakes.exclude (+4/-0)
tests/test_motd.py (+88/-0)
tests/test_pep8.py (+39/-0)
- Bryce Harrington (community): Approve
-
Diff: 747 lines (+446/-69)4 files modifieddata/apt_check.py (+119/-33)
debian/changelog (+17/-0)
debian/control (+1/-0)
tests/test_motd.py (+309/-36)
- Bryce Harrington (community): Approve
-
Diff: 725 lines (+440/-63)4 files modifieddata/apt_check.py (+118/-32)
debian/changelog (+17/-0)
debian/control (+1/-0)
tests/test_motd.py (+304/-31)
- Bryce Harrington (community): Approve
-
Diff: 725 lines (+440/-63)4 files modifieddata/apt_check.py (+118/-32)
debian/changelog (+17/-0)
debian/control (+1/-0)
tests/test_motd.py (+304/-31)
- Bryce Harrington (community): Approve
-
Diff: 725 lines (+440/-63)4 files modifieddata/apt_check.py (+118/-32)
debian/changelog (+17/-0)
debian/control (+1/-0)
tests/test_motd.py (+304/-31)
- git-ubuntu developers: Pending requested
-
Diff: 31860 lines (+14200/-3) (has conflicts)135 files modifiedc.diff (+0/-0)
data/apt_check.py (+30/-0)
data/backend_helper.py (+3/-0)
data/package-data-downloader (+4/-0)
data/package-data-downloads-failed-permanently.in (+1/-1)
debian/changelog (+140/-0)
debian/control (+21/-0)
debian/rules (+3/-0)
debian/tests/control (+4/-0)
debian/update-notifier-common.postinst (+13/-0)
po/ace.po (+126/-0)
po/af.po (+115/-0)
po/am.po (+103/-0)
po/an.po (+106/-0)
po/ar.po (+112/-0)
po/ast.po (+114/-0)
po/az.po (+109/-0)
po/be.po (+109/-0)
po/bem.po (+126/-0)
po/bg.po (+114/-0)
po/bn.po (+114/-0)
po/bo.po (+124/-0)
po/br.po (+114/-0)
po/bs.po (+115/-0)
po/ca.po (+115/-0)
po/ca@valencia.po (+115/-0)
po/ckb.po (+110/-0)
po/crh.po (+112/-0)
po/cs.po (+109/-0)
po/csb.po (+117/-0)
po/cv.po (+124/-0)
po/cy.po (+120/-0)
po/da.po (+115/-0)
po/de.po (+115/-0)
po/de_DE.po (+109/-0)
po/dv.po (+124/-0)
po/el.po (+114/-0)
po/en.po (+126/-0)
po/en_AU.po (+115/-0)
po/en_CA.po (+115/-0)
po/en_GB.po (+115/-0)
po/eo.po (+114/-0)
po/es.po (+114/-0)
po/et.po (+114/-0)
po/eu.po (+115/-0)
po/fa.po (+113/-0)
po/fa_AF.po (+124/-0)
po/fi.po (+115/-0)
po/fil.po (+109/-0)
po/fo.po (+114/-0)
po/fr.po (+115/-0)
po/fr_CA.po (+126/-0)
po/fur.po (+108/-0)
po/fy.po (+114/-0)
po/ga.po (+110/-0)
po/gd.po (+111/-0)
po/gl.po (+116/-0)
po/gu.po (+132/-0)
po/he.po (+114/-0)
po/hi.po (+115/-0)
po/hr.po (+110/-0)
po/hu.po (+115/-0)
po/hy.po (+124/-0)
po/id.po (+114/-0)
po/is.po (+110/-0)
po/it.po (+115/-0)
po/ja.po (+112/-0)
po/jv.po (+126/-0)
po/ka.po (+113/-0)
po/kk.po (+113/-0)
po/km.po (+113/-0)
po/kn.po (+109/-0)
po/ko.po (+116/-0)
po/ku.po (+106/-0)
po/ky.po (+124/-0)
po/lo.po (+124/-0)
po/lt.po (+115/-0)
po/lv.po (+109/-0)
po/mhr.po (+94/-0)
po/mi.po (+126/-0)
po/mk.po (+109/-0)
po/ml.po (+105/-0)
po/mn.po (+114/-0)
po/mr.po (+104/-0)
po/ms.po (+115/-0)
po/mt.po (+128/-0)
po/my.po (+102/-0)
po/nb.po (+116/-0)
po/nds.po (+114/-0)
po/ne.po (+106/-0)
po/nl.po (+115/-0)
po/nn.po (+115/-0)
po/oc.po (+115/-0)
po/pa.po (+108/-0)
po/pl.po (+116/-0)
po/ps.po (+126/-0)
po/pt.po (+116/-0)
po/pt_BR.po (+116/-0)
po/pt_PT.po (+126/-0)
po/qu.po (+126/-0)
po/ro.po (+110/-0)
po/ru.po (+109/-0)
po/sco.po (+100/-0)
po/sd.po (+109/-0)
po/se.po (+109/-0)
po/shn.po (+126/-0)
po/si.po (+106/-0)
po/sk.po (+109/-0)
po/sl.po (+111/-0)
po/sq.po (+115/-0)
po/sr.po (+109/-0)
po/st.po (+126/-0)
po/sv.po (+115/-0)
po/ta.po (+104/-0)
po/te.po (+114/-0)
po/tg.po (+115/-0)
po/th.po (+113/-0)
po/tl.po (+106/-0)
po/tr.po (+114/-0)
po/ug.po (+113/-0)
po/uk.po (+109/-0)
po/update-notifier.pot (+346/-0)
po/ur.po (+100/-0)
po/uz.po (+111/-0)
po/vi.po (+113/-0)
po/xh.po (+135/-0)
po/zh_CN.po (+109/-0)
po/zh_HK.po (+109/-0)
po/zh_TW.po (+109/-0)
src/update.c (+5/-0)
tests/data/package-data-downloads-failed-permanently.in (+18/-1)
tests/data/package-data-downloads-failed.in (+19/-1)
tests/test_motd.py (+34/-0)
tests/test_package-data-downloader.py (+48/-0)
tests/test_pep8.py (+39/-0)
description: | updated |
Changed in update-notifier (Ubuntu): | |
assignee: | nobody → Brian Murray (brian-murray) |
status: | New → In Progress |
description: | updated |
Here's the Traceback:
Traceback (most recent call last): update- notifier/ apt-check" , line 16, in <module> check_output( python3. 9/subprocess. py", line 424, in check_output python3. 9/subprocess. py", line 505, in run python3. 9/subprocess. py", line 951, in __init__ _execute_ child(args, executable, preexec_fn, close_fds, python3. 9/subprocess. py", line 1821, in _execute_child _type(errno_ num, err_msg, err_filename)
File "/usr/lib/
DISTRO = subprocess.
File "/usr/lib/
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/
self.
File "/usr/lib/
raise child_exception
FileNotFoundError: [Errno 2] No such file or directory: 'lsb_release'