Re: ..how do I tell apt-get | dpkg about bad files off a bad disk? Clue Whack, Please!
On Mon, Dec 01, 2003 at 01:59:34PM -0500, Mark Roach wrote:
> On Mon, 2003-12-01 at 11:05, Arnt Karlsen wrote:
> > Hi,
> >
> > ..on remastering a wee knoppix derivative, the disk whined about read
> > errors down the /usr/XFree86 tree, so I moved my tree to another disk,
> > and figured apt-get --reinstall or some such should fix it for me.
> >
> > ..the "some such" is the problem; how do I get "apt-get --re-install"
> > to overwrite my bad files??? Or, tell the apt-get | dpkg database
> > about bad files off a bad disk?
>
> Does "apt-get install --reinstall <packagename>" work? you might need to
> erase the cached .deb file from /var/cache/apt/archives/
I may be wrong, but I think if you still have the .debs around, a
"dpkg -i *.deb" will do the trick. That's what I do.
I didn't suggest it because I doubt most people keep them around (I do,
in a local mirror).
Reply to: