Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems running commands in chroot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
arogue_linux_user
n00b
n00b


Joined: 07 Nov 2024
Posts: 3
Location: Trenton, Ontario

PostPosted: Sun Apr 13, 2025 10:24 pm    Post subject: Problems running commands in chroot Reply with quote

Hello - I messed up the gentoo installation when I added pgo use flag globally to the make.conf and the bash recompilation failed and since then I'm unable to run any commands on the system.
I chrooted using livecd and mounted the file systems again by following the wiki and yet, any commands I run, gets aborted.

Do I have to reinstall or is it salvageable at this point ?


Code:

livecd ~ # chroot /mnt/gentoo/
livecd / # emerge --sync
Aborted
livecd / # emerge --sync
Aborted
livecd / # pwd
/
livecd / # cd /etc
livecd /etc # ls -l
Aborted
livecd /etc # ls -al
Aborted


Is there any thing that I can do to recover ?
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 10003
Location: almost Mile High in the USA

PostPosted: Mon Apr 14, 2025 12:04 am    Post subject: Reply with quote

It might be easier to reinstall. It looks like you built your executables in some way such that they can't be run... does 'dmesg' say anything (exit out of the chroot first) -- it may tell some more details why it decided to abort.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55163
Location: 56N 3W

PostPosted: Mon Apr 14, 2025 8:24 am    Post subject: Reply with quote

arogue_linux_user,

Quote:
... I added pgo use flag globally to the make.conf ...
That should be harmless, even if its mostly not useful.
Adding a USE flag and finding it breaks your system is a bug. I'm not convinced we are looking at cause and effect here.

We need to know what broke to fix it, dmesg may show that.
Yes, it can be fixed but not by guesswork. The method is to untar a binary package over the broken package.
Binary packages are essentially single package stage3 tarballs.
The trick is discovering which package you need.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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