Bug#482026: Both vim-tiny and vim-common contain /etc/vim/vimrc.tiny

Kurt Pruenner leak at gmx.at
Tue May 20 20:21:08 UTC 2008


James Vega wrote:
> I don't see how your bug report could have happened given the above.
> vim-tiny's Conflicts (as well as the Depends on a specific version of
> vim-common) should have caused the old vim-common to be removed before
> vim-tiny was installed.  Even without that, the Replaces would have
> allowed vim-tiny to overwrite the old /etc/vim/vimrc.tiny.  Maybe a
> bug in aptsh?  Try doing an "apt-get upgrade" instead.

Okay, that's weird...

"apt-get upgrade" yielded the same result. From what I can tell apt (or
dpkg) always tries to install vim-tiny first, so of course it always
tried to install vim-tiny with the old vim-common still installed:

> # sudo dpkg -i vim-common_1%3a7.1.293-3_arm.deb vim-tiny_1%3a7.1.293-3_arm.deb
> (Reading database ... 31310 files and directories currently installed.)
> Preparing to replace vim-common 1:7.1.293-3 (using vim-common_1%3a7.1.293-3_arm.deb) ...
> Unpacking replacement vim-common ...
> Preparing to replace vim-tiny 1:7.1-266+1 (using vim-tiny_1%3a7.1.293-3_arm.deb) ...
> Unpacking replacement vim-tiny ...
> dpkg: error processing vim-tiny_1%3a7.1.293-3_arm.deb (--install):
>  trying to overwrite `/etc/vim/vimrc.tiny', which is also in package vim-common
> Setting up vim-common (1:7.1.293-3) ...
> Processing triggers for man-db ...
> Errors were encountered while processing:
>  vim-tiny_1%3a7.1.293-3_arm.deb


Still, after installing vim-common_1%3a7.1.293-3_arm.deb by hand out of
the local apt archive installation of vim-tiny_1%3a7.1.293-3_arm.deb
still fails:

> # /var/cache/apt/archives 1011% sudo dpkg -i vim-common_1%3a7.1.293-3_arm.deb
> (Reading database ... 31310 files and directories currently installed.)
> Preparing to replace vim-common 1:7.1.293-3 (using vim-common_1%3a7.1.293-3_arm.deb) ...
> Unpacking replacement vim-common ...
> Setting up vim-common (1:7.1.293-3) ...
> Processing triggers for man-db ...
>
> # /var/cache/apt/archives 1012% sudo dpkg -i vim-tiny_1%3a7.1.293-3_arm.deb
> (Reading database ... 31310 files and directories currently installed.)
> Preparing to replace vim-tiny 1:7.1-266+1 (using vim-tiny_1%3a7.1.293-3_arm.deb) ...
> Unpacking replacement vim-tiny ...
> dpkg: error processing vim-tiny_1%3a7.1.293-3_arm.deb (--install):
>  trying to overwrite `/etc/vim/vimrc.tiny', which is also in package vim-common
> Errors were encountered while processing:
>  vim-tiny_1%3a7.1.293-3_arm.deb

Of course, dpkg-deb -c doesn't show any sign of vimrc.tiny in the
now-installed vim-common... :/

Anyway, I've dpkg -i --force-all'ed the vim-tiny package into my
installation now and of course a "dpkg -L vim-common | grep tiny" now
comes up empty... though I'm wondering what's going to happen on the
next update...

So as far as my side is concerned I'd say this bug can probably be
closed, even though we still don't know what happened exactly - it's as
if dpkg was somehow unable to grok that /etc/vim/vimrc.tiny wasn't
provided by the new vim-common anymore... :(

-- 
Kurt Bernhard Pruenner --- Haendelstrasse 17 --- 4020 Linz --- Austria
.......It might be written "Mindfuck", but it's spelt "L-A-I-N".......
np: Aesop Rock - Oxygen (Float)





More information about the pkg-vim-maintainers mailing list