アップデートをサボっていて久々に、pacman -Syu
したらコケた。
~ ❯ sudo pacman -Syu
error: GPGME error: No data
:: Synchronizing package databases...
core 117.3 KiB 236 KiB/s 00:00 [-----------------------------------------------------------------------------------] 100%
extra 7.7 MiB 696 KiB/s 00:11 [-----------------------------------------------------------------------------------] 100%
community 114.0 B 152 B/s 00:01 [-----------------------------------------------------------------------------------] 100%
multilib is up to date
error: failed retrieving file 'community.db' from ftp.jaist.ac.jp : The requested URL returned error: 404
error: failed retrieving file 'community.db' from repo.iut.ac.ir : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirrors.gigenet.com : The requested URL returned error: 404
error: failed retrieving file 'community.db' from ftp.gwdg.de : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirrors.standaloneinstaller.com : The requested URL returned error: 404
error: failed retrieving file 'community.db' from archmirror.nebulanet.cc : Could not resolve host: archmirror.nebulanet.cc
warning: fatal error from archmirror.nebulanet.cc, skipping for the remainder of this transaction
error: failed retrieving file 'community.db' from archlinux.vi-di.fr : Recv failure: Connection reset by peer
error: failed retrieving file 'community.db' from mirror.siena.edu : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.uta.edu.ec : Could not resolve host: mirror.uta.edu.ec
warning: fatal error from mirror.uta.edu.ec, skipping for the remainder of this transaction
error: failed retrieving file 'community.db' from mirror.dc02.hackingand.coffee : Could not resolve host: mirror.dc02.hackingand.coffee
warning: fatal error from mirror.dc02.hackingand.coffee, skipping for the remainder of this transaction
error: failed retrieving file 'community.db' from mirror.neostrada.nl : Failed to connect to mirror.neostrada.nl port 80 after 10002 ms: Timeout was reached
error: failed retrieving file 'community.db' from mirrors.rit.edu : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirrors.sonic.net : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.onevip.mk : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.23media.com : The requested URL returned error: 404
error: failed retrieving file 'community.db' from archimonde.ts.si : Could not resolve host: archimonde.ts.si
warning: fatal error from archimonde.ts.si, skipping for the remainder of this transaction
error: failed retrieving file 'community.db' from mirror.orbit-os.com : OpenSSL/3.4.0: error:0A000438:SSL routines::tlsv1 alert internal error
error: failed retrieving file 'community.db' from mirror.homelab.no : Could not resolve host: mirror.homelab.no
warning: fatal error from mirror.homelab.no, skipping for the remainder of this transaction
error: failed retrieving file 'community.db' from za.mirror.archlinux-br.org : Could not resolve host: za.mirror.archlinux-br.org
warning: fatal error from za.mirror.archlinux-br.org, skipping for the remainder of this transaction
error: failed retrieving file 'community.db' from mirror.onet.pl : Failed to connect to mirror.onet.pl port 80 after 10002 ms: Timeout was reached
error: GPGME error: No data
error: failed to synchronize all databases (unexpected error)
このrepositoryはextra repositoryに移行されていて、ユーザー設定のために2年前から空を返却するようになっていたのだが、3/1に削除するとのこと。
Around two years ago, we’ve merged the [community] repository into [extra] as part of the git migration. In order to not break user setups, we kept these repositories around in an unused and empty state. We’re going to clean up these old repositories on 2025-03-01.
On systems where /etc/pacman.conf still references the old [community] repository, pacman -Sy will return an error on trying to sync repository metadata.
The following deprecated repositories will be removed: [community], [community-testing], [testing], [testing-debug], [staging], [staging-debug].
Please make sure to remove all use of the aforementioned repositories from your /etc/pacman.conf (for which a .pacnew was shipped with pacman>=6.0.2-7)!
https://archlinux.org/news/cleaning-up-old-repositories/
どれが、communityを参照しているか確認する必要があるかと思ったが、そもそも2年間空で返しているので確認する必要もないようだった。
ので、/etc/pacman.conf
から削除すると良い。
-#[testing]
-#Include = /etc/pacman.d/mirrorlist
[core]
Include = /etc/pacman.d/mirrorlist
[extra]
Include = /etc/pacman.d/mirrorlist
-#[community-testing]
-#Include = /etc/pacman.d/mirrorlist
-[community]
-Include = /etc/pacman.d/mirrorlist
[community]以外にも、 [community-testing] [testing] [testing-debug] [staging] [staging-debug] も合わせて削除すると良い。