Pacman and yay both hang when installing new/updating packages

I wanted to update the system using pacman but did not have the chaotic-keys

so:

❯ sudo pacman -Sy chaotic-keyring
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 chaotic-aur is up to date
resolving dependencies...
looking for conflicting packages...

Packages (1) chaotic-keyring-20210406-1

Total Installed Size:  0,01 MiB
Net Upgrade Size:      0,01 MiB

:: Proceed with installation? [Y/n] Y
(1/1) checking keys in keyring                                 [----------------------------------] 100%
(1/1) checking package integrity                               [----------------------------------] 100%
(1/1) loading package files                                    [----------------------------------] 100%
(1/1) checking for file conflicts                              [----------------------------------] 100%
(1/1) checking available disk space                            [----------------------------------] 100%
:: Running pre-transaction hooks...
(1/1) Creating Timeshift snapshot before upgrade...
First run mode (config file not found)
Selected default snapshot type: BTRFS
Using system disk as snapshot device for creating snapshots in BTRFS mode

/dev/nvme0n1p2 is mounted at: /run/timeshift/backup, options: rw,relatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=5,subvol=/

Creating new backup...(BTRFS)
Saving to device: /dev/nvme0n1p2, mounted at path: /run/timeshift/backup
Created directory: /run/timeshift/backup/timeshift-btrfs/snapshots/2021-05-12_06-53-06
Created subvolume snapshot: /run/timeshift/backup/timeshift-btrfs/snapshots/2021-05-12_06-53-06/@
Created control file: /run/timeshift/backup/timeshift-btrfs/snapshots/2021-05-12_06-53-06/info.json
BTRFS Snapshot saved successfully (0s)
Tagged snapshot '2021-05-12_06-53-06': ondemand
------------------------------------------------------------------------------
First run mode (config file not found)
Selected default snapshot type: BTRFS

/dev/nvme0n1p2 is mounted at: /run/timeshift/backup, options: rw,relatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=5,subvol=/

Selected default snapshot device: /dev/nvme0n1p2
------------------------------------------------------------------------------
Removing snapshot: 2021-03-28_12-40-11
Deleting subvolume: @ (Id:366)
Deleted subvolume: @ (Id:366)

Destroying qgroup: 0/366
Destroyed qgroup: 0/366

Deleted directory: /run/timeshift/backup/timeshift-btrfs/snapshots/2021-03-28_12-40-11
Removed snapshot: 2021-03-28_12-40-11
------------------------------------------------------------------------------
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/garuda/theme.txt
Found linux image: /boot/vmlinuz-linux-zen
Found initrd image: /boot/amd-ucode.img /boot/initramfs-linux-zen.img
Found fallback initrd image(s) in /boot: initramfs-linux-zen-fallback.img
Found linux image: /boot/vmlinuz-linux-lts
Found initrd image: /boot/amd-ucode.img /boot/initramfs-linux-lts.img
Found fallback initrd image(s) in /boot: initramfs-linux-lts-fallback.img

and the installation hangs on this line forever.

Any ideas what can I do to restore the integrity of the system at this point?

Pacman yay are not hanging at all they have finished Timeshift is doing its 1st backup that takes time after that the system is updated please read about updating and timeshift 1st.

3 Likes

@mandog you are correct. Comming from debian based systems I was not expecting this behavior. letting the process run for 15 minutes actually solved the issue and the installation finished without errors. I was a bit suprised by the lack of progress-bar in the terminal as a feedback that the process is actually ongoing.

Thanks for your help!

Yes its the way timeshift work more so with the 1st backup glad all is fine now

4 Likes

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