Cannot update system any more - package manager freezes

As of today I cannot update my system any more. I already restarted the machine more than once, but the update process keeps freezing.

This is the command I use to start the update:
sudo pacman -Syu

Then after some time the process keeps hanging at:

Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.

(for the full output see below)

I’ve let the machine run for almost two hours, but it seems reproducibly stuck at this point.
Can anyone give me a hint on how to solve/debug/analyze this?

PS: Here’s the full output:

sudo pacman -Syu
[sudo] password for vankurt: 
:: Synchronizing package databases...
 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...

Packages (181) adw-gtk3-3.1-1  alacarte-1:3.44.2-1  alsa-card-profiles-1:0.3.52-2  alsa-lib-1.2.7.1-1  alsa-plugins-1:1.2.7.1-1
               alsa-ucm-conf-1.2.7.1-1  amd-ucode-20220610.7b71b75-1  android-tools-31.0.3-6  android-udev-20220611-1  aom-3.4.0-1  apache-2.4.54-1
               archlinux-appstream-data-20220618-1  arcus-4.13.1-3  bitwarden-2022.5.1-1  blender-17:3.2.0-3  boost-libs-1.79.0-1
               brave-browser-1.40.107-1  caffeine-ng-3.5.1+71+g77611ac-3  curaengine-4.13.1-3  e2fsprogs-1.46.5-4  embree-3.13.4-1
               ffmpeg4.4-4.4.2-3  fftw-3.3.10-3  file-5.42-1  firefox-102.0-1  freecad-0.19.4-5  gimp-2.10.32-1  glibc-locales-2.35-1
               glslang-11.10.0-1  gmic-3.1.4-1  gnome-calendar-42.2-1  gnome-shell-extension-arcmenu-35-1  gperftools-2.10-1
               gst-editing-services-1.20.3-1  gst-libav-1.20.3-1  gst-plugin-gtk-1.20.3-1  gst-plugin-pipewire-1:0.3.52-2  gst-plugins-bad-1.20.3-1
               gst-plugins-bad-libs-1.20.3-1  gst-plugins-base-1.20.3-1  gst-plugins-base-libs-1.20.3-1  gst-plugins-good-1.20.3-1
               gst-plugins-ugly-1.20.3-1  gst-python-1.20.3-1  gstreamer-1.20.3-1  gtksourceview5-5.4.2-1  hwinfo-21.81-1  imagemagick-7.1.0.39-1
               imath-3.1.5-2  kauth-5.95.0-1  kbd-2.5.1-1  kcoreaddons-5.95.0-1  kguiaddons-5.95.0-1  kitemmodels-5.95.0-1  lib32-alsa-lib-1.2.7.1-1
               lib32-alsa-plugins-1.2.7.1-1  lib32-libx11-1.8.1-1  lib32-mesa-22.1.2-1  lib32-openssl-1:1.1.1.p-1  lib32-vulkan-icd-loader-1.3.217-1
               libass-0.16.0-1  libavif-0.10.1-2  libbluray-1.3.1-1  libbytesize-2.7-1  libidn-1.40-1  libinput-1.21.0-1  libmtp-1.1.19-2
               libnm-1.38.2-1  libnma-1.8.40-1  libnma-common-1.8.40-1  libnma-gtk4-1.8.40-1  libnss_nis-3.1-3  libopenmpt-0.6.4-1
               libphonenumber-1:8.12.50-2  libpulse-16.1-1  librsvg-2:2.54.4-1  libwacom-2.3.0-1  linux-firmware-20220610.7b71b75-1
               linux-firmware-whence-20220610.7b71b75-1  linux515-5.15.49-1  linux515-headers-5.15.49-1  linux515-nvidia-515.48.07-7
               lollypop-1.4.34-1  manjaro-hello-0.7.0-1  manjaro-release-21.3.1-1  manjaro-settings-manager-0.5.7-5
               manjaro-settings-manager-notifier-0.5.7-5  mesa-22.1.2-1  mesa-utils-8.5.0-2  multipath-tools-0.9.0-1  mumble-1.4.230-10
               netcdf-4.9.0-1  networkmanager-1.38.2-1  noto-fonts-20220607-1  oath-toolkit-2.6.7-1  openconnect-1:9.01-2  opencv-4.6.0-3
               openimageio-2.3.16.0-2  openshadinglanguage-1.11.17.0-3  openssl-1.1.1.p-1  openvdb-9.1.0-1  pacman-6.0.1-10  pciutils-3.8.0-2
               pcsclite-1.9.8-1  pipewire-1:0.3.52-2  poco-1.11.3-1  protobuf-21.1-1  protobuf-c-1.4.0-4  pulseaudio-16.1-1
               pulseaudio-alsa-1:1.2.7.1-1  pulseaudio-bluetooth-16.1-1  pulseaudio-zeroconf-16.1-1  pyside2-5.15.5-1  pyside2-tools-5.15.5-1
               pyside6-6.3.1-1  python-babel-2.10.3-1  python-bcrypt-3.2.1-1  python-contextlib2-21.6.0-1  python-google-api-core-2.8.2-1
               python-google-api-python-client-2.51.0-1  python-googleapis-common-protos-1.56.2-1  python-jaraco.context-4.1.1-2
               python-jaraco.functools-3.5.0-2  python-jaraco.text-3.8.0-2  python-more-itertools-8.13.0-1  python-nspektr-0.4.0-1
               python-protobuf-21.1-1  python-pyqt5-5.15.7-1  python-pyqt5-sip-12.11.0-1  python-reportlab-3.6.10-1  python-setuptools-1:61.3.1-1
               python-shapely-1.8.2-1  python-shiboken2-5.15.5-1  python-trove-classifiers-2022.5.19-1  python-validate-pyproject-0.9-1
               qgnomeplatform-qt5-0.8.4-4  qgnomeplatform-qt6-0.8.4-4  qt5-base-5.15.5+kde+r163-1  qt5-declarative-5.15.5+kde+r19-1
               qt5-graphicaleffects-5.15.5+kde+r0-1  qt5-location-5.15.5+kde+r3-1  qt5-quickcontrols-5.15.5+kde+r0-1
               qt5-quickcontrols2-5.15.5+kde+r5-1  qt5-sensors-5.15.5+kde+r0-1  qt5-svg-5.15.5+kde+r10-1  qt5-tools-5.15.5+kde+r1-1
               qt5-translations-5.15.5+kde+r2-1  qt5-wayland-5.15.5+kde+r38-1  qt5-webchannel-5.15.5+kde+r3-1  qt5-webengine-5.15.10-2
               qt5-webkit-5.212.0alpha4-15  qt5-websockets-5.15.5+kde+r3-1  qt5-x11extras-5.15.5+kde+r0-1  qt5-xmlpatterns-5.15.5+kde+r0-1
               qt6-base-6.3.1-1  qt6-declarative-6.3.1-1  qt6-svg-6.3.1-1  qt6-translations-6.3.1-1  qt6-wayland-6.3.1-1  shiboken6-6.3.1-1
               signal-desktop-5.46.0-1  smbclient-4.16.2-1  snapd-2.56.2-1  sof-firmware-2.1.1.a-1  speex-1.2.1-1  speexdsp-1.2.1-1  srt-1.5.0-1
               sudo-1.9.11.p2-1  svt-av1-1.1.0-1  timeshift-22.06.2-2  vtk-9.1.0-18  vulkan-headers-1:1.3.217-1  vulkan-icd-loader-1.3.217-1
               webapp-manager-1.2.0-1  wine-7.11-1  xapp-2.2.11-1  xcb-proto-1.15.2-1  xmlsec-1.2.34-1  yay-11.2.0-1  zimg-3.0.4-1  zstd-1.5.2-7

Total Installed Size:  5406,98 MiB
Net Upgrade Size:      -222,68 MiB

:: Proceed with installation? [Y/n] Y
(181/181) checking keys in keyring                                                        [####################################################] 100%
(181/181) checking package integrity                                                      [####################################################] 100%
(181/181) loading package files                                                           [####################################################] 100%
(181/181) checking for file conflicts                                                     [####################################################] 100%
(181/181) checking available disk space                                                   [####################################################] 100%
:: Running pre-transaction hooks...
(1/3) Creating Timeshift snapshot before upgrade...
Using system disk as snapshot device for creating snapshots in BTRFS mode
Mounted '/dev/nvme0n1p2' at '/run/timeshift/2759/backup'
Creating new backup...(BTRFS)
Saving to device: /dev/nvme0n1p2, mounted at path: /run/timeshift/2759/backup
Created directory: /run/timeshift/2759/backup/timeshift-btrfs/snapshots/2022-07-01_05-53-43
Created subvolume snapshot: /run/timeshift/2759/backup/timeshift-btrfs/snapshots/2022-07-01_05-53-43/@
Created control file: /run/timeshift/2759/backup/timeshift-btrfs/snapshots/2022-07-01_05-53-43/info.json
BTRFS Snapshot saved successfully (0s)
Tagged snapshot '2022-07-01_05-53-43': ondemand
------------------------------------------------------------------------------

Found stale mount for device '/dev/nvme0n1p2' at path '/run/timeshift/2759/backup'
Unmounted successfully
Mounted '/dev/nvme0n1p2' at '/run/timeshift/2908/backup'
------------------------------------------------------------------------------
Removing snapshot: 2022-06-23_22-09-11
Deleting subvolume: @ (Id:297)
Deleted subvolume: @ (Id:297)

Deleted directory: /run/timeshift/2908/backup/timeshift-btrfs/snapshots/2022-06-23_22-09-11
Removed snapshot: 2022-06-23_22-09-11
------------------------------------------------------------------------------

Found stale mount for device '/dev/nvme0n1p2' at path '/run/timeshift/2908/backup'
Unmounted successfully
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.17-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.17-x86_64.img
Found initrd fallback image: /boot/initramfs-5.17-x86_64-fallback.img
Found linux image: /boot/vmlinuz-5.15-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.15-x86_64.img
Found initrd fallback image: /boot/initramfs-5.15-x86_64-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.

are you running on 5.15 kernel? if so uninstall the 5.17 and run the update again, and try the pamac gui instead

For the note, here is how to format terminal output in a post.