Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Killed my coreutils -- HELP
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3, 4, 5  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
kirikou
Tux's lil' helper
Tux's lil' helper


Joined: 03 Nov 2006
Posts: 83

PostPosted: Wed Jan 23, 2008 6:22 pm    Post subject: Killed my coreutils -- HELP Reply with quote

Hello.
I run an emerge -uavDN world and have the following problem:
Code:
[blocks B     ] sys-apps/mktemp (is blocking sys-apps/coreutils-6.10-r1)
[blocks B     ] >=sys-apps/coreutils-6.10 (is blocking sys-apps/mktemp-1.5)

I tried to remove mktemp, but the problem remain... I'm a little afraid trying to remove coreutils...
Hence I really don't know what to do...
Any help would be apreciated!!
Thanks.

Unstuck. -- desultory


Last edited by kirikou on Wed Jan 23, 2008 7:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
Nick C
Guru
Guru


Joined: 18 Mar 2005
Posts: 526
Location: Portsmouth, England

PostPosted: Wed Jan 23, 2008 6:30 pm    Post subject: Reply with quote

and mktemp is needed by debianutils and gentoolkit, also not stuff i really want to remove. Has anyone found a safe way to resolve this?
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved.
www.monkeydust.net
Back to top
View user's profile Send private message
gigs94
n00b
n00b


Joined: 06 Aug 2004
Posts: 52
Location: DC

PostPosted: Wed Jan 23, 2008 6:48 pm    Post subject: Reply with quote

You guys might want to sync again. I did a emerge -C mktemp && emerge -uavDNt world and it worked fine on all of my systems. I am running ~amd64 which means that I'm running sys-apps/debianutils-2.28.2 and app-portage/gentoolkit-0.2.4_pre7. Neither of which depend on mktemp. debianutils has a PDEPEND line with the newer version of coreutils or mktemp, and coreutils has a !mktemp directive, so I'm thinking that mktemp got rolled into the newest coreutils.
Back to top
View user's profile Send private message
kirikou
Tux's lil' helper
Tux's lil' helper


Joined: 03 Nov 2006
Posts: 83

PostPosted: Wed Jan 23, 2008 6:53 pm    Post subject: Reply with quote

Effectively, it seems to have been resolved.
However, do I need to re-emerge mktemp after that? Or has it been merged with coreutils?
Thanks.
Back to top
View user's profile Send private message
gigs94
n00b
n00b


Joined: 06 Aug 2004
Posts: 52
Location: DC

PostPosted: Wed Jan 23, 2008 7:04 pm    Post subject: Reply with quote

It's been merged (or rewritten into coreutils). You can't have any version of mktemp installed with the new version of coreutils.
Back to top
View user's profile Send private message
kirikou
Tux's lil' helper
Tux's lil' helper


Joined: 03 Nov 2006
Posts: 83

PostPosted: Wed Jan 23, 2008 7:06 pm    Post subject: Reply with quote

Thanks a lot.
Back to top
View user's profile Send private message
Edweirdo
Guru
Guru


Joined: 28 Jan 2003
Posts: 353
Location: Boston, Mass, USA

PostPosted: Thu Jan 24, 2008 3:07 pm    Post subject: Reply with quote

Okay, I hate to admit this, but I stupidly unmerged coreutils. I wasn't thinking and now I'm hosed. Any advice how to recover from this?
_________________
Life is too short and too important to { take seriously | use Windows }.
Back to top
View user's profile Send private message
Edweirdo
Guru
Guru


Joined: 28 Jan 2003
Posts: 353
Location: Boston, Mass, USA

PostPosted: Thu Jan 24, 2008 3:51 pm    Post subject: Reply with quote

Nevermind.

On another computer I did an "equery b coreutils" and dumped that to a file. Then I tar'ed up all the files I needed from /bin and /usr/bin, extracted that tar file on my broken computer. After that I was able to emerge coreutils. I never had to exit KDE or restart anything.
_________________
Life is too short and too important to { take seriously | use Windows }.
Back to top
View user's profile Send private message
scumm_boy
n00b
n00b


Joined: 08 Jan 2007
Posts: 30

PostPosted: Thu Jan 24, 2008 4:00 pm    Post subject: Reply with quote

Edweirdo, was the other system also Gentoo? I've done the same thing, but I don't have access to another Gentoo machine :(
Back to top
View user's profile Send private message
titanium972
n00b
n00b


Joined: 24 Jan 2008
Posts: 3

PostPosted: Thu Jan 24, 2008 6:45 pm    Post subject: Reply with quote

Edweirdo wrote:

I did an "equery b coreutils" and dumped that to a file.


Can you send me your file, please.
Back to top
View user's profile Send private message
scumm_boy
n00b
n00b


Joined: 08 Jan 2007
Posts: 30

PostPosted: Thu Jan 24, 2008 6:49 pm    Post subject: Reply with quote

titanium972 wrote:
Edweirdo wrote:

I did an "equery b coreutils" and dumped that to a file.


Can you send me your file, please.


Check out https://forums.gentoo.org/viewtopic-t-650987-start-0-postdays-0-postorder-asc-highlight-.html for a coreutils binary tarball.
Back to top
View user's profile Send private message
titanium972
n00b
n00b


Joined: 24 Jan 2008
Posts: 3

PostPosted: Thu Jan 24, 2008 9:49 pm    Post subject: Reply with quote

Thx u
Back to top
View user's profile Send private message
strandvata
n00b
n00b


Joined: 27 Nov 2007
Posts: 2

PostPosted: Fri Jan 25, 2008 7:30 am    Post subject: Reply with quote

Quote:
Okay, I hate to admit this, but I stupidly unmerged coreutils. I wasn't thinking and now I'm hosed. Any advice how to recover from this?

I did that too :oops: .
Afte that I booted with the gentoo minimal install cd, chrooted into the broken system, and I copied all missing files in /bin /sbin /usr/bin from the install cd ( but without overwriting existing files ).
Then emerge -av coreutils and I did revdep-rebuild.
Shuting down gentoo without coreutils is a nasty picture though.

Greetings!
Back to top
View user's profile Send private message
laurelin
Tux's lil' helper
Tux's lil' helper


Joined: 16 May 2005
Posts: 84
Location: Germany, Old Europe

PostPosted: Sat Jan 26, 2008 3:34 pm    Post subject: Reply with quote

thanks for pointing this out. I almost did think of emerging-minus-capital-C coreutils... You saved me there!
Back to top
View user's profile Send private message
luismanson
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2005
Posts: 123

PostPosted: Mon Feb 04, 2008 12:17 am    Post subject: Reply with quote

anyone made a bug report about the mouse problem?
i found some, keyboard related
_________________
La wiki para usuarios novatos en GNU/Linux!
Back to top
View user's profile Send private message
dilbot
Apprentice
Apprentice


Joined: 06 Feb 2004
Posts: 153
Location: Canada

PostPosted: Mon Feb 04, 2008 5:39 am    Post subject: Reply with quote

Quote:
Check out https://forums.gentoo.org/viewtopic-t-650987-start-0-postdays-0-postorder-asc-highlight-.html for a coreutils binary tarball.


This tarball worked for me on a 2xAMD-64 box.

a) Untar on another machine
b) sftp (which still works) to get /bin files from the tarball
c) pull the tarball over to the borked machine
d) cp -i from the tarball /usr/bin to /usr/bin
e) emerge coreutils
Back to top
View user's profile Send private message
KingYes
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jan 2008
Posts: 142
Location: Israel

PostPosted: Sun Apr 13, 2008 3:23 pm    Post subject: I fucked my system. how i can fix this ? Reply with quote

hey guys.. i try use with emerge -uDNe world. and i have blocking packet. i try to del this, and i set reboot.. and now i can't boot my system.

how i can fix this ?
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun Apr 13, 2008 3:39 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Portage & Programming.
Not about getting gentoo installed, so moved here.

It would help if you could tell which blocking package you're talking about.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
TravisBy
n00b
n00b


Joined: 22 Nov 2007
Posts: 69

PostPosted: Sun Apr 13, 2008 3:41 pm    Post subject: Reply with quote

mktemp and coreutils? I'm having the same problem this morning :X

I'm guessing that's what you're talking about, at least, KingYes.
Back to top
View user's profile Send private message
gentoo_dude
l33t
l33t


Joined: 08 May 2004
Posts: 645
Location: Washington, DC

PostPosted: Sun Apr 13, 2008 3:42 pm    Post subject: Reply with quote

Use a bootcd to mount your partitions (just like when you installed the system), then change root (chroot) where you mounted your root partition and fix it.
Back to top
View user's profile Send private message
Wojtek_
Guru
Guru


Joined: 28 May 2006
Posts: 397
Location: London

PostPosted: Sun Apr 13, 2008 3:43 pm    Post subject: Reply with quote

You should have unmerged mktemp and then upgrade coreutils. If unmerged coreutils, you definitely did see a warning sign so now you can only blame yourself. Here's the solution: https://forums.gentoo.org/viewtopic-t-687008-highlight-.html
Cheers,

Wojtek
_________________
Fujitsu-Siemens Amilo Xi-1546
Intel Centrino Duo T2600 (2,16GHz)
2x1GB DDR2 RAM
ATi Mobility Radeon X1800 256MB DDR3
2x120GB HDD
Intel High Definition Audio
Back to top
View user's profile Send private message
KingYes
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jan 2008
Posts: 142
Location: Israel

PostPosted: Sun Apr 13, 2008 3:53 pm    Post subject: Reply with quote

Hey guys.. i see this msg:

xavier10 wrote:
Ok, here was my fix:
- boot on livecd
- copy executables that are needed
- emerge coreutils with a chroot
- reboot, and check that coreutils re emerges in a stable way (it did!)

Done. :twisted:



but, how i copy "executables that are needed" ?
thanks you.
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun Apr 13, 2008 3:56 pm    Post subject: Reply with quote

merged some posts here.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Fenixoid
Apprentice
Apprentice


Joined: 09 Dec 2004
Posts: 154
Location: Lithuania

PostPosted: Sun Apr 13, 2008 7:16 pm    Post subject: Reply with quote

Quote:
openvz / # emerge -p coreutils

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] sys-apps/coreutils-6.9-r1


[ebuild R ] sys-apps/coreutils-6.9-r1
openvz / # emerge coreutils
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) sys-apps/coreutils-6.9-r1 to /
/usr/lib/portage/bin/ebuild.sh: line 693: rm: command not found
/usr/lib/portage/bin/ebuild.sh: line 696: rm: command not found
/usr/lib/portage/bin/ebuild.sh: line 702: rm: command not found
/usr/lib/portage/bin/ebuild.sh: line 703: rm: command not found
/usr/lib/portage/bin/ebuild.sh: line 704: rm: command not found
/usr/lib/portage/bin/ebuild.sh: line 705: rm: command not found
/usr/lib/portage/bin/ebuild.sh: line 706: rm: command not found
/usr/lib/portage/bin/ebuild.sh: line 707: rm: command not found
/usr/lib/portage/bin/ebuild.sh: line 708: rm: command not found
/usr/lib/portage/bin/ebuild.sh: line 709: rm: command not found
/usr/lib/portage/bin/ebuild.sh: line 710: rm: command not found
/usr/lib/portage/bin/ebuild.sh: line 719: rm: command not found
* coreutils-6.9.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* coreutils-6.9-patches-1.3.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking coreutils-6.9.tar.bz2 ;-) ... [ ok ]
* checking coreutils-6.9-patches-1.3.tar.bz2 ;-) ... [ ok ]
Traceback (most recent call last):
File "/usr/bin/emerge", line 6971, in ?
retval = emerge_main()
File "/usr/bin/emerge", line 6965, in emerge_main
myopts, myaction, myfiles, spinner)
File "/usr/bin/emerge", line 6395, in action_build
retval = mergetask.merge(pkglist, favorites, mtimedb)
File "/usr/bin/emerge", line 3981, in merge
return self._merge(mylist, favorites, mtimedb)
File "/usr/bin/emerge", line 4259, in _merge
prev_mtimes=ldpath_mtimes)
File "/usr/lib/portage/pym/portage.py", line 4806, in doebuild
alwaysdep=1, logfile=logfile)
File "/usr/lib/portage/pym/portage.py", line 3705, in spawnebuild
retval=spawnebuild(actionmap[mydo]["dep"],actionmap,mysettings,debug,alwaysdep=alwaysdep,logfile=logfile)
File "/usr/lib/portage/pym/portage.py", line 3705, in spawnebuild
retval=spawnebuild(actionmap[mydo]["dep"],actionmap,mysettings,debug,alwaysdep=alwaysdep,logfile=logfile)
File "/usr/lib/portage/pym/portage.py", line 3705, in spawnebuild
retval=spawnebuild(actionmap[mydo]["dep"],actionmap,mysettings,debug,alwaysdep=alwaysdep,logfile=logfile)
File "/usr/lib/portage/pym/portage.py", line 3705, in spawnebuild
retval=spawnebuild(actionmap[mydo]["dep"],actionmap,mysettings,debug,alwaysdep=alwaysdep,logfile=logfile)
File "/usr/lib/portage/pym/portage.py", line 3717, in spawnebuild
mysettings, debug=debug, logfile=logfile, **kwargs)
File "/usr/lib/portage/pym/portage.py", line 2824, in spawn
set_term_size(rows, columns, slave_fd)
File "/usr/lib/portage/pym/output.py", line 347, in set_term_size
spawn(cmd, env=os.environ, fd_pipes={0:fd})
File "/usr/lib/portage/pym/portage_exec.py", line 179, in spawn
raise CommandNotFound(mycommand[0])
portage_exception.CommandNotFound: stty




openvz / # emerge --unmerge mktemp

sys-apps/mktemp
selected: 1.5
protected: none
omitted: none

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging sys-apps/mktemp-1.5...
* The 'prerm' phase of the 'sys-apps/mktemp-1.5' package has failed with
* exit value -1. The problem occurred while executing the ebuild located
* at '/var/db/pkg/sys-apps/mktemp-1.5/mktemp-1.5.ebuild'. If necessary,
* manually remove the ebuild in order to skip the execution of removal
* phases.
Traceback (most recent call last):
File "/usr/bin/emerge", line 6971, in ?
retval = emerge_main()
File "/usr/bin/emerge", line 6951, in emerge_main
mtimedb["ldpath"]):
File "/usr/bin/emerge", line 4751, in unmerge
vartree=vartree, ldpath_mtimes=ldpath_mtimes)
File "/usr/lib/portage/pym/portage.py", line 5022, in unmerge
ldpath_mtimes=ldpath_mtimes)
File "/usr/lib/portage/pym/portage.py", line 8290, in unmerge
vartree=self.vartree)
File "/usr/lib/portage/pym/portage.py", line 4627, in doebuild
mysettings, debug=debug, free=1, logfile=logfile)
File "/usr/lib/portage/pym/portage.py", line 2824, in spawn
set_term_size(rows, columns, slave_fd)
File "/usr/lib/portage/pym/output.py", line 347, in set_term_size
spawn(cmd, env=os.environ, fd_pipes={0:fd})
File "/usr/lib/portage/pym/portage_exec.py", line 179, in spawn
raise CommandNotFound(mycommand[0])
portage_exception.CommandNotFound: stty

* Messages for package sys-apps/mktemp-1.5:

* The 'prerm' phase of the 'sys-apps/mktemp-1.5' package has failed with
* exit value -1. The problem occurred while executing the ebuild located
* at '/var/db/pkg/sys-apps/mktemp-1.5/mktemp-1.5.ebuild'. If necessary,
* manually remove the ebuild in order to skip the execution of removal
* phases.


openvz / # revdep-rebuild
Configuring search environment for revdep-rebuild
/usr/bin/revdep-rebuild: line 93: ls: command not found
/usr/bin/revdep-rebuild: line 98: tr: command not found
/usr/bin/revdep-rebuild: line 104: tr: command not found

!!! Unable to write temporary files to either /root or /var/tmp !!!

openvz / # ls
-bash: ls: command not found
openvz / # rm
-bash: rm: command not found


Hehe, now I'm fucked :) How do I emerge or unmerge anything when I even can't ls ir rm something :D
Boot to live cd and then what? Copy ls, rm to system?
Anyone got situation like this?
_________________
gentoo.lt
p.s. my english sucks ;-)
Back to top
View user's profile Send private message
Bobthegiant
n00b
n00b


Joined: 07 Mar 2005
Posts: 8

PostPosted: Mon Apr 14, 2008 1:58 am    Post subject: Killed my coreutils -- HELP Reply with quote

Ok, I'm a bone head!

Now that we have that out of the way...

I wasn't paying attention and accedentally unmerged coreutils to resolve some package blocking. Now I'm hosed! I can still fuction somewhat with busybox, but not well and I'm not able to emerge anymore. Is there some way out of this mess?

Can I force install the coreutils binary package without using the emerge script? Call ebuuild directly perhaps

Or maybe link into the busybox function some how?

Any advice would be great.


Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page 1, 2, 3, 4, 5  Next
Page 1 of 5

 
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