Monday, April 3, 2017

archlinux - error during update (pacman) #2

Error during update:

$ pacman -Syu

...
:: Proceed with installation? [Y/n] 
(163/163) checking keys in keyring                 [#################] 100%
(163/163) checking package integrity               [#################] 100%
(163/163) loading package files                    [#################] 100%
(163/163) checking for file conflicts              [#################] 100%
error: failed to commit transaction (conflicting files)
ca-certificates-utils: /etc/ssl/certs/ca-certificates.crt exists in filesystem
Errors occurred, no packages were upgraded.


Solution:

remove /etc/ssl/certs/ca-certificates.crt e.g.:

$ mv /etc/ssl/certs/ca-certificates.crt/etc/ssl/certs/ca-certificates.bak


Good advice:

update keyrings before the full update:

$ pacman -S archlinux-keyring



References:
https://bugs.archlinux.org/task/53217