Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Can't update Bash

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
spicy
n00b
n00b
Posts: 6
Joined: Thu Aug 14, 2025 5:14 pm

Can't update Bash

  • Quote

Post by spicy » Mon Feb 02, 2026 3:42 pm

I've been having trouble updating bash for a while and I can't update portage because it needs bash. I'll upload the emerge log aswell as the "emerge --info bash" log.

"emerge --info bash" log
https://bpa.st/AOIUQ

"emerge --oneshot bash" log
https://bpa.st/BZTFW
Top
grknight
Retired Dev
Retired Dev
Posts: 2549
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Mon Feb 02, 2026 3:51 pm

Does it work if you disable pgo USE on app-shells/bash?

Also:

Code: Select all

checking whether /dev/fd is available... sudo: The "no new privileges" flag is set, which prevents sudo from running as root.
sudo: If sudo is running in a container, you may need to adjust the container configuration to disable the flag.
sudo: The "no new privileges" flag is set, which prevents sudo from running as root.
sudo: If sudo is running in a container, you may need to adjust the container configuration to disable the flag.
absent
checking whether /dev/stdin stdout stderr are available... sudo: The "no new privileges" flag is set, which prevents sudo from running as root.
sudo: If sudo is running in a container, you may need to adjust the container configuration to disable the flag.
absent
Don't run emerge with sudo, it breaks stuff like above. Become root first with either sudo -i or su --login to avoid build issues.
Top
Hu
Administrator
Administrator
Posts: 24380
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Mon Feb 02, 2026 3:56 pm

Why did you put -v (long form: --version) in MAKEOPTS? It looks like you've caused every call to make to just print a version banner, then exit without doing any work.
Top
spicy
n00b
n00b
Posts: 6
Joined: Thu Aug 14, 2025 5:14 pm

  • Quote

Post by spicy » Mon Feb 02, 2026 4:25 pm

Hu wrote:Why did you put -v (long form: --version) in MAKEOPTS? It looks like you've caused every call to make to just print a version banner, then exit without doing any work.
You are right, I added that when I was trying something else. This error was actually a new for me but my problem still persists, when I update it runs for a while until it just stops at some point. These are the last lines before it stops: https://bpa.st/PSC3I

EDIT: I tried to remove pgo USE like suggested in a different reply and it solved my problem
Top
spicy
n00b
n00b
Posts: 6
Joined: Thu Aug 14, 2025 5:14 pm

  • Quote

Post by spicy » Mon Feb 02, 2026 4:31 pm

grknight wrote:Does it work if you disable pgo USE on app-shells/bash?

Also:

Code: Select all

checking whether /dev/fd is available... sudo: The "no new privileges" flag is set, which prevents sudo from running as root.
sudo: If sudo is running in a container, you may need to adjust the container configuration to disable the flag.
sudo: The "no new privileges" flag is set, which prevents sudo from running as root.
sudo: If sudo is running in a container, you may need to adjust the container configuration to disable the flag.
absent
checking whether /dev/stdin stdout stderr are available... sudo: The "no new privileges" flag is set, which prevents sudo from running as root.
sudo: If sudo is running in a container, you may need to adjust the container configuration to disable the flag.
absent
Don't run emerge with sudo, it breaks stuff like above. Become root first with either sudo -i or su --login to avoid build issues.
Updating without pgo USE fixed my problem but what you said is new for me. Using sudo never caused problems for me and the wiki also doesn't suggest anything like this.
Top
Christian99
Veteran
Veteran
Posts: 1769
Joined: Thu May 28, 2009 5:20 pm

  • Quote

Post by Christian99 » Mon Feb 02, 2026 4:57 pm

grknight wrote:
Don't run emerge with sudo, it breaks stuff like above. Become root first with either sudo -i or su --login to avoid build issues.
Really? I'm doing this, like, forever. Why wouldn't this work?
Top
grknight
Retired Dev
Retired Dev
Posts: 2549
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Mon Feb 02, 2026 5:08 pm

Christian99 wrote:Really? I'm doing this, like, forever. Why wouldn't this work?
As stated above, it is causing a build failure by denying access to /dev/fd. The failures are random and not worth the effort to debug. Many times it is environment bleed but sudo emerge here is causing a PGO failure.

Consistency is key and the best way to rule out environment and other issues it to run emerge after becoming root. The risk of wasted time (or potential security breaches) are not worth the effort otherwise. Clean root login environments provide the optimal result.
Top
Post Reply

7 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy