Bug 1401323

Summary: cannot install vim when vim-minimal-2:7.4.1989-2.fc25.x86_64 is already installed
Product: [Fedora] Fedora Reporter: Andrew Hsu <xuzuan>
Component: vimAssignee: Karsten Hopp <karsten>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 25CC: gwync, karsten, mbabinsk, mfabian, mfs-it2, moshima.web, xuzuan, zdohnal
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-05 19:22:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Andrew Hsu 2016-12-04 19:48:46 UTC
Description of problem:

Cannot install vim when vim-minimal-2:7.4.1989-2.fc25.x86_64 is already installed. This happens with the current fedora:25 docker image: https://hub.docker.com/r/_/fedora/

Version-Release number of selected component (if applicable):

vim-common-2:8.0.118-1.fc25.x86_64

How reproducible:

Every time.

Steps to Reproduce:

bash$ /usr/bin/dnf -y install vim # with just vim-minimal-2:7.4.1989-2 installed

e.g. with docker
bash$ docker run --rm -t --entrypoint=/usr/bin/dnf fedora:25 install -y vim

Actual results:

Error: Transaction check error:
  file /usr/share/man/man1/vim.1.gz from install of vim-common-2:8.0.118-1.fc25.x86_64 conflicts with file from package vim-minimal-2:7.4.1989-2.fc25.x86_64

Expected results:

Installed:
  vim-common.x86_64 2:8.0.118-1.fc25
Complete!

Additional info:

Comment 1 mfs-it2 2016-12-04 22:04:17 UTC
This happens in F24 too if someone tries to upgrade just vim alone (at least, if vim-2:7 is installed and we are going to install vim-2:8)

If vim-minimal-2:7 is installed, performing a "dnf upgrade vim" 1) won't update vim-minimal, as there are no dependencies between vim-common/vim-enhanced on vim-minimal and 2) will spout a warning about the conflicting file "/usr/share/man/man1/vim.1.gz"
Such file is owned by both vim-minimal and vim-common, so it's shipped twice. Wouldn't it make more sense to split man pages in a "vim-manpages" package or something if we don't wan't vim-minimal to have a dependency on vim-common and still deliver those man pages when shipping vim-minimal? Or: wouldn't it make sense to ship "/usr/share/man/man1/vim.1.gz" only with vim-enhanced, given that vim-minimal doesn't ship vim so there's no reason at all for it to deliver the file /usr/share/man/man1/vim.1.gz ?

Comment 2 Zdenek Dohnal 2016-12-05 09:47:52 UTC
Hi,

this bug is leftover of bug #1391564, would you mind trying to update your vim packages with rpms from this koji build http://koji.fedoraproject.org/koji/taskinfo?taskID=16704430 ? If you use it like this:

$ dnf update <link_to_vim-X11> ...

and so on, it should work. It worked in my case.

Comment 3 Zdenek Dohnal 2016-12-05 11:50:39 UTC
*** Bug 1401468 has been marked as a duplicate of this bug. ***

Comment 4 Gwyn Ciesla 2016-12-05 14:19:25 UTC
Hitting this on f25.

Comment 5 Zdenek Dohnal 2016-12-05 15:58:52 UTC
Jon,

would you mind trying that advice from comment #2, if it helps?

Comment 7 Zdenek Dohnal 2016-12-05 18:50:35 UTC
Interesting. It seems like some problem with repo, because perl(:MODULE_COMPAT_5.24.0) should be installed with vim-enhanced as its requirement. 
You can try several things:
A) try to run that update command with option --allowerasing
B) check if you have installed perl-libs package 

$ rpm -qa perl-libs

 and if not, you can try install it
C) or you can try to check you can install perl-libs by:

$ dnf info perl-libs

and if you did not get answer, you can try '$ dnf distro-sync'

If any of these help you, I will try to add explicitly requirement of perl-libs, but I think it is not good thing to do.

Comment 8 Gwyn Ciesla 2016-12-05 18:59:26 UTC
/me kicks self

I maintain gitolite3, among other things, and I had gitolite3-3.6.6-1.fc26 installed for testing, which had totally confused my perl dependencies.  --allowerasing fixed everything. :)

Comment 9 Zdenek Dohnal 2016-12-05 19:22:37 UTC
I am glad it works for you :) . Closing it as a NOTABUG.

Comment 10 Zdenek Dohnal 2016-12-07 14:46:27 UTC
*** Bug 1402431 has been marked as a duplicate of this bug. ***