3

Trying to update my package database:

$ sudo pacman -Syu
[sudo] password for pietrom: 
:: Synchronizing package databases...
 core is up to date
 extra                                    1770.5 KiB   259K/s 00:07 [######################################] 100%
 community                                   5.3 MiB   150K/s 00:36 [######################################] 100%
 multilib is up to date
:: Starting full system upgrade...
warning: fontconfig: local (2:2.13.91+23+g65087ac-1) is newer than extra (2:2.13.1+12+g5f5ec56-2)
warning: lib32-systemd: local (243.9-1) is newer than multilib (242.135-1)
warning: python-pip: local (19.2.3-1.4) is newer than extra (19.2.3-1)
warning: systemd: local (243.9-1) is newer than core (242.135-1)
warning: systemd-libs: local (243.9-1) is newer than core (242.135-1)
warning: systemd-sysvcompat: local (243.9-1) is newer than core (242.135-1)
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing pamac-common (9.0.0-3) breaks dependency 'pamac-common<9.0.0' required by pamac-qt

Apart from the warnings about the newer versions already installed, what is and how can I fix the last error?

What I am trying to update is my LLVM/clang version (from 8 to 9), which I failed to do with Pacman.

3 Answers 3

3

pacman is telling you that it can't update the system, because it can't update a package without breaking a dependency.

You have a package installed called pamac-qt. This package is listed as "experimental" and it is not compatible with the pamac 9 API. You'll need to replace it with pamac-gtk.

This should fix your issue:

pacman -S pamac-gtk
pacman -R pamac-qt
11
  • Strange. With: sudo pacman -Qi pacman-qt | grep Required I get: "error: package 'pacman-qt' was not found". Trying to launch it from the GUI/KDE, nothing happens. It was working a few days ago. Could have it been uninstalled by the system automatically?
    – Pietro
    Commented Oct 14, 2019 at 20:15
  • @Pietro the package listed in the output is pamac-qt, not pacman-qt, try that
    – Codebling
    Commented Oct 14, 2019 at 20:21
  • Ops, I read too quickly; thank you. Now I get: "Required By : None"
    – Pietro
    Commented Oct 14, 2019 at 20:25
  • @Pietro looks like you are free to delete it. If you know what it is and want to continue using it, install the AUR package that I mentioned
    – Codebling
    Commented Oct 14, 2019 at 20:26
  • 1
    @Pietro earlier, you were attempting pacman -Syu, y means refresh and u means system upgrade. That's why this is happening. If you want to install a package using pacman, use pacman -S packagename
    – Codebling
    Commented Oct 14, 2019 at 23:55
1

The best solution to resolve this issue is to remove all broken dependencies manually and then rerun sudo pacman -Syu command. It works!

0

Remove the package and all its dependent packages:

sudo pacman -Runcs <package-name>

Then you can update the system and reinstall the package if needed.

-u, --unneeded       remove unneeded packages
-n, --nosave         remove configuration files
-c, --cascade        remove packages and all packages that depend on them
-s, --recursive      remove unnecessary dependencies

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .