View previous topic :: View next topic |
Author |
Message |
ese002 Tux's lil' helper
Joined: 20 Sep 2006 Posts: 143
|
Posted: Sat Mar 16, 2024 7:19 pm Post subject: /usr/bin/env: ‘bash’: No such file or directory [Solved] |
|
|
So apparently I failed to follow instructions and now I can't emerge anything. I changed my profile to default/linux/amd64/17.1/desktop/plasma/systemd/merged-usr at the prompting of emerge. But apparently, I was supposed to run merge-usr first. But I can't run it now because I don't have merge-usr and I can't get it because I can't emerge anything. I always get "/usr/bin/env: ‘bash’: No such file or directory" How do I escape this dependency loop? Changing the profile back doesn't seem to help.
Last edited by ese002 on Sun Mar 17, 2024 9:02 pm; edited 1 time in total |
|
Back to top |
|
|
logrusx Veteran
Joined: 22 Feb 2018 Posts: 1542
|
Posted: Sat Mar 16, 2024 7:33 pm Post subject: |
|
|
Changing the profile alone cannot do much, did you do anything else? Like restart?
Maybe you need to update environment with
Code: | source /etc/profile |
if you expect any changes to take place into the current login session.
Best Regards,
Georgi |
|
Back to top |
|
|
ese002 Tux's lil' helper
Joined: 20 Sep 2006 Posts: 143
|
Posted: Sat Mar 16, 2024 8:58 pm Post subject: |
|
|
A reboot occurred after the original profile change. After changing the profile back, I tried sourcing /etc/profile and rebooting. Neither resolved the problem.
It actually looks like the path changes associated with the new profile are sticky. After the reboot with the old profile, /bin and /sbin were not in the path. I suspect the solution is to manually restore the old paths. I just need to figure out what those are. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54259 Location: 56N 3W
|
Posted: Sat Mar 16, 2024 9:08 pm Post subject: |
|
|
ese002,
For a user
Code: | $ $PATH
bash: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/18/bin:/usr/lib/llvm/17/bin:/usr/lib64/subversion/bin:/usr/lib64/opencascade/bin:/usr/portage/local/layman/sunrise/scripts:/usr/portage/local/layman/sunrise/scripts: No such file or directory |
and root
Code: | # $PATH
-bash: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/18/bin:/usr/lib/llvm/17/bin:/usr/lib64/subversion/bin:/usr/lib64/opencascade/bin: No such file or directory |
The No such file or directory is expected.
That's /no-multilib/ _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
ese002 Tux's lil' helper
Joined: 20 Sep 2006 Posts: 143
|
Posted: Sat Mar 16, 2024 11:00 pm Post subject: |
|
|
With the path probably restored, I don't get the bash error but emerge still fails. This time with no message indicating what the problem is.
Code: | crab /home/eric # emerge -v merge-usr
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 3.90 s (backtrack: 0/20).
[ebuild N ] sys-apps/merge-usr-6::gentoo PYTHON_SINGLE_TARGET="python3_11 -python3_10" 10 KiB
Total: 1 package (1 new), Size of downloads: 10 KiB
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) sys-apps/merge-usr-6::gentoo
>>> Failed to emerge sys-apps/merge-usr-6
>>> Jobs: 0 of 1 complete, 1 failed Load avg: 0.91, 0.87, 0.73
|
Other targets still get the bash error though.
Ths is with profile of default/linux/amd64/17.1/desktop/plasma/systemd/merged-usr after sourcing /etc/profile
[Moderator edit: added [code] tags to preserve output layout. -Hu] |
|
Back to top |
|
|
edward_scott Apprentice
Joined: 17 Jan 2006 Posts: 163
|
Posted: Sat Mar 16, 2024 11:12 pm Post subject: |
|
|
I am running into the exact same issue. I will post if I figure out the solution, and follow in case you find it first. |
|
Back to top |
|
|
ese002 Tux's lil' helper
Joined: 20 Sep 2006 Posts: 143
|
Posted: Sun Mar 17, 2024 4:57 am Post subject: |
|
|
I coped /bin/bash to /usr/bin/bash and then reran "emerge merge-usr"
From there on forward, I worked through successive failures that actually reported which commands were not found. I copied or linked those into /usr/bin and re-ran emerge. Finally, the errors ceased and merge-usr merged successfully. I was then able to run merge-usr to complete the transition and now I can emerge anything. |
|
Back to top |
|
|
edward_scott Apprentice
Joined: 17 Jan 2006 Posts: 163
|
Posted: Sat Mar 23, 2024 2:05 am Post subject: |
|
|
Thank you, that worked for me too. I symlinked each from /usr/bin/bash to /usr/bin, emerged, then removed the symlinks.
For the record this is the set of commands I needed to symlink.
Code: | /usr/bin/bash
/usr/bin/mkdir
/usr/bin/rm
/usr/bin/cat
/usr/bin/chmod
/usr/bin/chgrp
/usr/bin/cp
/usr/bin/ln
/usr/bin/sed
/usr/bin/gzip
/usr/bin/tar
/usr/bin/bzip2
/usr/bin/grep
/usr/bin/mv |
|
|
Back to top |
|
|
|