'paru' error: failed to commit transaction, topgrade error: backtrace omitted

Happy New Year 2023 EOS community.

I have recently post this: Topgrade: Backtrace Omitted Error

I again have same issue, but now is worse. I follow advice to run: paru, and I think it fixed but I am again with the same error, and now paru is not working.


$ paru

Start off ok:

:: Synchronizing package databases... endeavouros 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... resolving dependencies... looking for conflicting packages...

Package (121) ā€¦

Total Installed Size: 1554.33 MiB
Net Upgrade Size: 8.11 MiB

:: Proceed with installation? [Y/n]

I make choice YES:

:: Retrieving packages... (121/121) checking keys in keyring [----------------------------------------] 100% (121/121) checking package integrity [----------------------------------------] 100% error: failed to commit transaction (invalid or corrupted package) Errors occurred, no packages were upgraded.

I try to do: topgrade:

:: Synchronizing package databases... endeavouros 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... resolving dependencies... looking for conflicting packages...

Package (121) ā€¦

Total Installed Size: 1554.33 MiB
Net Upgrade Size: 8.11 MiB

:: Proceed with installation? [Y/n]

I make choice: YES

:: Retrieving packages... (121/121) checking keys in keyring [----------------------------------------] 100% (121/121) checking package integrity [----------------------------------------] 100% error: failed to commit transaction (invalid or corrupted package) Errors occurred, no packages were upgraded. System update failed: 0: Command failed: `/usr/bin/paru --pacman pacman -Syu` 1: `/usr/bin/paru` failed: exit status: 1

Location:
src/steps/os/archlinux.rs:52

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.


From old post, I try some thing that were told to me, but I cannot get this to work. I always wait 1 week when I have issue, read forum, read TG because maybe someone else have same problem. So I ask for help after only I try to fix for me.

If someone has idea of what is wrong, and how to fix, thank you.

And Happy New Year 2023!

Try running paru again after following the instructions here

Hello sradjoker

I perform the first command:

sudo pacman -Sy archlinux-keyring endeavouros-keyring
and it is ok.

I perform the second command:

sudo pacman -Syu
and I get same error from before:
:: Synchronizing package databases... endeavouros 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 'endeavouros.db' from ca.gate.endeavouros.com : SSL connection timeout error: failed retrieving file 'endeavouros.db' from mirrors.tuna.tsinghua.edu.cn : Failed to connect to mirrors.tuna.tsinghua.edu.cn port 443 after 6522 ms: Couldn't connect to server :: Starting full system upgrade... resolving dependencies... looking for conflicting packages...

Package (120) ā€¦

Total Installed Size: 1552.74 MiB
Net Upgrade Size: 8.10 MiB

:: Proceed with installation? [Y/n]


I select YES

:: Retrieving packages... (120/120) checking keys in keyring [----------------------------------------] 100% (120/120) checking package integrity [----------------------------------------] 100% error: failed to commit transaction (invalid or corrupted package) Errors occurred, no packages were upgraded.
Same error from before, but I see that the first command install 1 of 121 package, so now only 120.

Your eos mirrors are out of date run this command:

eos-rankmirrors

Make sure to update your mirrors frequently or whenever you find this problem

Keyring and mirrors are the most common update issues and its good if you learn how to deal with them

I perform this command, and it look successful:

==> Info: fetching https://gitlab.com/endeavouros-filemirror/PKGBUILDS/-/raw/master/endeavouros-mirrorlist/endeavouros-mirrorlist ... ==> Info: ranking EndeavourOS mirrors, please wait ... ==> 'https://mirrors.tuna.tsinghua.edu.cn/endeavouros/repo/$repo/$arch' connection failed after 30 seconds, continuing.

==> Results of ranking EndeavourOS mirrors:

######################################################

EndeavourOS Repository Mirrorlist

######################################################

Entry in file /etc/pacman.conf:

[endeavouros]

SigLevel = PackageRequired

Include = /etc/pacman.d/endeavouros-mirrorlist

######################################################

Tip: Use the ā€˜eos-rankmirrorsā€™ program to rank

these mirrors or re-order them manually.

######################################################

Canada

#Server = https://ca.gate.endeavouros.com/endeavouros/repo/$repo/$arch

China

#Server = https://mirrors.tuna.tsinghua.edu.cn/endeavouros/repo/$repo/$arch

Germany

#Server = https://mirror.alpix.eu/endeavouros/repo/$repo/$arch
#Server = https://de.freedif.org/EndeavourOS/repo/$repo/$arch
#Server = https://mirror.moson.org/endeavouros/repo/$repo/$arch

France

#Server = https://endeavour.remi.lu/repo/$repo/$arch
#Server = https://mirror.jordanrey.me/endeavouros/repo/$repo/$arch

Singapore

#Server = https://mirror.jingk.ai/endeavouros/repo/$repo/$arch
#Server = https://mirror.freedif.org/EndeavourOS/repo/$repo/$arch

South Korea

#Server = https://mirror.funami.tech/endeavouros/repo/$repo/$arch

Sweden

#Server = https://ftp.acc.umu.se/mirror/endeavouros/repo/$repo/$arch
#Server = https://mirror.linux.pizza/endeavouros/repo/$repo/$arch

Taiwan

#Server = https://mirror.archlinux.tw/EndeavourOS/repo/$repo/$arch

Ukraine

#Server = https://fastmirror.pp.ua/endeavouros/repo/$repo/$arch

Results of mirror ranking at (UTC) 01/01/2023 02:16:43 PM:

The following fields are shown for each mirror:

mirror: The mirror address

update-level: Ordinal number of the latest update (larger is newer)

fetch-time: Measures the speed of the mirror (smaller is faster)

mirror update-level fetch-time

~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~

https://ca.gate.endeavouros.com/endeavouros/repo/$repo/$arch 1736 1.183196

https://de.freedif.org/EndeavourOS/repo/$repo/$arch 1736 1.205221

https://mirror.linux.pizza/endeavouros/repo/$repo/$arch 1736 1.304095

https://ftp.acc.umu.se/mirror/endeavouros/repo/$repo/$arch 1736 1.407975

https://fastmirror.pp.ua/endeavouros/repo/$repo/$arch 1736 1.510493

https://mirror.alpix.eu/endeavouros/repo/$repo/$arch 1736 1.511437

https://mirror.jingk.ai/endeavouros/repo/$repo/$arch 1736 1.512786

https://mirror.moson.org/endeavouros/repo/$repo/$arch 1736 1.716706

https://mirror.funami.tech/endeavouros/repo/$repo/$arch 1736 2.330647

https://mirror.archlinux.tw/EndeavourOS/repo/$repo/$arch 1736 2.539489

https://endeavour.remi.lu/repo/$repo/$arch 1736 2.641359

https://mirror.jordanrey.me/endeavouros/repo/$repo/$arch 1736 9.804555

https://mirror.freedif.org/EndeavourOS/repo/$repo/$arch 1736 17.590703

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

EndeavourOS mirrorlist:

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Server = https://ca.gate.endeavouros.com/endeavouros/repo/$repo/$arch
Server = https://de.freedif.org/EndeavourOS/repo/$repo/$arch
Server = https://mirror.linux.pizza/endeavouros/repo/$repo/$arch
Server = https://ftp.acc.umu.se/mirror/endeavouros/repo/$repo/$arch
Server = https://fastmirror.pp.ua/endeavouros/repo/$repo/$arch
Server = https://mirror.alpix.eu/endeavouros/repo/$repo/$arch
Server = https://mirror.jingk.ai/endeavouros/repo/$repo/$arch
Server = https://mirror.moson.org/endeavouros/repo/$repo/$arch
Server = https://mirror.funami.tech/endeavouros/repo/$repo/$arch
Server = https://mirror.archlinux.tw/EndeavourOS/repo/$repo/$arch
Server = https://endeavour.remi.lu/repo/$repo/$arch
Server = https://mirror.jordanrey.me/endeavouros/repo/$repo/$arch
Server = https://mirror.freedif.org/EndeavourOS/repo/$repo/$arch
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

==> Moving old EndeavourOS mirrorlist to /etc/pacman.d/endeavouros-mirrorlist.2023.01.01-09.16.43.
==> Writing new ranked EndeavourOS mirrorlist to /etc/pacman.d/endeavouros-mirrorlist.
Root Password:
==> New mirrorlist saved.

However, I type in pacman command:

sudo pacman -Sy archlinux-keyring endeavouros-keyring
And this is ok, but next one:
sudo pacman -Syu
Give the same final error same as before:
:: Retrieving packages... (120/120) checking keys in keyring [----------------------------------------] 100% (120/120) checking package integrity [----------------------------------------] 100% error: failed to commit transaction (invalid or corrupted package) Errors occurred, no packages were upgraded.

can you give the complete output of sudo pacman -Syyu?

I type:

sudo pacman -Syyu
Terminal:
:: Synchronizing package databases... endeavouros 31.9 KiB 22.0 KiB/s 00:01 [----------------------------------------] 100% core 152.6 KiB 102 KiB/s 00:01 [----------------------------------------] 100% extra 1734.2 KiB 695 KiB/s 00:02 [----------------------------------------] 100% community 7.2 MiB 567 KiB/s 00:13 [----------------------------------------] 100% multilib 163.4 KiB 105 KiB/s 00:02 [----------------------------------------] 100% :: Starting full system upgrade... resolving dependencies... looking for conflicting packages...

Package (120) Old Version New Version Net Change

extra/a52dec 0.7.4-11 0.7.4-12 0.02 MiB
extra/alsa-card-profiles 1:0.3.63-1 1:0.3.63-3 0.00 MiB
extra/bind 9.18.9-1 9.18.10-1 0.00 MiB
core/btrfs-progs 6.0.2-1 6.1-2 0.02 MiB
extra/cifs-utils 7.0-1 7.0-2 0.00 MiB
community/cinnamon 5.6.4-1 5.6.5-1 0.01 MiB
community/cinnamon-translations 5.6.0-1 5.6.1-1 0.09 MiB
extra/cpio 2.13-2 2.13-3 -0.02 MiB
core/curl 7.86.0-4 7.87.0-1 0.00 MiB
extra/default-cursors 1-1 2-1 0.00 MiB
core/device-mapper 2.03.17-1 2.03.18-1 0.00 MiB
community/duktape 2.7.0-4 2.7.0-5 0.02 MiB
extra/ell 0.54-1 0.55-1 0.00 MiB
endeavouros/endeavouros-mirrorlist 4.10-1 4.11-1 0.00 MiB
endeavouros/endeavouros-theming 22.09.3.2-1 22.12.1.1-1 2.85 MiB
endeavouros/eos-bash-shared 1.39-1 1.41-1 0.00 MiB
endeavouros/eos-hooks 1.9-1 1.10-1 0.00 MiB
endeavouros/eos-quickstart 1.3-5 1.3.1-1 0.00 MiB
extra/ethtool 1:6.0-1 1:6.0-2 0.00 MiB
core/file 5.43-1 5.44-1 0.28 MiB
extra/fsarchiver 0.8.6-1 0.8.6-2 0.01 MiB
extra/gegl 0.4.40-2 0.4.40-3 0.00 MiB
extra/geoip-database 20221118-1 20221227-1 0.00 MiB
core/glib2 2.74.3-1 2.74.4-1 0.00 MiB
extra/gnu-netcat 0.7.1-8 0.7.1-9 0.00 MiB
extra/gperf 3.1-3 3.1-4 -0.01 MiB
extra/graphviz 7.0.4-1 7.0.5-1 0.04 MiB
extra/gst-libav 1.20.4-3 1.20.5-1 0.00 MiB
extra/gst-plugin-gtk 1.20.4-3 1.20.5-1 0.00 MiB
extra/gst-plugin-pipewire 1:0.3.63-1 1:0.3.63-3 0.00 MiB
extra/gst-plugins-bad 1.20.4-3 1.20.5-1 0.00 MiB
extra/gst-plugins-bad-libs 1.20.4-3 1.20.5-1 0.00 MiB
extra/gst-plugins-base 1.20.4-3 1.20.5-1 0.00 MiB
extra/gst-plugins-base-libs 1.20.4-3 1.20.5-1 0.00 MiB
extra/gst-plugins-ugly 1.20.4-3 1.20.5-1 0.00 MiB
extra/gstreamer 1.20.4-3 1.20.5-1 0.00 MiB
extra/gthumb 3.12.2-1 3.12.2-2 -0.02 MiB
extra/gtk-update-icon-cache 1:4.8.2-1 1:4.8.3-1 0.00 MiB
extra/gtk3 1:3.24.35-2 1:3.24.36-1 0.06 MiB
extra/gtk4 1:4.8.2-1 1:4.8.3-1 0.08 MiB
core/iana-etc 20221107-1 20221215-1 0.01 MiB
extra/imagemagick 7.1.0.55-1 7.1.0.55-2 0.00 MiB
community/iwd 2.0-1 2.1-1 0.00 MiB
extra/libcamera 0.0.2-1 0.0.3-1 0.08 MiB
core/libcurl-compat 7.86.0-4 7.87.0-1 -0.01 MiB
extra/libgusb 0.4.2-1 0.4.3-1 0.01 MiB
extra/libiec61883 1.2.0-6 1.2.0-7 0.00 MiB
extra/libkeybinder3 0.3.2-3 0.3.2-4 0.00 MiB
core/libksba 1.6.2-1 1.6.3-1 0.00 MiB
community/libmfx 22.4.4-1 22.6.4-1 0.00 MiB
extra/libmodplug 0.8.9.0-3 0.8.9.0-4 0.00 MiB
core/libmpc 1.3.0-2 1.3.1-1 0.00 MiB
extra/libnm 1.40.8-1 1.40.8-2 0.00 MiB
extra/libnss_nis 3.1-3 3.1-4 0.00 MiB
extra/libomxil-bellagio 0.9.3-3 0.9.3-4 0.00 MiB
community/libopenraw 0.3.2-1 0.3.3-1 0.04 MiB
extra/libproxy 0.4.18-1 0.4.18-2 0.00 MiB
extra/libraw 0.20.2-3 0.21.0-2 0.13 MiB
extra/libsigc++ 2.10.8-1 2.12.0-1 0.01 MiB
extra/libsm 1.2.3-3 1.2.4-1 0.00 MiB
extra/libsoxr 0.1.3-2 0.1.3-3 -0.12 MiB
extra/libwbclient 4.17.4-2 0.12 MiB
extra/libwmf 0.2.12-2 0.2.12-3 -0.05 MiB
core/linux 6.0.12.arch1-1 6.1.1.arch1-1 0.90 MiB
extra/linux-atm 2.5.2-7 2.5.2-8 -0.07 MiB
core/linux-firmware 20221109.60310c2-2 20221214.f3c283e-1 1.54 MiB
core/linux-firmware-whence 20221109.60310c2-2 20221214.f3c283e-1 0.00 MiB
core/linux-headers 6.0.12.arch1-1 6.1.1.arch1-1 0.30 MiB
extra/lua 5.4.4-2 5.4.4-3 0.00 MiB
core/lvm2 2.03.17-1 2.03.18-1 0.00 MiB
extra/mesa 22.3.1-1 22.3.1-2 0.00 MiB
extra/networkmanager 1.40.8-1 1.40.8-2 0.00 MiB
extra/nftables 1:1.0.5-1 1:1.0.6-1 0.03 MiB
community/node-gyp 9.3.0-1 9.3.1-1 0.05 MiB
extra/ntp 4.2.8.p15-2 4.2.8.p15-3 0.00 MiB
core/openssl 3.0.7-2 3.0.7-4 0.00 MiB
community/parallel 20221122-1 20221222-1 0.00 MiB
core/pciutils 3.9.0-1 3.9.0-2 0.00 MiB
extra/perl-encode-locale 1.05-9 1.05-10 0.00 MiB
extra/perl-html-tagset 3.20-12 3.20-13 0.00 MiB
extra/perl-http-date 6.05-5 6.05-6 0.00 MiB
extra/perl-http-negotiate 6.01-10 6.01-11 0.00 MiB
extra/perl-lwp-mediatypes 6.04-2 6.04-3 0.00 MiB
extra/perl-www-robotrules 6.02-10 6.02-11 0.00 MiB
extra/pipewire 1:0.3.63-1 1:0.3.63-3 0.00 MiB
extra/pipewire-alsa 1:0.3.63-1 1:0.3.63-3 0.00 MiB
extra/pipewire-audio 1:0.3.63-1 1:0.3.63-3 0.00 MiB
extra/pipewire-jack 1:0.3.63-1 1:0.3.63-3 0.00 MiB
extra/pipewire-pulse 1:0.3.63-1 1:0.3.63-3 0.00 MiB
core/python 3.10.8-3 3.10.9-1 0.02 MiB
extra/python-attrs 22.1.0-1 22.2.0-1 0.01 MiB
community/python-exceptiongroup 1.0.4-1 1.1.0-1 0.00 MiB
community/python-google-api-core 2.10.2-1 2.11.0-1 0.04 MiB
community/python-google-api-python-client 2.66.0-1 2.70.0-1 1.38 MiB
community/python-isort 5.10.1-6 5.11.4-1 0.00 MiB
community/python-pydantic 1.10.2-1 1.10.4-1 0.02 MiB
community/python-setproctitle 1.3.1-1 1.3.2-1 0.00 MiB
extra/python-trove-classifiers 2022.12.1-1 2022.12.22-1 0.00 MiB
extra/qrencode 4.1.1-1 4.1.1-2 0.00 MiB
extra/rsync 3.2.7-2 3.2.7-3 0.00 MiB
extra/samba 4.17.4-1 4.17.4-2 0.00 MiB
extra/slang 2.3.3-1 2.3.3-2 0.00 MiB
extra/smbclient 4.17.4-1 4.17.4-2 -0.12 MiB
extra/suitesparse 6.0.2-1 6.0.3-1 0.02 MiB
core/systemd 252.3-1 252.4-2 0.01 MiB
core/systemd-libs 252.3-1 252.4-2 0.00 MiB
core/systemd-sysvcompat 252.3-1 252.4-2 0.00 MiB
extra/ttf-bitstream-vera 1.10-14 1.10-15 0.00 MiB
extra/webkit2gtk 2.38.2-2 2.38.3-1 0.00 MiB
extra/webkit2gtk-4.1 2.38.2-2 2.38.3-1 0.00 MiB
endeavouros/welcome 3.44-1 3.45-1 0.00 MiB
extra/whois 5.5.14-1 5.5.15-1 0.01 MiB
core/wpa_supplicant 2:2.10-7 2:2.10-8 0.25 MiB
extra/xcb-util 0.4.0-4 0.4.1-1 0.00 MiB
core/xfsprogs 6.0.0-1 6.1.0-1 0.01 MiB
extra/xorg-server 21.1.5-1 21.1.6-1 0.00 MiB
extra/xorg-server-common 21.1.5-1 21.1.6-1 0.00 MiB
extra/xorg-xwayland 22.1.6-1 22.1.7-1 0.00 MiB
community/xreader 3.6.0-1 3.6.2-1 0.00 MiB
extra/yasm 1.3.0-5 1.3.0-6 0.00 MiB

Total Installed Size: 1552.74 MiB
Net Upgrade Size: 8.10 MiB

:: Proceed with installation? [Y/n]


I select YES:

:: Retrieving packages... (120/120) checking keys in keyring [----------------------------------------] 100% (120/120) checking package integrity [----------------------------------------] 100% error: failed to commit transaction (invalid or corrupted package) Errors occurred, no packages were upgraded.

Is there no output after this?

I think the issue is one of the packages is corrupted, but it is still in cache and pacman is using it.

Usually I get a delete package file prompt after this

There is no line after

Errors occurred, no packages were upgraded.
Just waiting me to input:
$

Look at this section from the FAQ

Also make sure your system clock is correct!
Of course, itā€™s also possible that the package file actually is corrupt. Remove it from /var/cache/pacman/pkg/ so pacman will download it again.
If no package file is explicitly mentioned then you may have an incomplete download. Run sudo rm /var/cache/pacman/pkg/*.part.part to remove any partial downloads.

So I would suggest to run
sudo rm /var/cache/pacman/pkg/*.part

That FAQ should cover all situations. I would suggest to follow all steps there again.

Ok, so I can remove system clock through typing:

sudo rm /var/cache/pacman/pkg/*.part
and then I just type
sudo pacman -Syyu
again after?

Logic is it will force pacman to download missing file (we think it maybe corrupt) ?

Yes. But it wonā€™t work unless you delete the corrupted or partially downloaded file
The instructions in the FAQ always work for me. These issues are very common in pacman. Thats why it is recommended to update only using
pacman, yay or paru so that we can diagnose the fix these issues. So I donā€™t use tools like topgrade or GUI package managers because it is hard to debug the issue.

I the above is still not working, delete your keyring and update it again.

If you have any other errors, you can clear out the pacman keyring and start fresh:

sudo mv /etc/pacman.d/gnupg /root/pacman-key.bak
sudo pacman-key --init
sudo pacman-key --populate archlinux endeavouros
sudo pacman -Syy archlinux-keyring endeavouros-keyring
sudo pacman -Syyu

I did this before I type the first time:

sudo mv /etc/pacman.d/gnupg /root/pacman-key.bak sudo pacman-key --init sudo pacman-key --populate archlinux endeavouros sudo pacman -Syy archlinux-keyring endeavouros-keyring sudo pacman -Syyu
And still got same error from before.

I will try this now:

sudo rm /var/cache/pacman/pkg/*.part sudo pacman -Syyu
1 Like

Why do I lose format when I use blockquote (HTML)?
My paragraph enter becomes 1 long sentence

If this is not working may be try the nuke option

sudo rm /var/cache/pacman/pkg/*

This will clear out the pacman cache so all files will be downloaded again.

But maybe backup the cache in case you need it.

1 Like

I typed:

sudo rm /var/cache/pacman/pkg/*.part
then:
sudo pacman -Syyu
It did updates, then ask for reboot. I reboot:
reboot
When I log in, I try update:
sudo pacman -Syyu
And there is nothing to do:
:: Synchronizing package databases... endeavouros 31.9 KiB 23.3 KiB/s 00:01 [----------------------] 100% core 152.6 KiB 92.4 KiB/s 00:02 [----------------------] 100% extra 1734.2 KiB 584 KiB/s 00:03 [----------------------] 100% community 7.2 MiB 1794 KiB/s 00:04 [----------------------] 100% multilib 163.4 KiB 96.9 KiB/s 00:02 [----------------------] 100% :: Starting full system upgrade... there is nothing to do
So the delete of the file is what work, I think. The rest of the FAQ I follow before I type here in forum, and none of it work, like I said. In the future, I will not use topgrade, but only use
sudo pacman -Syyu
to avoid corruption?
1 Like

Just

sudo pacman -Syu
or
yay
or 
paru

is enough.

You only need -Syyu when you update the mirrors.

1 Like

Thank you, sradjoker. I will make this part of my linux notes.

Happy New Year 2023

happy new year to you too!!

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