Damon L. Chesser wrote:
Michael Marsh wrote:
On Thu, Mar 27, 2008 at 8:43 PM, Jude DaShiell
<[EMAIL PROTECTED]> wrote:
This is one dpkg failed to recover from; just the relevant lines of the
script file follow:
Selecting previously deselected package libdjvulibre21.
Unpacking libdjvulibre21 (from
.../libdjvulibre21_3.5.20-5_i386.deb) ...
dpkg: error processing
/var/cache/apt/archives/libdjvulibre21_3.5.20-5_i386.deb (--unpack):
trying to overwrite `/usr/share/djvu/osi/cs/messages.xml', which
is also in package libdjvulibre15
If you've gotten to that point, presumably you have partially updated
packages that depend on those (such as evince). What worked for me
was to do a
$ dpkg -r libdjvulibre15
followed by a normal run of aptitude. Removing the old library
doesn't cause evince to be removed, because the new version is already
there, just broken.
YMMV.
Really? I would have done this:
dpkg -i --force-overwrite
/var/cache/apt/archives/libdjvulibre21_3.5.20-5_i386.deb
which ignores the fact that another file also wants to "own" that
/usr/share/djvu/osi/cs/messages.xml
However, I see your reasoning. Assuming that libdjvulibre15 is NOT
needed since you are updating to libjvulibre21.
However, if anything is deping on libdjvulibre15, you just
un-installed it.
I only posted this for the benefit of anybody who wants to "know" how
to get dpkg to handle such things.
You (the person who thinks this is a cool option) might want to read
dpkg --force-help to find out all the things you can "force" and all
the breakage that can happen.
After having warned you, I have never caused breakage from using this
option and a few others as needed.
You mostly need this command switch (dpkg --force-option) if you run
into issues doing a dist-upgrade and dpkg gets stuck
Note to Ron Johnson: is this happening a lot? I did not see any
posts on this.
HTH
BTW, by using the dpkg --force-architecture switch you can install, say,
i386.debs on a x64 machine. Why would you want to do this? What if you
want skype which only come in a i386.deb and you don't/can't compile
from source? Note: you will get dep issues for about 3 or 4 things.
search for the package that contains these 3 or 4 things on debian.org
i386, and download the .deb and use the same command to install the
deps, repeat until skype installs. Now don't do this and claim I broke
your system. If this breaks your system, YOU broke it. I can only
speak about forcing the architecture for skype on MY box with my
packages installed. It worked. I only want to show the nice tricks
dpkg can do and show how easy it is to totally break your box and give
you reason to test your backup/re-installation skills. You have been
warned.
--
Damon L. Chesser
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]