FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 02-04-2010, 10:14 PM
 
Default Updateing kills metadatabase

Hi,

I reported this before and it was suggested, that my
harddisc/filessystem may be corrupted. Now I am sure
that is not and I am beging for help again ...

After doing a (as root):

ionice -c 3 nice -19 eix-sync && emerge -pv --verbose --update --deep world

and than a (as user)

qsearch <item>
search: Updating ebuild metacache ...
search: initialize_flat(): opening '/usr/portage/metadata/cache/.metadata.x' failed: Permission denied
search: initialize_flat(): You should run this command as root: q -m

results in a not existent metadatabase.

Executing the same command as root gives me:

solfire:/root>qsearch <item>
search: Updating ebuild metacache ...
search: Finished 0 entries in 0.103410 seconds
<search result for item>

What kills the metadatabase every time and how can I fix that? What I
am doing wrong here ?

Best regards,
mcc

--
Please don't send me any Word- or Powerpoint-Attachments
unless it's absolutely neccessary. - Send simply Text.
See http://www.gnu.org/philosophy/no-word-attachments.html
In a world without fences and walls nobody needs gates and windows.
 
Old 02-05-2010, 12:03 AM
Neil Bothwick
 
Default Updateing kills metadatabase

On Fri, 5 Feb 2010 00:14:56 +0100, meino.cramer@gmx.de wrote:

> qsearch <item>
> search: Updating ebuild metacache ...
> search: initialize_flat(): opening
> '/usr/portage/metadata/cache/.metadata.x' failed: Permission denied
> search: initialize_flat(): You should run this command as root: q -m

The message is telling you which command to run, although it is short and
you may have missed it

q -m

> What kills the metadatabase every time and how can I fix that? What I
> am doing wrong here ?

You probably updated portage-utils and /etc/portage/postsync.d/q-reinitialize
no longer has the execute bit set. chmod +x it as instructed in the elog
message from the portage-utils emerge.


--
Neil Bothwick

Windows Error #01: No error... ...yet.
 
Old 02-05-2010, 02:25 AM
 
Default Updateing kills metadatabase

Neil Bothwick <neil@digimed.co.uk> [10-02-05 04:04]:
> On Fri, 5 Feb 2010 00:14:56 +0100, meino.cramer@gmx.de wrote:
>
> > qsearch <item>
> > search: Updating ebuild metacache ...
> > search: initialize_flat(): opening
> > '/usr/portage/metadata/cache/.metadata.x' failed: Permission denied
> > search: initialize_flat(): You should run this command as root: q -m
>
> The message is telling you which command to run, although it is short and
> you may have missed it
>
> q -m

Runnning this command is in fact a short and easy task. To be urged to
do it because the update process (eix/emerge) kills the metadatabase
is nonetheless not correct.

>
> > What kills the metadatabase every time and how can I fix that? What I
> > am doing wrong here ?
>
> You probably updated portage-utils and /etc/portage/postsync.d/q-reinitialize
> no longer has the execute bit set. chmod +x it as instructed in the elog
> message from the portage-utils emerge.

/etc/portage/postsync.d/q-reinitialize has already set the
execution bit.


> --
> Neil Bothwick
>
> Windows Error #01: No error... ...yet.



--
Please don't send me any Word- or Powerpoint-Attachments
unless it's absolutely neccessary. - Send simply Text.
See http://www.gnu.org/philosophy/no-word-attachments.html
In a world without fences and walls nobody needs gates and windows.
 

Thread Tools




All times are GMT. The time now is 09:46 AM.

VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org