Forums

Skip to content

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

emerge sync + emerge portage -> bash:- * no such file or

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
boglin
n00b
n00b
User avatar
Posts: 67
Joined: Fri Jun 07, 2002 1:57 am
Location: Kingston, ON

emerge sync + emerge portage -> bash:- * no such file or

  • Quote

Post by boglin » Mon Sep 27, 2004 2:44 am

I cannot execute any command on my remote system, or create a new ssh-session. Please help me...

I logged in to update some packages and did emerge sync and an emerge -av portage. Portage told me I needed a new version:

Code: Select all

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     U ] sys-apps/portage-2.0.50-r11 [2.0.50-r9] -build -multilib -(selinux)  218 kB
Portage installs the new version of itself,

Code: Select all


>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...
>>> sys-apps/portage-2.0.50-r11 merged.

 sys-apps/portage
    selected: 2.0.50-r9
   protected: 2.0.50-r11
     omitted: none

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages...
But dies with:

Code: Select all

...
--- !empty dir /usr/share/doc
--- !empty dir /usr/share
--- !empty dir /usr/sbin
--- !empty dir /usr/lib/misc
--- !empty dir /usr/lib/gconv
--- !empty dir /usr/lib
--- !empty dir /usr/include/sys
--- !empty dir /usr/include/bits
--- !empty dir /usr/include
--- !empty dir /usr/bin
--- !empty dir /usr
--- !empty dir /sbin
--- !empty dir /lib
--- !empty dir /etc
!!! Couldn't empty HOME: /var/tmp/portage/homedir
!!! [Errno 2] No such file or directory
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2605, in ?

  File "/usr/bin/emerge", line 1852, in unmerge
    for y in pkgmap[x]["selected"]:
  File "/usr/lib/portage/pym/portage.py", line 2494, in unmerge

  File "/usr/lib/portage/pym/portage.py", line 5478, in unmerge
    # XXX: Use vardbapi to load up env vars.
  File "/usr/lib/portage/pym/portage.py", line 2266, in doebuild
    try:
  File "/usr/lib/portage/pym/portage.py", line 1563, in spawn
    # *carefully* --- report error here
OSError: [Errno 2] No such file or directory
!!! FAILED postrm: 1
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2605, in ?

  File "/usr/bin/emerge", line 1852, in unmerge
    for y in pkgmap[x]["selected"]:
  File "/usr/lib/portage/pym/portage.py", line 2494, in unmerge

  File "/usr/lib/portage/pym/portage.py", line 5478, in unmerge
    # XXX: Use vardbapi to load up env vars.
  File "/usr/lib/portage/pym/portage.py", line 2266, in doebuild
    try:
  File "/usr/lib/portage/pym/portage.py", line 1563, in spawn
    # *carefully* --- report error here
OSError: [Errno 2] No such file or directory
!!! FAILED postrm: 1
And then, even a simple ls results in:

Code: Select all

-bash: /bin/ls: No such file or directory
, with similar results for any command you can think of. But not the shell-internal ones like 'echo'.

So I was left with a completely unusable system. I was unable to ssh into the system: a connection was established and the password cleared but the remote host reported that /bin/bash did not exist. I can't execute anything in the ssh session that is still open...

Please help. :(
Top
jkcunningham
l33t
l33t
Posts: 648
Joined: Mon Apr 28, 2003 4:28 pm
Location: 47.49N 121.79W

  • Quote

Post by jkcunningham » Wed Jan 12, 2005 12:21 am

I just ran into this problem trying to install a fresh system off the 2004.3 LiveCD. I ran into it about a year ago on a much earlier Gentoo version and submitted a bug report which was never resolved because by the time they looked at it, a couple revs had rolled in everything and it wasn't reproducible.

On the chance that the same bandaide would fix it again, I went into my /etc/make.conf and set

Code: Select all

AUTOCLEAN="no"
Apparently, what is happening is the emerge of the kernel is throwing the baby (bash, emerge and all kinds of /bin apps) out with the bathwater, and the only way to get them back as far as I know is to boot off the LiveCD again and untar them. But once you turn off autocleaning, the problem goes away and you can finish your install.

-Jeff
Top
Post Reply

2 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

 

 

magic