I installed the addon “lshw.”
I tried running several terminal commands:
lshw
sudo lshw
lshw -short
But I get the error you see in the image.
Has anyone had the same problem?
WHERE could I have gone wrong?
I know that command. On Xubuntu it works fine for me.
I thank you in advance.
I tried to google the error. There is a lot of talk about it, in many circumstances. I could not find much about my specific case. I tried ChatGPT. Below is the answer.
In any case, it is not super important for me to get this command working. You can queue this request.
ChatGPT:
his error, “terminate called after throwing an instance of ‘std::length_error’ what(): basic_string::_M_create”, indicates that a program has been terminated due to an unhandled ‘length_error’ exception in C++. This type of error occurs when attempting to create a string with a length exceeding what is allowed by the system.
In the specific context of the “lshw -short” command, it seems there’s an issue with string handling within the program, leading to the generation of a string with an unmanageable length, resulting in the error and termination of the program itself.
To resolve this issue, you could:
Ensure you have the latest version of the “lshw” program installed.
Make sure all system requirements are met.
Check for bug reports or similar issues in the “lshw” project’s bug tracker and, if necessary, report them to the developers.
If the error persists, you might look for alternatives or use other options to obtain the system information you need.
IPFire already has the latest version - B.02.20 - which was updated in IPFire in Jan 2024.
The only thing I can think of is that the issue you are seeing would need to be raised on the lshw git site so they can have a look to understand why it is occurring and how to fix it.
Package list update looks fine at being done 7 secs ago. Just don’t understand why the lshw version is the previous one. Certainlt different to whatbi had in my system.
Unfortunately don’t have time to investigate further at the moment. Will try and have a look tomorrow.
There might be a pakfire cache that needs to be cleaned out. I dont remember where it is at the moment. In the IPFire terminal / console search for *lshw* and you should find it.
EDIT: I think I found pakfire cache. Do a pakfire Uninstall for lshw. Then look in the directory: /var/cache/pakfire and delete the lswh-????-?.ipfire file(s).
Yes. that’s one of the first tests I did. But I still have the problem. At this point I am more and more convinced that the problem is isolated in my machine, although I don’t understand how it could happen to me. I will keep you updated if I solve it. Thank you as always for the very quick responses .