You are not logged in.
I was going about my business, updating one of my private servers, and I encounter these severe issues
https://i.imgur.com/ISFR6DI.png
[dae@wg sync]$ sudo pacman -Syu
:: Synchronizing package databases...
core 614.0 KiB 865 KiB/s 00:01 [########################################] 100%
extra 614.0 KiB 1462 KiB/s 00:00 [########################################] 100%
community 614.0 KiB 2.07 MiB/s 00:00 [########################################] 100%
multilib 614.0 KiB 2047 KiB/s 00:00 [########################################] 100%
:: Starting full system upgrade...
error: could not open file /var/lib/pacman/sync/core.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/community.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/multilib.db: Unrecognized archive format
there is nothing to do
I am unable to use anything from the core repositories, and it thinks that Core Repo packages (such as xfce4, linux, base, base-devel, gcc) are all AUR packages with missing entries on the AUR
https://i.imgur.com/lzqEzw5.png
[dae@wg sync]$ pacman --version
.--. Pacman v6.0.0 - libalpm v13.0.0
/ _.-' .-. .-. .-. Copyright (C) 2006-2021 Pacman Development Team
\ '-. '-' '-' '-' Copyright (C) 2002-2006 Judd Vinet
'--'
This program may be freely redistributed under
the terms of the GNU General Public License.
Last edited by merith-tk (2021-07-25 15:46:40)
Offline
file /var/lib/pacman/sync/core.db
It's likely a captive portal, some not-404 page or else.
In that case try
sudo pacman -Syyu
Offline
[dae@wg ~]$ file /var/lib/pacman/sync/core.db
/var/lib/pacman/sync/core.db: HTML document, ASCII text, with very long lines (65536), with no line terminators
Downloaded it locally, renamed it to html and opened it in my browser..
https://i.imgur.com/0dS2iQA.png
it appears one of the mirrors has been hijacked
Offline
yes bad mirror https://bbs.archlinux.org/viewtopic.php … 8#p1984068
lts - zsh - Kde - Intel Core i3 - 6Go RAM - GeForce 405 video-nouveau
Offline
I had to regenerate my mirrorlist from
https://archlinux.org/mirrorlist/?count … _status=on
and then
sed -i "s/#Serv/Serv/" mirrorlist
and now it actually works
Offline
https://archlinux.org/packages/community/any/reflector/
Edit: Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Last edited by seth (2021-07-25 16:46:43)
Offline
I figured out why I kept getting Unrecognized archive format, maybe this will help others:
timedatectl set-ntp true
make sure the time is synchronized
edit: nope, still get them. this is strange. worked while installing, after booting I get the same issue. and worked once after booting, but now I keep getting the error. deleted the db files, tried -Scc, nothing.
2nd edit: I deleted everything in /etc/pacman.d/mirrorlist and kept only one server from my country. now seems to work fine. seems it autoselects some server that doesn't play nice or something.
Last edited by qu@rk (2021-07-29 18:03:50)
Offline
seems it autoselects some server that doesn't play nice or something.
Do you use reflector to build the mirrorlist?
Offline
Don't know what that is, I just followed the wiki install guide. I'm new to Arch, but I like it!
Offline
I linked it in post #6
Also https://bbs.archlinux.org/viewtopic.php?id=115714
Offline
seth possibly automatic use of reflector by the install media https://gitlab.archlinux.org/archlinux/ … rget.wants
followed by pacstrap copying that mirrorlist to the install unless -M was used.
Offline
I just meant to use it to get to a non-broken mirror list.
Because
I deleted everything in /etc/pacman.d/mirrorlist and kept only one server from my country. now seems to work fine. seems it autoselects some server that doesn't play nice or something.
Don't know what that is
likely means that he had a garbage mirror there, either dated or bad hand-pick.
Offline
I'll check out that link, thanks!
you have exactly 22222 posts atm.
Offline
So, default install usb media made from the image on the website. Boot in it, first command is pacman -Syy, finishes ok. Next pacman -Syu and I get the previously mentioned error. Comes and goes, if I insist with pacman -Syu it eventually works. I ran reflector and I get a scrolling list of all the servers. I ran it and after it again pacman -Syu fails with the db error. But it's strange, if I run it (pacman) a few times it works. I have a HP Pavilion g6. Last night worked fine, today I ran into this type of error.
Since it's working, sort of, I'll continue working on the build atm.
Last edited by qu@rk (2021-07-29 22:56:13)
Offline
yes seems that correctly running reflector always solves this issue for me.
Offline
I noticed a mirrorlist.pacnew file in /etc/pacman.d, meaning the mirror list was not updated. Replaced the mirrorlist with that file and the issue is fixed.
Offline