Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emerge and Paludis making me reinstall my entire world
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
xstaticxgpx
n00b
n00b


Joined: 17 May 2007
Posts: 13

PostPosted: Wed Jun 27, 2007 5:36 am    Post subject: Emerge and Paludis making me reinstall my entire world Reply with quote

Exactly as the topic says... for some reason both paludis and emerge want me to reinstall all 700 files in my world spec... why?!?!! I'm not going to waste my time and energy trying to actually do it, so... what's wrong and how can I fix it without going on vacation
Back to top
View user's profile Send private message
desultory
Administrator
Administrator


Joined: 04 Nov 2005
Posts: 9289

PostPosted: Wed Jun 27, 2007 5:57 am    Post subject: Reply with quote

Supplying the commands which produce this behavior would be greatly accelerate the process of locating a cause.
Back to top
View user's profile Send private message
xstaticxgpx
n00b
n00b


Joined: 17 May 2007
Posts: 13

PostPosted: Wed Jun 27, 2007 8:23 pm    Post subject: Reply with quote

For example; i would just do "paludis -pi gnomebaker" or "emerge -av gnomebaker" and it will want to reinstall gcc, glibc, python, perl... and the wierd thing is they mark the packages as new and not as reinstalls or upgrades... even though i obviously have them installed

Last edited by xstaticxgpx on Wed Jun 27, 2007 10:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6296

PostPosted: Wed Jun 27, 2007 9:59 pm    Post subject: Reply with quote

Perhaps your /var/db/pkg database is damaged (or has strange permissions). Does eix display the installed packages as "installed"?
Back to top
View user's profile Send private message
xstaticxgpx
n00b
n00b


Joined: 17 May 2007
Posts: 13

PostPosted: Wed Jun 27, 2007 10:45 pm    Post subject: Reply with quote

mv wrote:
Perhaps your /var/db/pkg database is damaged (or has strange permissions). Does eix display the installed packages as "installed"?


No, neither eix, paludis, or emerge show any of my installed packages as installed. :( I'll check out var/db/pkg permissions, because I know it's complete.


EDIT** What the hell!!! /var/db/pkg got deleted or something, I only have a few categories in there!

Quote:

xstaticxgpx@killerkarebears ~ $ ls -la /var/db/pkg
total 72
drwxr-xr-x 18 root root 4096 2007-06-26 21:01 .
drwxr-xr-x 3 root root 4096 2007-06-26 08:40 ..
drwxr-xr-x 4 root root 4096 2007-06-26 08:09 app-admin
drwxr-xr-x 4 root root 4096 2007-06-26 08:09 app-misc
drwxr-xr-x 3 root root 4096 2007-06-26 07:35 app-shells
drwxr-xr-x 3 root root 4096 2007-06-26 20:59 .cache
drwxr-xr-x 4 root root 4096 2007-06-26 08:08 dev-lang
drwxr-xr-x 5 root root 4096 2007-06-26 08:05 dev-libs
drwxr-xr-x 3 root root 4096 2007-06-26 07:55 dev-perl
drwxr-xr-x 4 root root 4096 2007-06-26 08:09 dev-python
drwxr-xr-x 3 root root 4096 2007-06-26 20:59 dev-util
drwxr-xr-x 3 root root 4096 2007-06-26 08:00 net-misc
drwxr-xr-x 4 root root 4096 2007-06-26 07:55 perl-core
drwxr-xr-x 15 root root 4096 2007-06-26 08:09 sys-apps
drwxr-xr-x 14 root root 4096 2007-06-26 07:56 sys-devel
drwxr-xr-x 2 root root 4096 2007-06-27 01:28 sys-kernel
drwxr-xr-x 7 root root 4096 2007-06-26 08:06 sys-libs
drwxr-xr-x 4 root root 4096 2007-06-26 07:35 virtual
lrwxrwxrwx 1 root root 22 2007-06-26 07:23 world -> /var/lib/portage/world



but /usr/portage is complete... idk what happened, should i just copy over /usr/portage to /var/db/pkg ?

Quote:

xstaticxgpx@killerkarebears ~ $ ls /usr/portage
app-accessibility dev-python media-gfx sci-mathematics
app-admin dev-ruby media-libs sci-misc
app-antivirus dev-scheme media-plugins sci-physics
app-arch dev-tcltk media-radio sci-visualization
app-backup dev-tex media-sound scripts
app-benchmarks dev-tinyos media-tv sec-policy
app-cdr dev-util media-video skel.ChangeLog
app-crypt distfiles metadata skel.ebuild
app-dicts eclass net-analyzer skel.metadata.xml
app-doc experimental net-dialup snapshots
app-editors games-action net-dns sys-apps
app-emacs games-arcade net-firewall sys-auth
app-emulation games-board net-fs sys-block
app-forensics games-emulation net-ftp sys-boot
app-i18n games-engines net-im sys-cluster
app-laptop games-fps net-irc sys-devel
app-misc games-kids net-libs sys-freebsd
app-mobilephone games-misc net-mail sys-fs
app-office games-mud net-misc sys-kernel
app-pda games-puzzle net-nds sys-libs
app-portage games-roguelike net-news sys-power
app-shells games-rpg net-nntp sys-process
app-text games-server net-p2p virtual
app-vim games-simulation net-print www-apache
app-xemacs games-sports net-proxy www-apps
dev-ada games-strategy net-voip www-client
dev-cpp games-util net-wireless www-misc
dev-db gnome-base net-www www-servers
dev-dotnet gnome-extra net-zope x11-apps
dev-embedded gnustep-apps perl-core x11-base
dev-games gnustep-base profiles x11-drivers
dev-haskell gnustep-libs releases x11-libs
dev-java grp rox-base x11-misc
dev-lang header.txt rox-extra x11-plugins
dev-libs kde-base sci-astronomy x11-proto
dev-lisp kde-misc sci-biology x11-terms
dev-ml licenses sci-calculators x11-themes
dev-perl mail-client sci-chemistry x11-wm
dev-php mail-filter sci-electronics xfce-base
dev-php4 mail-mta sci-geosciences xfce-extra
dev-php5 media-fonts sci-libs
Back to top
View user's profile Send private message
AllenJB
Veteran
Veteran


Joined: 02 Sep 2005
Posts: 1285
Location: Ashford, Kent

PostPosted: Thu Jun 28, 2007 6:33 am    Post subject: Reply with quote

xstaticxgpx wrote:
mv wrote:
Perhaps your /var/db/pkg database is damaged (or has strange permissions). Does eix display the installed packages as "installed"?


No, neither eix, paludis, or emerge show any of my installed packages as installed. :( I'll check out var/db/pkg permissions, because I know it's complete.


EDIT** What the hell!!! /var/db/pkg got deleted or something, I only have a few categories in there!

<snip>

but /usr/portage is complete... idk what happened, should i just copy over /usr/portage to /var/db/pkg ?

No, that won't work. The content is different.
_________________
http://gentoo-wiki.com :: http://lug.org.uk :: http://www.linux.org/groups/ :: User Blogs
Back to top
View user's profile Send private message
xstaticxgpx
n00b
n00b


Joined: 17 May 2007
Posts: 13

PostPosted: Thu Jun 28, 2007 8:14 am    Post subject: Reply with quote

AllenJB wrote:
xstaticxgpx wrote:
mv wrote:
Perhaps your /var/db/pkg database is damaged (or has strange permissions). Does eix display the installed packages as "installed"?


No, neither eix, paludis, or emerge show any of my installed packages as installed. :( I'll check out var/db/pkg permissions, because I know it's complete.


EDIT** What the hell!!! /var/db/pkg got deleted or something, I only have a few categories in there!

<snip>

but /usr/portage is complete... idk what happened, should i just copy over /usr/portage to /var/db/pkg ?

No, that won't work. The content is different.


I thought so... so what should I do?
Back to top
View user's profile Send private message
xstaticxgpx
n00b
n00b


Joined: 17 May 2007
Posts: 13

PostPosted: Thu Jun 28, 2007 9:07 am    Post subject: Reply with quote

Theres no way in hell I'm reinstalling my entire world... I just tried and got collision-protect errors on the first package... should I just reinstall gentoo or what?
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6296

PostPosted: Thu Jun 28, 2007 10:52 am    Post subject: Reply with quote

What is strange in your listing is the .cache directory. Maybe this is due to your filesystem? Or maybe this is because some path of some tool (e.g. ccache or something similar) was set falsely to /var/db/pkg and this tool deleted this directory, assuming it should be the tool's working directory.
In any case, I would try a filesystemcheck, maybe then the directory re-appears (although this is unlikely).
xstaticxgpx wrote:
Theres no way in hell I'm reinstalling my entire world...

Without the /var/db/pkg database, portage has no chance of knowing which packages are installed and which files they contain. You must recreate this database.
Quote:
I just tried and got collision-protect errors on the first package...

This is not surprising, because portage would overwrite files which (according to the /var/db/pkg database) belong to no package. Probably the only reasonable way to restore the database is to re-emerge all packages (i.e. emerge -eD world or something smiliar), using FEATURE='-collision-protect'. If you are sure that exactly the same version will be re-emerged as those which are actually installed, this will work fine. Otherwise you should look afterwards for files which are on your disk but still not in the /var/db/pkg database (there are "findcruft" scripts which do this - check in the forums). Most of these files can then probably be deleted if they are older than your emerge -eD world (you should of course verify that these are not configuration files or similar things which you intentionally want to keep).
Back to top
View user's profile Send private message
zlin
Retired Dev
Retired Dev


Joined: 05 Dec 2005
Posts: 35
Location: Aalborg, Denmark

PostPosted: Thu Jun 28, 2007 3:03 pm    Post subject: Reply with quote

mv wrote:
What is strange in your listing is the .cache directory. Maybe this is due to your filesystem? Or maybe this is because some path of some tool (e.g. ccache or something similar) was set falsely to /var/db/pkg and this tool deleted this directory, assuming it should be the tool's working directory.

That's the default location for the names and provides cache for Paludis. Nothing strange about that.

xstaticxgpx wrote:
Theres no way in hell I'm reinstalling my entire world... I just tried and got collision-protect errors on the first package... should I just reinstall gentoo or what?

Without /var/db/pkg you're pretty much screwed. All you can do is reinstall everything as suggested by your package manager. Just disable collision-protect while doing it. That's ok. The benefit to reinstalling the packages in place is that unless you've left that problem out your system is usable while you do it... In the future you might want to backup /var/db/pkg (including your world file of course) and /etc/{make.conf,portage/,paludis/}. I don't really see what you gain by reinstalling from scratch rather than just letting Paludis do it's best at reinstalling the missing packages in place.
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
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