How to clear a broken package download in pamac?

I’m trying to install ocenaudio-bin package. Unluckly, my internet was unstable and the download corrupted, so It failed the sum hash check and pamac did not installed. That’s good, as my package was not downloaded well.

The problem is: pamac refuses to re-download the package. It wants to check again and again for the same package and throws an installation error that the package sum check is not right, whenever I try again.

Pamac Output (Portuguese)
Preparando...
Clonando ocenaudio-bin arquivos para compilar...
Verificando 1ocenaudio-bin dependências...
Resolvendo dependências...
Verificando conflito entre pacotes...

Construindo ocenaudio-bin...
==> Criando o pacote: ocenaudio-bin 3.7.20-1 (ter 09 mar 2021 08:29:21)
==> Verificando as dependências de tempo de execução...
==> Verificando as dependências de tempo de compilação...
==> Obtendo fontes...
  -> Encontrado LICENSE.txt
  -> Encontrado ocenaudio-3.7.20_x86_64.pkg.tar.xz      # Here It finds the broken package download 
==> Validando source arquivos com sha256sums...      # Then It tries to check the sha256 sum.
    LICENSE.txt ... Ignorada
==> Validando source_x86_64 arquivos com sha256sums...
    ocenaudio-3.7.20_x86_64.pkg.tar.xz ... FALHOU      # And It fails :)
==> ERRO: Um ou mais arquivos não passaram na verificação de validade!
Falha ao compilar ocenaudio-bin

How can I manually delete that broken package download to force pamac to re-download?

pamac clean -b

and try build package again :wink:

I just wanted to delete the broken package… but okay, at least I’ve solved the problem :slight_smile:

Thanks!

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