I got error: target not found when upgrading package using yay

Hello, I want to ask when i want to upgrade my package using yay i got this error message:

this is packages that i want to update

14  aur/android-studio          2021.1.1.23-1     -> 2022.1.1.20-1
13  aur/celt                    0.11.3-4          -> 0.11.3-5
12  aur/ceph-libs               15.2.14-6         -> 17.2.5-5
11  aur/conky-lua               1.11.5-1          -> 1.12.2-1
10  aur/galculator-gtk2         2.1.4-5           -> 2.1.4-6
 9  aur/gnome-icon-theme        3.12.0-6          -> 3.12.0-7
 8  aur/google-chrome           100.0.4896.88-1   -> 110.0.5481.100-1
 7  aur/metis                   5.1.0.p10-2       -> 5.1.0.p11-1
 6  aur/qpdfview                0.4.18-2          -> 0.5.0-1
 5  aur/qt5-styleplugins        5.0.0.20170311-27 -> 5.0.0.20170311-35
 4  aur/spotify                 1:1.1.80.699-1    -> 1:1.1.84.716-12
 3  aur/ulauncher               5.14.3-1          -> 5.15.1-1
 2  aur/visual-studio-code-bin  1.66.2-1          -> 1.75.1-1
 1  aur/zoom                    5.10.0-1          -> 5.13.7-1

This is package need to be updated

Packages (103) abseil-cpp-20220623.1-1  boost-1.81.0-2  coffeescript-2.7.0-1
               cpio-2.13-3  crypto++-8.7.0-1  cunit-2.1.3-3  debuginfod-0.188-3
               erlang-nox-25.2-2  fcgi-2.4.2-2  gperf-3.1-4  gperftools-2.10-1
               icon-naming-utils-0.8.90-5  java-hamcrest-1.3-5  junit-4.13.2-1
               leveldb-1.23-3  libatomic_ops-7.6.14-1  libcurl-compat-7.87.0-3
               libmicrohttpd-0.9.75-1  librabbitmq-c-0.11.0-2
               librdkafka-2.0.2-1  numactl-2.0.16-1  perl-xml-simple-2.25-7
               python-aniso8601-9.0.1-4  python-apipkg-3.0.1-1
               python-astroid-2.14.1-1  python-bcrypt-4.0.1-1
               python-cachetools-5.3.0-1  python-cheroot-9.0.0-3
               python-cherrypy-18.8.0-2  python-coverage-6.5.0-2
               python-dill-0.3.6-1  python-elasticsearch-7.9.0-1
               python-exceptiongroup-1.1.0-1  python-filelock-3.8.2-2
               python-flask-2.2.2-1  python-flask-restful-0.3.9-4
               python-google-api-core-2.11.0-1
               python-google-api-python-client-2.70.0-1
               python-google-auth-2.16.0-1  python-google-auth-httplib2-0.1.0-3
               python-googleapis-common-protos-1.58.0-1  python-grpcio-1.51.1-3
               python-httplib2-0.21.0-2  python-imagesize-1.4.1-2
               python-iniconfig-2.0.0-2  python-isodate-0.6.1-2
.......

and this is the error message

error: target not found: python-xmlsec
error: target not found: python-pbr
error: target not found: python-webob
error: target not found: python-mako
error: target not found: python-waitress
error: target not found: python-webtest
error: target not found: python-logutils
error: target not found: python-pecan
error: target not found: python-pluggy
error: target not found: python-iniconfig
error: target not found: python-apipkg
error: target not found: python-py
error: target not found: python-pyjwt
error: target not found: python-repoze.lru
error: target not found: python-routes
error: target not found: python-joblib
error: target not found: python-pooch
error: target not found: python-scipy
error: target not found: python-threadpoolctl
error: target not found: python-scikit-learn
error: target not found: python-imagesize
error: target not found: python-snowballstemmer
error: target not found: python-sphinx-alabaster-theme
error: target not found: python-sphinxcontrib-applehelp
error: target not found: python-sphinxcontrib-devhelp
error: target not found: python-sphinxcontrib-htmlhelp
error: target not found: python-sphinxcontrib-jsmath
error: target not found: python-sphinxcontrib-qthelp
error: target not found: python-sphinxcontrib-serializinghtml
error: target not found: python-sphinx
error: target not found: python-filelock
error: target not found: python-virtualenv
error: target not found: erlang-nox
error: target not found: socat
error: target not found: rabbitmq
error: target not found: libmicrohttpd
error: target not found: debuginfod
error: target not found: valgrind
error: target not found: xmlstarlet
error: target not found: yasm
error: target not found: python-mock
error: target not found: python-nose
error: target not found: python-pycodestyle
error: target not found: python-dill
error: target not found: python-pylint
error: target not found: python-exceptiongroup
error: target not found: python-pytest
error: target not found: python-pytest-cov
error: target not found: perl-xml-simple
error: target not found: icon-naming-utils
 -> error installing repo packages

i am using python 3.10 and it worked properly and i don’t know, can you guys help me how to resolve it? thankkss

p.s. i’ve been trying to update it using pamac but the output says nothing to be updated

Hi @Hackbear, and welcome!

It seems to me that your mirror list needs updating. So try:

sudo pacman-mirrors -f 5 && sudo pacman -Syyu

…followed by trying to update with pamac again:

pamac upgrade && pamac upgrade --aur --devel || echo -e '\033[0;91mThere was an error upgrading the system. AUR packages not upgraded.\e[0m'

This will update your system and ONLY if that was successful update any AUR packages.

a Reminder: While use of the AUR is possible, it’s neither recommended nor supported.

I recommend pamac instead of pacman, especially for newcomers as pamac was developed by Manajaro (developers) for Manjaro and just takes care of more thing than pacman.

1 Like

I remember this to be an issue some time ago - if I remember correctly it prevented the update.
It was no longer needed and could be removed.

Check the AUR packages - what do you actually still need.

update the repos first - without AUR
(that means: use pacman, not yay)
only when that is done and everything basic is in order, turn your attention to the AUR packages