[pacman-dev] Fun little bug- pacman3 fails to remove flex and words packages correctly

Dan McGee dpmcgee at gmail.com
Thu Jan 18 02:25:12 EST 2007


Steps to reproduce:
1. Ensure current/flex and extra/words packages are not installed on system.
2. Install packages with either pacman2 or pacman3 using -S operation.
3. Attempt to remove packages with pacman3. The following errors occur:
$ sudo pacman3 -S flex words
resolving dependencies... done.
looking for inter-conflicts... done.

Targets: flex-2.5.33-1 words-1.0-4
Total Package Size:   5.0 MB

Proceed with installation? [Y/n] y
checking package integrity... done.
checking for file conflicts (2/2)                 [#######################] 100%
(1/2) installing flex                             [#######################] 100%
(2/2) installing words                            [#######################] 100%
==> Determining which 'words' file to use in /usr/share/dict
==> Setting 'words' link to /usr/share/dict/usa

$ sudo pacman3 -R flex words
checking dependencies... done.
error: cannot remove file usr/share/dict/words
error: cannot remove file usr/share/dict/usa
error: cannot remove file usr/share/dict/spanish
error: cannot remove file usr/share/dict/ngerman
error: cannot remove file usr/share/dict/italian
error: cannot remove file usr/share/dict/german
error: cannot remove file usr/share/dict/french
error: cannot remove file usr/share/dict/finnish
error: cannot remove file usr/share/dict/catalan
error: cannot remove file usr/share/dict/british
(1/2) removing words                              [#######################] 100%
error: cannot remove file usr/share/locale/zh_CN/LC_MESSAGES/flex.mo
error: cannot remove file usr/share/locale/vi/LC_MESSAGES/flex.mo
error: cannot remove file usr/share/locale/tr/LC_MESSAGES/flex.mo
error: cannot remove file usr/share/locale/sv/LC_MESSAGES/flex.mo
error: cannot remove file usr/share/locale/ru/LC_MESSAGES/flex.mo
error: cannot remove file usr/share/locale/ro/LC_MESSAGES/flex.mo
error: cannot remove file usr/share/locale/pt_BR/LC_MESSAGES/flex.mo
error: cannot remove file usr/share/locale/pl/LC_MESSAGES/flex.mo
error: cannot remove file usr/share/locale/nl/LC_MESSAGES/flex.mo
error: cannot remove file usr/share/locale/ko/LC_MESSAGES/flex.mo
error: cannot remove file usr/share/locale/ga/LC_MESSAGES/flex.mo
error: cannot remove file usr/share/locale/fr/LC_MESSAGES/flex.mo
error: cannot remove file usr/share/locale/es/LC_MESSAGES/flex.mo
error: cannot remove file usr/share/locale/de/LC_MESSAGES/flex.mo
error: cannot remove file usr/share/locale/da/LC_MESSAGES/flex.mo
error: cannot remove file usr/share/locale/ca/LC_MESSAGES/flex.mo
error: cannot remove file usr/man/man1/flex.1.gz
error: cannot remove file usr/lib/libfl.a
error: cannot remove file usr/include/FlexLexer.h
error: cannot remove file usr/bin/lex
error: cannot remove file usr/bin/flex
(2/2) removing flex                               [#######################] 100%

4. Pacman2 can remove the packages correctly without error.
$ sudo pacman -S flex words

Targets: flex-2.5.33-1 words-1.0-4

Total Package Size:   5.0 MB

Proceed with upgrade? [Y/n] y

checking package integrity... done.
loading package data... done.
checking for file conflicts... done.
installing flex... done.
installing words... done.
==> Determining which 'words' file to use in /usr/share/dict
==> Setting 'words' link to /usr/share/dict/usa

$ sudo pacman -R flex words
removing words... done.
removing flex... done.

If you want verbose or debug output, let me know.

Dan




More information about the pacman-dev mailing list