pacmanでアップデートするとエラーが発生
今日、pacmanでアップデートしようとしたら、failed to commit transaction (conflicting files)とエラーが発生し、アップデートに失敗した。ターミナルの出力は、以下の通り。Errors occurred, no packages were upgraded.と出ており、パッケージのアップデートができていない。# pacman -Syu
:: 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...
looking for conflicting packages...
Packages (24) archlinux-keyring-20161101-1  boost-libs-1.62.0-2  ceph-10.2.3-1  dbus-glib-0.108-1
              ffmpeg-1:3.2-2  gdl-3.22.0-1  git-2.10.2-1  gtk-sharp-2-2.12.42-1  libgexiv2-0.10.4-1
              libphonenumber-7.7.0-2  libproxy-0.4.13-1  libpst-0.6.67-2  libthai-0.1.25-1
              libxml2-2.9.4+12+ge905f08-1  libxslt-1.1.29+23+geb1030d-1  linux-4.8.6-1
              linux-headers-4.8.6-1  pacman-mirrorlist-20161101-1  python-packaging-16.8-1
              python-setuptools-1:28.7.1-1  sdl2-2.0.5-2  ttf-dejavu-2.37-1  vim-8.0.0055-1
              vim-runtime-8.0.0055-1
Total Download Size:     0.58 MiB
Total Installed Size:  441.44 MiB
Net Upgrade Size:        1.73 MiB
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 archlinux-keyring-20161101-1-any       598.2 KiB  2.06M/s 00:00 [####################################] 100%
(24/24) checking keys in keyring                                 [####################################] 100%
(24/24) checking package integrity                               [####################################] 100%
(24/24) loading package files                                    [####################################] 100%
(24/24) checking for file conflicts                              [####################################] 100%
error: failed to commit transaction (conflicting files)
ttf-dejavu: /etc/fonts/conf.d/20-unhint-small-dejavu-sans-mono.conf exists in filesystem
ttf-dejavu: /etc/fonts/conf.d/20-unhint-small-dejavu-sans.conf exists in filesystem
ttf-dejavu: /etc/fonts/conf.d/20-unhint-small-dejavu-serif.conf exists in filesystem
ttf-dejavu: /etc/fonts/conf.d/57-dejavu-sans-mono.conf exists in filesystem
ttf-dejavu: /etc/fonts/conf.d/57-dejavu-sans.conf exists in filesystem
ttf-dejavu: /etc/fonts/conf.d/57-dejavu-serif.conf exists in filesystem
Errors occurred, no packages were upgraded.
エラーの原因はttf-dejavu
出力の最後の方から分かるように、ttf-dejavuパッケージがエラーの原因。Arch Linuxの公式ページを見てみると、ttf-dejavuだけ強制的にアップデートしろとのこと。To upgrade to ttf-dejavu 2.37 it's recommended to upgrade the package on its own: pacman -S --force ttf-dejavu上記を参考にして、pacmanで、再度パッケージのアップデートをしてみる。まず、ttf-dejavuから。
# pacman -S --force ttf-dejavu resolving dependencies... looking for conflicting packages... Packages (1) ttf-dejavu-2.37-1 Total Installed Size: 9.75 MiB Net Upgrade Size: 0.57 MiB :: Proceed with installation? [Y/n] y (1/1) checking keys in keyring [####################################] 100% (1/1) checking package integrity [####################################] 100% (1/1) loading package files [####################################] 100% (1/1) checking for file conflicts [####################################] 100% (1/1) checking available disk space [####################################] 100% :: Processing package changes... (1/1) upgrading ttf-dejavu
続いて、全体のアップデート。エラーなくアップデートできるようになった。
# pacman -Syu
:: 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...
looking for conflicting packages...
Packages (23) archlinux-keyring-20161101-1  boost-libs-1.62.0-2  ceph-10.2.3-1  dbus-glib-0.108-1
              ffmpeg-1:3.2-2  gdl-3.22.0-1  git-2.10.2-1  gtk-sharp-2-2.12.42-1  libgexiv2-0.10.4-1
              libphonenumber-7.7.0-2  libproxy-0.4.13-1  libpst-0.6.67-2  libthai-0.1.25-1
              libxml2-2.9.4+12+ge905f08-1  libxslt-1.1.29+23+geb1030d-1  linux-4.8.6-1
              linux-headers-4.8.6-1  pacman-mirrorlist-20161101-1  python-packaging-16.8-1
              python-setuptools-1:28.7.1-1  sdl2-2.0.5-2  vim-8.0.0055-1  vim-runtime-8.0.0055-1
Total Installed Size:  431.69 MiB
Net Upgrade Size:        1.15 MiB
...
(22/23) upgrading vim-runtime                                    [####################################] 100%
(23/23) upgrading vim                                            [####################################] 100%
:: Running post-transaction hooks...
(1/1) Install DKMS modules
==> dkms install -m vboxhost -v 5.1.8_OSE -k 4.8.6-1-ARCH
参考:
[1]Arch Linux - News: ttf-dejavu 2.37 will require forced upgrade
スポンサーリンク

本家を見る前にこちらの記事でアップデートできました。ありがとう。
返信削除当ブログをお読みいただき、こちらこそありがとうございます。今後とも、よろしくお願いします。
削除I've also come across this problem recently, it works>
返信削除Althogh I'm writing my blog in Japanese, I welcome comments and questions in English. If you need help or have any questions on the other posts, don't hesitate to leave a message!
削除