You are not logged in.

#1 2024-09-16 05:54:20

ThomasDKV
Member
Registered: 2024-08-20
Posts: 5

[SOLVED]pacman -Syu multilib.db core.db cant be retrieved/unrecognized

I don't even know why this error happens. This is the first time I have seen it, and I don't think I did anything stupid to generate this error. I was trying to update my packages like usual via `sudo pacman -Syu`, but suddenly, I got this error:

 sam@ALSam  ~  sudo pacman -Syu
[sudo] password for root: 
:: Synchronizing package databases...
 core                                                                         7.4 MiB  12.6 MiB/s 00:01 [##############################################################] 100%
 extra is up to date
 multilib is up to date
error: failed retrieving file 'multilib.db' from mirrors.pablonara.com : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
:: Starting full system upgrade...
error: could not open file /var/lib/pacman/sync/core.db: Unrecognized archive format
error: failed to prepare transaction (invalid or corrupted database)

Can anyone tell me what is happening, and how do I troubleshoot and fix this?

Thank you so much!

Last edited by ThomasDKV (2024-09-16 14:40:40)

Offline

#2 2024-09-16 06:05:01

mithrial
Member
Registered: 2017-03-05
Posts: 34

Re: [SOLVED]pacman -Syu multilib.db core.db cant be retrieved/unrecognized

It look like your chosen mirror is currently not working correctly. Select another one and resync again.

Offline

#3 2024-09-16 06:26:01

ThomasDKV
Member
Registered: 2024-08-20
Posts: 5

Re: [SOLVED]pacman -Syu multilib.db core.db cant be retrieved/unrecognized

mithrial wrote:

It look like your chosen mirror is currently not working correctly. Select another one and resync again.

I just did it, and now I got this error:

 ✘ sam@ALSam  ~  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 open file /var/lib/pacman/sync/core.db: Unrecognized archive format
error: failed to prepare transaction (invalid or corrupted database)

Here is what I see in /var/lib/pacman/sync/core.db:
https://imgur.com/a/1nRQjFT

Last edited by ThomasDKV (2024-09-16 06:38:45)

Offline

#4 2024-09-16 07:09:54

seth
Member
Registered: 2012-09-03
Posts: 57,553

Re: [SOLVED]pacman -Syu multilib.db core.db cant be retrieved/unrecognized

stat /var/lib/pacman/sync/core.db
file /var/lib/pacman/sync/core.db

And you've official permission (well… by me) to try

sudo pacman -Syyu

(the second "y" forces a database update, even if it looks up to date)

Offline

#5 2024-09-16 14:34:39

ThomasDKV
Member
Registered: 2024-08-20
Posts: 5

Re: [SOLVED]pacman -Syu multilib.db core.db cant be retrieved/unrecognized

seth wrote:
stat /var/lib/pacman/sync/core.db
file /var/lib/pacman/sync/core.db

I got this:

 ✘ sam@ALSam  ~  stat /var/lib/pacman/sync/core.db
  File: /var/lib/pacman/sync/core.db
  Size: 7753551   	Blocks: 15144      IO Block: 4096   regular file
Device: 259,3	Inode: 43909724    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2024-09-16 02:23:00.143443203 -0400
Modify: 2024-09-16 02:22:39.820108794 -0400
Change: 2024-09-16 02:22:39.823442128 -0400
 Birth: 2024-09-16 02:22:39.146775426 -0400
 sam@ALSam  ~  file /var/lib/pacman/sync/core.db
/var/lib/pacman/sync/core.db: data
seth wrote:

And you've official permission (well… by me) to try

sudo pacman -Syyu

(the second "y" forces a database update, even if it looks up to date)

Thank you for this. It works. I run sudo pacman -Syu after and it runs flawlessly.

I did the stat and file again after, and this is what I get:

 sam@ALSam  ~  stat /var/lib/pacman/sync/core.db
  File: /var/lib/pacman/sync/core.db
  Size: 119976    	Blocks: 240        IO Block: 4096   regular file
Device: 259,3	Inode: 43909636    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2024-09-16 10:23:46.628841949 -0400
Modify: 2024-09-14 14:40:33.000000000 -0400
Change: 2024-09-16 10:23:44.852175188 -0400
 Birth: 2024-09-16 10:23:44.638841844 -0400
 sam@ALSam  ~  file /var/lib/pacman/sync/core.db
/var/lib/pacman/sync/core.db: gzip compressed data, from Unix, original size modulo 2^32 593920

Offline

Board footer

Powered by FluxBB