Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] ]Problem with running pacman (Read 6825 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] ]Problem with running pacman

Hello,

I have problem with running pacman, when I do -Syyu -U -Q -S anything I get it error like this:

Code: [Select]
kurozy-mainPC:[kurozy]:~$ sudo pacman -Syyu
error: config file /etc/pacman.d/mirrorlist-arch could not be read: No such file or directory

I have mirrorlist in pacman.d folder and it's content is:

Code: [Select]
##
## Artix Linux repository mirrorlist
## Generated on 2021-04-26
##

# Artix mirrors


## Europe
#Server = https://mirrors.dotsrc.org/artix-linux/repos/$repo/os/$arch
Server = http://ftp.ntua.gr/pub/linux/artix-linux/$repo/os/$arch
Server = https://ftp.cc.uoc.gr/mirrors/linux/artixlinux/$repo/os/$arch
Server = https://quantum-mirror.hu/mirrors/pub/artix-linux/$repo/os/$arch
Server = https://ftp.sh.cvut.cz/artix-linux/$repo/os/$arch
Server = https://artix.unixpeople.org/repos/$repo/os/$arch
Server = https://artix.cccp.io/$repo/os/$arch

The pacman.config

Code: [Select]
#
# /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 -C - -f %u > %o
#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
#TotalDownload
# We cannot check disk space from within a chroot environment
CheckSpace
VerbosePkgLists
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
#SigLevel    = Never
LocalFileSigLevel = Optional
#LocalFileSigLevel = Never
#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 Manjaro Linux
# packagers with `pacman-key --populate archlinux manjaro`.

#
# 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 testing 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.

# Artix repos
#[goblins]
#Include = /etc/pacman.d/mirrorlist

[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

# Arch repos, overriden and [core] disabled
# [core]
# Include = /etc/pacman.d/mirrorlist-arch

#[staging]
#Include = /etc/pacman.d/mirrorlist-arch

[testing]
Include = /etc/pacman.d/mirrorlist-arch

[extra]
Include = /etc/pacman.d/mirrorlist-arch

[community-testing]
Include = /etc/pacman.d/mirrorlist-arch

[community]
Include = /etc/pacman.d/mirrorlist-arch

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.
[multilib-testing]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist-arch

[multilib]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist-arch

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

pacman.configpacnew:

Code: [Select]
#
# /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
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
Color
#NoProgressBar
ParallelDownloads = 5
CheckSpace
VerbosePkgLists
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

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs



Re: Problem with running pacman

Reply #2
Do you have the archlinux-mirrorlist package installed, it provides the missing file?
system/archlinux-mirrorlist
In pacman.conf you have some repos from Arch enabled which require this, for example:
[testing]
Include = /etc/pacman.d/mirrorlist-arch

You also have testing & gremlins repos enabled which is fine if you need or want that, but you may encounter fewer potential issues using the stable repos.

Oh yes, and read that thread as Artoo says you might need a new package installed now if you use Arch repos:
artix-archlinux-support

Re: Problem with running pacman

Reply #3
Doing
Code: [Select]
sudo mv /etc/pacman.d/mirrorlist.pacnew /etc/pacman.d/mirrorlist
gives me
Code: [Select]
mv: cannot stat '/etc/pacman.d/mirrorlist.pacnew': No such file or directory

I don't have installed archlinux-mirrorlist package. I tried adding testing and when I do sudo pacman -Sy I get too much errors for extra, community, chaotic-aur and testing

Code: [Select]
:: Synchronizing package databases...
 system is up to date
 extra.db failed to download
 community.db failed to download
 world is up to date
 galaxy-gremlins is up to date
 galaxy is up to date
 chaotic-aur.db failed to download
 testing.db failed to download
 lib32-gremlins is up to date
 lib32 is up to date
error: failed retrieving file 'extra.db' from mirrors.dotsrc.org : 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 'extra.db' from ftp.ntua.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 'chaotic-aur.db' from mirrors.dotsrc.org : The requested URL returned error: 404
warning: too many errors from mirrors.dotsrc.org, skipping for the remainder of this transaction
error: failed retrieving file 'testing.db' from mirrors.dotsrc.org : The requested URL returned error: 404
error: failed retrieving file 'chaotic-aur.db' from ftp.ntua.gr : The requested URL returned error: 404
warning: too many errors from ftp.ntua.gr, skipping for the remainder of this transaction
error: failed retrieving file 'testing.db' from ftp.ntua.gr : The requested URL returned error: 404
error: failed retrieving file 'extra.db' from ftp.cc.uoc.gr : 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 'chaotic-aur.db' from ftp.cc.uoc.gr : The requested URL returned error: 404
warning: too many errors from ftp.cc.uoc.gr, skipping for the remainder of this transaction
error: failed retrieving file 'testing.db' from ftp.cc.uoc.gr : The requested URL returned error: 404
error: failed retrieving file 'community.db' from quantum-mirror.hu : The requested URL returned error: 404
error: failed retrieving file 'extra.db' from quantum-mirror.hu : The requested URL returned error: 404
error: failed retrieving file 'chaotic-aur.db' from quantum-mirror.hu : The requested URL returned error: 404
warning: too many errors from quantum-mirror.hu, skipping for the remainder of this transaction
error: failed retrieving file 'community.db' from ftp.sh.cvut.cz : The requested URL returned error: 404
error: failed retrieving file 'chaotic-aur.db' from ftp.sh.cvut.cz : The requested URL returned error: 404
error: failed retrieving file 'extra.db' from ftp.sh.cvut.cz : The requested URL returned error: 404
warning: too many errors from ftp.sh.cvut.cz, skipping for the remainder of this transaction
error: failed retrieving file 'testing.db' from quantum-mirror.hu : The requested URL returned error: 404
error: failed retrieving file 'chaotic-aur.db' from artix.unixpeople.org : The requested URL returned error: 404
error: failed retrieving file 'extra.db' from artix.unixpeople.org : The requested URL returned error: 404
error: failed retrieving file 'community.db' from artix.unixpeople.org : The requested URL returned error: 404
warning: too many errors from artix.unixpeople.org, skipping for the remainder of this transaction
error: failed retrieving file 'testing.db' from artix.unixpeople.org : The requested URL returned error: 404
error: failed retrieving file 'chaotic-aur.db' from artix.cccp.io : The requested URL returned error: 404
error: failed retrieving file 'extra.db' from artix.cccp.io : The requested URL returned error: 404
error: failed retrieving file 'community.db' from artix.cccp.io : The requested URL returned error: 404
warning: too many errors from artix.cccp.io, skipping for the remainder of this transaction
error: failed retrieving file 'testing.db' from artix.cccp.io : The requested URL returned error: 404
error: failed retrieving file 'chaotic-aur.db' from mirror.linux.pizza : The requested URL returned error: 404
error: failed retrieving file 'extra.db' from mirror.linux.pizza : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.linux.pizza : The requested URL returned error: 404
warning: too many errors from mirror.linux.pizza, skipping for the remainder of this transaction
error: failed retrieving file 'extra.db' from mirrors.redcorelinux.org : The requested URL returned error: 404
error: failed retrieving file 'chaotic-aur.db' from mirrors.redcorelinux.org : The requested URL returned error: 404
error: failed retrieving file 'testing.db' from mirror.linux.pizza : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirrors.redcorelinux.org : The requested URL returned error: 404
warning: too many errors from mirrors.redcorelinux.org, skipping for the remainder of this transaction
error: failed retrieving file 'testing.db' from mirrors.redcorelinux.org : The requested URL returned error: 404
error: failed retrieving file 'extra.db' from mirror.one.com : The requested URL returned error: 404
error: failed retrieving file 'chaotic-aur.db' from mirror.one.com : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.one.com : The requested URL returned error: 404
warning: too many errors from mirror.one.com, skipping for the remainder of this transaction
error: failed retrieving file 'testing.db' from mirror.one.com : The requested URL returned error: 404
error: failed retrieving file 'chaotic-aur.db' from mirror.pascalpuffke.de : The requested URL returned error: 404
error: failed retrieving file 'extra.db' from mirror.pascalpuffke.de : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.pascalpuffke.de : The requested URL returned error: 404
warning: too many errors from mirror.pascalpuffke.de, skipping for the remainder of this transaction
error: failed retrieving file 'testing.db' from mirror.pascalpuffke.de : The requested URL returned error: 404
error: failed retrieving file 'extra.db' from linuxer.ellak.gr : The requested URL returned error: 404
error: failed retrieving file 'chaotic-aur.db' from linuxer.ellak.gr : The requested URL returned error: 404
error: failed retrieving file 'community.db' from linuxer.ellak.gr : The requested URL returned error: 404
warning: too many errors from linuxer.ellak.gr, skipping for the remainder of this transaction
error: failed retrieving file 'testing.db' from linuxer.ellak.gr : The requested URL returned error: 404
error: failed retrieving file 'extra.db' from artixlinux.qontinuum.space:4443 : The requested URL returned error: 404
error: failed retrieving file 'chaotic-aur.db' from artixlinux.qontinuum.space:4443 : The requested URL returned error: 404
error: failed retrieving file 'community.db' from artixlinux.qontinuum.space:4443 : The requested URL returned error: 404
warning: too many errors from artixlinux.qontinuum.space:4443, skipping for the remainder of this transaction
error: failed retrieving file 'extra.db' from mirror.easylee.nl : The requested URL returned error: 404
error: failed retrieving file 'chaotic-aur.db' from mirror.easylee.nl : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.easylee.nl : The requested URL returned error: 404
warning: too many errors from mirror.easylee.nl, skipping for the remainder of this transaction
error: failed retrieving file 'testing.db' from artixlinux.qontinuum.space:4443 : The requested URL returned error: 404
error: failed retrieving file 'extra.db' from mirror1.artixlinux.org : The requested URL returned error: 404
error: failed retrieving file 'chaotic-aur.db' from mirror1.artixlinux.org : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror1.artixlinux.org : The requested URL returned error: 404
warning: too many errors from mirror1.artixlinux.org, skipping for the remainder of this transaction
error: failed retrieving file 'testing.db' from mirror1.artixlinux.org : The requested URL returned error: 404
error: failed retrieving file 'chaotic-aur.db' from eu-mirror.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 'extra.db' from eu-mirror.artixlinux.org : The requested URL returned error: 404
warning: too many errors from eu-mirror.artixlinux.org, skipping for the remainder of this transaction
error: failed retrieving file 'testing.db' from eu-mirror.artixlinux.org : The requested URL returned error: 404
error: failed retrieving file 'chaotic-aur.db' from artix.wheaton.edu : 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 'extra.db' from artix.wheaton.edu : The requested URL returned error: 404
warning: too many errors from artix.wheaton.edu, skipping for the remainder of this transaction
error: failed retrieving file 'testing.db' from artix.wheaton.edu : The requested URL returned error: 404
error: failed retrieving file 'chaotic-aur.db' from mirror.clarkson.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 'extra.db' from mirror.clarkson.edu : The requested URL returned error: 404
warning: too many errors from mirror.clarkson.edu, skipping for the remainder of this transaction
error: failed retrieving file 'testing.db' from mirror.clarkson.edu : The requested URL returned error: 404
error: failed retrieving file 'chaotic-aur.db' from us-mirror.artixlinux.org : 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 'extra.db' from us-mirror.artixlinux.org : The requested URL returned error: 404
warning: too many errors from us-mirror.artixlinux.org, skipping for the remainder of this transaction
error: failed retrieving file 'testing.db' from us-mirror.artixlinux.org : 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 'chaotic-aur.db' from www.nylxs.com : The requested URL returned error: 404
error: failed retrieving file 'extra.db' from www.nylxs.com : The requested URL returned error: 404
warning: too many errors from www.nylxs.com, skipping for the remainder of this transaction
error: failed retrieving file 'testing.db' from www.nylxs.com : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirrors.nettek.us : The requested URL returned error: 404
error: failed retrieving file 'chaotic-aur.db' from mirrors.nettek.us : The requested URL returned error: 404
error: failed retrieving file 'extra.db' from mirrors.nettek.us : The requested URL returned error: 404
warning: too many errors from mirrors.nettek.us, skipping for the remainder of this transaction
error: failed retrieving file 'testing.db' from mirrors.nettek.us : The requested URL returned error: 404
error: failed retrieving file 'testing.db' from mirrors.tuna.tsinghua.edu.cn : 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 'testing.db' from mirrors.cloud.tencent.com : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirrors.cloud.tencent.com : The requested URL returned error: 404
error: failed retrieving file 'testing.db' from mirror.maakpain.kro.kr : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.maakpain.kro.kr : The requested URL returned error: 404
error: failed retrieving file 'chaotic-aur.db' from mirrors.tuna.tsinghua.edu.cn : The requested URL returned error: 404
warning: too many errors from mirrors.tuna.tsinghua.edu.cn, skipping for the remainder of this transaction
error: failed retrieving file 'testing.db' from artix.funami.tech : The requested URL returned error: 500
error: failed retrieving file 'extra.db' from mirrors.tuna.tsinghua.edu.cn : The requested URL returned error: 404
error: failed retrieving file 'community.db' from artix.funami.tech : The requested URL returned error: 500
error: failed retrieving file 'chaotic-aur.db' from mirrors.cloud.tencent.com : The requested URL returned error: 404
warning: too many errors from mirrors.cloud.tencent.com, skipping for the remainder of this transaction
error: failed retrieving file 'chaotic-aur.db' from mirror.maakpain.kro.kr : The requested URL returned error: 404
warning: too many errors from mirror.maakpain.kro.kr, skipping for the remainder of this transaction
error: failed retrieving file 'extra.db' from mirrors.cloud.tencent.com : The requested URL returned error: 404
error: failed retrieving file 'chaotic-aur.db' from artix.funami.tech : The requested URL returned error: 500
warning: too many errors from artix.funami.tech, skipping for the remainder of this transaction
error: failed retrieving file 'extra.db' from artix.funami.tech : The requested URL returned error: 500
error: failed to synchronize all databases (failed to retrieve some files)

I'm still a noob, how can I install artix-archlinux-support package without makepkg -sri or pacman -S?

Re: Problem with running pacman

Reply #4
I think all you need to do is edit /etc/pacman.conf and #comment out the Arch Linux and chaotic aur repos temporarily, then install the missing packages, and uncomment those entries again. I just tried that and it didn't cause any issues, possibly you will get some warnings but it should function to allow you to install Artix repo packages normally. Try to avoid installing more than is required and doing Syu until you have fixed this, in case you get version issues, ie a package from extra or community might not work if it depends on other packages you updated from Artix although you could still potentially downgrade then.
It's also possible to download packages in your browser and install with pacman -U, but it sounds like that option isn't working for you either.
http://mirror1.artixlinux.org/repos/galaxy/os/x86_64/

 

Re: Problem with running pacman

Reply #5
1. download https://archive.artixlinux.org/packages/a/archlinux-mirrorlist/archlinux-mirrorlist-20200920-1-any.pkg.tar.zst
and install with
Code: [Select]
pacman -U archlinux-mirrorlist-20200920-1-any.pkg.tar.zst

'chaotic-aur.db' 'community.db' 'extra.db' exist in eu-mirror.artixlinux.org  really NOT! Why? they are no artix's repos, so

2. read WIKI !!! https://wiki.artixlinux.org/Main/Repositories#Stable and modify your pacman.conf , that artixlinux packages retrieve his packages from mirrorlist and archlinux's packages retrieve his packages from mirrorlist-arch

Note: testing? why you have enabled testing? as noob you should use stable repos only!

chaotic-aur.db have HIS OWN address, from which he recieve package. artixlinux's mirrorlist NOR archlinux's mirrorlist-arch!

Do you understand, what you should do?

Re: Problem with running pacman

Reply #6
Thanks that solved the problem, also updating arch mirror list helped.

Note: testing? why you have enabled testing? as noob you should use stable repos only!

chaotic-aur.db have HIS OWN address, from which he recieve package. artixlinux's mirrorlist NOR archlinux's mirrorlist-arch!

I wasn't really using chaotic-aur and testing just read and tried some other solutions if they work from forum but did not.