Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Solved Profile 23 upgrade /usr/bin/env: 'bash': No such file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
cctsurf
Tux's lil' helper
Tux's lil' helper


Joined: 12 Oct 2006
Posts: 123

PostPosted: Mon Mar 25, 2024 6:40 pm    Post subject: Solved Profile 23 upgrade /usr/bin/env: 'bash': No such file Reply with quote

I'm posting this because I got myself in a pretty big hole with the profile 23 upgrade. I found my way out of it, but maybe someone else gets down this hole and I can help them out.
So, I made a severe mistake. I didn't read the news message about the new profiles because I was on a local profile and didn't receive it. So, now I really fubared my computer.
I noted that people were talking about the new profiles on reddit and I was excited about the new profiles. So I decided to upgrade. I saw that people were having some difficulties, but having upgraded profiles repeatedly over the past 20 years, I didn't think much of it...my bad.
I recompiled the toolchain...no problem
then I did an emerge -eav system... and I had big problems.
It had to do with the split-usr vs. merged-usr aspect of the upgrade.
when I attempted to emerge anything, I get a couple of errors, one seems to have to do with not knowing where commands are located (ie. PORTAGE_BZIP2_COMMAND), I can overcome that by adding the location before the command...) but the following had me stumped:

Code:

emerge -1av dev-build/libtool

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 1.59 s (backtrack: 0/20).

[ebuild   R    ] dev-build/libtool-2.4.7-r3:2::gentoo  USE="-vanilla" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No]

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-build/libtool-2.4.7-r3::gentoo
/usr/bin/env: ‘bash’: No such file or directory
 * The ebuild phase 'die_hooks' has been aborted since PORTAGE_BUILDDIR
 * does not exist: '/var/tmp/portage/dev-build/libtool-2.4.7-r3'

>>> Failed to emerge dev-build/libtool-2.4.7-r3

 * Messages for package dev-build/libtool-2.4.7-r3


I found my answer in https://forums.gentoo.org/viewtopic-p-8817858.html

I was able to add PATH="/bin:/sbin" to /etc/env.d/99local-tmp as a temporary hack and now I'm following the news article... It seems to be working.

I hope this doesn't help someone... :D but if it does...I'l be ok with that too... :P
Back to top
View user's profile Send private message
tobkra
n00b
n00b


Joined: 30 Jun 2024
Posts: 1

PostPosted: Sun Jun 30, 2024 9:29 am    Post subject: /usr/sbin PATH in /etc/env.d/99local-tmp Reply with quote

Thanks a ton for brining me on a workaround path. I obviously also missed the usr-split hint, even though I read and try my best to understand emerge news on my setup.

I had to also add
Code:
 /usr/sbin
to
Code:
 /etc/env.d/99local-tmp


Since my
Quote:
emerge --ask --emptytree @world
failed complaining usermod was missing, which resided in
Code:
$ which usermod
/usr/sbin/usermod
on my system.

Again, I probably missed the appropriate Gentoo news item and my hack may break other things. I am just happy that my profile upgrade proceeds now.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum