ubiquity crashed with FileNotFoundError in _execute_child(): [Errno 2] No such file or directory: '/sbin/udevadm': '/sbin/udevadm'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubiquity (Ubuntu) |
Fix Released
|
Critical
|
Unassigned |
Bug Description
One Last piece of info.. Here is the info on what changed the path
for udevadm:
systemd (242-1) experimental; urgency=medium
* New upstream version 242
- Change ownership/mode of the execution directories also for static users
(Closes: #919231)
- A new boolean sandboxing option RestrictSUIDSGID= has been added that is
built on seccomp. When turned on, creation of SUID/SGID files is
prohibited. The NoNewPrivileges= and the new RestrictSUIDSGID= options
are now implied if DynamicUser= is turned on for a service.
(Closes: #928102, CVE-2019-3843, CVE-2019-3844)
* Drop Revert-
This patch needs ongoing maintenance work to be adapted to new releases
and fails to apply with v242. Instead of investing more time into it we
are going to drop the patch as it was a hack anyway.
* Rebase patches
* Drop pre-stretch migration code
> * Drop /sbin/udevadm compat symlink (Closes: #852580)
* socket-util: Make sure flush_accept() doesn't hang on unexpected
EOPNOTSUPP
* Enable regexp matching support in journalctl using pcre2 (Closes: #898892)
* Switch from libidn to libidn2 (Closes: #928615)
One wierd thing though is that the udev package files list shows that
udevadm should be in /bin/udevadm yet there seem to be 2 copies:
:~$ ll /bin/udevadm
-rwxr-xr-x 1 root root 678312 Sep 12 04:28 /bin/udevadm*
:~$ ll /usr/bin/udevadm
-rwxr-xr-x 1 root root 678312 Sep 12 04:28 /usr/bin/udevadm*
an artifact maybe or design intent ?
Version of udev shows 242+ so this change is applied.
:~$ dpkg --list | grep udev
ii udev 242-6ubuntu1 amd64 /dev/ and hotplug management daemon
The Fix,
Ok.. After more investigation the problem is coming from moving udevadm
from /sbin/udevadm to /usr/bin/udevadm:
In the nm.py line 39 in the get_vendor_
hardcoded to /sbin/udevadm but the command is now in /usr/bin/udevadm:
def get_vendor_
vendor = ''
model = ''
cmd = ['/sbin/udevadm', 'info', '--path=%s' % udi, '--query=property']
with open('/dev/null', 'w') as devnull:
out = subprocess.Popen(
cmd, stdout=
out = out.communicate()
if not out[1]:
for prop in out[0].split('\n'):
if prop.startswith
elif prop.startswith
return (vendor, model)
ubuntu@ubuntu:~$ which udevadm
/usr/bin/udevadm
So I hacked nm.py in my live image and reran the installer and it installed
fine.
So the fix is simply to change the path for udevadm to /usr/bin instead of
/sbin on line 39 of nm.py
I hope this is a one-off and not a "let's clean up /sbin" activity
otherwise we might be chasing more of these during the beta cycle.
Thanks for all of your hard work,
WolfLand
The problem:
This happened when I tried to start the installer(which never appeared). This worked fine prior to the beta on 2 other machines(1-Intel based, 1-AMD/radeon based). No sure what's happening but the installer just will not run.
According to /var/log/
FileNotFoundError: [Errno 2] No such file or directory: '/sbin/udevadm': '/sbin/udevadm'
I have verified that this file/directory does not exist on any of my 3 ubuntu 19.10 systems.
This error seems to be coming from nm.py get_vendor_
This computer does have a different vendor and model of wireless device but was working fine
in 19.04 with built in drivers.
Here is the output from the /var/log/
Ubiquity 19.10.12
/usr/lib/
from gi.repository import Gtk, Gdk, GObject, GLib, Atk, Gio
/usr/lib/
from gi.repository import NM, NMA
/usr/lib/
from gi.repository import NM, NMA
/usr/lib/
from gi.repository import TimezoneMap
No such schema “org.gnome.
Failed to play sound: Not available
update_
update_
Could not translate page (prepare): 'NoneType' object has no attribute 'replace'
/usr/lib/
GLib.
/usr/lib/
GLib.
/usr/lib/
from gi.repository import Gtk, GObject, GLib, Soup
(process:31878): dconf-WARNING **: 12:47:33.650: failed to commit changes to dconf: Error spawning command line “dbus-launch --autolaunch=
(process:31919): dconf-WARNING **: 12:47:34.555: failed to commit changes to dconf: Error spawning command line “dbus-launch --autolaunch=
(process:31927): dconf-WARNING **: 12:47:34.630: failed to commit changes to dconf: Error spawning command line “dbus-launch --autolaunch=
(process:31932): dconf-WARNING **: 12:47:34.676: failed to commit changes to dconf: Error spawning command line “dbus-launch --autolaunch=
(process:31937): dconf-WARNING **: 12:47:34.998: failed to commit changes to dconf: Error spawning command line “dbus-launch --autolaunch=
Gdk-Message: 12:47:35.015: ubiquity: Fatal IO error 0 (Success) on X server :0.
Ubiquity 19.10.12
/usr/lib/
from gi.repository import Gtk, Gdk, GObject, GLib, Atk, Gio
/usr/lib/
from gi.repository import NM, NMA
/usr/lib/
from gi.repository import NM, NMA
Exception in GTK frontend (invoking crash handler):
Traceback (most recent call last):
File "/usr/lib/
self.view = NetworkManagerT
File "/usr/lib/
state_changed)
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
vendor, model = get_vendor_
File "/usr/lib/
universal_
File "/usr/lib/
restore_
File "/usr/lib/
raise child_exception
FileNotFoundError: [Errno 2] No such file or directory: '/sbin/udevadm': '/sbin/udevadm'
Traceback (most recent call last):
File "/usr/lib/
self.view = NetworkManagerT
File "/usr/lib/
state_changed)
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
vendor, model = get_vendor_
File "/usr/lib/
universal_
File "/usr/lib/
restore_
File "/usr/lib/
raise child_exception
FileNotFoundError: [Errno 2] No such file or directory: '/sbin/udevadm': '/sbin/udevadm'
Ubiquity 19.10.12
/usr/lib/
from gi.repository import Gtk, Gdk, GObject, GLib, Atk, Gio
/usr/lib/
from gi.repository import NM, NMA
/usr/lib/
from gi.repository import NM, NMA
Exception in GTK frontend (invoking crash handler):
Traceback (most recent call last):
File "/usr/lib/
self.view = NetworkManagerT
File "/usr/lib/
state_changed)
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
vendor, model = get_vendor_
File "/usr/lib/
universal_
File "/usr/lib/
restore_
File "/usr/lib/
raise child_exception
FileNotFoundError: [Errno 2] No such file or directory: '/sbin/udevadm': '/sbin/udevadm'
Traceback (most recent call last):
File "/usr/lib/
self.view = NetworkManagerT
File "/usr/lib/
state_changed)
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
vendor, model = get_vendor_
File "/usr/lib/
universal_
File "/usr/lib/
restore_
File "/usr/lib/
raise child_exception
FileNotFoundError: [Errno 2] No such file or directory: '/sbin/udevadm': '/sbin/udevadm'
Hope this helps and I am going to try again and see if I get the same result,
Thanks
ProblemType: Crash
DistroRelease: Ubuntu 19.10
Package: ubiquity 19.10.12 [modified: usr/share/
ProcVersionSign
Uname: Linux 5.3.0-12-generic x86_64
ApportVersion: 2.20.11-0ubuntu7
Architecture: amd64
CasperVersion: 1.419
Date: Fri Sep 27 16:40:12 2019
ExecutablePath: /usr/lib/
InstallCmdLine: BOOT_IMAGE=
InterpreterPath: /usr/bin/python3.7
LiveMediaBuild: Ubuntu 19.10 - Release amd64
ProcCmdline: /usr/bin/python3 /usr/lib/
ProcEnviron:
LANGUAGE=en_US
TERM=unknown
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
Python3Details: /usr/bin/python3.7, Python 3.7.4+, python3-minimal, 3.7.3-1
PythonArgs: ['/usr/
PythonDetails: /usr/bin/python2.7, Python 2.7.16+, python-minimal, 2.7.16-1
SourcePackage: ubiquity
Title: ubiquity crashed with FileNotFoundError in _execute_child(): [Errno 2] No such file or directory: '/sbin/udevadm': '/sbin/udevadm'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
tags: | removed: need-duplicate-check |
Changed in ubiquity (Ubuntu): | |
importance: | Undecided → Medium |
description: | updated |
description: | updated |
Changed in ubiquity (Ubuntu): | |
importance: | Medium → Critical |
information type: | Private → Public |
tags: | added: rls-ee-incoming |
Status changed to 'Confirmed' because the bug affects multiple users.