Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: dhcpcd Exec format error (Read 877 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

dhcpcd Exec format error

sh-5.1# rc-service dhcpcd start
 * rc-service: Exec format error

on fresh install whats the problem ?



Re: dhcpcd Exec format error

Reply #3
sh-5.1# rc-service dhcpcd start
 * rc-service: Exec format error

on fresh install whats the problem ?
You are trying to execute rc-service compiled for a different architecture. Post the output of:
Code: [Select]
grep '^\[' /etc/pacman.conf
uname -a
file /usr/bin/rc-service
pacman -Qi openrc
As a general note, avoid packages from AUR, AUR helpers and graphical package managers, as they don't respect normal package management and tend to create problems.

Re: dhcpcd Exec format error

Reply #4
You are trying to execute rc-service compiled for a different architecture. Post the output of:
Code: [Select]
grep '^\[' /etc/pacman.conf
uname -a
file /usr/bin/rc-service
pacman -Qi openrc
As a general note, avoid packages from AUR, AUR helpers and graphical package managers, as they don't respect normal package management and tend to create problems.
Code: [Select]
sh-5.1# grep '^\[' /etc/pacman.conf
[options]
[system]
[world]
[galaxy]
sh-5.1# uname -a
Linux artix-live 5.16.1-artix1-1 #1 SMP PREEMPT Sun, 16 Jan 2022 13:15:01 +0000 x86_64 GNU/Linux
sh-5.1# file /usr/bin/rc-service
/usr/bin/rc-service: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=5f5a7cb20a31edb86af9e16214e0dc529d1e6d45, for GNU/Linux 4.4.0, stripped
sh-5.1# pacman -Qi openrc
Name            : openrc
Version         : 0.44.10-1
Description     : Gentoo's universal init system
Architecture    : x86_64
URL             : https://github.com/OpenRC/openrc
Licenses        : BSD2
Groups          : None
Provides        : svc-manager  init-rc  librc.so=1-64  libeinfo.so=1-64
Depends On      : psmisc  netifrc  inetutils
Optional Deps   : networkmanager-openrc: networkmanager init script
                  elogind-openrc: elogind init script
                  openrc-deptree2dot: Graph the Dependency Tree
Required By     : dbus-openrc  dhcpcd-openrc  iwd-openrc
Optional For    : None
Conflicts With  : svc-manager  init-rc
Replaces        : None
Installed Size  : 1508.98 KiB
Packager        : Artix Build Bot <[email protected]>
Build Date      : Wed Dec 22 01:54:26 2021
Install Date    : Thu May 5 13:05:48 2022
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature


Re: dhcpcd Exec format error

Reply #5
In the future, please use code tags for command output.

Can you give the output of (using /bin/bash):
Code: [Select]
command -v {rc-service,dhcpcd,openrc-run,supervise-daemon}
sha256sum /usr/bin/{rc-service,dhcpcd,openrc-run,supervise-daemon}

Re: dhcpcd Exec format error

Reply #6
In the future, please use code tags for command output.

Can you give the output of:
Code: [Select]
command -v {rc-service,dhcpcd,openrc-run,supervise-daemon}
sha256sum /usr/bin/{rc-service,dhcpcd,openrc-run,supervise-daemon}
Code: [Select]
sh-5.1# command -v {rc-service,dhcpcd,openrc-run,supervise-daemon}
/usr/bin/rc-service
/usr/bin/dhcpcd
/usr/bin/openrc-run
/usr/bin/supervise-daemon
sh-5.1# sha256sum /usr/bin/{rc-service,dhcpcd,openrc-run,supervise-daemon}
0b53dc047223e0f6fada99d08eeac3bbbcb52d095d0e249a6f4b3dbf2fee9409  /usr/bin/rc-service
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855  /usr/bin/dhcpcd
8c6965215c646bb6dc34925caf2108f641c86d6e89cd2ce8b6c9b5b1c8929f62  /usr/bin/openrc-run
51c5d5390949f4a6d42d534b72a57d08c0867a94cfadf53e2de1239c3e63050f  /usr/bin/supervise-daemon

Re: dhcpcd Exec format error

Reply #7
Code: [Select]
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855  /usr/bin/dhcpcd
I got
Code: [Select]
bfc2ff950ea6ee7ff1fa44f0795b1a795716db921aa525729dcaea35003753bc  /usr/bin/dhcpcd
Next step is to check
Code: [Select]
pacman -Qi dhcpcd
and possibly run
Code: [Select]
pacman -Rdd dhcpcd
rm -v /var/cache/pacman/pkg/dhcpcd*
pacman -Syu system/dhcpcd

Re: dhcpcd Exec format error

Reply #8
I got
Code: [Select]
bfc2ff950ea6ee7ff1fa44f0795b1a795716db921aa525729dcaea35003753bc  /usr/bin/dhcpcd
Next step is to check
Code: [Select]
pacman -Qi dhcpcd
and possibly run
Code: [Select]
pacman -Rdd dhcpcd
rm -v /var/cache/pacman/pkg/dhcpcd*
pacman -Syu system/dhcpcd
sh-5.1# rc-service dhcpcd start
 * WARNING: dhcpcd is already starting

Worked