Problems updating with yay -Syu


I don’t understand what do i have to do here:

[keos@keos-pc ~]$ LANG=C su
[root@keos-pc keos]# pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 endeavouros is up to date
:: Starting full system upgrade...
 there is nothing to do
[root@keos-pc keos]# exit
[keos@keos-pc ~]$ LANG=C yay -Syu
[sudo] password for keos: 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 endeavouros is up to date
:: Starting full system upgrade...
 there is nothing to do
:: Searching databases for updates...
:: Searching AUR for updates...
 -> Missing AUR Packages:  stockfish-old
 -> Flagged Out Of Date AUR Packages:  localepurge
:: 1 Packages to upgrade.
1  aur/octopi-dev  0.10.0-2 -> 0.11.0-1
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
:: Checking for conflicts...
:: Checking for inner conflicts...
[Repo Make:12]  docbook-xml-4.5-9  docbook-xsl-1.79.2-7  glib2-docs-2.66.2-1  python-lxml-4.6.1-1  python-pygments-2.7.2-1  python-anytree-2.8.0-1  gtk-doc-1.33.1-1  netpbm-10.73.33-1  gts-  graphviz-2.44.1-4  vala-0.50.1-1  qt5-tools-5.15.1-2
[Aur:2]  alpm_octopi_utils-dev-1.0.2-1  octopi-dev-0.11.0-1

==> Remove make dependencies after install? [y/N] 

Pacman is telling you not to update →(y/N)
Therefore, first of all, we have to settle this conflict that you have there …

First, NEVER run yay as root. Never. Just don’t do it. Don’t run sudo yay and don’t run su first and then yay. yay does not need root access, and should not have it when building AUR packages. When yay needs root access, to install something, it will ask you for your sudo password.

Second, there is no need to type yay -Syu, just run yay, it does the same thing.

Third, it seems your repo packages are up to date, and you only have the AUR packages to update. Whenever you’re updating an AUR package, you should do the same procedure as when installing it, check the PKDBUILD and all.

When you are asked

Remove make dependencies after install?

you can safely answer either yes or no. Make dependencies are packages that are needed to build the AUR package (like compilers for various languages, libraries, etc…) but they are not needed after you install the package. So, if you answered yes, they will be uninstalled and will need to be installed again when you update the AUR package in question. But if you answered no, that’s okay too, as that will leave them installed for when you update the AUR package next time. So the choice comes down to either bloating up your system slightly or having to reinstall make dependencies every time you need them (slower update to the AUR package).


I’m confused, for the moment i will try to unswered n but …

=> Remove make dependencies after install? [y/N] n
:: Downloaded PKGBUILD (1/2): alpm_octopi_utils-dev
:: Downloaded PKGBUILD (2/2): octopi-dev
  2 alpm_octopi_utils-dev            (Build Files Exist)
  1 octopi-dev                       (Installed) (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)

==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)

Asks you whether you want to see the differences in the PKGBUILD file between the old and new version. If you do not know what that is, you should probably not be using the AUR, until you learn a bit more about it.

The PKGBUILD file is a script that runs when the package is built. It contains instructions (bash commands) on how to build and install a package. It is always a good idea to inspect it and to understand what it does, as it may contain malicious or untrustworthy code (as rare as that is).

I have a post giving you some advice on what to look for in a PKGBUILD file:

My advice is to read up on the AUR on the Arch Wiki, and here on the forum. It’s quite a rabbit hole, but it’s worth learning that stuff.

If you completely trust the AUR package (something I would never advise you to do), you can answer N for none to the question above, and not look at the PKGBUILD file. You do this at your own risk, of course.


Yes, you are right, it is a bit complex to me … I don’t really need any AUR package anymore, how can I safely remove what I may have already installed, including the octopi? Thank you.

You can remove any package either from the repos or from the AUR, using pacman.

First, to find out what you’ve installed from the AUR, you can list all the foreign packages (those are typically from the AUR) by running:

pacman -Qm

Then you can uninstall them one by one by running:

sudo pacman -R package_name

Thanks! I will …

Why did you mark “Thanks! I will …” as the solution? How is that the solution? :rofl:

You should mark the post that answers your question in the OP, as the solution. Which is this one: Problems updating with yay -Syu


I made a mistake …

I forgot there are a few things that i still needing from AUR … :thinking:
i tried again and this time i was capable to at least to updated it by just using ‘yay’ without sudo … Thanks.

Just be careful what you install from the AUR. I recommend learning about it.

When used properly, the AUR is the safest way to install software in existence, because it is completely transparent, and you are able to know exactly what it does to your system. But if you do not understand how it works, then this transparency is meaningless to you, and then you can run into problems and potentially install malware or spyware.

1 Like

Just somes chess engines and of course youtube-dl …

[keos@keos-pc ~]$ pacman -Qm
alpm_octopi_utils 1.0.2-1
crafty 25.2-3
critter-engine 1.6a-3
debtap 3.3.1-1
ethereal-git 1180-1
gull-git 3.0.4.r0.g8981253-1
komodo-11 11-1
lc0 0.26.2-1
mintstick 1.4.4-1
octopi-dev 0.10.0-2
protector-svn 1.9.0.r1134-1
python-pyparted 3.11.6-1
python2-twodict-git 1.2.r2.g925d3bd-1
scid_vs_pc 4.21-1
senpai 1.0-1
stockfish 1:12-1
stockfish-old 11-1
texel 1.06-1
trizen 1:1.64-1
xiphos-chess-git 113-1
youtube-dl-gui-git 0.4.r81.gc5c18e5-1
zurichess 11-1
[keos@keos-pc ~]$ 

Off-topic but:
Rather use su - (with a hyphen) so that a root login shell is started.
Instead of typing exit you can also just hit Ctrl+D :slight_smile:

1 Like

@torvic9, a good advice in general, but very off-topic here and it needs to be pointed out that it is not applicable here.

I will repeat, just in case:

Never run yay as root.

In fact, a more general advice: never run anything as root unless you really need to and understand why.


Never run any application as root unless elevated rights are needed :slight_smile:

EDIT: two idiots, same message :slight_smile:


Wait. What? How did you come to that conclusion?

I read that it is telling you that there is something to update and is capable, it just wants to know if you want to keep the dependencies required to build the AUR package or remove them when finished.

I generally keep them, otherwise the next time you update, you probably end up needing them again anyway.


That response to the post was a poor reading of both the question I did not read well and a poorly written hurried response given to these questions. To wit:

I never liked eliminating dependencies and even less of pacman, I may need them again.

With yay it may or may not be different, it depends on how you look at it and what you use to update or install packages.

For the rest, it was my mistake not to tell the OP not to use yay in root and what is always better to update with pacman than with yay, although here in EnOS it is used in the same way, not so much in pure Arch. I say this because I have seen several answers in the forum.

Let’s make it three like the 3 stooges! :laughing:

1 Like