FS#9088 - removing packages due to conflict
Attached to Project:
Pacman
Opened by Scott H (stonecrest) - Friday, 04 January 2008, 11:24 GMT
Last edited by Dan McGee (toofishes) - Saturday, 11 April 2009, 19:20 GMT
Opened by Scott H (stonecrest) - Friday, 04 January 2008, 11:24 GMT
Last edited by Dan McGee (toofishes) - Saturday, 11 April 2009, 19:20 GMT
|
Details
I was attempting to replace pacman-git with pacman (don't
ask why) and had the following happen:
$ pacman -S pacman resolving dependencies... looking for inter-conflicts... :: pacman conflicts with pacman-git. Remove pacman-git? [Y/n] Remove: pacman-git Total Removed Size: 2.25 MB Targets: pacman-3.0.6-2 Total Download Size: 0.81 MB Proceed with installation? [Y/n] :: Retrieving packages from core... pacman-3.0.6-2-i686 829.2K 547.7K/s 00:00:02 [###################] 100% checking package integrity... warning: /etc/pacman.d/mirrorlist saved as /etc/pacman.d/mirrorlist.pacsave warning: /etc/pacman.conf saved as /etc/pacman.conf.pacsave warning: /etc/makepkg.conf saved as /etc/makepkg.conf.pacsave (1/1) checking for file conflicts [###################] 100% error: could not prepare transaction error: failed to commit transaction (conflicting files) pacman: /etc/abs/abs.conf exists in filesystem pacman: /etc/abs/supfile.community exists in filesystem pacman: /etc/abs/supfile.core exists in filesystem pacman: /etc/abs/supfile.extra exists in filesystem pacman: /etc/abs/supfile.testing exists in filesystem pacman: /etc/abs/supfile.unstable exists in filesystem Errors occurred, no packages were upgraded. It seems to me that a user would _STRONGLY_ prefer that the conflicted package not be removed unless pacman has a pretty damn good idea that the replacement package can be installed. It's not good when you can get left without the package you previously had or the new package - in this case pacman! I also was surprised that, aside from the warnings about pacsave files, pacman didn't explicitly say that the conflicted package was removed. |
This task depends upon
Closed by Dan McGee (toofishes)
Saturday, 11 April 2009, 19:20 GMT
Reason for closing: Fixed
Additional comments about closing: Commit 391952600d30bf7c28c5403c5c9e220d345ffe87
Saturday, 11 April 2009, 19:20 GMT
Reason for closing: Fixed
Additional comments about closing: Commit 391952600d30bf7c28c5403c5c9e220d345ffe87
Also see http://bbs.archlinux.org/viewtopic.php?id=43847
The severity might be higher than medium.
If we don't fix it immediately (I can guess, we won't...) as a hotfix we should give at least a BIG warning in this case (ie. successful remove transaction, upgrade_prepare failure => WARNING: pacman removed the following packages: ... and stopped due to an error. This is dangerous: 1. If the previous list contains essential packages (like kernel) you should try to resolve the problem before reboot. 2. You can use the testdb utility to check for broken dependencies). However, this doesn't help too much in Scott's problem.
Note: I suggested reopen
FS#9556.