Help with Manjaro updates

For the past few days I haven’t been able to update my Manjaro install. It keeps throwing an error. I;ve googled around but haven’t found anything useful yet. Anyone have any ideas?

machine:
Dell Latitude e7450
core i7
16gb RAM
256gb ssd

sudo pacman -Syyu
[sudo] password for max:
:: Synchronizing package databases…
core 147.7 KiB 2023 KiB/s 00:00 [######################] 100%
extra 1757.6 KiB 8.17 MiB/s 00:00 [######################] 100%
community 5.2 MiB 7.97 MiB/s 00:01 [######################] 100%
multilib 181.1 KiB 13.6 MiB/s 00:00 [######################] 100%
:: Starting full system upgrade…
warning: fontconfig: local (2:2.13.1+12+g5f5ec56-2) is newer than extra (2:2.13.1+12+g5f5ec56-1)
resolving dependencies…
looking for conflicting packages…

Packages (126) acl-2.2.53-2 adwaita-icon-theme-3.34.3-1 attr-2.4.48-2
bluez-5.52-1 bluez-libs-5.52-1 bzip2-1.0.8-3 cifs-utils-6.9-1
coreutils-8.31-3 cronie-1.5.5-1 curl-7.67.0-3 dav1d-0.5.1-1
dhcpcd-8.1.1-2 etcher-1.5.63-1 faac-1.30-1 faad2-2.9.1-1
ffmpeg-1:4.2.1-4 findutils-4.7.0-2 fuse-common-3.8.0-1
fuse3-3.8.0-1 gawk-5.0.1-2 gcc-9.2.0-4 gcc-libs-9.2.0-4
gegl-0.4.18-1 gimp-2.10.14-1 git-2.24.0-1 glslang-7.13.3496-1
gnome-disk-utility-3.34.0-2 gnome-keyring-1:3.34.0-2
grub-2.04-7 gst-plugins-bad-1.16.1-4 gst-plugins-ugly-1.16.1-2
hplip-1:3.19.11-1 iana-etc-20191030-1 imagemagick-7.0.9.2-3
intel-ucode-20191115-1 iso-codes-4.4-1 karchive-5.64.0-1
kauth-5.64.0-1 kcompletion-5.64.0-1 kconfig-5.64.0-1
kcoreaddons-5.64.0-1 kcrash-5.64.0-1 kguiaddons-5.64.0-1
ki18n-5.64.0-1 kitemmodels-5.64.0-1 kitemviews-5.64.0-1
kmod-26-3 kwidgetsaddons-5.64.0-1 kwindowsystem-5.64.0-1
ldb-1:1.5.6-1 lib32-expat-2.2.9-1 lib32-gcc-libs-9.2.0-4
lib32-libice-1.0.10-1 lib32-libva-2.5.0-1 lib32-libxi-1.7.10-1
lib32-mesa-19.2.4-0.1 lib32-mesa-vdpau-19.2.4-0.1
lib32-vulkan-intel-19.2.4-0.1 lib32-vulkan-radeon-19.2.4-0.1
libcdio-paranoia-10.2+2.0.1-1 libclastfm-0.5-6
libdvdnav-6.0.1-1 libdvdread-6.0.2-1 libedit-20191025_3.1-1
libheif-1.6.0-1 libimobiledevice-1.2.0+87+g92c5462-4
libmbim-1.20.2-1 libmm-glib-1.12.0-1 libnm-1.20.6-1
libnma-1.8.24-1 libplacebo-1.21.0-1 libplist-2.1.0-1
libpwquality-1.4.2-1 librsvg-2:2.46.3+6+g4735bd07-1
libshout-1:2.4.3-2 libssh-0.9.2-1 libtiff-4.1.0-1
libva-mesa-driver-19.2.4-0.1 libwbclient-4.10.10-1
linux419-4.19.84-1 manjaro-cinnamon-settings-20191111-1
manjaro-release-18.1.3-1 mesa-19.2.4-0.1 mesa-vdpau-19.2.4-0.1
mhwd-nvidia-390xx-390.132-1 mhwd-nvidia-418xx-418.113-1
mhwd-nvidia-430xx-430.64-1 mhwd-nvidia-440xx-440.31-1
mkinitcpio-27-2.0 modemmanager-1.12.0-1 mpg123-1.25.13-1
network-manager-applet-1.8.24-1 networkmanager-1.20.6-1
nm-connection-editor-1.8.24-1 openssl-1.0-1.0.2.t-1
openvpn-2.4.8-1 orc-0.4.31-1 pacman-5.2.1-1 pamac-cli-9.1.1-1
pamac-common-9.1.1-1 pamac-gtk-9.1.1-1
papirus-icon-theme-20191101-1 parted-3.3-1
perl-alien-build-1.92-1 pyqt5-common-5.13.2-1
python-dbus-1.2.10-1 python-dbus-common-1.2.10-1
python-pyparsing-2.4.4-1 python-pyqt5-5.13.2-1
python2-pyparsing-2.4.4-1 qt5-base-5.13.2-1
qt5-declarative-5.13.2-1 qt5-multimedia-5.13.2-1
qt5-styleplugins-5.0.0.20170311-17 qt5-svg-5.13.2-1
qt5-x11extras-5.13.2-1 samba-4.10.10-1 shaderc-2019.0-3
smbclient-4.10.10-1 suitesparse-5.6.0-1 thunderbird-68.2.2-1
twolame-0.4.0-2 vlc-3.0.8-6 vulkan-icd-loader-1.1.127-1
vulkan-intel-19.2.4-0.1 vulkan-radeon-19.2.4-0.1

Total Download Size: 2.89 MiB
Total Installed Size: 1932.22 MiB
Net Upgrade Size: -473.41 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages…
intel-ucode-2019… 2.4 MiB 8.46 MiB/s 00:00 [######################] 100%
pamac-common-9.1… 379.6 KiB 10.0 MiB/s 00:00 [######################] 100%
pamac-cli-9.1.1-… 39.3 KiB 9.60 MiB/s 00:00 [######################] 100%
pamac-gtk-9.1.1-… 115.3 KiB 11.3 MiB/s 00:00 [######################] 100%
(126/126) checking keys in keyring [######################] 100%
(126/126) checking package integrity [######################] 100%
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.

Found a post on the Manjaro forum where someone was having the same issue as you. Looks like this resolved it. Hope that helps.

Original post is here - Manjaro not booting after updating (basically a complete newbie) - Support - Manjaro Linux Forum

1 Like

another recommendation is definitely join the forums there if you plan to stick around with Manjaro, I am there and it is a pretty friendly community normally :slight_smile:

THANK YOU ERIC!

That did the trick. So why would the cache get corrupted like that? Something I did on my end?

1 Like

Hope Manjaro continues to work for you. When I tried it I wiped it after a couple of days after a problem like this. I didn’t know enough to dive into the CLI for a solution and just found it extremely frustrating that a basic thing like software update was broken out of the box :confused:

Honestly, I’m not entirely sure but my guess is that the cached packages were failing a checksum match against the mirror you were using so maybe the mirror was out of sync or something like that. By purging the cached files and updating the mirror you were able to get a fresh copy of everything and since it all matched the transaction was able to complete successfully. I don’t think it’s anything you did on your end. Rolling distros release a lot of updates on a frequent basis and sometimes things can get out of sync. As was suggested, if you plan on sticking with Manjaro I would definitely check out their forum. There’s a wealth of information there and usually others will run into the same issues and a solution has been found.

2 Likes

I had the same or similar problem but I solved it by just pratting about (that’s trying randon “stuff”).

What seemed to work for me was removing pamac

sudo pacman -R pamac

and then using yay to re-install a matching set of pamac and the tray notification icon (forget the exact name) from the list of versions yay provided

yay pamac

Not very scientific, but the Manjaro install wasn’t important to me, and I was to replace the HDD the following day for an SSD so it was going away anyway. But hey, it worked.

1 Like

Actually, ‘failing the checksum’ ringed a bell for me. Earlier this week when the OS stated I had updates I went in and changed the download region from ‘Worldwide’ to ‘United States’ in order to speed things up.

I would bet that’s where my issues came from. By changing the region I bet the checksums changed and that borked everything.

I’ll second that. The Manjaro community is pretty nice, very unlike the Arch “community” on their forums…

:slight_smile:

I had the same issue and re-sync’ing through pacman did not work. What did work, though, was to delete the local cache and then resync with pacman.

Delete all files in the /var/lib/pacman/local

Then resync with sudo pacman -Syu

The resync will download and repopulate the local cache in /var/lib/pacman/local.

The issue is that one or more of the files in the local cache seems to be corrupt.

Hope this helps.

2 Likes

Did the same thing on my end on my XFCE build. I just nuked the pacman cache in /var/cache/pacman/pkg and then did the old pacman -Syyu. Also you many want to pacman -Syyuu fontconfig. It doesn’t cause big problems, but yells at you when trying to update or install things.

1 Like

One of the first things I do after a Manjaro install drop to a terminal and update via “sudo pacman -Syyu” (minus the quotes). I’ll then reboot after updates, open the package manager and change Pamac preferences → Official Repositories to → United States, and the click on Refresh Mirrors List. Then I’ll enable the AUR → Check for updates from AUR and then Refresh Mirrors List again, close out of Pamac and reopen, installing AUR stuff I want. Never had issues with doing this, but your mileage my vary. :wink:

1 Like

You sound like you know Arch quite well. Would not doing this probably lead to issues further down the line, I wonder? Asking because I once installed Manjaro, but it just wouldn’t update when I clicked on the gui for updates. I’ve never used Arch/Pacman and had no clue what to do. For such a basic fundamental thing, I think it should work out of the box, personally. Maybe it was just my poor luck at the time.

Ya, sometimes the GUI update isn’t such a good idea, since the updates actually include the GUI update utility, so your better off just updating from the terminal. If major updates happen I also use the “sudo shutdown -r now” command. (reboots the system). (minus the quotes).

1 Like

I agree. I’m a pretty conservative Debian user so I tend to update from terminal using aptitude for packages and apt for distro, as-per official guidelines, I believe. Thanks for the tip for when I retry Manjaro though :slight_smile:

Just typing reboot in the terminal works exactly the same, especially if you’ve already authenticated in that terminal session to run updates. Otherwise it’d just be sudo reboot then password.

Using “shutdown -r now” is a bit Windows-esque? :joy:

As for me, I always run a sudo pacman -Syu in the terminal whenever I boot up for the first time every day in Manjaro. I run an -Syyuu every few days just to keep the lists up to date and refreshed.

I rarely install stuff from Pamac, but I do use it to search for software if I can’t remember the package name to run a ‘sudo pacman -S packagename’ command.

And because it’s Linux I’ll throw in the sudo systemctl reboot option as well. I also tend to use sudo systemctl poweroff for shutting down headless virtual machines.

1 Like

It’s a old habit from running Unix for years prior to Linux coming out. :wink:

2 Likes