ungoogled-software / ungoogled-chromium-archlinux

Arch Linux packaging for ungoogled-chromium
BSD 3-Clause "New" or "Revised" License
338 stars 37 forks source link

Error downloading, 404 returned #256

Closed Rithdev closed 8 months ago

Rithdev commented 8 months ago

The URL provided by github that is used in the PKGBUILD for the aur script will return a 404 when downloading the tarball "ungoogled-chromium-120.0.6099.216-2-x86_64.pkg.tar.zst"

Why?

For some reason (i'm not really that smart and i'm yet learning git) the download URL corresponds to "https://github.com/ungoogled-software/ungoogled-chromium-archlinux/releases/download/120.0.6099.216-1/ungoogled-chromium-120.0.6099.216-2-x86_64.pkg.tar.zst" instead of "https://github.com/ungoogled-software/ungoogled-chromium-archlinux/releases/download/120.0.6099.216-2/ungoogled-chromium-120.0.6099.216-2-x86_64.pkg.tar.zst" (the version string has a -1 instead of the -2 of the actual release), making the script fail once it has to download the required file.

KnechtNoobrecht commented 8 months ago

Can confirm as of 2024-01-11 22:04 UTC

networkException commented 8 months ago

Unfortunately this will take another rebuild until the AUR will hopefully fix itself

jasursadikov commented 8 months ago

Same on my end:

==> ERROR: Failure while downloading https://github.com/ungoogled-software/ungoogled-chromium-archlinux/releases/download/120.0.6099.216-2/ungoogled-chromium-120.0.6099.216-2-x86_64.pkg.tar.zst
    Aborting...
 -> error making: ungoogled-chromium-bin-exit status 1
 -> Failed to install the following packages. Manual intervention is required:
ungoogled-chromium-bin - exit status 1
seantcanavan commented 8 months ago

Unfortunately this will take another rebuild until the AUR will hopefully fix itself

@networkException as someone who is new to the AUR and out of curiosity - who's responsibility is that? also is there a command to ignore this release so yay doesn't keep trying to download it? And maybe wait for the next release?

networkException commented 8 months ago

I am responsible for the mistake, I tagged an outdated commit, GitHub Actions is responsible for the rebuild talking so long.

I'm not familiar enough with yay to answer that, sorry

seantcanavan commented 8 months ago

I am responsible for the mistake, I tagged an outdated commit, GitHub Actions is responsible for the rebuild talking so long.

I'm not familiar enough with yay to answer that, sorry

I'm sorry I didn't even check your github profile before asking. Apologies for that laziness! :bow:

Thank you for the amazing browser. I hit my limit when google introduced manifest v3 and the greater ad tracking and I'm excited to spend more time learning more about privacy and data security.

I don't mind waiting whatsoever. Will keep an eye on the repo's github actions.

networkException commented 8 months ago

Can someone affected by this confirm whether the update worked? I tested this on my Arch machine and it worked fine, but the helper never saw the broken release there.

dan-m8t commented 8 months ago

My AUR helper (paru) still reports 404:

Aur (1) ungoogled-chromium-bin-120.0.6099.216-1

:: Proceed with installation? [Y/n]: y

:: Downloading PKGBUILDs...
 PKGBUILDs up to date
fetching devel info...
==> Making package: ungoogled-chromium-bin 120.0.6099.216-2 (Fri Jan 12 22:36:31 2024)
==> Retrieving sources...
  -> Downloading ungoogled-chromium-120.0.6099.216-2-x86_64.pkg.tar.zst...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     9    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
==> ERROR: Failure while downloading https://github.com/ungoogled-software/ungoogled-chromium-archlinux/releases/download/120.0.6099.216-2/ungoogled-chromium-120.0.6099.216-2-x86_64.pkg.tar.zst
    Aborting...
error: failed to download sources for 'ungoogled-chromium-bin-120.0.6099.216-1': 
error: packages failed to build: ungoogled-chromium-bin-120.0.6099.216-1
Whyhow314 commented 8 months ago

I had to delete the cached version, but after that it worked fine.

dan-m8t commented 8 months ago

I had to delete the cached version, but after that it worked fine.

I can confirm this.

KnechtNoobrecht commented 8 months ago

I had to delete the cached version, but after that it worked fine.

How do i do this? paru -Sc did not work for me.

Whyhow314 commented 8 months ago

There might be a way directly with paru, but I just deleted the directory ~/.cache/paru/clone/ungoogled-chromium-bin (or renaming it would probably work)

dan-m8t commented 8 months ago

paru -Sc should do the trick afaik:

Clone Directory: /home/dan/.cache/paru/clone
:: Do you want to clean all other AUR packages from cache? [Y/n]: n

Diff Directory: /home/dan/.cache/paru/diff
:: Do you want to remove all saved diffs? [Y/n]: n

Same as yay btw - otherwise simply delete the directory as suggested.

KnechtNoobrecht commented 8 months ago

There might be a way directly with paru, but I just deleted the directory ~/.cache/paru/clone/ungoogled-chromium-bin (or renaming it would probably work)

That works. Thanks.

seantcanavan commented 8 months ago

clear pacman cache: sudo pacman -Scc

clear yay cache: yes | yay -Scc

Rithdev commented 8 months ago

As stated by other users, the problem is now solved and if it still throws a 404 at you, just clear your aur helper cache or delete the clone directory altogether so it downloads everything again, marking as closed