Package update shown but returns 404 on multiple repos

Hello,

Pamac shows me that an update for the Brave browser is avaliable:

$ LANG=en_US pamac checkupdates
1 available update:
brave-browser  1.43.89-1 -> 1.43.93-1  community

However, I can’t install this upgrade, since multiple repos throw a 404 error:

$ sudo LANG=en_US pamac update
Preparing...
Synchronizing package databases...
unable to lock database
Failed to synchronize databases
Resolving dependencies...
Checking inter-conflicts...

To upgrade (1):
  brave-browser  1.43.93-1  (1.43.89-1)  community  139.6 MB

Total download size: 139.6 MB
Total installed size: 284.9 kB

Apply transaction ? [y/N] y
https://mirror.tarnkappe.info/manjaro/stable/community/x86_64/brave-browser-1.43.93-1-x86_64.pkg.tar.zst: Error 404
https://mirrors.netix.net/manjaro/stable/community/x86_64/brave-browser-1.43.93-1-x86_64.pkg.tar.zst: Error 404
https://mirrors.up.pt/pub/manjaro/stable/community/x86_64/brave-browser-1.43.93-1-x86_64.pkg.tar.zst: Error 404
http://manjaro.grena.ge/stable/community/x86_64/brave-browser-1.43.93-1-x86_64.pkg.tar.zst: Error 404
https://repos.silknet.com/manjaro/stable/community/x86_64/brave-browser-1.43.93-1-x86_64.pkg.tar.zst: Error 404
https://mirror.bardia.tech/manjaro/stable/community/x86_64/brave-browser-1.43.93-1-x86_64.pkg.tar.zst: Socket I/O timed out
https://mirror.archlinux.tw/Manjaro/stable/community/x86_64/brave-browser-1.43.93-1-x86_64.pkg.tar.zst: Error 404
https://mirror1.cl.netactuate.com/manjaro/stable/community/x86_64/brave-browser-1.43.93-1-x86_64.pkg.tar.zst: Error 404
https://mirror.tarnkappe.info/manjaro/stable/community/x86_64/brave-browser-1.43.93-1-x86_64.pkg.tar.zst: Error 404
https://mirrors.netix.net/manjaro/stable/community/x86_64/brave-browser-1.43.93-1-x86_64.pkg.tar.zst: Error 404
https://mirrors.up.pt/pub/manjaro/stable/community/x86_64/brave-browser-1.43.93-1-x86_64.pkg.tar.zst: Error 404
http://manjaro.grena.ge/stable/community/x86_64/brave-browser-1.43.93-1-x86_64.pkg.tar.zst: Error 404
https://repos.silknet.com/manjaro/stable/community/x86_64/brave-browser-1.43.93-1-x86_64.pkg.tar.zst: Error 404
https://mirror.bardia.tech/manjaro/stable/community/x86_64/brave-browser-1.43.93-1-x86_64.pkg.tar.zst: Socket I/O timed out
https://mirror.archlinux.tw/Manjaro/stable/community/x86_64/brave-browser-1.43.93-1-x86_64.pkg.tar.zst: Error 404
https://mirror1.cl.netactuate.com/manjaro/stable/community/x86_64/brave-browser-1.43.93-1-x86_64.pkg.tar.zst: Error 404
Error: Failed to commit transaction: failed to retrieve some file

I opened one of those files in the browser and it shows me also an 404 error. Just to be sure it’s not anything network related, I tried a remote server, which returns the same:

$ curl https://mirror.tarnkappe.info/manjaro/stable/community/x86_64/brave-browser-1.43.93-1-x86_64.pkg.tar.zst
<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</body>
</html>

So I tried to query the manjaro packages in the web here: Packages It was updated today (10th october) with version 1.44.108-1 for the stable branch, so I’m wondering why my Pacman tries to download an older release (which may be broken or has some other issues why it was deleted on the server).

Cleaning the cache doesn’t seem to do anything:

$ sudo LANG=en_US pamac clean
Number of versions of each package to keep in the cache: 3

To delete: 0 files

Altough I’ assume that Pamac/Pacman has an outdated cache which refers to the old version. On Debian based distributions I’d call apt update, afaik from Arch based distributions this shouldn’t be required since they update the package cache automatically when updating packages or installing new ones.

Some infso from the affected system:

$ LANG=en_US pamac info brave-browser
Name                  : brave-browser
Version               : 1.43.89-1
Description           : Web browser that blocks ads and trackers by default (binary release)
URL                   : https://brave.com
Licenses              : MPL2 BSD custom:chromium
Repository            : community
Installed Size        : 322.3 MB
Groups                : --
Depends On            : alsa-lib gtk3 libxss nss ttf-font
Optional Dependencies : cups: Printer support [Installed]
                        libgnome-keyring: Enable GNOME keyring support
                        libnotify: Native notification support [Installed]
Required By           : --
Optional For          : --
Provides              : brave-browser=1.43.89
Replaces              : --
Conflicts With        : brave-browser
Packager              : Stefano Capitani <stefano@manjaro.org>
Build Date            : Sat Sep  3 18:45:55 2022
Install Date          : Tue Sep 13 18:41:51 2022
Install Reason        : Explicitly installed
Validated By          : Signature
Backup files          : --

$ lsb_release -a
LSB Version:	n/a
Distributor ID:	ManjaroLinux
Description:	Manjaro Linux
Release:	22.0.0
Codename:	Sikaris

$ uname -a
Linux my-pc 5.15.65-1-MANJARO #1 SMP PREEMPT Mon Sep 5 10:15:47 UTC 2022 x86_64 GNU/Linux

Hello,

Start by refreshing the mirrors first:
sudo pacman-mirrors -f5

compare with the status
https://repo.manjaro.org/

Then do the update.

And don’t use sudo with pamac. It will ask for a password if required.

2 Likes
$ sudo pacman-mirrors -f5
::INFO Downloading mirrors from Manjaro
::INFO => Mirror pool: https://repo.manjaro.org/mirrors.json
::INFO => Mirror status: https://repo.manjaro.org/status.json
::INFO Using default mirror file
::INFO Querying mirrors - This may take some time
  1.420 South_Africa   : http://manjaro.mirror.ac.za/
  1.034 United_States  : https://ridgewireless.mm.fcix.net/manjaro/
  0.216 Finland        : https://manjaro.kyberorg.fi/
  0.973 United_States  : https://forksystems.mm.fcix.net/manjaro/
  0.396 France         : https://mirror.ibakerserver.pt/manjaro/
::INFO Writing mirror list
::Finland         : https://manjaro.kyberorg.fi/stable
::France          : https://mirror.ibakerserver.pt/manjaro/stable
::United_States   : https://forksystems.mm.fcix.net/manjaro/stable
::United_States   : https://ridgewireless.mm.fcix.net/manjaro/stable
::South_Africa    : http://manjaro.mirror.ac.za/stable
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist

According to the web repo list, all repos are up to date. Except manjaro.mirror.ac.za, it seems not listed there. When trying to update again, it still shows the version, which failed with 404 errors:

$ LANG=en_US sudo pamac update
Preparing...
Synchronizing package databases...
unable to lock database
Failed to synchronize databases
Resolving dependencies...
Checking inter-conflicts...

To upgrade (1):
  brave-browser  1.43.93-1  (1.43.89-1)  community  139.6 MB

Total download size: 139.6 MB
Total installed size: 284.9 kB

Apply transaction ? [y/N] y
https://manjaro.kyberorg.fi/stable/community/x86_64/brave-browser-1.43.93-1-x86_64.pkg.tar.zst: Error 404
https://mirror.ibakerserver.pt/manjaro/stable/community/x86_64/brave-browser-1.43.93-1-x86_64.pkg.tar.zst: Error 404
https://forksystems.mm.fcix.net/manjaro/stable/community/x86_64/brave-browser-1.43.93-1-x86_64.pkg.tar.zst: Error 404
https://ridgewireless.mm.fcix.net/manjaro/stable/community/x86_64/brave-browser-1.43.93-1-x86_64.pkg.tar.zst: Error 404
http://manjaro.mirror.ac.za/stable/community/x86_64/brave-browser-1.43.93-1-x86_64.pkg.tar.zst: Error 404
https://manjaro.kyberorg.fi/stable/community/x86_64/brave-browser-1.43.93-1-x86_64.pkg.tar.zst: Error 404
https://mirror.ibakerserver.pt/manjaro/stable/community/x86_64/brave-browser-1.43.93-1-x86_64.pkg.tar.zst: Error 404
https://forksystems.mm.fcix.net/manjaro/stable/community/x86_64/brave-browser-1.43.93-1-x86_64.pkg.tar.zst: Error 404
https://ridgewireless.mm.fcix.net/manjaro/stable/community/x86_64/brave-browser-1.43.93-1-x86_64.pkg.tar.zst: Error 404
http://manjaro.mirror.ac.za/stable/community/x86_64/brave-browser-1.43.93-1-x86_64.pkg.tar.zst: Error 404
Error: Failed to commit transaction: failed to retrieve some files

EDIT: @mithrial I have tried that too, didn’t know that. Doesn’t make any difference in this specific case, but seems to be a better practice than using sudo in general, thank you.

Could be that 1.43.93-1 no longer exists on the mirrors, the current version on all branches is 1.44.108-1

https://packages.manjaro.org/?query=brave-browser

Maybe try pamac update --force-refresh

1 Like

Thank you! This has fixed the problem, I got a bunch of updates after forcing pamac to refresh his repos. I already wondered why it has showed just a single update, since there were usually more.

But I haven’t understood why this happened. Why did the local DB got outdated? I thought pamac will care about the repos-database, so using pamac update (or using the GUI, which seems to to the same under the hood for the updates-tab) would be enough to keep my packages up-to-date.

Additionally, I should keep an eye on my kernel with the manjaro settings/mhwd-kernel tools. My current strategy is to use the latest LTS kernel, and only install a non LTS kernel if there is a reason for that.

Is this wrong and I should care about this myself by running pamac update --force-refresh to keep the non-kernel packages up-to-date? Or is this a bug? For me it seems some kind of error, since I’m using this as main system for ~3 months and I never had to manually force a database refresh to get updates. Or do I miss something?

The database appears to be locked

This cause the database to be out of sync.

Close all running instances of Pamac or terminal using pacman - then remove the lock file

sudo rm -f /var/lib/pacman/db.lck

Force the sync before update

sudo pacman -Syyu
1 Like

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