[ion@ion-desk OS9]$ ls imgtool
imgtool
[ion@ion-desk OS9]$ ./imgtool
bash: ./imgtool: cannot execute: required file not found
[ion@ion-desk OS9]$
But imgtool properties shows it’s executable and read/write for all users. And it worked a few days ago. Any suggestions?
What even if this imgtool executable? Where did you get it? What is its purpose?
dalto
August 20, 2026, 3:54pm
3
What is the output of file ./imgtool
It converts Microware OS9 files to Linux files. I have used it for many years.
It works fine under another Linux OS.
This? https://man.archlinux.org/man/extra/mame-tools/imgtool.1.en
Isn’t it part of the MAME tools package?
Perhaps you should check if that is installed/installed correctly on your system?
[ion@ion-desk OS9]$ ls -la ./imgtool
-rwxrwxrwx 1 ion users 355932 Aug 2 12:49 ./imgtool
[ion@ion-desk OS9]$
I re-installed MAME to be sure. Nothing changed.
dalto
August 20, 2026, 6:00pm
10
Did you run the command from above yet?
Please reinstall with command
yay -Sy mame-tools
ls -la /usr/bin/imgtool
.rwx r-xr-x 1,2M root 31 jul 09:12
execute with command : /usr/bin/imgtool
or : imgtool
It is not :
./imgtool
dalto
August 20, 2026, 6:28pm
12
ulefr01:
yay -Sy mame-tools
Please never install anything with pacman -Sy, this is a terrible practice.
dalto
August 20, 2026, 6:39pm
14
ulefr01:
Why terrible ?
Because is creates a partial update situation.
If you update your database and install software without updating your system, you are creating a situation where your packages are out of alignment.
yay (Yet Another Yaourt) is a lightweight, fast, and user-friendly AUR helper that automates the build and installation process.
dalto
August 20, 2026, 6:43pm
16
I know what yay is. yay -Sy has all the same problems that pacman -Sy does…
…of AUR packages . It first checks if a package can be found via the official repositories through pacman. yay isn’t a new package manager for Arch, it is a wrapper around it with mechanisms to install AUR packages.
OP, can you run file ./imgtool and please post the output?
Running it from /usr/bin/imgtool did the trick. Thank you VERY much!