Problem upgrading/updating - Failed to start udhcpd.service.

Before posting something, READ the changelog, WATCH the videos, howto and provide following:
Your install is: Bare metal, ESXi, what CPU model, RAM, HD, what EVE version you have, output of the uname -a and any other info that might help us faster.

Moderator: mike

Post Reply
smith29_2017
Posts: 4
Joined: Wed Jun 30, 2021 5:58 pm

Problem upgrading/updating - Failed to start udhcpd.service.

Post by smith29_2017 » Thu Jan 27, 2022 10:59 am

Having an issue upgrading / updating my eveng-pro - please see my outputs:

root@eve-ng-pro:~# sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
linux-headers-generic linux-headers-virtual linux-image-virtual linux-virtual
The following packages will be upgraded:
augeas-lenses eve-ng-dockers libaugeas0 libnetplan0 libvirt0 linux-base netplan.io nplan openjdk-11-jdk openjdk-11-jdk-headless openjdk-11-jre
openjdk-11-jre-headless openssl python3-software-properties qemu-block-extra qemu-system-common qemu-system-x86 qemu-utils software-properties-common
ubuntu-advantage-tools vim-common vim-tiny
22 to upgrade, 0 to newly install, 0 to remove and 4 not to upgrade.
2 not fully installed or removed.
6 standard security updates
Need to get 0 B/270 MB of archives.
After this operation, 47.1 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Setting up udhcpd (1:1.27.2-2ubuntu3.4) ...
Job for udhcpd.service failed because the control process exited with error code.
See "systemctl status udhcpd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript udhcpd, action "restart" failed.
* udhcpd.service
Loaded: loaded (/etc/init.d/udhcpd; generated)
Active: failed (Result: exit-code) since Thu 2022-01-27 10:53:36 GMT; 8ms ago
Docs: man:systemd-sysv-generator(8)
Process: 27465 ExecStart=/etc/init.d/udhcpd start (code=exited, status=203/EXEC)
CPU: 769us

Jan 27 10:53:36 eve-ng-pro systemd[1]: Starting udhcpd.service...
Jan 27 10:53:36 eve-ng-pro systemd[27465]: udhcpd.service: Failed to execute command: Exec format error
Jan 27 10:53:36 eve-ng-pro systemd[27465]: udhcpd.service: Failed at step EXEC spawning /etc/init.d/udhcpd: Exec format error
Jan 27 10:53:36 eve-ng-pro systemd[1]: udhcpd.service: Control process exited, code=exited status=203
Jan 27 10:53:36 eve-ng-pro systemd[1]: udhcpd.service: Failed with result 'exit-code'.
Jan 27 10:53:36 eve-ng-pro systemd[1]: Failed to start udhcpd.service.
Jan 27 10:53:36 eve-ng-pro systemd[1]: udhcpd.service: Consumed 769us CPU time
dpkg: error processing package udhcpd (--configure):
installed udhcpd package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of eve-ng-pro:
eve-ng-pro depends on udhcpd; however:
Package udhcpd is not configured yet.

dpkg: error processing package eve-ng-pro (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
udhcpd
eve-ng-pro
E: Sub-process /usr/bin/dpkg returned an error code (1)
===================================================================
root@eve-ng-pro:~# systemctl status udhcpd.service
* udhcpd.service
Loaded: loaded (/etc/init.d/udhcpd; generated)
Active: failed (Result: exit-code) since Thu 2022-01-27 10:53:36 GMT; 1min 39s ago
Docs: man:systemd-sysv-generator(8)
Process: 27465 ExecStart=/etc/init.d/udhcpd start (code=exited, status=203/EXEC)
CPU: 769us

Jan 27 10:53:36 eve-ng-pro systemd[1]: Starting udhcpd.service...
Jan 27 10:53:36 eve-ng-pro systemd[27465]: udhcpd.service: Failed to execute command: Exec format error
Jan 27 10:53:36 eve-ng-pro systemd[27465]: udhcpd.service: Failed at step EXEC spawning /etc/init.d/udhcpd: Exec format error
Jan 27 10:53:36 eve-ng-pro systemd[1]: udhcpd.service: Control process exited, code=exited status=203
Jan 27 10:53:36 eve-ng-pro systemd[1]: udhcpd.service: Failed with result 'exit-code'.
Jan 27 10:53:36 eve-ng-pro systemd[1]: Failed to start udhcpd.service.
Jan 27 10:53:36 eve-ng-pro systemd[1]: udhcpd.service: Consumed 769us CPU time
===================================================================
root@eve-ng-pro:~# journalctl -xe
-- The result is RESULT.
Jan 27 10:50:02 eve-ng-pro systemd[1]: udhcpd.service: Consumed 658us CPU time
-- Subject: Resources consumed by unit runtime
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit udhcpd.service completed and consumed the indicated resources.
Jan 27 10:50:02 eve-ng-pro sudo[6987]: pam_unix(sudo:session): session closed for user root
Jan 27 10:53:33 eve-ng-pro sudo[27222]: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/usr/bin/apt-get upgrade
Jan 27 10:53:33 eve-ng-pro sudo[27222]: pam_unix(sudo:session): session opened for user root by root(uid=0)
Jan 27 10:53:36 eve-ng-pro systemd[1]: Reloading.
Jan 27 10:53:36 eve-ng-pro systemd[1]: Reloading.
Jan 27 10:53:36 eve-ng-pro systemd[1]: Starting udhcpd.service...
-- Subject: Unit udhcpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit udhcpd.service has begun starting up.
Jan 27 10:53:36 eve-ng-pro systemd[27465]: udhcpd.service: Failed to execute command: Exec format error
Jan 27 10:53:36 eve-ng-pro systemd[27465]: udhcpd.service: Failed at step EXEC spawning /etc/init.d/udhcpd: Exec format error
-- Subject: Process /etc/init.d/udhcpd could not be executed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The process /etc/init.d/udhcpd could not be executed and failed.
--
-- The error number returned by this process is 8.
Jan 27 10:53:36 eve-ng-pro systemd[1]: udhcpd.service: Control process exited, code=exited status=203
Jan 27 10:53:36 eve-ng-pro systemd[1]: udhcpd.service: Failed with result 'exit-code'.
Jan 27 10:53:36 eve-ng-pro systemd[1]: Failed to start udhcpd.service.
-- Subject: Unit udhcpd.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit udhcpd.service has failed.
--
-- The result is RESULT.
Jan 27 10:53:36 eve-ng-pro systemd[1]: udhcpd.service: Consumed 769us CPU time
-- Subject: Resources consumed by unit runtime
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit udhcpd.service completed and consumed the indicated resources.
Jan 27 10:53:37 eve-ng-pro sudo[27222]: pam_unix(sudo:session): session closed for user root
Jan 27 10:55:32 eve-ng-pro ntpd[2761]: Soliciting pool server 195.171.xx.xx
Jan 27 10:55:33 eve-ng-pro ntpd[2761]: Soliciting pool server 81.21.xx.xx
=====================================================================

I apologise for being a Linux newbie. Appears the udhcp service needs to be configured? But if it wasn't then I'd have no IP or connectivity? (Assuming this DHCP)
--
root@eve-ng-pro:~# ifconfig pnet0
pnet0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.2.67 netmask 255.255.255.0 broadcast 192.168.2.255
ether 00:0c:29:32:f2:38 txqueuelen 1000 (Ethernet)
RX packets 22742 bytes 316575878 (316.5 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 17322 bytes 1199288 (1.1 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
--
It's a non-default private address but still should work? (not 192.168.0.0)
and connectivity is obviously working:
oot@eve-ng-pro:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=117 time=18.0 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=117 time=19.4 ms


Anyways, thanks for any help would be appreciated.

Cheers,
Tom

Uldis (UD)
Posts: 5080
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

Re: Problem upgrading/updating - Failed to start udhcpd.service.

Post by Uldis (UD) » Fri Jan 28, 2022 9:40 am

Please come chat to Live Helpdesk
https://www.eve-ng.net/index.php/live-helpdesk/
Use your gmail or own email to create chat account.
It seems that you had changed network subnets in the eve which were hardcoded

Post Reply