You are not logged in.
Hello,
My pacman is lock. If I do, for example,
sudo pacman -Syu
, it gives me: "error: only one operation may be used at a time".
I notice I can still use "yay" to query and install packages.
Do you have any clue how I can fix this?
Thanks for your support
Offline
Do you have an instance of pacman already running?
Look at 3.3
https://wiki.archlinux.org/title/Pacman
Offline
That error is shown when you combine pacman operations - the "capital" options like: -S, -Q, -R, -F, -U
maybe you put some other 'pacman' in the path?
check output of
type pacman
and you can try full path to see if it work:
sudo /usr/bin/pacman -Syu
Offline
Anything in the pacman log? Perhaps it might indicate an issue with a particular package.
less +G /var/log/pacman.log
Offline
Hello,
Thanks all for your support, with your help I found the problem, I had an erroneous Bash alias. In my ".bashrc" file I had written:
if [ $UID -ne 0 ]; then
alias pacman='sudo pacman -Syu'
fi
But the "-Syu" shouldn't have been "hard coded" there.
Thanks again.
Offline