View previous topic :: View next topic |
Author |
Message |
christopher n00b
Joined: 06 Dec 2003 Posts: 14
|
Posted: Sun Dec 07, 2003 3:01 pm Post subject: my drunk ass screwed up emerge |
|
|
Well, being the idiot that I am, i was logged in as root lastnight and rather saucy, and did a 'emerge dep-clean', as to why i did it i have no clue. anyhow, now it gives me error messages similiar to this (i say similar cause my install is now broken, so i cant check verbatim) :
if i attempt to 'ls' the system gives me some nonsense about the /bin/sh/WHOAMI file being gone or something, so i cannot issue any commands what so ever. any help in resolving this issue would be appreciated.
any commands i issue, it gives me the 'bin/sh/WHOAMI file missing' error message..
Thanks ,
Chris |
|
Back to top |
|
|
mrhodes Guru
Joined: 01 May 2002 Posts: 310 Location: Halifax, NS
|
Posted: Sun Dec 07, 2003 3:10 pm Post subject: |
|
|
lol, sorry to hear about your troubles
This is why I never use linux when I drink...
I wish I knew how to help...
Good Luck, _________________ Michael Rhodes
Tiger Studios Entertainment
http://www.tigerstudios.net |
|
Back to top |
|
|
ronmon Veteran
Joined: 15 Apr 2002 Posts: 1043 Location: Key West, FL
|
Posted: Sun Dec 07, 2003 3:32 pm Post subject: |
|
|
You are found guilty of Computing Under the Influence and hereby sentenced to three days of compiling your Gentoo from scratch.
Sorry, I couldn't resist But seriously, maybe you can restore some critical stuff from a stage2 or stage3 image. It's worth a shot. |
|
Back to top |
|
|
David_Escott l33t
Joined: 12 Jan 2003 Posts: 952 Location: Boston, MA
|
Posted: Sun Dec 07, 2003 3:33 pm Post subject: |
|
|
Can you log in at all? It sounds like there may be some issues with your user configuration files /etc/passwd and /etc/groups. But I don't know what to make of that since that file does not exist on my system (/bin/sh -> /bin/bash is the bash executable). |
|
Back to top |
|
|
christopher n00b
Joined: 06 Dec 2003 Posts: 14
|
Posted: Sun Dec 07, 2003 4:05 pm Post subject: more info on my drunkass |
|
|
well,i can login and i get this error message when i log in as root:
login(pam_unix)[664]: session opened for user root by (uid=0)
-bash: /usr/bin/whoami : No such filr or directory.
-bash: [: =: unary operator expected
plus a ton of output error messages from dmesg...
ie: /sbin/rc: line 1: ls: command not found
so i assume somethingis fubarred with bash..any ideas?
Thanks.
Chris |
|
Back to top |
|
|
David_Escott l33t
Joined: 12 Jan 2003 Posts: 952 Location: Boston, MA
|
Posted: Sun Dec 07, 2003 4:19 pm Post subject: |
|
|
No its not bash just some core utilities got fubared. In particular at least
escott@localhost 11:17 AM Sun Dec 07 [H=502 C=2]
~:> qpkg -f /bin/whoami
sys-apps/coreutils *
escott@localhost 11:17 AM Sun Dec 07 [H=503 C=3]
~:> qpkg -f /sbin/rc
sys-apps/baselayout *
will need to be rebuilt. I don't know if enough of your system exists for portage to be able to do this. If not you might need to boot into your install disk :-/. |
|
Back to top |
|
|
christopher n00b
Joined: 06 Dec 2003 Posts: 14
|
Posted: Sun Dec 07, 2003 4:46 pm Post subject: drunk is bad |
|
|
well, i attempted to emerge coreutils, however, i have no netaccess, is there a way to emerge without a connection? i remember editing a file, maybe it was make.conf...ill check though any other ideas ?
thanks
chris |
|
Back to top |
|
|
David_Escott l33t
Joined: 12 Jan 2003 Posts: 952 Location: Boston, MA
|
Posted: Sun Dec 07, 2003 4:53 pm Post subject: |
|
|
If it want's to download something then you must not have the tarball on the system, so somehow you have to get that tarball on the box. |
|
Back to top |
|
|
christopher n00b
Joined: 06 Dec 2003 Posts: 14
|
Posted: Sun Dec 07, 2003 4:55 pm Post subject: |
|
|
ok, ill take the stage 3 off the install disk that i used for the GRP install. that should be ok then. i hope. lol. no more beer.
thanks
chris |
|
Back to top |
|
|
christopher n00b
Joined: 06 Dec 2003 Posts: 14
|
Posted: Sun Dec 07, 2003 5:00 pm Post subject: drunk is bad |
|
|
damn - cp and mv are not available commands thanks to my fubar. looks like i got no choice now but to reinstall. damnit.
chris |
|
Back to top |
|
|
dabooty Guru
Joined: 15 May 2003 Posts: 482 Location: Belgium
|
Posted: Sun Dec 07, 2003 5:02 pm Post subject: |
|
|
try booting from a livecd and copying them over _________________ registered user #284425
get yourself counted
http://counter.li.org
------
#emerge -pv solves a lot of questions beforehand |
|
Back to top |
|
|
zeek Guru
Joined: 16 Nov 2002 Posts: 480 Location: Bantayan Island
|
Posted: Mon Dec 08, 2003 4:56 am Post subject: |
|
|
emerge depclean is simply drain bramaged. On my system the first thing it wants to delete is grub. Okayyyyy.
Code: |
cs root # emerge -p depclean
*** WARNING *** : DEPCLEAN CAN SERIOUSLY IMPAIR YOUR SYSTEM. USE CAUTION.
Calculating depclean dependencies ... done!
>>> These are the packages that I would unmerge:
sys-apps/grub
selected: 0.92-r1
protected: none
omitted: none
net-libs/linc
selected: 1.0.3
protected: none
omitted: none
sys-apps/sh-utils
selected: 2.0.15
protected: none
omitted: none
sys-libs/slang
selected: 1.4.5-r2
protected: none
omitted: none
net-ftp/ftp
selected: 0.17-r2
protected: none
omitted: none
net-firewall/iptables
selected: 1.2.7a-r3
protected: none
omitted: none
app-editors/nano
selected: 1.0.9-r2
protected: none
omitted: none
...
|
|
|
Back to top |
|
|
christopher n00b
Joined: 06 Dec 2003 Posts: 14
|
Posted: Tue Dec 09, 2003 3:58 pm Post subject: |
|
|
yep, its stupid. its all fixed now, but what a hassle it was. i wonder what legit uses there are for that command. oh well. thanks all.
chris |
|
Back to top |
|
|
augustwest n00b
Joined: 26 Nov 2002 Posts: 28 Location: The Darkest Star
|
Posted: Sun Dec 14, 2003 6:33 pm Post subject: |
|
|
Were you able to fix it without doing a total reinstall? _________________ Kill your television! |
|
Back to top |
|
|
Antti Alien n00b
Joined: 28 Nov 2003 Posts: 74 Location: Tampere, Finland
|
Posted: Mon Dec 15, 2003 1:44 pm Post subject: |
|
|
Another reason why to use long and complicated passwords to protect your system: You can't write them correctly and login if you're too drunk |
|
Back to top |
|
|
|