Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#42963 - Checkupdates script does not detect some package updates until repos forcibly refreshed

Attached to Project: Pacman
Opened by Chad Sharp (crossroads1112) - Sunday, 30 November 2014, 16:10 GMT
Last edited by Allan McRae (Allan) - Monday, 14 December 2015, 14:43 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To No-one
Architecture All
Severity Very Low
Priority Normal
Reported Version 4.1.2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Summary and Info:
I have the following official repositories enabled:
core
extra
community
multilib

and the following unofficial repos enabled:
infinality-bundle
infinality-bundle-multilib
pipelight

Currently, running pacman -Syu shows that I have one update for the package lib32-flac-1.3.1-1. However, the checkupdates script shows no output. However, upon running pacman -Syy and forcing it to refresh all the repos, it works.

See pastebin here: http://pastebin.com/01qxBBqe

Steps to Reproduce:

Not entirely sure. I never used checkupdates much until I wrote a script that relies on it. A possible solution could be to change the "fakeroot pacman -Sy --dbpath "$CHECKUPDATES_DB" --logfile /dev/null &> /dev/null" line to "fakeroot pacman -Syy --dbpath "$CHECKUPDATES_DB" --logfile /dev/null &> /dev/null"
This task depends upon

Closed by  Allan McRae (Allan)
Monday, 14 December 2015, 14:43 GMT
Reason for closing:  Works for me
Comment by Dave Reisner (falconindy) - Sunday, 30 November 2014, 16:27 GMT
Your paste doesn't show any helpful debug information from the fakeroot pacman run, and I can't replicate the problem as you've described it here. In the future, please just attach output to the bug. Pastebin links expire and dampen the historical value of bugs.

> A possible solution could be to change[...]
This suggests that the mirror you're using for Arch packages sucks and doesn't properly update mtime on their DBs. What mirror is it?
Comment by Kyle Keen (keenerd) - Sunday, 30 November 2014, 17:25 GMT
Watching, though I can't assign myself to pacman bugs.
Comment by Chad Sharp (crossroads1112) - Sunday, 30 November 2014, 17:40 GMT
Sorry. Contents of pastebin:

λ ~/ pacman -Syu
error: you cannot perform this operation unless you are root.
λ ~/ sudo !!
sudo pacman -Syu
[sudo] password for chad:
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
infinality-bundle is up to date
infinality-bundle-multilib is up to date
pipelight is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Packages (1): lib32-flac-1.3.1-1

Total Installed Size: 0.61 MiB
Net Upgrade Size: 0.31 MiB

:: Proceed with installation? [Y/n] ^C
Interrupt signal received
λ ~/ checkupdates
λ ~/ sudo 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
infinality-bundle is up to date
infinality-bundle-multilib is up to date
pipelight is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Packages (1): lib32-flac-1.3.1-1

:: Proceed with installation? [Y/n] n
λ ~/ sudo pacman -Syy
[sudo] password for chad:
:: Synchronizing package databases...
core 116.1 KiB 388K/s 00:00 [##################################################################################] 100%
extra 1806.0 KiB 387K/s 00:05 [##################################################################################] 100%
community 2.4 MiB 346K/s 00:07 [##################################################################################] 100%
multilib 121.8 KiB 383K/s 00:00 [##################################################################################] 100%
infinality-bundle 9.7 KiB 510K/s 00:00 [##################################################################################] 100%
infinality-bundle.sig 287.0 B 0.00B/s 00:00 [##################################################################################] 100%
infinality-bundle-multilib 2.5 KiB 2.45M/s 00:00 [##################################################################################] 100%
infinality-bundle-multilib.sig 287.0 B 0.00B/s 00:00 [##################################################################################] 100%
pipelight 78.0 KiB 124K/s 00:01 [##################################################################################] 100%
pipelight.sig 543.0 B 0.00B/s 00:00 [##################################################################################] 100%
λ ~/ checkupdates
lib32-flac


The mirror I'm using is http://lug.mtu.edu/archlinux/$repo/os/$arch

Comment by Dave Reisner (falconindy) - Sunday, 30 November 2014, 17:53 GMT
I really did mean attach =(

Is there any way you can attach debug output for the fakeroot pacman -Sy call in a case where -Sy doesn't update the repo? Can you also attach your /etc/pacman.conf?
Comment by Chad Sharp (crossroads1112) - Sunday, 30 November 2014, 18:13 GMT
The next time it happens, I will.
Comment by Chad Sharp (crossroads1112) - Sunday, 30 November 2014, 18:13 GMT
Here is my /etc/pacman.conf
Comment by Allan McRae (Allan) - Monday, 01 December 2014, 00:31 GMT
Summary:

λ ~/ pacman -Syu (cancelled)
λ ~/ sudo !!
λ ~/ checkupdates (FAILS)
λ ~/ sudo pacman -Syu (cancelled)
λ ~/ sudo pacman -Syy
λ ~/ checkupdates (WORKS)

So nothing touched your local pacman db, only the sync databases. Checkupdate does not use the system sync databases, but its own copy. Looks like the first checkupdates run failed to update its copy of the [multilib] db, the second worked. Bad mirror/bad internet connection ...

Loading...