pacman-contrib’s checkupdates script is handy, returning the number of packages one has available if they were to do the usual -Syu update. This can be fed into status bars or other scripts as one needs, or just the CLI.
My system got a new fakeroot package, 1.28, last few days. My checkupgrade script breaks, returning:
==> ERROR: Cannot fetch updates
which comes from line 101 of the script.
NetNet: if you rely upon checkupdates to show in a status bar or other script the count of packages to apply, your count is off or wrong depending on your error logic.
Does anyone else have fakeroot 1.28 and can run checkupdates ?
Ok. Thanks all for checking. I’m trying to figure out why my laptop (works) and desktop (doesn’t work) are different based upon the error message in the script.
note: updated mirrorlist would not apply given the three big USA mirrors I directly pointed to with no success.
You may have other pacman operation like updating or update checking going on in your system, then it seems checkupdates could fail. If that’s the case, wait a bit and try again, it should work.