View previous topic :: View next topic |
Author |
Message |
cwc Veteran
Joined: 20 Mar 2006 Posts: 1311 Location: Tri-Cities, WA USA
|
Posted: Sat Jun 01, 2019 12:04 am Post subject: Failed to emerge sys-apps/util-linux-2.33-r1 |
|
|
Not very smart of me. But I wanted to reinstall util-linux using 6.1-r3 : 0
So I deleted it . emerge -C until-linux
NVS (Not very smart)
Please throw me a bone on how to reinstall it.
System rescue ?
Code: |
# emerge util-linux
Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) sys-apps/util-linux-2.33-r1::gentoo
[Errno 2] No such file or directory: 'mount': 'mount':
/bin/bash -c /usr/lib/portage/python3.6/ebuild.sh clean
Traceback (most recent call last):
File "/usr/lib64/python3.6/site-packages/portage/process.py", line 380, in spawn
unshare_flags, cgroup)
File "/usr/lib64/python3.6/site-packages/portage/process.py", line 611, in _exec
'--make-slave', '/proc'])
File "/usr/lib64/python3.6/subprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "/usr/lib64/python3.6/subprocess.py", line 1344, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'mount': 'mount'
* The ebuild phase 'die_hooks' has been aborted since PORTAGE_BUILDDIR
* does not exist: '/var/tmp/portage/sys-apps/util-linux-2.33-r1'
>>> Failed to emerge sys-apps/util-linux-2.33-r1
* Messages for package sys-apps/util-linux-2.33-r1:
|
_________________ Without diversity there can be no evolution:)
Last edited by cwc on Sat Jun 01, 2019 5:00 am; edited 1 time in total |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Sat Jun 01, 2019 12:22 am Post subject: |
|
|
What happens if you run:
Code: | FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox" emerge --oneshot sys-apps/util-linux |
|
|
Back to top |
|
|
cwc Veteran
Joined: 20 Mar 2006 Posts: 1311 Location: Tri-Cities, WA USA
|
Posted: Sat Jun 01, 2019 1:45 am Post subject: |
|
|
mike155 wrote: | What happens if you run:
Code: | FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox" emerge --oneshot sys-apps/util-linux |
|
Solved the problem. Thank you.
Now how did you know to add :
FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox"
and can I use:
FEATURES=" '
to stop the following:
Code: | !!! existing preserved libs:
>>> package: sys-libs/ncurses-6.1-r2
* - /lib64/libncurses.so.5
* - /lib64/libncurses.so.5.9
* used by /bin/bash (app-shells/bash-4.4_p23-r1)
* used by /bin/dmesg (sys-apps/util-linux-2.33-r1)
* used by /bin/more (sys-apps/util-linux-2.33-r1)
* used by 16 other files
Use emerge @preserved-rebuild to rebuild packages using these librarie |
I search for FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox" and found this:
https://devmanual.gentoo.org/general-concepts/features/
but I have no idea what the following are:
-ipc-sandbox
-network-sandbox
-pid-sandbox
Thanks again _________________ Without diversity there can be no evolution:) |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Phoenix591 Guru
Joined: 17 Sep 2007 Posts: 488
|
Posted: Sat Jun 01, 2019 5:05 am Post subject: |
|
|
cwc wrote: |
and can I use:
FEATURES=" '
to stop the following:
Code: | !!! existing preserved libs:
>>> package: sys-libs/ncurses-6.1-r2
* - /lib64/libncurses.so.5
* - /lib64/libncurses.so.5.9
* used by /bin/bash (app-shells/bash-4.4_p23-r1)
* used by /bin/dmesg (sys-apps/util-linux-2.33-r1)
* used by /bin/more (sys-apps/util-linux-2.33-r1)
* used by 16 other files
Use emerge @preserved-rebuild to rebuild packages using these librarie |
Thanks again |
If you want to have portage remove the old library thats keeping bash dmesg, and many other VERY IMPORTANT things working, technically yes, but you REALLY should use Code: | emerge @preserved-rebuild | to rebuild them to use the latest version of sys-libs/ncurses thats installed (that is still installed, right? ncurses is quite important) |
|
Back to top |
|
|
|