I use the AUR package visual-studio-code-bin and yesterday I noticed the application telling me it was in need of an update. So I ran ‘sudo pamac update’ which synchronized the package DBs and told me there were no updates to install.
Name : visual-studio-code-bin
Version : 1.59.1-1
Description : Visual Studio Code (vscode): Editor for building and debugging modern web and cloud applications (official binary version)
URL : https://code.visualstudio.com/
Licenses : custom: commercial
Repository : AUR
Installed Size : 287.9 MB
Depends On : libxkbfile gnupg gtk3 libsecret nss gcc-libs libnotify libxss glibc lsof shared-mime-info xdg-utils
Optional Dependencies : glib2: Needed for move to trash functionality [Installed]
libdbusmenu-glib: Needed for KDE global menu [Installed]
org.freedesktop.secrets: Needed for settings sync [Installed]
Provides : code
Conflicts With : code
Packager : Unknown Packager
Maintainer : dcelasun
First Submitted : 12/18/2017
Last Modified : 09/03/2021
Votes : 1090
Build Date : 08/26/2021
Install Date : 08/26/2021
Install Reason : Explicitly installed
The ‘Last Modified’ date does match the ‘Last Updated’ on the AUR page. But the versions clearly don’t match and so pacman/pamac doesn’t think there’s anything to do.
Should I report this to the AUR page as an issue with this package or am I possibly doing something wrong on my end?
Actually should be pamac update or pamac upgrade
no need for sudo because is using polkit.
Also if you run sudo pamac build it could be a problem and will have this message Warning: Building packages as root
You can ignore it and choose to press Y and continue at your own risk. So probably you did just that in the first place hence the version mismatch now … Never did that, so i honestly can’t confirm.
moved to AUR - because is an AUR package, but i don’t think is neither an AUR package issue, nor Manjaro side issue.
You could remove it, reboot, and properly build it without sudo and see how that goes.
Actually should be pamac update or pamac upgrade
no need for sudo because is using polkit.
Both of these appear to do/output the same thing:
Preparing...
Synchronizing package databases...
Nothing to do.
Transaction successfully finished.
Also if you run sudo pamac build it could be a problem and will have this message Warning: Building packages as root
You can ignore it and choose to press Y and continue at your own risk. So probably you did just that in the first place hence the version mismatch now … Never did that, so i honestly can’t confirm.
Respectfully, I believe this is not true. If I run any of these commands as an unprivileged user, I am prompted for my password so it can escalate to root.
You could remove it, reboot, and properly build it without sudo and see how that goes.
Well, removing it and reinstalling it actually did seem to update the version. To be clear, running without sudo still prompted me for my password in order to escalate to root.
Any idea how the package got into this state? I don’t feel convinced it has anything to do with having run the commands through sudo.
DO NOT report issues with AUR packages in the comments if you’re using an AUR helper like Pamac or Yay. If you have an issue, build it manually and see if you can reproduce the issue.
In the meantime, use a different AUR helper like yay or clear your Pamac cache and try again.