You are not logged in.

#1 2018-10-28 14:22:50

tmwatchanan
Member
Registered: 2018-10-07
Posts: 9

Unable to upgrade packages: could not read db 'extra'

I recently updated using `sudo pacman -Syu`, and it was normally successful.
A few moments later, I try to update again, I attach the error messages below.
Any help?

tommiekub@dell3542:~$ sudo pacman -Syyu
:: Synchronizing package databases...
 core                                            136.3 KiB  1165K/s 00:00 [##########################################] 100%
 extra                                          1652.2 KiB  1314K/s 00:01 [##########################################] 100%
 community                                         4.7 MiB  1144K/s 00:04 [##########################################] 100%
 multilib                                        174.3 KiB   885K/s 00:00 [##########################################] 100%
:: Starting full system upgrade...
error: could not read db 'extra' (Damaged tar archive)
error: could not read db 'extra' (Damaged tar archive)
error: could not read db 'extra' (Damaged tar archive)
error: could not read db 'extra' (Damaged tar archive)
error: could not read db 'extra' (Damaged tar archive)
error: could not read db 'extra' (Damaged tar archive)
error: could not read db 'extra' (Damaged tar archive)
error: could not read db 'extra' (Damaged tar archive)
error: could not read db 'extra' (Damaged tar archive)
error: could not read db 'extra' (Damaged tar archive)
error: could not read db 'extra' (Damaged tar archive)
error: could not read db 'extra' (Damaged tar archive)
error: could not read db 'extra' (Damaged tar archive)
...[keep repeating]...

Last edited by tmwatchanan (2018-10-28 14:23:24)

Offline

#2 2018-10-28 14:30:44

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: Unable to upgrade packages: could not read db 'extra'

What is the first mirror in /etc/pacman.d/mirrorlist,  if you change that mirror is the result the same?
Do you normally use `pacman -Syyu` instead of `pacman -Syu`?

Offline

#3 2018-10-28 15:17:42

tmwatchanan
Member
Registered: 2018-10-07
Posts: 9

Re: Unable to upgrade packages: could not read db 'extra'

loqs wrote:

What is the first mirror in /etc/pacman.d/mirrorlist,  if you change that mirror is the result the same?
Do you normally use `pacman -Syyu` instead of `pacman -Syu`?

I have tried to change the mirror link as you suggested. Here's the result.

tommiekub@dell3542:~/dev/freelance/sensebook$ pac -Syyu
:: Synchronizing package databases...
 core                                            136.2 KiB  91.2K/s 00:01 [##########################################] 100%
 extra                                          1647.9 KiB   269K/s 00:06 [##########################################] 100%
 community                                         4.7 MiB   296K/s 00:16 [##########################################] 100%
 multilib                                        174.3 KiB   168K/s 00:01 [##########################################] 100%
:: Starting full system upgrade...
warning: alsa-plugins: local (1.1.7-2) is newer than extra (1.1.7-1)
warning: android-udev: local (20181026-1) is newer than community (20180715-1)
warning: brotli: local (1.0.7-1) is newer than community (1.0.6-1)
warning: hdparm: local (9.57-1) is newer than core (9.56-1)
warning: libvoikko: local (4.2-1) is newer than extra (4.1.1-2)
warning: nodejs: local (11.0.0-1) is newer than community (10.12.0-1)
warning: perl-libwww: local (6.36-1) is newer than extra (6.33-2)
warning: qca: local (2.1.3-2) is newer than extra (2.1.3-1)
warning: wine: local (3.19-1) is newer than multilib (3.18-1)
 there is nothing to do

No, I use `pacman -Syu` all the time, unless this time, as I have been trying some ways to figure this out.

Offline

#4 2018-10-28 16:10:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: Unable to upgrade packages: could not read db 'extra'

You should substitute a good mirror, not a worse one.  The new mirror you selected is horribly out of date to the point of appearing abandonded.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2018-10-28 16:17:14

tmwatchanan
Member
Registered: 2018-10-07
Posts: 9

Re: Unable to upgrade packages: could not read db 'extra'

Trilby wrote:

You should substitute a good mirror, not a worse one.  The new mirror you selected is horribly out of date to the point of appearing abandonded.

Now I have tried different mirrors.

tommiekub@dell3542:~/dev/freelance/sensebook$ pac -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
error: extra database is inconsistent: name mismatch on package php-apache
error: could not read db 'extra' (Damaged tar archive)
error: extra database is inconsistent: name mismatch on package php-apache
error: could not read db 'extra' (Damaged tar archive)
error: extra database is inconsistent: name mismatch on package php-apache
error: could not read db 'extra' (Damaged tar archive)
... [keep repeating] ...

Offline

#6 2018-10-28 16:21:29

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: Unable to upgrade packages: could not read db 'extra'

What mirror(s) are you using?

Also note that with the last command you used just -Syu, you should use -Syyu whenever you change mirrors.  Your last command didn't retrieve a new db from the new mirror.

Make sure you are using a good (current) mirror, and post the output of `pacman -Syyu --debug`.

EDIT: I just looked at your previous thread, and most of the mirrors at the top of your mirrorlist are no longer active arch mirrors.  Use the mirrorlist generator or reflector to pick functional mirrors.

Last edited by Trilby (2018-10-28 16:51:56)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2018-10-29 01:15:18

tmwatchanan
Member
Registered: 2018-10-07
Posts: 9

Re: Unable to upgrade packages: could not read db 'extra'

Trilby wrote:

What mirror(s) are you using?

Also note that with the last command you used just -Syu, you should use -Syyu whenever you change mirrors.  Your last command didn't retrieve a new db from the new mirror.

Make sure you are using a good (current) mirror, and post the output of `pacman -Syyu --debug`.

EDIT: I just looked at your previous thread, and most of the mirrors at the top of your mirrorlist are no longer active arch mirrors.  Use the mirrorlist generator or reflector to pick functional mirrors.

I just changed back and forth between mirrors. 6 hours later, I tried updating again. I'm not quite sure why, but now it works as usual for both `pacman -Syu` and `pacman -Syyu`.

Offline

#8 2018-10-29 13:34:53

papavlos
Member
Registered: 2017-09-23
Posts: 67

Re: Unable to upgrade packages: could not read db 'extra'

In such situations you shoud go to Arch Linux - Mirror List and check which mirror is the most up to date, quickest and nearest to your location. This site is being refreshed even 100 times per 24 hours !
Then modify the /etc/pacman.d/mirrorlist file accordingly (as root).

Arch Mirrors is really an unbridled environment...

And my personal good practice is to check and manage the /etc/pacman.d/mirrorlist file manually on regular basis.

Offline

Board footer

Powered by FluxBB