Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Please help--I killed my install
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
mope
Apprentice
Apprentice


Joined: 23 Feb 2003
Posts: 206

PostPosted: Fri Aug 22, 2003 6:29 am    Post subject: Please help--I killed my install Reply with quote

I was going along fine and messing with things for a couple of days. I decided to clean my install up and was messing with portage. I ran:
Quote:

#emerge --depclean -p

and looked at about ten files that didn't seem important

then I ran:
Quote:

#emerge --depclean

and then things went downhill.

Now, rebooted and used the live cd. When I chroot into gentoo I can't even do an 'ls' without an error.

Here's a sample of what I get:

Quote:
cdimage / # source /etc/profile
bash: /usr/bin/whoami: No such file or directory
bash: [: =: unary operator expected
root@cdimage / # emerge
bash: /usr/bin/emerge: /usr/bin/env: bad interpreter: No such file or di
root@cdimage / # bash: /usr/bin/whoami: No such file or directory
bash: bash:: command not found
root@cdimage / # bash: [: =: unary operator expected
bash: bash:: command not found
root@cdimage / #


Where do I start?
Back to top
View user's profile Send private message
mope
Apprentice
Apprentice


Joined: 23 Feb 2003
Posts: 206

PostPosted: Fri Aug 22, 2003 7:15 am    Post subject: Reply with quote

LOL, here's my emerge.log; tell me how bad it is!

Quote:

1061575827: Started emerge on: Aug 22, 2003 11:10:27
1061575827: *** emerge depclean
1061575837: >>> depclean
1061575846: === Unmerging... (app-text/dgs-0.5.10-r1)
1061575848: >>> unmerge success: app-text/dgs-0.5.10-r1
1061575848: === Unmerging... (media-libs/netpbm-9.12-r4)
1061575852: >>> unmerge success: media-libs/netpbm-9.12-r4
1061575852: === Unmerging... (media-libs/libmad-0.15.0b)
1061575854: >>> unmerge success: media-libs/libmad-0.15.0b
1061575854: === Unmerging... (gnome-base/libgnomeprintui-2.2.1.3)
1061575857: >>> unmerge success: gnome-base/libgnomeprintui-2.2.1.3
1061575857: === Unmerging... (dev-libs/fribidi-0.10.4)
1061575859: >>> unmerge success: dev-libs/fribidi-0.10.4
1061575859: === Unmerging... (media-sound/mpg123-0.59r-r2)
1061575862: >>> unmerge success: media-sound/mpg123-0.59r-r2
1061575862: === Unmerging... (x11-themes/gtk-engines-2.2.0)
1061575875: >>> unmerge success: x11-themes/gtk-engines-2.2.0
1061575875: === Unmerging... (media-libs/jbigkit-1.4)
1061575877: >>> unmerge success: media-libs/jbigkit-1.4
1061575877: === Unmerging... (sys-apps/coreutils-5.0-r1)
1061575880: >>> unmerge success: sys-apps/coreutils-5.0-r1
1061575880: === Unmerging... (dev-libs/libsigc++-1.0.4-r2)
1061575882: >>> unmerge success: dev-libs/libsigc++-1.0.4-r2
1061575882: === Unmerging... (gnome-base/libgnomeprint-2.2.1.3)
1061575885: >>> unmerge success: gnome-base/libgnomeprint-2.2.1.3
1061575885: === Unmerging... (media-libs/id3lib-3.8.3-r1)
1061575888: >>> unmerge success: media-libs/id3lib-3.8.3-r1
1061575888: === Unmerging... (app-cdr/cdrtools-2.01_alpha14)
1061575890: >>> unmerge success: app-cdr/cdrtools-2.01_alpha14
1061575890: === Unmerging... (app-text/wv-0.7.6)
1061575893: >>> unmerge success: app-text/wv-0.7.6
1061575893: === Unmerging... (media-sound/normalize-0.7.6-r1)
1061575895: >>> unmerge success: media-sound/normalize-0.7.6-r1
1061575895: === Unmerging... (dev-perl/Audio-Tools-0.01)
1061575897: >>> unmerge success: dev-perl/Audio-Tools-0.01
1061575897: === Unmerging... (app-text/aspell-0.50.3)
1061575899: >>> unmerge success: app-text/aspell-0.50.3
1061575899: === Unmerging... (sys-apps/mtx-1.2.17)
1061575901: >>> unmerge success: sys-apps/mtx-1.2.17
1061575901: === Unmerging... (media-libs/libwmf-0.2.8)
1061575904: >>> unmerge success: media-libs/libwmf-0.2.8
1061575904: === Unmerging... (media-libs/libid3tag-0.15.0b)
1061575905: >>> unmerge success: media-libs/libid3tag-0.15.0b
1061575905: === Unmerging... (media-video/mpeg2vidcodec-12-r1)
1061575907: >>> unmerge success: media-video/mpeg2vidcodec-12-r1
1061575907: === Unmerging... (dev-cpp/gtkmm-1.2.9-r2)
1061575910: >>> unmerge success: dev-cpp/gtkmm-1.2.9-r2
1061575910: *** exiting successfully.
1061575911: *** terminating.
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Fri Aug 22, 2003 8:20 am    Post subject: Reply with quote

I don't know if one of the unmerged libs will make problems, but the actual suicide-unmerge was 'emerge unmerge coreutils'. coreutils includes chmod, cp, dir, whoami etc. and is needed for sure. try to get it out of stage-xy from your install cd.
Back to top
View user's profile Send private message
mope
Apprentice
Apprentice


Joined: 23 Feb 2003
Posts: 206

PostPosted: Fri Aug 22, 2003 10:13 am    Post subject: Reply with quote

Thank you Earthwings.

I untarred a stage1 over my install. It's messed me up pretty good, though. I couldn't get coreutils out of the livecd (didn't know how anyway).

So now I can't su
Quote:

su: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory


and for some reason when I start kdm and then log in it doesn't go to kde it goes to an x terminal and I have to startkde.
Back to top
View user's profile Send private message
mope
Apprentice
Apprentice


Joined: 23 Feb 2003
Posts: 206

PostPosted: Fri Aug 22, 2003 9:07 pm    Post subject: Reply with quote

all right, I've been pumping away at this for a while now and I'm almost back on track.

The main difficulties I'm having are:

1) My /etc/conf.d/net is not what it should be (that is, it seems to be the original one from the livecd). How do I regenerate it?

2) When I login I type 'kdm' then I have to login from there. After I login from kdm I get an x terminal and have to type 'startkde'. Evidently the path where I choose my window managers is messed up. I'm running kde 3.1.3 so if anyone can help me here I would appreciate it and be back on my merry way.
Back to top
View user's profile Send private message
hamete
n00b
n00b


Joined: 11 Aug 2003
Posts: 4

PostPosted: Sat Sep 13, 2003 7:39 pm    Post subject: Reply with quote

Any luck with this mope? I am now stuck in the same situation due to someone else doing a depclean on a remote box. I can still ssh but can't ls or emerge anything once there. I'm too worried to reboot it still...

Let me know how you are doing and what is working.
Back to top
View user's profile Send private message
mope
Apprentice
Apprentice


Joined: 23 Feb 2003
Posts: 206

PostPosted: Sun Sep 14, 2003 5:56 am    Post subject: Reply with quote

Actually someone ssh'd into my box and patched things up. I eventually reemerged kde-base to fix the last two issues. Everything seems to work now. It was a pretty long process.

He actually removed coreutils and emerged fileutils (I think). I can't remeber all the steps, I'm sorry. After I was able to emerge again I did an #emerge world -e and everything seeems to be going along nicely now. sorry I can't be of much more help.
Back to top
View user's profile Send private message
hamete
n00b
n00b


Joined: 11 Aug 2003
Posts: 4

PostPosted: Sun Sep 28, 2003 3:54 am    Post subject: Reply with quote

hamete wrote:
I can still ssh but can't ls or emerge anything once there. I'm too worried to reboot it still...


It was probably a good thing I didn't reboot. I was able to get things working again after the following steps:

The initial problem was caused by doing "emerge depclean" without thoroughly checking what was being removed. Apparently the coreutils package was included in that and started all the problems. Since I couldn't "ls" or "ftp" or "emerge" I figured things were hopeless - even worse is that I had no physical access to the box. Luckily sshd was still running and working!

First step was to "wget" (ftp wouldn't work either, which was stumping me for a while) a stage2 tarball and untar it at / . This got me back to being able to "ls" and "emerge". At this point it is important to NOT to reboot or logout until after editing /etc/fstab and recreating a root password.

After that I did an "emerge -e system" and things seem fine so far.
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