2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【ArchLinux】pacmanでエラー(conflicting files)

Posted at

#pacman で -Syu(システムフルアップデート)が失敗する

###以下のエラーが発生.

[root@alarmpi pkg]# pacman -Syu
~
:: Proceed with installation? [Y/n] y
(67/67) checking keys in keyring
(67/67) checking package integrity
(67/67) loading package files
(67/67) checking for file conflicts
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.
[root@alarmpi pkg]# 

「conflict」は、「争う、矛盾する」といった意味らしい.
上のエラーは、「ca-certificates.crtというファイルは既にあるよ」と言っている.
軽く調べると、認証まわりで使うファイルらしい.(はじめてみた)

###解決策

公式にこんな記事がありました.

やってみる.

[root@alarmpi pkg]# ls /etc/ssl/certs/ | grep ca-certificates
ca-certificates.crt
[root@alarmpi pkg]# 
[root@alarmpi pkg]# rm /etc/ssl/certs/ca-certificates.crt 
rm: remove symbolic link '/etc/ssl/certs/ca-certificates.crt'? n
[root@alarmpi pkg]# 

シンボリックリンクだと!?シンボリックリンクをrmだと!?
焦りましたが、中身を見てみると

[root@alarmpi pkg]# ll /etc/ssl/certs/ca-certificates.crt 
lrwxrwxrwx 1 root root 49 Dec 12 13:56 /etc/ssl/certs/ca-certificates.crt -> ../../ca-certificates/extracted/tls-ca-bundle.pem
[root@alarmpi pkg]# 

消して良さげ?
騙されたと思って消してみる.

[root@alarmpi pkg]# rm /etc/ssl/certs/ca-certificates.crt 
rm: remove symbolic link '/etc/ssl/certs/ca-certificates.crt'? y
[root@alarmpi pkg]# 
[root@alarmpi pkg]# ll /etc/ca-certificates/extracted/tls-ca-bundle.pem 
-r--r--r-- 1 root root 257492 Jan 29 09:21 /etc/ca-certificates/extracted/tls-ca-bundle.pem
[root@alarmpi pkg]# 

あれ?-rfないと全部消えないんだっけ.

とりあえず,システムアップデートを再開したらできました.
ログは長いので割愛.

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?