# Failed to sync and python 2 package when trying to update

**URL:** <https://rebornos.discourse.group/t/failed-to-sync-and-python-2-package-when-trying-to-update/838>\
**Category:** Issues & Assistance\
**Created:** [October 11, 2022, 6:45pm UTC](https://rebornos.discourse.group/t/failed-to-sync-and-python-2-package-when-trying-to-update/838 "2022-10-11T18:45:10Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![rebornosday](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@rebornosday](https://rebornos.discourse.group/u/rebornosday)\
**Post date:** [October 11, 2022, 6:45pm UTC](https://rebornos.discourse.group/t/failed-to-sync-and-python-2-package-when-trying-to-update/838/1 "2022-10-11T18:45:10Z")

</div>

Hello,

I had a similar issue as the post here: [Installer failing due to removed python2 package](https://rebornos.discourse.group/t/installer-failing-due-to-removed-python2-package/831)

I got past the python thing…I forget how…but now it wants me to select a Java runtime as shown here:

 ![image](https://global.discourse-cdn.com/free1/uploads/rebornos/original/1X/ecf203aefc5e0b78e804e39de80a465223edb614.png)

I tried selecting all of these and yet everytime I do and proceed then I get this error popup:

 ![image](https://global.discourse-cdn.com/free1/uploads/rebornos/original/1X/da36ef8810e945083cf8373e15c02697a0fae179.png)

Thanks for reading!

---

<div class="post-metadata">

**Author:** ![CookieSource](https://yyz2.discourse-cdn.com/free1/user_avatar/rebornos.discourse.group/cookiesource/32/16_2.png) [@CookieSource](https://rebornos.discourse.group/u/CookieSource)\
**Post date:** [October 11, 2022, 7:35pm UTC](https://rebornos.discourse.group/t/failed-to-sync-and-python-2-package-when-trying-to-update/838/2 "2022-10-11T19:35:01Z")

</div>

Hi can you run sudo pacman —Syuu in the terminal and give us the output so we can identify what the issue is?

---

<div class="post-metadata">

**Author:** ![rebornosday](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@rebornosday](https://rebornos.discourse.group/u/rebornosday)\
**Post date:** [October 11, 2022, 11:29pm UTC](https://rebornos.discourse.group/t/failed-to-sync-and-python-2-package-when-trying-to-update/838/3 "2022-10-11T23:29:57Z")

</div>

Sure here is what I get:

```auto
sudo pacman -Syu
:: Synchronizing package databases...
 Reborn-OS is up to date
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
error: failed retrieving file 'core.db' from mirrors.evowise.com : Failed to connect to mirrors.evowise.com port 80 after 1 ms: Connection refused
error: failed retrieving file 'extra.db' from mirrors.evowise.com : Failed to connect to mirrors.evowise.com port 80 after 0 ms: Connection refused
error: failed retrieving file 'community.db' from mirrors.evowise.com : Failed to connect to mirrors.evowise.com port 80 after 0 ms: Connection refused
warning: too many errors from mirrors.evowise.com, skipping for the remainder of this transaction
:: Starting full system upgrade...
error: could not open file /var/lib/pacman/sync/multilib.db: Unrecognized archive format
warning: nextcloud: ignoring package upgrade (24.0.3-1 => 24.0.6-1)
error: failed to prepare transaction (invalid or corrupted database)

```

---

<div class="post-metadata">

**Author:** ![rebornosday](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@rebornosday](https://rebornos.discourse.group/u/rebornosday)\
**Post date:** [October 11, 2022, 11:31pm UTC](https://rebornos.discourse.group/t/failed-to-sync-and-python-2-package-when-trying-to-update/838/4 "2022-10-11T23:31:59Z")

</div>

I have pi-hole enabled so I disabled it and get the following when I run it:

```auto
 sudo pacman -Syu
:: Synchronizing package databases...
 Reborn-OS is up to date
 core is up to date
 extra is up to date
 community is up to date
 multilib 632.4 KiB 988 KiB/s 00:01 [##########################################] 100%
:: Starting full system upgrade...
error: could not open file /var/lib/pacman/sync/multilib.db: Unrecognized archive format
warning: nextcloud: ignoring package upgrade (24.0.3-1 => 24.0.6-1)
error: failed to prepare transaction (invalid or corrupted database)

```

---

<div class="post-metadata">

**Author:** ![Rafael](https://yyz2.discourse-cdn.com/free1/user_avatar/rebornos.discourse.group/rafael/32/438_2.png) [@Rafael](https://rebornos.discourse.group/u/Rafael)\
**Post date:** [October 11, 2022, 11:51pm UTC](https://rebornos.discourse.group/t/failed-to-sync-and-python-2-package-when-trying-to-update/838/5 "2022-10-11T23:51:23Z")

</div>

The evowise mirror does not work for Arch Linux. You would have to select another mirror. To do this, you can use _ **reflector** _, or you can use _ **refresh-mirrors** _ (provided you have one of these options on your system).

You could also edit the **/etc/pacman.d/mirrorlist** file, where there should be a list of available mirrors for your system. In that list (which should have several mirrors) what you should do is comment the line where evowise is found; to comment the line (and not take it into account) just add the **#** character at the beginning of the mirror.

Let’s see an example of using reflector. In this example, the fastest and most up-to-date mirrors from the US and Germany will be searched (in this example you will create a mirrorlist file with 100 mirrors):

```auto
sudo reflector --country 'United States' --country Germany --latest 100 --protocol http --protocol https --sort rate --save /etc/pacman.d/mirrorlist

```

You can read about using reflector here:

[https://wiki.archlinux.org/title/reflector](https://wiki.archlinux.org/title/reflector)

Available Arch Linux mirrors and their status can be viewed here:

[https://archlinux.org/mirrors/status/](https://archlinux.org/mirrors/status/)

_ **refresh-mirrors** _

refresh-mirrors is an application available in RebornOS that is responsible for updating and selecting RebornOS and Arch Linux mirrors.

But if you don’t have any of these applications available (reflector or refresh-mirrors) it’s best to edit the mirrorlist.

---

<div class="post-metadata">

**Author:** ![Rafael](https://yyz2.discourse-cdn.com/free1/user_avatar/rebornos.discourse.group/rafael/32/438_2.png) [@Rafael](https://rebornos.discourse.group/u/Rafael)\
**Post date:** [October 11, 2022, 11:53pm UTC](https://rebornos.discourse.group/t/failed-to-sync-and-python-2-package-when-trying-to-update/838/6 "2022-10-11T23:53:09Z")

</div>

If you have no idea how to edit this file, tell me, and I’ll try to help you here.

---

<div class="post-metadata">

**Author:** ![rebornosday](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@rebornosday](https://rebornos.discourse.group/u/rebornosday)\
**Post date:** [October 12, 2022, 5:32pm UTC](https://rebornos.discourse.group/t/failed-to-sync-and-python-2-package-when-trying-to-update/838/8 "2022-10-12T17:32:24Z")

</div>

Hey Rafael,

Thanks for the response! I just commented out the evowise mirror and now I get the below. But I am confused. I am running a RebornOS install from a little over a year ago that I do weekly updates to. The evowise mirror must have come with Reborn? I never customized the mirrors or even touched that file until today. I just do weekly updates and all of a sudden it broke.

Here is my current output now:

```auto
 sudo pacman -Syu
:: Synchronizing package databases...
 Reborn-OS is up to date
 core 156.4 KiB 372 KiB/s 00:00 [######################] 100%
 extra 1721.0 KiB 1721 KiB/s 00:01 [######################] 100%
 community 7.0 MiB 2.21 MiB/s 00:03 [######################] 100%
 multilib is up to date
:: Starting full system upgrade...
error: could not open file /var/lib/pacman/sync/multilib.db: Unrecognized archive format
warning: nextcloud: ignoring package upgrade (24.0.3-1 => 24.0.6-1)
error: failed to prepare transaction (invalid or corrupted database)

```

In the GUI here is what happens now. I no longer have the Java runtime popup:

 ![image](https://global.discourse-cdn.com/free1/uploads/rebornos/original/1X/4d6c84cbd654744d72142ba58400e29f0eee76ae.png)

---

<div class="post-metadata">

**Author:** ![Rafael](https://yyz2.discourse-cdn.com/free1/user_avatar/rebornos.discourse.group/rafael/32/438_2.png) [@Rafael](https://rebornos.discourse.group/u/Rafael)\
**Post date:** [October 12, 2022, 5:52pm UTC](https://rebornos.discourse.group/t/failed-to-sync-and-python-2-package-when-trying-to-update/838/9 "2022-10-12T17:52:44Z")

</div>

This message is obtained when, although the mirror has passed the test, it has an error. It’s a common thing from time to time on Arch Linux. The ideal would be to repeat reflector again or, if you dare to do so, edit the /etc/pacman.d/mirrorlist file, and comment out the first mirror that exists there.  
It is also normal that when you run reflector you get one (or several) error messages about mirrors not working (timeout error, etc).

---

<div class="post-metadata">

**Author:** ![rebornosday](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@rebornosday](https://rebornos.discourse.group/u/rebornosday)\
**Post date:** [October 12, 2022, 7:18pm UTC](https://rebornos.discourse.group/t/failed-to-sync-and-python-2-package-when-trying-to-update/838/10 "2022-10-12T19:18:27Z")

</div>

Ok I ran reflector again and yet after this when running pacman update I get the same error about the database. Here is the full ouput of both:

```auto
sudo reflector --country 'United States' --country Germany --latest 100 --protocol http --protocol https --sort rate --save /etc/pacman.d/mirrorlist
[2022-10-12 15:08:37] WARNING: failed to rate http(s) download (https://archlinux.thaller.ws/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:08:43] WARNING: failed to rate http(s) download (http://phinau.de/arch/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:08:48] WARNING: failed to rate http(s) download (https://phinau.de/arch/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:09:01] WARNING: failed to rate http(s) download (http://mirror.f4st.host/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:09:07] WARNING: failed to rate http(s) download (https://mirror.f4st.host/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:09:12] WARNING: failed to rate http(s) download (http://mirror.lty.me/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:09:17] WARNING: failed to rate http(s) download (https://mirror.lty.me/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:09:23] WARNING: failed to rate http(s) download (http://mirror.chaoticum.net/arch/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:09:28] WARNING: failed to rate http(s) download (https://mirror.chaoticum.net/arch/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:09:34] WARNING: failed to rate http(s) download (http://ftp.halifax.rwth-aachen.de/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:09:40] WARNING: failed to rate http(s) download (https://ftp.halifax.rwth-aachen.de/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:09:52] WARNING: failed to rate http(s) download (http://mirror.23m.com/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:09:57] WARNING: failed to rate http(s) download (https://mirror.23m.com/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:10:08] WARNING: failed to rate http(s) download (https://mirror.hackingand.coffee/arch/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:10:13] WARNING: failed to rate http(s) download (https://mirror.pseudoform.org/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:10:33] WARNING: failed to rate http(s) download (https://pkg.fef.moe/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:10:38] WARNING: failed to rate http(s) download (http://mirror.cmt.de/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:10:44] WARNING: failed to rate http(s) download (https://mirror.cmt.de/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:10:49] WARNING: failed to rate http(s) download (http://arch.jensgutermuth.de/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:10:54] WARNING: failed to rate http(s) download (https://arch.jensgutermuth.de/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:11:04] WARNING: failed to rate http(s) download (https://arch.unixpeople.org/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:11:10] WARNING: failed to rate http(s) download (http://mirrors.niyawe.de/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:11:15] WARNING: failed to rate http(s) download (https://mirrors.niyawe.de/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:11:21] WARNING: failed to rate http(s) download (http://ftp.uni-hannover.de/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:11:27] WARNING: failed to rate http(s) download (http://mirror.moson.org/arch/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:11:34] WARNING: failed to rate http(s) download (https://mirror.moson.org/arch/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:11:39] WARNING: failed to rate http(s) download (http://mirror.informatik.tu-freiberg.de/arch/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:11:45] WARNING: failed to rate http(s) download (https://mirror.informatik.tu-freiberg.de/arch/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:11:51] WARNING: failed to rate http(s) download (http://packages.oth-regensburg.de/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:11:56] WARNING: failed to rate http(s) download (https://packages.oth-regensburg.de/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:12:07] WARNING: failed to rate http(s) download (https://dist-mirror.fem.tu-ilmenau.de/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:12:13] WARNING: failed to rate http(s) download (http://arch.mirror.zachlge.org/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:12:18] WARNING: failed to rate http(s) download (https://arch.mirror.zachlge.org/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:12:18] WARNING: failed to rate http(s) download (http://ftp.sudhip.com/archlinux/community/os/x86_64/community.db): HTTP Error 403: Forbidden
[2022-10-12 15:12:18] WARNING: failed to rate http(s) download (https://ftp.sudhip.com/archlinux/community/os/x86_64/community.db): HTTP Error 403: Forbidden
[2022-10-12 15:12:24] WARNING: failed to rate http(s) download (http://archlinux.honkgong.info/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:12:41] WARNING: failed to rate http(s) download (http://mirrors.lug.mtu.edu/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:12:48] WARNING: failed to rate http(s) download (https://mirrors.lug.mtu.edu/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:12:53] WARNING: failed to rate http(s) download (http://mirrors.cat.pdx.edu/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:13:14] WARNING: failed to rate http(s) download (https://mirror.tmmworkshop.com/archlinux/community/os/x86_64/community.db): HTTP Error 403: Forbidden
[2022-10-12 15:13:23] WARNING: failed to rate http(s) download (http://mirror.netcologne.de/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:13:29] WARNING: failed to rate http(s) download (https://mirror.netcologne.de/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:13:34] WARNING: failed to rate http(s) download (http://mirror.arizona.edu/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:13:39] WARNING: failed to rate http(s) download (https://mirror.arizona.edu/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:13:45] WARNING: failed to rate http(s) download (https://zxcvfdsa.com/arch/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:13:50] WARNING: failed to rate http(s) download (http://mirror.jaime.sh/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:13:56] WARNING: failed to rate http(s) download (https://mirror.jaime.sh/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:14:02] WARNING: failed to rate http(s) download (https://mirror.zackmyers.io/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:14:08] WARNING: failed to rate http(s) download (http://dfw.mirror.rackspace.com/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:14:25] WARNING: failed to rate http(s) download (https://dfw.mirror.rackspace.com/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:14:52] WARNING: failed to rate http(s) download (http://mirrors.janbruckner.de/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:14:57] WARNING: failed to rate http(s) download (https://mirrors.janbruckner.de/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:15:03] WARNING: failed to rate http(s) download (http://mirrors.n-ix.net/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:15:08] WARNING: failed to rate http(s) download (https://mirrors.n-ix.net/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:15:18] WARNING: failed to rate http(s) download (http://mirrors.ocf.berkeley.edu/archlinux/community/os/x86_64/community.db): <urlopen error [Errno -3] Temporary failure in name resolution>
[2022-10-12 15:15:36] WARNING: failed to rate http(s) download (http://mirror.sfo12.us.leaseweb.net/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:15:49] WARNING: failed to rate http(s) download (https://mirror.sfo12.us.leaseweb.net/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:15:58] WARNING: failed to rate http(s) download (http://mirrors.acm.wpi.edu/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:16:04] WARNING: failed to rate http(s) download (https://mirror.gnomus.de/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-10-12 15:16:19] WARNING: failed to rate http(s) download (http://mirror.cs.pitt.edu/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[main@Desktop pacman.d]$ sudo pacman -Syu
[sudo] password for main: 
:: Synchronizing package databases...
 Reborn-OS is up to date
 core is up to date
 extra 1720.9 KiB 4.42 MiB/s 00:00 [#################################################] 100%
 community 7.0 MiB 4.94 MiB/s 00:01 [#################################################] 100%
 multilib is up to date
:: Starting full system upgrade...
error: could not open file /var/lib/pacman/sync/multilib.db: Unrecognized archive format
warning: nextcloud: ignoring package upgrade (24.0.3-1 => 24.0.6-1)
error: failed to prepare transaction (invalid or corrupted database)

```

---

<div class="post-metadata">

**Author:** ![Rafael](https://yyz2.discourse-cdn.com/free1/user_avatar/rebornos.discourse.group/rafael/32/438_2.png) [@Rafael](https://rebornos.discourse.group/u/Rafael)\
**Post date:** [October 12, 2022, 7:30pm UTC](https://rebornos.discourse.group/t/failed-to-sync-and-python-2-package-when-trying-to-update/838/11 "2022-10-12T19:30:36Z")

</div>

Can you show me the content of the mirrorlist file?

---

<div class="post-metadata">

**Author:** ![Rafael](https://yyz2.discourse-cdn.com/free1/user_avatar/rebornos.discourse.group/rafael/32/438_2.png) [@Rafael](https://rebornos.discourse.group/u/Rafael)\
**Post date:** [October 12, 2022, 7:34pm UTC](https://rebornos.discourse.group/t/failed-to-sync-and-python-2-package-when-trying-to-update/838/12 "2022-10-12T19:34:05Z")

</div>

The reflector example may not apply to your geographic location.

---

<div class="post-metadata">

**Author:** ![rebornosday](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@rebornosday](https://rebornos.discourse.group/u/rebornosday)\
**Post date:** [October 12, 2022, 7:43pm UTC](https://rebornos.discourse.group/t/failed-to-sync-and-python-2-package-when-trying-to-update/838/13 "2022-10-12T19:43:38Z")

</div>

Sure it is here below

```auto
################################################################################
################# Arch Linux mirrorlist generated by Reflector #################
################################################################################

# With: reflector --country 'United States' --country Germany --latest 100 --protocol http --protocol https --sort rate --save /etc/pacman.d/mirrorlist
# When: 2022-10-12 19:26:43 UTC
# From: https://archlinux.org/mirrors/status/json/
# Retrieved: 2022-10-12 19:26:43 UTC
# Last Check: 2022-10-12 19:03:22 UTC

Server = https://coresite.mm.fcix.net/archlinux/$repo/os/$arch
Server = https://mirrors.rit.edu/archlinux/$repo/os/$arch
Server = https://forksystems.mm.fcix.net/archlinux/$repo/os/$arch
Server = http://forksystems.mm.fcix.net/archlinux/$repo/os/$arch
Server = http://coresite.mm.fcix.net/archlinux/$repo/os/$arch
Server = http://arch.mirror.constant.com/$repo/os/$arch
Server = https://iad.mirrors.misaka.one/archlinux/$repo/os/$arch
Server = http://iad.mirrors.misaka.one/archlinux/$repo/os/$arch
Server = http://mirrors.rit.edu/archlinux/$repo/os/$arch
Server = https://mnvoip.mm.fcix.net/archlinux/$repo/os/$arch
Server = http://mnvoip.mm.fcix.net/archlinux/$repo/os/$arch
Server = https://codingflyboy.mm.fcix.net/archlinux/$repo/os/$arch
Server = http://codingflyboy.mm.fcix.net/archlinux/$repo/os/$arch
Server = http://mirrors.ocf.berkeley.edu/archlinux/$repo/os/$arch
Server = http://mirror.fcix.net/archlinux/$repo/os/$arch
Server = https://mirror.fcix.net/archlinux/$repo/os/$arch
Server = https://mirrors.xtom.de/archlinux/$repo/os/$arch
Server = http://arch.hu.fo/archlinux/$repo/os/$arch
Server = https://iad.mirror.rackspace.com/archlinux/$repo/os/$arch
Server = http://mirrors.xtom.de/archlinux/$repo/os/$arch
Server = https://arch.hu.fo/archlinux/$repo/os/$arch
Server = http://mirror.wdc1.us.leaseweb.net/archlinux/$repo/os/$arch
Server = https://mirror.wdc1.us.leaseweb.net/archlinux/$repo/os/$arch
Server = https://mirrors.ocf.berkeley.edu/archlinux/$repo/os/$arch
Server = http://iad.mirror.rackspace.com/archlinux/$repo/os/$arch
Server = https://de.arch.mirror.kescher.at/$repo/os/$arch
Server = http://mirror.cs.pitt.edu/archlinux/$repo/os/$arch
Server = https://ord.mirror.rackspace.com/archlinux/$repo/os/$arch
Server = http://mirrors.vectair.net/archlinux/$repo/os/$arch
Server = http://ord.mirror.rackspace.com/archlinux/$repo/os/$arch
Server = https://mirrors.vectair.net/archlinux/$repo/os/$arch
Server = https://arch.mirror.ivo.st/$repo/os/$arch
Server = https://repo.ialab.dsu.edu/archlinux/$repo/os/$arch
Server = http://repo.ialab.dsu.edu/archlinux/$repo/os/$arch
Server = https://mirror.mia11.us.leaseweb.net/archlinux/$repo/os/$arch
Server = https://mirror.hackingand.coffee/arch/$repo/os/$arch
Server = http://phinau.de/arch/$repo/os/$arch
Server = http://mirror.mia11.us.leaseweb.net/archlinux/$repo/os/$arch
Server = https://america.mirror.pkgbuild.com/$repo/os/$arch
Server = https://dfw.mirror.rackspace.com/archlinux/$repo/os/$arch
Server = http://dfw.mirror.rackspace.com/archlinux/$repo/os/$arch
Server = https://mirrors.lug.mtu.edu/archlinux/$repo/os/$arch
Server = http://mirror.mikrogravitation.org/archlinux/$repo/os/$arch
Server = https://archlinux.thaller.ws/$repo/os/$arch
Server = http://mirror.f4st.host/archlinux/$repo/os/$arch
Server = https://mirror.f4st.host/archlinux/$repo/os/$arch
Server = https://phinau.de/arch/$repo/os/$arch
Server = http://ftp.halifax.rwth-aachen.de/archlinux/$repo/os/$arch
Server = https://ftp.halifax.rwth-aachen.de/archlinux/$repo/os/$arch
Server = https://mirror.pseudoform.org/$repo/os/$arch
Server = http://mirror.lty.me/archlinux/$repo/os/$arch
Server = https://mirror.lty.me/archlinux/$repo/os/$arch
Server = http://mirror.chaoticum.net/arch/$repo/os/$arch
Server = https://mirror.chaoticum.net/arch/$repo/os/$arch
Server = http://packages.oth-regensburg.de/archlinux/$repo/os/$arch
Server = https://packages.oth-regensburg.de/archlinux/$repo/os/$arch
Server = http://mirror.moson.org/arch/$repo/os/$arch
Server = https://mirror.moson.org/arch/$repo/os/$arch
Server = http://mirror.23m.com/archlinux/$repo/os/$arch
Server = https://mirror.23m.com/archlinux/$repo/os/$arch
Server = http://mirror.hackingand.coffee/arch/$repo/os/$arch
Server = http://arch.jensgutermuth.de/$repo/os/$arch
Server = https://arch.jensgutermuth.de/$repo/os/$arch
Server = http://arlm.tyzoid.com/$repo/os/$arch
Server = https://pkg.fef.moe/archlinux/$repo/os/$arch
Server = http://mirror.cmt.de/archlinux/$repo/os/$arch
Server = https://mirror.cmt.de/archlinux/$repo/os/$arch
Server = https://arch.unixpeople.org/$repo/os/$arch
Server = http://mirrors.niyawe.de/archlinux/$repo/os/$arch
Server = https://mirrors.niyawe.de/archlinux/$repo/os/$arch
Server = http://ftp.uni-hannover.de/archlinux/$repo/os/$arch
Server = http://mirror.informatik.tu-freiberg.de/arch/$repo/os/$arch
Server = https://mirror.informatik.tu-freiberg.de/arch/$repo/os/$arch
Server = https://dist-mirror.fem.tu-ilmenau.de/archlinux/$repo/os/$arch
Server = http://arch.mirror.zachlge.org/$repo/os/$arch
Server = https://arch.mirror.zachlge.org/$repo/os/$arch
Server = http://ftp.sudhip.com/archlinux/$repo/os/$arch
Server = https://ftp.sudhip.com/archlinux/$repo/os/$arch
Server = http://archlinux.honkgong.info/$repo/os/$arch
Server = https://mirror.mikrogravitation.org/archlinux/$repo/os/$arch
Server = http://mirrors.lug.mtu.edu/archlinux/$repo/os/$arch
Server = http://mirrors.cat.pdx.edu/archlinux/$repo/os/$arch
Server = https://mirror.tmmworkshop.com/archlinux/$repo/os/$arch
Server = http://mirror.netcologne.de/archlinux/$repo/os/$arch
Server = https://mirror.netcologne.de/archlinux/$repo/os/$arch
Server = http://mirror.arizona.edu/archlinux/$repo/os/$arch
Server = https://mirror.arizona.edu/archlinux/$repo/os/$arch
Server = https://zxcvfdsa.com/arch/$repo/os/$arch
Server = http://mirror.jaime.sh/archlinux/$repo/os/$arch
Server = https://mirror.jaime.sh/archlinux/$repo/os/$arch
Server = https://mirror.zackmyers.io/archlinux/$repo/os/$arch
Server = http://mirrors.janbruckner.de/archlinux/$repo/os/$arch
Server = https://mirrors.janbruckner.de/archlinux/$repo/os/$arch
Server = http://mirrors.n-ix.net/archlinux/$repo/os/$arch
Server = https://mirrors.n-ix.net/archlinux/$repo/os/$arch
Server = http://mirror.dal10.us.leaseweb.net/archlinux/$repo/os/$arch
Server = http://mirror.sfo12.us.leaseweb.net/archlinux/$repo/os/$arch
Server = https://mirror.sfo12.us.leaseweb.net/archlinux/$repo/os/$arch
Server = http://mirrors.acm.wpi.edu/archlinux/$repo/os/$arch
Server = https://mirror.gnomus.de/$repo/os/$arch

```

---

<div class="post-metadata">

**Author:** ![Rafael](https://yyz2.discourse-cdn.com/free1/user_avatar/rebornos.discourse.group/rafael/32/438_2.png) [@Rafael](https://rebornos.discourse.group/u/Rafael)\
**Post date:** [October 12, 2022, 7:51pm UTC](https://rebornos.discourse.group/t/failed-to-sync-and-python-2-package-when-trying-to-update/838/14 "2022-10-12T19:51:00Z")

</div>

Do you know how to edit this file? If you have an idea, you could add these two mirrors to the top of the list:

```auto
Server = https://mirror.cov.ukservers.com/archlinux/$repo/os/$arch
Server = https://mirrors.gethosted.online/archlinux/$repo/os/$arch

```

---

<div class="post-metadata">

**Author:** ![Rafael](https://yyz2.discourse-cdn.com/free1/user_avatar/rebornos.discourse.group/rafael/32/438_2.png) [@Rafael](https://rebornos.discourse.group/u/Rafael)\
**Post date:** [October 12, 2022, 7:51pm UTC](https://rebornos.discourse.group/t/failed-to-sync-and-python-2-package-when-trying-to-update/838/15 "2022-10-12T19:51:42Z")

</div>

These are UK mirrors…

---

<div class="post-metadata">

**Author:** ![rebornosday](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@rebornosday](https://rebornos.discourse.group/u/rebornosday)\
**Post date:** [October 12, 2022, 8:09pm UTC](https://rebornos.discourse.group/t/failed-to-sync-and-python-2-package-when-trying-to-update/838/16 "2022-10-12T20:09:14Z")

</div>

Yes, just added them but still the same output when I try to update:

```auto
sudo pacman -Syu
:: Synchronizing package databases...
 Reborn-OS is up to date
 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: could not open file /var/lib/pacman/sync/multilib.db: Unrecognized archive format
warning: nextcloud: ignoring package upgrade (24.0.3-1 => 24.0.6-1)
error: failed to prepare transaction (invalid or corrupted database)

```

but it does look like in the GUI there is a change. I see this now:

 ![image](https://global.discourse-cdn.com/free1/uploads/rebornos/original/1X/741b782cf99151ae713526c879c1a2797a1d43b3.png)

---

<div class="post-metadata">

**Author:** ![Rafael](https://yyz2.discourse-cdn.com/free1/user_avatar/rebornos.discourse.group/rafael/32/438_2.png) [@Rafael](https://rebornos.discourse.group/u/Rafael)\
**Post date:** [October 12, 2022, 8:14pm UTC](https://rebornos.discourse.group/t/failed-to-sync-and-python-2-package-when-trying-to-update/838/17 "2022-10-12T20:14:54Z")

</div>

Try:

```auto
sudo rm /var/lib/pacman/sync/multilib.db

```

…and reply. In this way we eliminate the database that gives an error.

---

<div class="post-metadata">

**Author:** ![rebornosday](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@rebornosday](https://rebornos.discourse.group/u/rebornosday)\
**Post date:** [October 12, 2022, 8:16pm UTC](https://rebornos.discourse.group/t/failed-to-sync-and-python-2-package-when-trying-to-update/838/18 "2022-10-12T20:16:26Z")

</div>

Perfect, that did it, thank you! New packages are downloading now:

```auto
:: Proceed with installation? [Y/n] y
:: Retrieving packages...

```

---

<div class="post-metadata">

**Author:** ![Rafael](https://yyz2.discourse-cdn.com/free1/user_avatar/rebornos.discourse.group/rafael/32/438_2.png) [@Rafael](https://rebornos.discourse.group/u/Rafael)\
**Post date:** [October 12, 2022, 8:19pm UTC](https://rebornos.discourse.group/t/failed-to-sync-and-python-2-package-when-trying-to-update/838/19 "2022-10-12T20:19:39Z")

</div>

I’m glad it work!

Have a good day.

---

<div class="post-metadata">

**Author:** ![Hi-Phile](https://yyz2.discourse-cdn.com/free1/user_avatar/rebornos.discourse.group/hi-phile/32/380_2.png) [@Hi-Phile](https://rebornos.discourse.group/u/Hi-Phile)\
**Post date:** [October 14, 2022, 1:07am UTC](https://rebornos.discourse.group/t/failed-to-sync-and-python-2-package-when-trying-to-update/838/20 "2022-10-14T01:07:55Z")

</div>

I noticed you encountered similar problems in pamac with the some messages I also encountered. What I found helps to correct it was to use the option --force-refresh from a terminal window. This will update all files so be aware of this before running it:

```auto
sudo pamac update --force-refresh

```

---

<div class="post-metadata">

**Author:** ![Hi-Phile](https://yyz2.discourse-cdn.com/free1/user_avatar/rebornos.discourse.group/hi-phile/32/380_2.png) [@Hi-Phile](https://rebornos.discourse.group/u/Hi-Phile)\
**Post date:** [October 14, 2022, 1:18am UTC](https://rebornos.discourse.group/t/failed-to-sync-and-python-2-package-when-trying-to-update/838/21 "2022-10-14T01:18:05Z")

</div>

For ceph-libs, this has been deprecated or is being removed. I found it was taking several hours to compile and hence the failure message. You can remove it and then if you find you need it, then it should be replaced with ceph-libs-bin.

[https://archlinux.org/todo/removal-of-ceph-from/](https://archlinux.org/todo/removal-of-ceph-from/)  
[https://aur.archlinux.org/packages/ceph-libs](https://aur.archlinux.org/packages/ceph-libs)

[Next page](https://rebornos.discourse.group/t/failed-to-sync-and-python-2-package-when-trying-to-update/838.md?page=2)
