When trying to update the system with "yay" I'm getting an error and the system does not update. What do I have to type in terminal to fix this?

This is the error I’m getting:

:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
warning: removing 'nodejs' from target list because it conflicts with 'nodejs-lts-hydrogen'
:: nodejs-lts-hydrogen and nodejs are in conflict. Remove nodejs? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: installing pacman (6.1.0-3) breaks dependency 'pacman<6.1' required by libpamac-full
 -> error installing repo packages
error installing repo packages
1 Like

Remove this package and whatever depends on it first.

sudo pacman -Rc libpamac-full

Update your system:

sudo pacman -Syu

If you need pamac, reinstall it from AUR.

3 Likes

Hey. Thank you for the reply.

May I ask what does -Rc do? I’ve removed packaged with -Rs until now.

pacman -Rc libpamac-full, in this case, will remove libpamac-full and what is dependent on it, namely, pamac-all, assuming that that is the package you installed from AUR.

You could also do pacman -Rs pamac-all, instead, to remove pamac-all and its dependency,
namely libpamac-full.

Be mindful of not using both options together as it has the potential to remove all of the dependencies of a certain package recursively and whatever is dependent on it recursively.

For more (and surely better) explanation of these options, please refer to man pacman.

Hey. Thanks. I checked out which pamacs I have installed and found out that I have the following packages.

aur/libpamac-full 1:11.6.4-1 (+12 1.12) (Installed: 1:11.6.3-1)

aur/pamac-cli 11.6.0-2 (+12 0.10) (Installed)

Should I remove “libpamac-full” and that will fix my system or should I install something too?

You can just uninstall these two packages. These require an older version of pacman and that is why they are preventing your system to be updated.

After removing these packages, you can update your system: sudo pacman -Syu

You don’t need to install anything else, unless you want pamac-cli But having pacman in your toolbox, I really don’t see any use for it.

Hey :slight_smile: Thank you for the reply. Was very educational!

1 Like

If you initial issue has been resolved to your satisfaction, check the box for solution under the post giving the solution, thanks!

1 Like

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