I have again encountered problems while trying to update my artix system, seemingly because of mirrors.
Of course I already tried to change my mirrors (as last time), but they just don't want to work, for example when I open my mirrorlist and replace my "outdated" mirrors with "new" mirrors using the mirrorlist generator, it still does not work.
Could anyone tell me why?
Here's the error when I try to execute sudo pacman -Syyu:
:: Synchronizing package databases...
system.db failed to download
world.db failed to download
galaxy.db failed to download
lib32.db failed to download
error: failed retrieving file 'galaxy.db' from mirrors.eric.ovh : The requested URL returned error: 404
error: failed retrieving file 'world.db' from mirrors.eric.ovh : The requested URL returned error: 404
error: failed retrieving file 'lib32.db' from mirrors.eric.ovh : The requested URL returned error: 404
warning: too many errors from mirrors.eric.ovh, skipping for the remainder of this transaction
error: failed retrieving file 'galaxy.db' from mirror.oldsql.cc : The requested URL returned error: 404
error: failed retrieving file 'world.db' from mirror.oldsql.cc : The requested URL returned error: 404
error: failed retrieving file 'lib32.db' from mirror.oldsql.cc : The requested URL returned error: 404
warning: too many errors from mirror.oldsql.cc, skipping for the remainder of this transaction
error: failed retrieving file 'galaxy.db' from mirror.wormhole.eu : The requested URL returned error: 404
error: failed retrieving file 'world.db' from mirror.wormhole.eu : The requested URL returned error: 404
error: failed retrieving file 'lib32.db' from mirror.wormhole.eu : The requested URL returned error: 404
warning: too many errors from mirror.wormhole.eu, skipping for the remainder of this transaction
error: failed retrieving file 'galaxy.db' from mir.archlinux.fr : The requested URL returned error: 404
error: failed retrieving file 'system.db' from mirrors.eric.ovh : The requested URL returned error: 404
error: failed retrieving file 'world.db' from mir.archlinux.fr : The requested URL returned error: 404
error: failed retrieving file 'lib32.db' from mir.archlinux.fr : The requested URL returned error: 404
warning: too many errors from mir.archlinux.fr, skipping for the remainder of this transaction
error: failed retrieving file 'system.db' from mir.archlinux.fr : The requested URL returned error: 404
error: failed to synchronize all databases (failed to retrieve some files)
10 days later, and the issue still cannot be fixed.
Could anyone please help me with this?
I guess it is because you are trying to use arch mirrors for artix repo.
It would help a lot if you add your pacman.conf and pacman.d/mirrorlist file.
but in any case just do this:
sudo curl "https://gitea.artixlinux.org/packages/artix-mirrorlist/raw/branch/master/mirrorlist" --output /etc/pacman.d/mirrorlist
Here is my pacman.conf file:
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir = /
#DBPath = /var/lib/pacman/
#CacheDir = /var/cache/pacman/pkg/
#LogFile = /var/log/pacman.log
#GPGDir = /etc/pacman.d/gnupg/
#HookDir = /etc/pacman.d/hooks/
HoldPkg = pacman glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta = 0.7
Architecture = auto
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg =
#IgnoreGroup =
#NoUpgrade =
#NoExtract =
# Misc options
UseSyslog
Color
CheckSpace
VerbosePkgLists
ParallelDownloads = 4
ILoveCandy
# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required
# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Artix Linux
# packagers with `pacman-key --populate artix`.
#
# REPOSITORIES
# - can be defined here or included from another file
# - pacman will search repositories in the order defined here
# - local/custom mirrors can be added here or in separate files
# - repositories listed first will take precedence when packages
# have identical names, regardless of version number
# - URLs will have $repo replaced by the name of the current repo
# - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
# [repo-name]
# Server = ServerName
# Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#
# The gremlins repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.
#[gremlins]
#Include = /etc/pacman.d/mirrorlist
[system]
Include = /etc/pacman.d/mirrorlist
[world]
Include = /etc/pacman.d/mirrorlist
#[galaxy-gremlins]
#Include = /etc/pacman.d/mirrorlist
[galaxy]
Include = /etc/pacman.d/mirrorlist
# If you want to run 32 bit applications on your x86_64 system,
# enable the lib32 repositories as required here.
#[lib32-gremlins]
#Include = /etc/pacman.d/mirrorlist
[lib32]
Include = /etc/pacman.d/mirrorlist
# [universe] contains packages not in mainstream Artix or Arch repos,
# maintained by individual Artix devs
[universe]
Server = https://mirror1.artixlinux.org/universe/$arch
Server = https://mirror.pascalpuffke.de/artix-universe/$arch
Server = https://artixlinux.qontinuum.space:4443/universe/os/$arch
Server = https://universe.artixlinux.org/$arch
# Omniverse contains packages from the AUR and Arch [community], some with non-free licenses.
# You *must* agree to their license in order to use them.
# Packages and descriptions: http://omniverse.artixlinux.org/x86_64/
[omniverse]
Server = http://omniverse.artixlinux.org/$arch
# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
#[localrepo]
#SigLevel = Optional TrustAll
#Server = file:///home/user/localrepo
#
# ARCHLINUX
#
#[testing]
#Include = /etc/pacman.d/mirrorlist
[extra]
Include = /etc/pacman.d/mirrorlist
#[community-testing]
#Include = /etc/pacman.d/mirrorlist
[community]
Include = /etc/pacman.d/mirrorlist
#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist
[multilib]
Include = /etc/pacman.d/mirrorlist
Here is my mirrorlist:
Server = https://mirror.one.com/artix/$repo/os/$arch
Server = https://mirror.pascalpuffke.de/artix-linux/$repo/os/$arch
Server = https://artix.unixpeople.org/repos/$repo/os/$arch
Server = http://mirrors.redcorelinux.org/artixlinux/$repo/os/$arch
Server = http://mirror1.artixlinux.org/repos/$repo/os/$arch
I also did what you told me but downloads still fail.
both arch and artix repo in your pacman.conf is pointing to same mirror list file. that's wrong.
artix repo should point to "mirrorlist" file
arch repo should point to "mirrorlist-arch" file
run these two command: (the original command I gave you outputted to download)
sudo curl "https://gitea.artixlinux.org/packages/artix-mirrorlist/raw/branch/master/mirrorlist" --output /etc/pacman.d/mirrorlist
sudo wget https://github.com/archlinux/svntogit-packages/raw/packages/pacman-mirrorlist/trunk/mirrorlist -O /etc/pacman.d/mirrorlist-arch
look at wiki (https://wiki.artixlinux.org/Main/Repositories#Arch_repositories) example. you see how the include line is different .
As LemonPie explained to you, Artix and Arch do not use the same repositories.
In /etc/pacman.conf the two arch repositories you may need are:
[extra]
Include = /etc/pacman.d/mirrorlist-arch
[multilib]
Include = /etc/pacman.d/mirrorlist-arch
I executed the two commands you asked me, and also changed the multilib and extra to include "-arch".
However when I execute the command "sudo pacman -Syyu", it outputs this:
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
:: Synchronizing package databases...
system 263.4 KiB 569 KiB/s 00:00 [----------------------] 100%
world 4.8 MiB 4.31 MiB/s 00:01 [----------------------] 100%
galaxy 403.3 KiB 716 KiB/s 00:01 [----------------------] 100%
lib32 170.1 KiB 362 KiB/s 00:00 [----------------------] 100%
universe 1831.0 B 2.34 KiB/s 00:01 [----------------------] 100%
omniverse 68.6 KiB 71.6 KiB/s 00:01 [----------------------] 100%
extra 8.2 MiB 1620 KiB/s 00:05 [----------------------] 100%
community 21.7 KiB 21.3 KiB/s 00:01 [----------------------] 100%
multilib 140.3 KiB 575 KiB/s 00:00 [----------------------] 100%
error: failed retrieving file 'community.db' from mirrors.dotsrc.org : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.clarkson.edu : The requested URL returned error: 404
error: failed retrieving file 'community.db' from ftp.ntua.gr : The requested URL returned error: 404
error: failed retrieving file 'community.db' from ftp.sh.cvut.cz : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirrors.dotsrc.org : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.one.com : The requested URL returned error: 404
error: failed retrieving file 'community.db' from artix.cccp.io : The requested URL returned error: 404
error: failed retrieving file 'community.db' from ftp.crifo.org : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.opensrv.org : Could not resolve host: mirror.opensrv.org
warning: too many errors from mirror.opensrv.org, skipping for the remainder of this transaction
error: failed retrieving file 'community.db' from quantum-mirror.hu : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.netcologne.de : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirrors.redcorelinux.org : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.pascalpuffke.de : The requested URL returned error: 404
error: failed retrieving file 'community.db' from ftp.uni-bayreuth.de : The requested URL returned error: 404
error: failed retrieving file 'community.db' from ftp.halifax.rwth-aachen.de : The requested URL returned error: 404
error: failed retrieving file 'community.db' from artix.unixpeople.org : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror1.artixlinux.org : The requested URL returned error: 404
error: failed retrieving file 'community.db' from eu-mirror.artixlinux.org : The requested URL returned error: 404
error: failed retrieving file 'community.db' from ftp.cc.uoc.gr : The requested URL returned error: 404
error: failed retrieving file 'community.db' from ftp.ntua.gr : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirrors.qontinuum.space : The requested URL returned error: 404
error: failed retrieving file 'community.db' from artix.sakamoto.pl : The requested URL returned error: 404
error: failed retrieving file 'community.db' from ftp.ludd.ltu.se : The requested URL returned error: 404
error: failed retrieving file 'community.db' from artix.kurdy.org : The requested URL returned error: 404
error: failed retrieving file 'community.db' from artist.artixlinux.org : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.vinehost.net : The requested URL returned error: 404
error: failed retrieving file 'community.db' from artix.wheaton.edu : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.clarkson.edu : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirrors.rit.edu : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirrors.ocf.berkeley.edu : The requested URL returned error: 404
error: failed retrieving file 'community.db' from www.nylxs.com : The requested URL returned error: 404
error: failed retrieving file 'community.db' from us-mirror.artixlinux.org : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.csclub.uwaterloo.ca : The requested URL returned error: 404
error: failed retrieving file 'community.db' from gnlug.org : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror1.cl.netactuate.com : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirrors.tuna.tsinghua.edu.cn : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirrors.aliyun.com : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.nju.edu.cn : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.albony.xyz : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.funami.tech : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.freedif.org : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirrors.cloud.tencent.com : The requested URL returned error: 404
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: failed to synchronize all databases (invalid or corrupted database (PGP signature))
The answer is just above. ;)
The community repository is no longer necessary (see the announcement on the Arch Linux website).
Universe (https://wiki.artixlinux.org/Main/Repositories#Universe) and community (https://archlinux.org/news/git-migration-completed/) repo are removed and no longer should be used. remove them from your config.
I removed the universe and community repositories from my config file but now when I execute the command : sudo pacman -Syyu,
it outputs this (the 404 errors have disappeared):
error: GPGME error: No data
error: GPGME error: No data
:: Synchronizing package databases...
system 264.1 KiB 518 KiB/s 00:01 [----------------------] 100%
world 4.8 MiB 2.82 MiB/s 00:02 [----------------------] 100%
galaxy 403.3 KiB 780 KiB/s 00:01 [----------------------] 100%
lib32 170.1 KiB 415 KiB/s 00:00 [----------------------] 100%
omniverse 68.6 KiB 74.0 KiB/s 00:01 [----------------------] 100%
extra 8.2 MiB 2.12 MiB/s 00:04 [----------------------] 100%
multilib 140.4 KiB 128 KiB/s 00:01 [----------------------] 100%
error: GPGME error: No data
error: GPGME error: No data
error: failed to synchronize all databases (invalid or corrupted database (PGP signature))
read the wiki (https://wiki.artixlinux.org/Main/Troubleshooting#Invalid_or_corrupted_packages_.28PGP_signature.29)
From https://wiki.artixlinux.org/Main/Troubleshooting#Invalid_or_corrupted_packages_.28PGP_signature.29
Invalid or corrupted packages (PGP signature)
If pacman warns you about invalid or corrupted packages, it may be due to obsolete PGP keys or Arch-signed packages in the repos. Make sure the Artix repos are above the Arch ones and:
1. Reinstall keyrings including the latest keys:
pacman -Sy archlinux-keyring artix-keyring
If you can't install the artix-keyring because of signature errors, perform step 2 and repeat 1, otherwise proceed to step 3.
2. Remove old and possibly expired, revoked or invalid keys by issuing this command:
rm -r /etc/pacman.d/gnupg
3. Initialize the pacman keyring:
pacman-key --init
4. Load the signature keys:
pacman-key --populate archlinux artix
5. Clear out the software packages downloaded during the aborted installation:
pacman -Scc
pacman -Syyu
6. In a pinch, install the package with the -U pacman switch:
pacman -U /var/cache/pacman/pkg/package-1.3.9-1.x86_64.pkg.tar.xz
It is also possible that one of pacman mirrors, perhaps even the first one can't be reached (returning a 404). In this case follow these steps:
1. Change the order of mirror list.
2. Delete sync database:
sudo rm -fr /var/lib/pacman/sync
3. Update database and update the system:
pacman -Syyu
I did the steps and now when I execute the command "sudo pacman -Syyu" it seems to work but it outputs this:
:: Synchronizing package databases...
system 264.2 KiB 655 KiB/s 00:00 [----------------------] 100%
world 4.9 MiB 5.13 MiB/s 00:01 [----------------------] 100%
galaxy 403.3 KiB 830 KiB/s 00:00 [----------------------] 100%
lib32 170.1 KiB 452 KiB/s 00:00 [----------------------] 100%
omniverse 68.6 KiB 73.7 KiB/s 00:01 [----------------------] 100%
extra 8.2 MiB 2.03 MiB/s 00:04 [----------------------] 100%
multilib 140.4 KiB 179 KiB/s 00:01 [----------------------] 100%
:: Starting full system upgrade...
:: Replace attica with world/attica5? [Y/n] n
n:: Replace frameworkintegration with world/frameworkintegration5? [Y/n]
:: Replace karchive with world/karchive5? [Y/n] n
:: Replace kauth with world/kauth5? [Y/n] n
:: Replace kbookmarks with world/kbookmarks5? [Y/n] n
:: Replace kcalendarcore with world/kcalendarcore5? [Y/n] n
:: Replace kcmutils with world/kcmutils5? [Y/n] n
:: Replace kcodecs with world/kcodecs5? [Y/n] n
:: Replace kcompletion with world/kcompletion5? [Y/n] n
:: Replace kconfig with world/kconfig5? [Y/n] n
:: Replace kconfigwidgets with world/kconfigwidgets5? [Y/n] n
:: Replace kcontacts with world/kcontacts5? [Y/n] n
:: Replace kcoreaddons with world/kcoreaddons5? [Y/n] n
:: Replace kcrash with world/kcrash5? [Y/n] n
:: Replace kdbusaddons with world/kdbusaddons5? [Y/n] n
:: Replace kdeclarative with world/kdeclarative5? [Y/n] n
:: Replace kded with world/kded5? [Y/n] n
:: Replace kdnssd with world/kdnssd5? [Y/n] n
:: Replace kfilemetadata with world/kfilemetadata5? [Y/n] n
:: Replace kglobalaccel with world/kglobalaccel5? [Y/n] n
:: Replace kguiaddons with world/kguiaddons5? [Y/n] n
:: Replace ki18n with world/ki18n5? [Y/n] n
:: Replace kiconthemes with world/kiconthemes5? [Y/n] n
:: Replace kio with world/kio5? [Y/n] nn
:: Replace kitemmodels with world/kitemmodels5? [Y/n] n
:: Replace kitemviews with world/kitemviews5? [Y/n]
:: Replace kjobwidgets with world/kjobwidgets5? [Y/n] n
:: Replace knewstuff with world/knewstuff5? [Y/n] n
:: Replace knotifications with world/knotifications5? [Y/n] n
:: Replace knotifyconfig with world/knotifyconfig5? [Y/n] n
:: Replace kpackage with world/kpackage5? [Y/n] n
:: Replace kparts with world/kparts5? [Y/n] n
:: Replace kservice with world/kservice5? [Y/n] n
:: Replace ktextwidgets with world/ktextwidgets5? [Y/n]
:: Replace kwallet with world/kwallet5? [Y/n] n
:: Replace kwayland with world/kwayland5? [Y/n] n
:: Replace kwidgetsaddons with world/kwidgetsaddons5? [Y/n] n
:: Replace kwindowsystem with world/kwindowsystem5? [Y/n] n
:: Replace kxmlgui with world/kxmlgui5? [Y/n] n
warning: liferea: local (1.14.6-1.1) is newer than world (1.14.6-1)
:: Replace prison with world/prison5? [Y/n] n
:: Replace purpose with world/purpose5? [Y/n]
n:: Replace solid with world/solid5? [Y/n]
:: Replace sonnet with world/sonnet5? [Y/n] n
:: Replace syndication with world/syndication5? [Y/n] n
:: Replace threadweaver with world/threadweaver5? [Y/n] n
resolving dependencies...
:: There are 2 providers available for libdovi.so=3-64:
:: Repository world
1) libdovi
:: Repository extra
2) libdovi
Enter a number (default=1): n
error: invalid number: n
Enter a number (default=1): n
error: invalid number: n
Enter a number (default=1): 1
looking for conflicting packages...
warning: removing 'kcompletion' from target list because it conflicts with 'kcompletion5'
warning: removing 'kwidgetsaddons' from target list because it conflicts with 'kwidgetsaddons5'
warning: removing 'kconfig' from target list because it conflicts with 'kconfig5'
warning: removing 'kconfigwidgets' from target list because it conflicts with 'kconfigwidgets5'
warning: removing 'kauth' from target list because it conflicts with 'kauth5'
warning: removing 'kcoreaddons' from target list because it conflicts with 'kcoreaddons5'
warning: removing 'kcodecs' from target list because it conflicts with 'kcodecs5'
warning: removing 'kguiaddons' from target list because it conflicts with 'kguiaddons5'
warning: removing 'ki18n' from target list because it conflicts with 'ki18n5'
warning: removing 'sonnet' from target list because it conflicts with 'sonnet5'
warning: removing 'knewstuff' from target list because it conflicts with 'knewstuff5'
warning: removing 'kio' from target list because it conflicts with 'kio5'
warning: removing 'kjobwidgets' from target list because it conflicts with 'kjobwidgets5'
warning: removing 'kbookmarks' from target list because it conflicts with 'kbookmarks5'
warning: removing 'kxmlgui' from target list because it conflicts with 'kxmlgui5'
warning: removing 'kglobalaccel' from target list because it conflicts with 'kglobalaccel5'
warning: removing 'kdbusaddons' from target list because it conflicts with 'kdbusaddons5'
warning: removing 'kcrash' from target list because it conflicts with 'kcrash5'
warning: removing 'kwindowsystem' from target list because it conflicts with 'kwindowsystem5'
warning: removing 'kiconthemes' from target list because it conflicts with 'kiconthemes5'
warning: removing 'karchive' from target list because it conflicts with 'karchive5'
warning: removing 'kwallet' from target list because it conflicts with 'kwallet5'
warning: removing 'knotifications' from target list because it conflicts with 'knotifications5'
warning: removing 'kservice' from target list because it conflicts with 'kservice5'
warning: removing 'kded' from target list because it conflicts with 'kded5'
warning: removing 'kpackage' from target list because it conflicts with 'kpackage5'
warning: removing 'attica' from target list because it conflicts with 'attica5'
warning: removing 'syndication' from target list because it conflicts with 'syndication5'
warning: removing 'kdnssd' from target list because it conflicts with 'kdnssd5'
warning: removing 'kparts' from target list because it conflicts with 'kparts5'
:: kcompletion5 and kcompletion are in conflict. Remove kcompletion? [y/N] y
:: kwidgetsaddons5 and kwidgetsaddons are in conflict. Remove kwidgetsaddons? [y/N] y
:: kconfig5 and kconfig are in conflict. Remove kconfig? [y/N] y
:: kconfigwidgets5 and kconfigwidgets are in conflict. Remove kconfigwidgets? [y/N] y
:: kauth5 and kauth are in conflict. Remove kauth? [y/N] y
:: kcoreaddons5 and kcoreaddons are in conflict. Remove kcoreaddons? [y/N] y
:: kcodecs5 and kcodecs are in conflict. Remove kcodecs? [y/N] y
:: kguiaddons5 and kguiaddons are in conflict. Remove kguiaddons? [y/N] y
:: ki18n5 and ki18n are in conflict. Remove ki18n? [y/N] y
:: sonnet5 and sonnet are in conflict. Remove sonnet? [y/N] y
:: knewstuff5 and knewstuff are in conflict. Remove knewstuff? [y/N] y
:: kio5 and kio are in conflict. Remove kio? [y/N] y
:: kjobwidgets5 and kjobwidgets are in conflict. Remove kjobwidgets? [y/N] y
:: kbookmarks5 and kbookmarks are in conflict. Remove kbookmarks? [y/N] y
:: kxmlgui5 and kxmlgui are in conflict. Remove kxmlgui? [y/N] y
:: kglobalaccel5 and kglobalaccel are in conflict. Remove kglobalaccel? [y/N] y
:: kdbusaddons5 and kdbusaddons are in conflict. Remove kdbusaddons? [y/N] y
:: kcrash5 and kcrash are in conflict. Remove kcrash? [y/N]
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: kcrash5 and kcrash are in conflict (kcrash<5.111)
this has been discussed in this (https://forum.artixlinux.org/index.php/topic,5978.msg37331.html#msg37331) topic.
there's a huge move from qt5 to qt6, so most packages that are related have to versions.
simply leave each answer empty (uses default option that is Y or 1) and your system will be updated normally. you want *5 variant of these packages.
Thank you very much, it works now.