OpenSSL SSL_read error after fresh installation

After installing the latest Manjaro I tried to update the system. The system fails to update with OpenSSL error.

sudo pacman -Syyu                                                               
:: Synchronizing package databases...
 core                                  166,6 KiB   793 KiB/s 00:00 [####################################] 100%
 extra                                1860,5 KiB  4,82 MiB/s 00:00 [####################################] 100%
 community                               7,0 MiB  7,31 MiB/s 00:01 [####################################] 100%
 multilib                              174,5 KiB   456 KiB/s 00:00 [####################################] 100%
error: failed retrieving file 'extra.db' from mirrors.manjaro.org : OpenSSL SSL_read: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac, errno 0
error: failed retrieving file 'community.db' from mirrors.manjaro.org : OpenSSL SSL_read: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac, errno 0
error: failed retrieving file 'community.db' from manjaro.astra.in.ua : OpenSSL SSL_read: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac, errno 0
error: failed retrieving file 'community.db' from manjaro.moson.eu : OpenSSL SSL_read: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac, errno 0
error: failed retrieving file 'community.db' from mirrors.netix.net : OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
:: Starting full system upgrade...
error: could not parse package description file 'python-sword-1.9.0-5/desc' from db 'community'
error: could not read db 'community' (Damaged tar archive)
error: could not parse package description file 'python-sword-1.9.0-5/desc' from db 'community'
error: could not read db 'community' (Damaged tar archive)

Could you please suggest how I can resolve the issue?

If it were me, I’d follow the advice in this topic. You could start out with a pacman-mirrors (see doc) and rerun pacman. If you still get the errors about the community.db follow the topic.

From the output - it very much looks like there’s a proxy on the connection.

  • Check your network connection
  • Don’t spoof your mac address

It could be caused by a defective ISO - did you verify the ISO for completeness before using it?

Yes, I verified it.
I did not do anything with mac address.

I ran the following commands

$ sudo rm -f /var/lib/pacman/sync/*
$ sudo pacman-mirrors --continent
$ sudo pacman -Syyu

But the issue persists

:: Synchronizing package databases...
 core                                  166,6 KiB   463 KiB/s 00:00 [####################################] 100%
 extra                                1860,5 KiB  1457 KiB/s 00:01 [####################################] 100%
 community                               7,0 MiB  3,33 MiB/s 00:02 [####################################] 100%
 multilib                              174,5 KiB   451 KiB/s 00:00 [####################################] 100%
error: failed retrieving file 'extra.db' from mirrors.netix.net : OpenSSL SSL_read: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac, errno 0
error: failed retrieving file 'community.db' from mirrors.netix.net : OpenSSL SSL_read: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac, errno 0
:: Starting full system upgrade...
error: could not read db 'community' (Damaged tar archive)
error: could not read db 'community' (Damaged tar archive)
error: could not read db 'community' (Damaged tar archive)
error: could not read db 'community' (Damaged tar archive)
...

what does below command tell you?

file /var/lib/pacman/sync/*.db

If it is telling you the content is ascii then it is likely a html error message which you can view using your browser.

Copy the file to your home

cp /var/lib/pacman/sync/community.db ~/check.html

View it in the browser

firefox ~/check.html

In that case I would try a mirror providing http

sudo pacman-mirrors -aP http -c all && sudo pacman -Syyu

After a successful sync you can reset the pool

sudo pacman-mirrors -aP all --continent && sudo pacman -Syy

Here is what I get

$ file /var/lib/pacman/sync/*.db                                                                 
/var/lib/pacman/sync/community.db: gzip compressed data, last modified: Sun Jun 12 14:37:47 2022, from Unix, original size modulo 2^32 44226048
/var/lib/pacman/sync/core.db:      gzip compressed data, last modified: Fri Jun 10 14:35:18 2022, from Unix, original size modulo 2^32 1172992
/var/lib/pacman/sync/extra.db:     gzip compressed data, last modified: Sun Jun 12 13:18:42 2022, from Unix, original size modulo 2^32 14167040
/var/lib/pacman/sync/multilib.db:  gzip compressed data, last modified: Fri Jun 10 17:31:38 2022, from Unix, original size modulo 2^32 1252864

So they seem to be archive files

Since it is SSL errors - I would still try the http mirror approach.

It is unlikely a mirror issue - more an issue local to your system.

Yes, you are right. It seems like the problem is from my ISP.
I connected my laptop to a different ISP and update was successful.
Thank you!

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