2017年3月16日木曜日

pacmanでerror: failed to commit transaction (conflicting files)のエラーが発生し、パッケージがアップデートできない

error: failed to commit transaction (conflicting files)のエラーで、パッケージがアップデートできない
pacmanでパッケージをアップデートしようとしたら、以下のように、error: failed to commit transaction (conflicting files) ca-certificates-utils: /etc/ssl/certs/ca-certificates.crt exists in filesystemとエラーが表示され、パッケージがアップデートできなくなっていた。


# pacman -Syu

:: Synchronizing package databases...
 core                                   123.8 KiB   199K/s 00:01 [####################################] 100%
 extra                                 1676.6 KiB   143K/s 00:12 [####################################] 100%
 community                                3.8 MiB   281K/s 00:14 [####################################] 100%
 archlinuxfr                             15.4 KiB  36.9K/s 00:00 [####################################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (15) ca-certificates-20170307-1  ca-certificates-mozilla-3.29.3-2
              ca-certificates-utils-20170307-1  flatpak-0.9.1-1  gnome-settings-daemon-3.22.2-1
              libxslt-1.1.29+42+gac341cbd-1  linux-firmware-20170309.695f2d6-1  mono-4.8.0.495-1
              nss-3.29.3-2  p11-kit-0.23.5-1  potrace-1.14-1  qt4-4.8.7-16  whois-5.2.15-1
              xdg-desktop-portal-0.5-3  xdg-desktop-portal-gtk-0.5-3
...
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 p11-kit-0.23.5-1-x86_64                444.6 KiB   561K/s 00:01 [####################################] 100%
 ca-certificates-utils-20170307-1-any     7.5 KiB  2.43M/s 00:00 [####################################] 100%
 ca-certificates-mozilla-3.29.3-2-...   406.9 KiB   568K/s 00:01 [####################################] 100%
 ca-certificates-20170307-1-any        1904.0   B  0.00B/s 00:00 [####################################] 100%
 nss-3.29.3-2-x86_64                   1585.4 KiB   647K/s 00:02 [####################################] 100%
 linux-firmware-20170309.695f2d6-1-any   41.2 MiB   859K/s 00:49 [####################################] 100%
 xdg-desktop-portal-gtk-0.5-3-x86_64     66.3 KiB   451K/s 00:00 [####################################] 100%
 xdg-desktop-portal-0.5-3-x86_64         84.9 KiB   653K/s 00:00 [####################################] 100%
 flatpak-0.9.1-1-x86_64                 730.2 KiB   799K/s 00:01 [####################################] 100%
 gnome-settings-daemon-3.22.2-1-x86_64 1057.5 KiB   391K/s 00:03 [####################################] 100%
 libxslt-1.1.29+42+gac341cbd-1-x86_64   359.3 KiB   303K/s 00:01 [####################################] 100%
 potrace-1.14-1-x86_64                   84.1 KiB   255K/s 00:00 [####################################] 100%
 qt4-4.8.7-16-x86_64                     20.9 MiB   675K/s 00:32 [####################################] 100%
 whois-5.2.15-1-x86_64                   30.2 KiB   220K/s 00:00 [####################################] 100%
(15/15) checking keys in keyring                                 [####################################] 100%
(15/15) checking package integrity                               [####################################] 100%
(15/15) loading package files                                    [####################################] 100%
(15/15) 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.

エラーの原因はca-certificates-utilsのパッケージ
Arch Linuxの公式ページに掲載されているが、エラーの原因はca-certificates-utilsのパッケージ。/etc/ssl/certs/ca-certificates.crtのsymlinkが新しいパッケージのファイルとコンフリクトして、エラーが発生する。以下のように、/etc/ssl/certs/ca-certificates.crtを、手動で削除する必要がある。

まず、アップデートすべきパッケージの、ダウンロードのみを実行。
# pacman -Syuw
 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 archlinuxfr is up to date
:: Starting full system upgrade...
resolving dependencies...

Packages (15) ca-certificates-20170307-1  ca-certificates-mozilla-3.29.3-2
              ca-certificates-utils-20170307-1  flatpak-0.9.1-1  gnome-settings-daemon-3.22.2-1
              libxslt-1.1.29+42+gac341cbd-1  linux-firmware-20170309.695f2d6-1  mono-4.8.0.495-1
              nss-3.29.3-2  p11-kit-0.23.5-1  potrace-1.14-1  qt4-4.8.7-16  whois-5.2.15-1
              xdg-desktop-portal-0.5-3  xdg-desktop-portal-gtk-0.5-3

Total Download Size:  0.00 MiB

:: Proceed with download? [Y/n] y
(15/15) checking keys in keyring                                 [####################################] 100%
(15/15) checking package integrity                               [####################################] 100%

手動で、symlinkを削除する。
# rm /etc/ssl/certs/ca-certificates.crt 

pacman -Suで、アップデートを実行する。
# pacman -Su

:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (15) ca-certificates-20170307-1  ca-certificates-mozilla-3.29.3-2
              ca-certificates-utils-20170307-1  flatpak-0.9.1-1  gnome-settings-daemon-3.22.2-1
              libxslt-1.1.29+42+gac341cbd-1  linux-firmware-20170309.695f2d6-1  mono-4.8.0.495-1
              nss-3.29.3-2  p11-kit-0.23.5-1  potrace-1.14-1  qt4-4.8.7-16  whois-5.2.15-1
              xdg-desktop-portal-0.5-3  xdg-desktop-portal-gtk-0.5-3

Total Installed Size:  456.17 MiB
Net Upgrade Size:       14.57 MiB

:: Proceed with installation? [Y/n] y
...
Mono Certificate Store Sync - version 4.8.0.0
Populate Mono certificate store from a concatenated list of certificates.
Copyright 2002, 2003 Motus Technologies. Copyright 2004-2008 Novell. BSD licensed.

Importing into legacy system store:
I already trust 160, your new list has 160
Import process completed.

Importing into BTLS system store:
I already trust 159, your new list has 160
Certificate added: C=IL, O=StartCom Ltd., OU=Secure Digital Certificate Signing, CN=StartCom Certification Authority
1 new root certificates were added to your trust store.
Import process completed.
(13/15) upgrading potrace                                        [####################################] 100%
(14/15) upgrading qt4                                            [####################################] 100%
(15/15) upgrading whois                                          [####################################] 100%
:: Running post-transaction hooks...
(1/6) Compiling GSettings XML schema files...
(2/6) Updating icon theme caches...
(3/6) Creating temporary files...
(4/6) Arming ConditionNeedsUpdate...
(5/6) Rebuilding certificate stores...
(6/6) Updating the desktop file MIME type cache...

これで、アップデートは完了。


参考:
[1]Arch Linux - News: ca-certificates-utils 20170307-1 upgrade requires manual intervention

スポンサーリンク

スポンサーリンク

0 件のコメント:

コメントを投稿