[SOLVED] what is this crazy I don't even know what to call this one.
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
what is this crazy I don't even know what to call this one.
I have a script that I run across many platforms aka Linux Distos and FreeBSD and now when I get into Ubunutu I get this error
Code:
userx@Ubutt-Butt:~
$ xfce4-setwallpaper
/home/userx/bin/imagescripts/xfce4-setwallpaper: line 38: /home/userx/bin/mkdir: cannot execute: required file not found
/home/userx/bin/imagescripts/xfce4-setwallpaper: line 39: /home/userx/bin/mv: cannot execute: required file not found
userx@Ubutt-Butt:~
$ whereis mkdir
mkdir: /usr/bin/mkdir /home/userx/bin/mkdir /usr/share/man/man1/mkdir.1.gz /usr/share/man/man2/mkdir.2.gz
userx@Ubutt-Butt:~
$ whereis mv
mv: /usr/bin/mv /home/userx/bin/mv /usr/share/man/man1/mv.1.gz
userx@Ubutt-Butt:~
for whatever its reasons it thinks mkdir and mv are in my home dir. I never had this one before.
Code:
userx@Ubutt-Butt:~
$ uname -a
Linux Ubutt-Butt 6.2.0-1003-lowlatency #3-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 6 10:00:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
it is Ubunutu studio the latest one that just came out, I just upgrade it to that one the other day. 24.10??? I don't know
can anyone tell me how to fix this?
It's a shot in the dark, but could it be that, because you are running the script from /home/userx/bin/, it's looking for those commands in that same directory?
Might help if we actually knew the contents of the script you are running.
you want the entire script?
it doensn't matter anymore. this Ubunututu got me so I cannot login now, I cannot even go into a ROOT GUI login because it looks like there login manager does not work like that because #^$*#^$*@^*$@ asses figured no one should even learn how to use root so they hide it as best they can. lalalala anyways I am about to dump this distro again.
It's a shot in the dark, but could it be that, because you are running the script from /home/userx/bin/, it's looking for those commands in that same directory?
yeah but it was not doing that just moments before or the day before or the week before etc so I absolute path the two in the script and it was still trying to use the ones that are not there in my home bin, so I deluser . adduser, then got locked out of login and Ubunutu screwed me.
there is a systemD message on the screen but I cannot read that fast as the login manager pops up covering it. they did not even have the login manager sent to a different tty to login on, It does not even allow root login on the GUI .
Ubuntu is ok as long as it doesn't get a quirt . put that on a tee shirt and let everyone read it.
If the directory exists. Interesting, would not have known that.
just for sake of conversation, as I am no locked out of that system and have no idea how to get that massage on there screen as I'd rather be in a GUI with root so I can have scroll back on a terminal if I need it. anyways I have a bin and I have NOT mv or mkdir in it.
I removed the user, changed the users home to userx-old added me back then got locked out as in trying to login to the login manager does not accept my password. I didn't try another tty for that user But I an get in root on the cli in another tty.
I need to go an check that out, if user can login on another tty.
a) '/home/userx/bin/mkdir: cannot execute: required file not found' message means that file /home/userx/bin/mkdir exists but has a bad shebang
b) and because it exists it somehow took precedence over regular /usr/bin/mv (BTW why /usr/bin? should be /bin), running 'hash -r' should fix it
a) '/home/userx/bin/mkdir: cannot execute: required file not found' message means that file /home/userx/bin/mkdir exists but has a bad shebang
b) and because it exists it somehow took precedence over regular /usr/bin/mv (BTW why /usr/bin? should be /bin), running 'hash -r' should fix it
shebang is #!/usr/bin/env bash
I am lockout out of that distro it has some kind of systemD F&#( error I cannot see because the login manager comes up blocking that tty so now I either have to dump the entire system or figure out wtf is going on with that now.
I can login on the tty but so what
edit
I did not put mk or mkdir in my bin so I have no idea where it got that idea either . it just started doing that out of the blue
You should be able to login from startx using ./xinitrc without using a display manager.
Edit: Or is that using wayland.
Okay I just got back in under same user but a new one . so now let me see what it is going to do after I get it setup again.
thanks for your help
EDIT:
Okay this thing just screwed up again with that everything even ls is suppose to be in my home bin now and again I am locked out from login but i do have a different user on this thing and it is not giving me this grief
/home/blender/bin/imagescripts/xfce4-setwallpaper: line 38: /home/blender/bin/mkdir: cannot execute: required file not found
/home/blender/bin/imagescripts/xfce4-setwallpaper: line 39: /home/blender/bin/mv: cannot execute: required file not found
/home/blender/bin/imagescripts/xfce4-setwallpaper: line 38: /home/blender/bin/mkdir: cannot execute: required file not found
/home/blender/bin/imagescripts/xfce4-setwallpaper: line 38: /home/blender/bin/mkdir: cannot execute: required file not found
/home/blender/bin/imagescripts/xfce4-setwallpaper: line 38: /home/blender/bin/mkdir: cannot execute: required file not found
Code:
blender@Ubutt-Butt:~
$ ls bin
bash: /home/blender/bin/ls: cannot execute: required file not found
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.