Pkg upgrade keeps reinstalling the same package!

Since approx. July 2, every time I run pkg update and pkg upgrade, I get this:

# pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating FreeBSD-kmods repository catalogue...
FreeBSD-kmods repository is up to date.
All repositories are up to date.
Checking for upgrades (150 candidates): 100%
Processing candidates (150 candidates): 100%
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

Installed packages to be REINSTALLED:
kf6-kjobwidgets-6.15.0 [FreeBSD]

Number of packages to be reinstalled: 1

Proceed with this action? [y/N]: y
[1/1] Reinstalling kf6-kjobwidgets-6.15.0...
[1/1] Extracting kf6-kjobwidgets-6.15.0: 100%

The package mentioned here is always the same, kf6-kjobwidgets.
Why does it keep downloading and reinstalling the same package?
 
Hell if I know... I just compile stuff from ground up, using a fresh copy of the ports tarball, that takes me a few days, but then the system is quite stable. pkg is just too messy for me.
 
Since approx. July 2, every time I run pkg update and pkg upgrade, I get this:

# pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating FreeBSD-kmods repository catalogue...
FreeBSD-kmods repository is up to date.
All repositories are up to date.
Checking for upgrades (150 candidates): 100%
Processing candidates (150 candidates): 100%
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

Installed packages to be REINSTALLED:
kf6-kjobwidgets-6.15.0 [FreeBSD]

Number of packages to be reinstalled: 1

Proceed with this action? [y/N]: y
[1/1] Reinstalling kf6-kjobwidgets-6.15.0...
[1/1] Extracting kf6-kjobwidgets-6.15.0: 100%

The package mentioned here is always the same, kf6-kjobwidgets.
Why does it keep downloading and reinstalling the same package?
Hi!
The same is happening to me but another package.
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating FreeBSD-kmods repository catalogue...
FreeBSD-kmods repository is up to date.
All repositories are up to date.
Checking for upgrades (375 candidates): 100%
Processing candidates (375 candidates): 100%
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

Installed packages to be REINSTALLED:
utf8proc-2.10.0 [FreeBSD]

Number of packages to be reinstalled: 1

Proceed with this action? [y/N]: y
[1/1] Reinstalling utf8proc-2.10.0...
[1/1] Extracting utf8proc-2.10.0: 100%

After this if I run the upgrade again it requests to reinstall it again and again even after a restart.
I also removed the package, it removed some other dependencies and installed all again.
The issue persists.
 
Hi!
The same is happening to me but another package.
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating FreeBSD-kmods repository catalogue...
FreeBSD-kmods repository is up to date.
All repositories are up to date.
Checking for upgrades (375 candidates): 100%
Processing candidates (375 candidates): 100%
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

Installed packages to be REINSTALLED:
utf8proc-2.10.0 [FreeBSD]

Number of packages to be reinstalled: 1

Proceed with this action? [y/N]: y
[1/1] Reinstalling utf8proc-2.10.0...
[1/1] Extracting utf8proc-2.10.0: 100%

After this if I run the upgrade again it requests to reinstall it again and again even after a restart.
I also removed the package, it removed some other dependencies and installed all again.
The issue persists.
Check with pkg -dd upgrade
 
Happened to me as well, few times, AFAIR since pkg 2.x.x. Every time different random pkg, until pkg update fetches new data, then it's okay for a while, until next pkg update; not immediately next, that's also random which update will trigger which package to be upgraded over and over. I didn't dig deeper what is causing this.
 
Check with pkg -dd upgrade
got some debug but what should I look for in here?
seems all normal to me.

(...)
DBG(2)[76777]> (universe) add new local pkg: utf8proc, (utf8proc-2.10.0:2$2$1dwt7mzcp7izos4m5x83hh14
ygxr6ushjqux9j3wqf6ezka73d47gk8g3swozu1mm1nqw4tx1kpronsh57gecacbqbgbuy9j9riztzy)
(...)
DBG(2)[76777]> (universe) add new remote pkg: utf8proc, (utf8proc-2.10.0:2$2$1dwt7mzcp7izos4m5x83hh1
4ygxr6ushjqux9j3wqf6ezka73d47gk8g3swozu1mm1nqw4tx1kpronsh57gecacbqbgbuy9j9riztzy)
(...)
DBG(2)[76777]> (solver) decided local utf8proc-2$2$1dwt7mzcp7izos4m5x83hh14ygxr6ushjqux9j3wqf6ezka73d47gk8g3swozu1mm1nqw4tx1kpronsh57gecacbqbgbuy9j9riztzy to delete
DBG(2)[76777]> (solver) decided remote utf8proc-2$2$1dwt7mzcp7izos4m5x83hh14ygxr6ushjqux9j3wqf6ezka73d47gk8g3swozu1mm1nqw4tx1kpronsh57gecacbqbgbuy9j9riztzy to install

it's quite the same version of utf8proc that pkg decides to delete and install
 
Happened to me as well, few times, AFAIR since pkg 2.x.x. Every time different random pkg, until pkg update fetches new data, then it's okay for a while, until next pkg update; not immediately next, that's also random which update will trigger which package to be upgraded over and over. I didn't dig deeper what is causing this.
OK, so it's not just me.
PS, why does pkg accept "upgrad" without "e" without any error messages?
 
If pkg is saying "Reinstall" it means that a dependency probably changed. Install means "new version".
If you have not done "pkg clean -ay" the tarball files lives in /var/ somewhere and will not be Donwloaded, it will just use the copy you already have.
 
It sometimes happens when options aren't registered properly in the port. It keeps thinking the options changed when they didn't. Not saying it's the case here, but it is something I've seen happening. The reason given would be somewhat different though, it will tell you it's going to reinstall package XYZ because the options changed.
 
It sometimes happens when options aren't registered properly in the port. It keeps thinking the options changed when they didn't. Not saying it's the case here, but it is something I've seen happening. The reason given would be somewhat different though, it will tell you it's going to reinstall package XYZ because the options changed.
One more reason to read the Porter's Handbook thoroughly if one is to actually be a port maintainer.
 
  • Like
Reactions: mer
Back
Top