Pacman fails to update system or install a package

i tried to update the system and fetch good mirrors , the mirrors fail to be fetched and when i update it shows this error


welp

:bangbang: Please post the terminal output as text. It will possible then to quote and comment on it. Thanks!

Try:

reflector --latest 7 --rate sort --protocol https | sudo tee /etc/pacman.d/mirrorlist

to refresh your mirrors.

If that fails, go to https://archlinux.org/mirrorlist/ and generate a mirrorlist.
Edit the file and uncomment the servers you want. Replace your current mirrorlist with this file.

Then:

sudo pacman -Syu

Recently another user had a similar issue. They had tried a series of different things, among which, sudo pacman -Scc to clear the package cache. If the above won’t work, try this and see if you will be able to resolve the issue.

same error

Did you get a fresh mirrorlist?
If so, try:

sudo pacman-db-upgrade

sudo rm -r /var/lib/pacman/sync/

sudo pacman -Scc

sudo pacman -Syyu

In case of failure, have a look at this solved thread with similar issue and see if there are other suggestions to try:

I have no issues if I run pacman but yay is giving me this error (even after clearing pacman’s cache):

 endeavouros is up to date
 core is up to date
 extra is up to date
 multilib is up to date
:: Searching AUR for updates...
:: Searching databases for updates...
 -> 1 error occurred:
	* response decoding failed: invalid character '<' looking for beginning of value

I have the same problem. Started just now :frowning:

Please open a new thread to get help with your specific issue.

could be because aur is currently under maintenance
https://aur.archlinux.org/

4 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.