On Wed, 15 Mar 2006 04:19 pm, John O'Hagan wrote:
> On Tue, Mar 14, 2006 at 05:32:46PM +1100, Paul Dwerryhouse wrote:
> >Run this:
> >
> >apt-get --reinstall install \
> >$(cd /var/lib/dpkg/info; grep -l '^/bin/' *.list|sed 's/.list$//')
>
> Thanks for this ingenious solution; there are still a couple of things to
> iron out though: for some reason the command substitution above produces a
> shorter list of files than what should be in /bin (I'm trying to figure out 
> why)

It has been pointed out that this is because some packages contribute more 
than one file to /bin

> and when I try to run it I get this error from apt-get:
>
>       E: Couldn't configure pre-depend coreutils for debianutils, probably a
> dependency cycle.

In the end it was a matter of excluding debianutils, gzip and initscripts from 
the above process because of config/dependency issues (not sure why those 
particular packages), and then reinstalling them afterwards. 

(I also had a dodgy .deb of the mount package in my apt archive and had to 
re-download it before the above would work)

Everything seems to be ok now (that is, everything that dpkg believes to be 
installed in /bin is actually installed).
 
Thanks for the replies.

John


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to