[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apt database screwed up.



On Sat, Mar 24, 2001 at 12:25:52AM -0800, Tim Uckun wrote:
> Something went horribly wrong I think I might have hit the wrong key on 
> deselect but whenever I quit dselect it wants to remove about 270 packages 
> and hold three of them. Is there a way to rebuild the package database?

I don't think rebuilding is necessary.  The way I use dselect is
to set everything to hold.  One way to quickly do this is to run
these commands as root:

    $ dpkg --get-selections > s
    $ awk '{print $1, "hold"}' < s > s2
    $ dpkg --set-selections s2

Next, I run dselect and pick the individual packages I want to
install or remove.  The X key is very handy if you change
something and the results are not what you want.

> I don't know if it's related or not but I am also having a few other 
> problems as well. Would it be better to upgrade to woody?

Upgrading to woody would probably be a good idea but I don't
think it would solve your problem.  You seem to be having trouble
running dselect (as many people do since the interface is
confusing).

   Neil



Reply to: