Error preventing update

I get the following after

sudo pacman -Syu

: Synchronizing package databases...
 core is up to date
 extra is up to date
 multilib is up to date
:: Starting full system upgrade...
error: could not read db 'extra' (Damaged tar archive (bad header checksum))

Then I just keep getting that line repeated and need to quit the update. Any ideas? I refreshed mirrors and got the same error afterwards.

Update your mirrors properly, first:

sudo pacman-mirrors --country all && sudo pacman -Syu

It could be that your current mirror is out of sync.

2 Likes

Hi @whutch1,

Try the following:

pamac upgrade --force-refresh

Thanks for the reply - this didn’t work. I got the same error.

Then clean your package cache by

sudo pacman -Scc

and try again.

You could also verify what mirror you are currently using, exactly. It’s defined in /etc/pacman.d/mirrorlist. This file could be modified. If you always have a non-working mirror on top of the list, then just delete (or out-comment with #) the corresponding line.

I got the same error.

Here is what I see when I read /etc/pacman.d/mirrorlist (though I am not sure what this tells me or what I should do with it):

##
## Manjaro Linux default mirrorlist
## Generated on 2025-03-22 15:24
##
## Please use 'pacman-mirrors -f [NUMBER] [NUMBER]' to modify mirrorlist
## (Use 0 for all mirrors)
##

## Country : Netherlands
Server = http://ftp.snt.utwente.nl/pub/linux/manjaro/stable/$repo/$arch

## Country : Belgium
Server = http://ftp.belnet.be/mirrors/manjaro/repos/stable/$repo/$arch

## Country : Global
Server = https://mirrors.manjaro.org/repo/stable/$repo/$arch

## Country : Netherlands
Server = https://mirror.koddos.net/manjaro/stable/$repo/$arch

## Country : Global
Server = https://mirrors2.manjaro.org/stable/$repo/$arch

## Country : France
Server = https://manjaro.ynh.ovh/stable/$repo/$arch

## Country : Belgium
Server = https://mirror.futureweb.be/manjaro/stable/$repo/$arch

## Country : Netherlands
Server = https://manjaro.mirror.wearetriple.com/stable/$repo/$arch

## Country : France
Server = http://ftp.free.org/mirrors/repo.manjaro.org/repos/stable/$repo/$arch

## Country : Germany
Server = https://manjaro.kurdy.org/stable/$repo/$arch

## Country : France
Server = https://mirrors.eric.ovh/manjaro/stable/$repo/$arch

## Country : United_Kingdom
Server = https://ask4.mm.fcix.net/manjaro/stable/$repo/$arch

## Country : Switzerland
Server = https://mirror.init7.net/manjaro/stable/$repo/$arch

## Country : Germany
Server = https://mirror.23m.com/manjaro/stable/$repo/$arch

## Country : Global
Server = https://mirrors.cicku.me/manjaro/stable/$repo/$arch

## Country : Netherlands
Server = https://mirror.bouwhuis.network/manjaro/stable/$repo/$arch

## Country : United_Kingdom
Server = https://www.mirrorservice.org/sites/repo.manjaro.org/repos/stable/$repo/$arch

## Country : Austria
Server = https://mirror.easyname.at/manjaro/stable/$repo/$arch

## Country : Germany
Server = https://mirror.alpix.eu/manjaro/stable/$repo/$arch

## Country : Austria
Server = https://mirror.alwyzon.net/manjaro/stable/$repo/$arch

## Country : Czechia
Server = https://mirror.it4i.cz/manjaro/stable/$repo/$arch

## Country : Germany
Server = https://mirror.netcologne.de/manjaro/stable/$repo/$arch

## Country : United_Kingdom
Server = http://manjaro.mirrors.uk2.net/stable/$repo/$arch

## Country : Czechia
Server = https://mirrors.nic.cz/manjaro/stable/$repo/$arch

## Country : Germany
Server = https://ftp.halifax.rwth-aachen.de/manjaro/stable/$repo/$arch

## Country : Germany
Server = https://ftp.gwdg.de/pub/linux/manjaro/stable/$repo/$arch

## Country : Poland
Server = https://ftp.psnc.pl/linux/manjaro/stable/$repo/$arch

## Country : France
Server = https://mirror.ibakerserver.pt/manjaro/stable/$repo/$arch

## Country : Czechia
Server = https://mirror.dkm.cz/manjaro/stable/$repo/$arch

## Country : Spain
Server = https://mirror.raiolanetworks.com/manjaro/stable/$repo/$arch

## Country : Sweden
Server = https://mirror.zetup.net/manjaro/stable/$repo/$arch

## Country : Serbia
Server = https://mirror1.sox.rs/manjaro/stable/$repo/$arch

## Country : Germany
Server = http://ftp.rz.tu-bs.de/pub/mirror/manjaro.org/repos/stable/$repo/$arch

## Country : Bulgaria
Server = https://manjaro.ipacct.com/manjaro/stable/$repo/$arch

## Country : Sweden
Server = https://ftpmirror1.infania.net/mirror/manjaro/stable/$repo/$arch

## Country : Sweden
Server = https://ftp.lysator.liu.se/pub/manjaro/stable/$repo/$arch

## Country : Portugal
Server = https://mirror.leitecastro.com/manjaro/stable/$repo/$arch

## Country : Bulgaria
Server = https://mirror.telepoint.bg/manjaro/stable/$repo/$arch

## Country : Ukraine
Server = https://mirror.hostiko.network/manjaro/stable/$repo/$arch

## Country : Russia
Server = https://mirror.yandex.ru/mirrors/manjaro/stable/$repo/$arch

## Country : Portugal
Server = https://mirrors.up.pt/pub/manjaro/stable/$repo/$arch

## Country : Italy
Server = https://manjaro.mirror.garr.it/manjaro/stable/$repo/$arch

## Country : Hungary
Server = https://quantum-mirror.hu/mirrors/pub/manjaro/stable/$repo/$arch

## Country : Turkey
Server = https://ftp.linux.org.tr/manjaro/stable/$repo/$arch

## Country : Georgia
Server = http://manjaro.grena.ge/stable/$repo/$arch

## Country : Italy
Server = https://ct.mirror.garr.it/mirrors/manjaro/stable/$repo/$arch

## Country : United_States
Server = https://cofractal-ewr.mm.fcix.net/manjaro/stable/$repo/$arch

## Country : United_States
Server = https://forksystems.mm.fcix.net/manjaro/stable/$repo/$arch

## Country : Italy
Server = https://ba.mirror.garr.it/mirrors/manjaro/stable/$repo/$arch

## Country : United_States
Server = https://coresite.mm.fcix.net/manjaro/stable/$repo/$arch

## Country : Greece
Server = https://ftp.cc.uoc.gr/mirrors/linux/manjaro/stable/$repo/$arch

## Country : United_States
Server = https://nnenix.mm.fcix.net/manjaro/stable/$repo/$arch

## Country : Russia
Server = https://mirror.truenetwork.ru/manjaro/stable/$repo/$arch

## Country : United_States
Server = https://mirror.math.princeton.edu/pub/manjaro/stable/$repo/$arch

## Country : United_States
Server = https://mirrors.gigenet.com/manjaro/stable/$repo/$arch

## Country : Canada
Server = https://mirror.csclub.uwaterloo.ca/manjaro/stable/$repo/$arch

## Country : Canada
Server = https://mirror.xenyth.net/manjaro/stable/$repo/$arch

## Country : United_States
Server = https://southfront.mm.fcix.net/manjaro/stable/$repo/$arch

## Country : United_States
Server = https://repo.ialab.dsu.edu/manjaro/stable/$repo/$arch

## Country : United_States
Server = https://ohioix.mm.fcix.net/manjaro/stable/$repo/$arch

## Country : United_States
Server = https://nocix.mm.fcix.net/manjaro/stable/$repo/$arch

## Country : United_States
Server = http://mirror.fcix.net/manjaro/stable/$repo/$arch

## Country : United_States
Server = https://mnvoip.mm.fcix.net/manjaro/stable/$repo/$arch

## Country : South_Africa
Server = http://manjaro.mirror.ac.za/stable/$repo/$arch

## Country : United_States
Server = https://irltoolkit.mm.fcix.net/manjaro/stable/$repo/$arch

## Country : Canada
Server = https://muug.ca/mirror/manjaro/stable/$repo/$arch

## Country : United_States
Server = https://codingflyboy.mm.fcix.net/manjaro/stable/$repo/$arch

## Country : United_States
Server = https://opencolo.mm.fcix.net/manjaro/stable/$repo/$arch

## Country : United_States
Server = https://ridgewireless.mm.fcix.net/manjaro/stable/$repo/$arch

## Country : United_States
Server = https://mirrors.ocf.berkeley.edu/manjaro/stable/$repo/$arch

## Country : United_States
Server = https://volico.mm.fcix.net/manjaro/stable/$repo/$arch

## Country : United_States
Server = https://mirrors.sonic.net/manjaro/stable/$repo/$arch

## Country : Bangladesh
Server = https://bd.mirror.vanehost.com/Manjaro/stable/$repo/$arch

## Country : Colombia
Server = https://edgeuno-bog2.mm.fcix.net/manjaro/stable/$repo/$arch

## Country : United_States
Server = https://ziply.mm.fcix.net/manjaro/stable/$repo/$arch

## Country : Singapore
Server = http://ossmirror.mycloud.services/os/linux/manjaro/stable/$repo/$arch

## Country : Uruguay
Server = https://manjaro.repo.cure.edu.uy/stable/$repo/$arch

## Country : Singapore
Server = https://mirror.freedif.org/Manjaro/stable/$repo/$arch

## Country : Russia
Server = https://mirror.kamtv.ru/manjaro/stable/$repo/$arch

## Country : Costa_Rica
Server = https://mirrors.ucr.ac.cr/manjaro/stable/$repo/$arch

## Country : Japan
Server = http://ftp.tsukuba.wide.ad.jp/Linux/manjaro/stable/$repo/$arch

## Country : Brazil
Server = https://manjaro.c3sl.ufpr.br/stable/$repo/$arch

## Country : Mauritius
Server = https://manjarolinux-mirror.cloud.mu/stable/$repo/$arch

## Country : China
Server = https://mirror.nyist.edu.cn/manjaro/stable/$repo/$arch

## Country : Spain
Server = https://ftp.caliu.cat/pub/distribucions/manjaro/stable/$repo/$arch

## Country : Brazil
Server = https://mirror.ufam.edu.br/manjaro/stable/$repo/$arch

## Country : China
Server = https://mirror.nju.edu.cn/manjaro/stable/$repo/$arch

## Country : Japan
Server = https://mirror.phoepsilonix.love/manjaro/stable/$repo/$arch

## Country : South_Africa
Server = http://mirror.is.co.za/mirrors/manjaro.org/stable/$repo/$arch

## Country : China
Server = https://mirrors.tuna.tsinghua.edu.cn/manjaro/stable/$repo/$arch

## Country : Taiwan
Server = https://mirror.archlinux.tw/Manjaro/stable/$repo/$arch

## Country : Chile
Server = https://mirror.ufro.cl/manjaro/stable/$repo/$arch

## Country : Australia
Server = https://gsl-syd.mm.fcix.net/manjaro/stable/$repo/$arch

## Country : Kenya
Server = https://manjaro.mirror.liquidtelecom.com/stable/$repo/$arch

## Country : China
Server = https://mirrors.jlu.edu.cn/manjaro/stable/$repo/$arch

## Country : Bangladesh
Server = http://mirror.xeonbd.com/manjaro/stable/$repo/$arch

## Country : Australia
Server = https://mirror.aarnet.edu.au/pub/manjaro/stable/$repo/$arch

## Country : New_Zealand
Server = https://mirror.2degrees.nz/manjaro/stable/$repo/$arch

Your server on top of the list seams to be sync’d. So that’s not the problem. Can be verified here:

https://repo.manjaro.org/

If you have cleaned your cache I would recommend a slightly different syntax:

sudo pacman -Syyu

The mirrorlist tells you where manjaro is looking for repo packages when installing or updating packages. They are not always sync’d and sometimes access to some of them is slow, therefore the list tell’s what alternative package could be used during this process.

1 Like

Yes, I had cleared my cache. I then tried

sudo pacman -Syyu

and it worked, though I don’t exactly understand why!

Thank you for your help!

1 Like

The second y completely refreshes the database. With only one y existing cache on your computer is used to protect the download ressources from excessive use. If it is corrupted somehow locally a refresh helps.

It’s worth to have a look into the wiki:

where it might be explained a bit more precise.

2 Likes

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