Arch linux corrupted package

Arch Linux

I am updating a machine I haven’t used in months. over 1,500 packages. I was using aria2 as my Xfer command. all went well, until pacman told me an error had occurred. the error was do to the «external downloader» (I can’t recall specific error).

I changed my pacman.conf to use the default method. I ran

again. I was then asked to import new keys. I did this, and pacman proceeded to fetch the remaining packages.

before the changes were committed, I was told a number of packages in the cache were corrupted, and would I like to remove them. I said, yes, to all.

at the end, I still get this error:

:: File /var/cache/pacman/pkg/wavemon-0.9.4-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)). Do you want to delete it? [Y/n] y error: failed to commit transaction (invalid or corrupted package) Errors occurred, no packages were upgraded.

Last edited by shoelesshunter (2022-01-15 03:18:07)

#2 2022-01-15 00:38:10

Re: [solved]update fails. invalid or corrupted package

«UNIX is simple and coherent. » — Dennis Ritchie, «GNU’s Not UNIX» — Richard Stallman

#3 2022-01-15 02:47:47

Re: [solved]update fails. invalid or corrupted package

I deleted all .part files with find. I also ran

error: runc: signature from "Frederik Schwan " is unknown trust :: File /var/cache/pacman/pkg/runc-1.0.3-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)). Do you want to delete it? [Y/n] 

#4 2022-01-15 03:16:31

Re: [solved]update fails. invalid or corrupted package

Do you want to delete it? [Y/n] 

Registered Linux User #482438

Читайте также:  Linux установить php centos

#5 2022-01-15 03:17:43

Re: [solved]update fails. invalid or corrupted package

then I successfully updated. I did this when updating the 151 keys in the keyring hanged.

this is not ideal, but it works enough for now.

#6 2022-01-15 03:18:55

Re: [solved]update fails. invalid or corrupted package

Do you want to delete it? [Y/n] 

Yes, I deleted them, then it failed.

#7 2022-01-15 04:47:49

Re: [solved]update fails. invalid or corrupted package

Did you try going into live-iso and reinstalling or updating the keyring?

#8 2022-01-16 07:27:02

Re: [solved]update fails. invalid or corrupted package

right now thats not an option. I am in a rehab (tbh), and just got the laptop shipped here. I have no idea how long before I can buy a USB drive to make installation media.

#9 2022-01-16 13:25:59

Re: [solved]update fails. invalid or corrupted package

Unfortunately I have very similar problem:

# pacman -Syyu (. ) Packages (2) cups-filters-1.28.11-1 jack2-1.9.20-2 Total Installed Size: 4,79 MiB Net Upgrade Size: -0,03 MiB :: Proceed with installation? [Y/n] y (2/2) checking keys in keyring [########################################################] 100% downloading required keys. :: Import PGP key 94657AB20F2A092B, "Andreas Radke "? [Y/n] y :: Import PGP key 7258734B41C31549, "David Runge "? [Y/n] y (2/2) checking package integrity [########################################################] 100% error: cups-filters: signature from "Andreas Radke " is unknown trust :: File /var/cache/pacman/pkg/cups-filters-1.28.11-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)). Do you want to delete it? [Y/n] y error: jack2: signature from "David Runge " is unknown trust :: File /var/cache/pacman/pkg/jack2-1.9.20-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)). Do you want to delete it? [Y/n] y error: failed to commit transaction (invalid or corrupted package (PGP signature)) Errors occurred, no packages were upgraded.

I’ve already installed archlinux-keyring 20220114-1.

# pacman-key --init gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created gpg: no ultimately trusted keys found gpg: starting migration from earlier GnuPG versions gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent gpg: migration succeeded ==> Generating pacman master key. This may take some time. gpg: Generating pacman keyring master key. gpg: agent_genkey failed: No such file or directory gpg: key generation failed: No such file or directory gpg: Done ==> Updating trust database. gpg: no need for a trustdb check

but I cannot identify the reason of the problems here: «No such file or directory».

Читайте также:  Linux usb boot flash

What can I do in such a situation to solve the problem with keys?

Источник

Ошибка «не удалось завершить транзакцию (неверный или поврежденный пакет)» (РЕШЕНО)

Во время обновления или установки пакетов в Arch Linux, Manjaro и их производных вы можете столкнуться с проблемой «не удалось завершить транзакцию (неверный или поврежденный пакет). Обнаружены ошибки, пакеты не обновлены».

(263/263) проверка целостности пакета [########################################################################################] 100% ошибка: libinih: signature from "Maxime Gauduin " is marginal trust :: Файл /var/cache/pacman/pkg/libinih-55-2-x86_64.pkg.tar.zst поврежден (неверный или поврежденный пакет(PGP-подпись)). Хотите его удалить? [Y/n] ошибка: python-marshmallow-sqlalchemy: signature from "Maxime Gauduin " is marginal trust :: Файл /var/cache/pacman/pkg/python-marshmallow-sqlalchemy-0.28.0-1-any.pkg.tar.zst поврежден (неверный или поврежденный пакет(PGP-подпись)). Хотите его удалить? [Y/n] ошибка: python-unidecode: signature from "Maxime Gauduin " is marginal trust :: Файл /var/cache/pacman/pkg/python-unidecode-1.3.4-1-any.pkg.tar.zst поврежден (неверный или поврежденный пакет(PGP-подпись)). Хотите его удалить? [Y/n] ошибка: не удалось завершить транзакцию (неверный или поврежденный пакет) Обнаружены ошибки, пакеты не обновлены.

На английском ошибка выводится как «error: failed to commit transaction (invalid or corrupted package)».

Полный лог ошибки на английском:

:: Retrieving packages. libinih-55-2-x86_64 15.4 KiB 385 KiB/s 00:00 [############################################] 100% (40/40) checking keys in keyring [############################################] 100% (40/40) checking package integrity [############################################] 100% error: libinih: signature from "Maxime Gauduin " is marginal trust :: File /var/cache/pacman/pkg/libinih-55-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)). Do you want to delete it? [Y/n] y error: failed to commit transaction (invalid or corrupted package) Errors occurred, no packages were upgraded.

В данном случае ошибка возникает при попытке обновить пакет libinih, но она может возникнуть и для других пакетов.

Для начала попробуйте удалить пакет, как это рекомендуется, и запустить обновление заново, чтобы перекачать файл установочного пакета. Это разрешить проблему в том случае, если ошибка вызвана повреждением пакета, например, из-за сбоя сети.

Читайте также:  Astra linux mount samba

Если это не помогло, то вместо полного обновления система запустите обновление пакета archlinux-keyring:

sudo pacman -Sy archlinux-keyring

Это должно решить проблему с проверкой PGP подписи.

Данная ошибка и проблема с неверной PGP подписью может возникнуть на редко обновляемых системах (обновляемых с большими перерывами). Ошибка заключается в том, что пакеты с «неверными» PGP подписями подписаны ключами, которые содержаться в обновлённой версии пакета archlinux-keyring. Следовательно, начав с обновления archlinux-keyring вы получаете новые версии ключей, которые затем успешно проверяют PGP подписи файлов пакетов.

Близкие статьи

1 thought on “ Ошибка «не удалось завершить транзакцию (неверный или поврежденный пакет)» (РЕШЕНО) ”

Была похожая ситуация, ошибка с обновлением пакета, после был вопрос о его удалении, согласился. Но потом команда pacman -Syu не могла ничего сделать, жаловалось на PGP для всех трёх репозиториев. В итоге ничего не смог сделать.

Источник

Оцените статью
Adblock
detector