Bug#482026: Both vim-tiny and vim-common contain /etc/vim/vimrc.tiny
James Vega
jamessan at debian.org
Tue May 20 17:38:34 UTC 2008
On Tue, May 20, 2008 at 5:00 AM, Kurt Pruenner <leak at gmx.at> wrote:
> Vim-tiny is currently not installable since it conflicts with vim-common:
>
> | aptsh> install vim-tiny
> | Reading package lists... Done
> | Building dependency tree
> | Reading state information... Done
> | The following packages were automatically installed and are no longer required:
> | libneon27 python2.4-minimal python2.4
> | Use 'apt-get autoremove' to remove them.
> | The following packages will be upgraded:
> | vim-tiny
> | 1 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
> | Need to get 0B/341kB of archives.
> | After this operation, 93.2kB of additional disk space will be used.
> | Reading changelogs... Done
> | (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 /var/cache/apt/archives/vim-tiny_1%3a7.1.293-3_arm.deb (--unpack):
> | trying to overwrite `/etc/vim/vimrc.tiny', which is also in package vim-common
> | Errors were encountered while processing:
> | /var/cache/apt/archives/vim-tiny_1%3a7.1.293-3_arm.deb
> | E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> I'd think /etc/vim/vimrc.tiny should be in vim-tiny only...
jvega at habanero:~$ dpkg -I /jvega/vim-tiny_7.1.293-3_arm.deb | egrep '^
(Depends|Conflicts|Replaces)'
Depends: vim-common (= 1:7.1.293-3), libc6 (>= 2.7-1), libncurses5
(>= 5.6+20071006-3), libselinux1 (>= 2.0.59)
Conflicts: vim-common (<< 1:7.1.293-2), vim-runtime (<< 1:7.1-056+1)
Replaces: vim-common (<< 1:7.1.293-2)
jvega at habanero:~$ dpkg -c /jvega/vim-common_7.1.293-3_arm.deb |grep -c tiny
0
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.
More information about the pkg-vim-maintainers
mailing list