Page 1 of 2

[SOLVED] dmidecode needs root privileges

Published: August 18, 2023 - 11:03
by Information Service
Agent versions 2.3 and 2.4.

Hello,

on Debian systems, when I run the command "wat-get upgrade" I receive the following error message:
WARNING Error while running dmidecode, dmidecode needs root privileges.

However, forcing the installation or update of packages from the console works perfectly.

How can I resolve this local issue?

Re: dmidecode needs root privileges

Published: August 21, 2023 - 10:50 AM
by blemoigne
Hello,
did you run the command as root or with sudo?
Best regards,
Bertrand

Re: dmidecode needs root privileges

Published: August 22, 2023 - 09:45
by Information Service
Hello,
the command was launched under the root account.

Re: dmidecode needs root privileges

Published: August 22, 2023 - 10:45 AM
by blemoigne
Hello,
I'm unable to reproduce the error with the latest version of the agent. Could you please update and try again?

Re: dmidecode needs root privileges

Published: August 22, 2023 - 2:11 PM
by dcardon
Selinux? AppArmor?

Agent OS and version? (see forum rules).

Re: dmidecode needs root privileges

Published: August 22, 2023 - 4:29 PM
by Information Service
Agent OS and version?
> Debian 11 and agent version 2.4.
Here is the output of the command "uname -a
6.1.29-v8+ #1652 SMP PREEMPT Wed May 24 14:46:55 BST 2023 aarch64 GNU/Linux

selinux? apparmor?
> I'm not a Linux expert, but the problem seems to only be present on Raspberry Pis, and if I understand correctly, it's using AppArmor.

Re: dmidecode needs root privileges

Published: August 22, 2023 - 6:42 PM
by dcardon
Service info wrote: August 22, 2023 - 4:29 PM Agent OS and version?
> Debian 11 and agent version 2.4
Here is the output of the command "uname -a
6.1.29-v8+ #1652 SMP PREEMPT Wed May 24 14:46:55 BST 2023 aarch64 GNU/Linux
2.4 how many?

Code: Select all

wapt-get --version | grep full-version
Do you have dmidecode installed on the machine? It might be a minimal installation. I noticed it's missing from the Depends section of the control file. This will be fixed in the next version.
SELinux? AppArmor?
> I'm not a Linux expert, but the problem seems to only occur on Raspberry Pis, and if I understand correctly, it involves using AppArmor.
AppArmor doesn't block anything to my knowledge in deb11. So that must be the problem with dmidecode.

Sincerely,

Denis

Re: dmidecode needs root privileges

Published: August 23, 2023 - 4:59 PM
by dcardon
Hello IT support,

were you able to verify that installing dmidecode resolves the issue so I can close the topic?

Thank you,

Denis

Re: dmidecode needs root privileges

Published: August 24, 2023 - 4:59 PM
by Information Service
Hello,

additional information for version 2.4.0.14143-9847ee8b.

Sorry for the delayed response.

On the Raspberry Pi, it appears to be present but doesn't respond correctly.

Here is the output of the command:

# dmidecode 3.3
# No SMBIOS nor DMI entry point found, sorry.

This same command on a Debian 11 VM returns the correct information.

Re: dmidecode needs root privileges

Published: August 24, 2023 - 6:15 PM
by dcardon
Hello IT Support,
what model Raspberry Pi is it? I only have 4B models available, and it works on them with ARM64 deb11.
Regards,
Denis