Pacmanのエラー「package-query: requires pacman<4.1」の対処方法
本日2回目の記事ですが、今日Pacmanでパッケージをインストールしようとすると、
:: The following packages should be upgraded first :
pacman
:: Do you want to cancel the current operation
:: and upgrade these packages now? [Y/n]
と、出たんですね。
まぁ、要は「Pacmanのアップデートがあるけど、先に更新する?」みたいな質問です。
これでyと入力してPacmanを更新しようとすると、
error: failed to prepare transaction (could not satisfy dependencies) :: package-query: requires pacman<4.1
うー・・・なんか面倒なことになってるぞ・・・
ggったら外国のフォーラムで対処方法が載っていたので紹介。
(2chのArch版では誰も解決できてないみたいですね。英語読め英語を!)
まず、一旦package-queryとyaourtをアンインストール
# pacman -R package-query yaourt
そうしたらパッケージのアップデートをかけると、同じようにpacmanの更新通知がくるのでyを入力してEnter。
# pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
:: The following packages should be upgraded first :
pacman
:: Do you want to cancel the current operation
:: and upgrade these packages now? [Y/n] y
resolving dependencies…
looking for inter-conflicts…
Targets (1): pacman-4.1.0-2
Total Download Size: 0.58 MiB
Total Installed Size: 4.24 MiB
Net Upgrade Size: 0.70 MiB
Proceed with installation? [Y/n] y
:: Retrieving packages from core…
pacman-4.1.0-2-x86_64 598.0 KiB 472K/s 00:01 [######################] 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%
(1/1) upgrading pacman [######################] 100%
warning: /etc/pacman.conf installed as /etc/pacman.conf.pacnew
新しいpacman.confができているので、それに置き換える。
# mv /etc/pacman.conf.pacnew /etc/pacman.conf
新しいpacman.confでアップデートが通るか確認する。
# pacman -Syu
必要に応じてyaourtとpackage-queryを再びインストールする。
Happy Day!!
はい、Linuxでわからないときは2chではなく海外フォーラムやWikiを必ず確認しましょう。
Linuxの世界(というかPC関係すべて)での常識です。