Discussion:
Packages/libraries in disarray after sysupgrade
t***@danwin1210.me
2021-05-13 22:47:11 UTC
Permalink
After upgrading 6.8->6.9 (stable, not current) using sysupgrade, I am
finding it not possible to install packages via pkg_add

When I try to install something, I get a series of errors like "<package
dependency library name>: bad major" or "<package dependency>: minor is
too small"

I am assuming I need to be installing new packages with `pkg_add -U` to
update the dependencies as needed. However, the manpage suggests this is
not desirable.

Is there a better way to do things?
Edgar Pettijohn
2021-05-14 00:50:35 UTC
Permalink
Post by t***@danwin1210.me
After upgrading 6.8->6.9 (stable, not current) using sysupgrade, I am
finding it not possible to install packages via pkg_add
When I try to install something, I get a series of errors like "<package
dependency library name>: bad major" or "<package dependency>: minor is too
small"
I am assuming I need to be installing new packages with `pkg_add -U` to
update the dependencies as needed. However, the manpage suggests this is not
desirable.
Is there a better way to do things?
I just ran into this myself. I'm guessing the packages are built with a
newer library. So I'm running sysupgrade again to see if they get
installed. I'll repost if that indeed solves my issue.

edgar
Edgar Pettijohn
2021-05-14 01:25:42 UTC
Permalink
Post by Edgar Pettijohn
Post by t***@danwin1210.me
After upgrading 6.8->6.9 (stable, not current) using sysupgrade, I am
finding it not possible to install packages via pkg_add
When I try to install something, I get a series of errors like "<package
dependency library name>: bad major" or "<package dependency>: minor is too
small"
I am assuming I need to be installing new packages with `pkg_add -U` to
update the dependencies as needed. However, the manpage suggests this is not
desirable.
Is there a better way to do things?
I just ran into this myself. I'm guessing the packages are built with a
newer library. So I'm running sysupgrade again to see if they get
installed. I'll repost if that indeed solves my issue.
edgar
Yep just completed a sysupgrade followed by pkg_add -u and i can now
install new packages without errors. Probably the same will work for
you.

edgar
Stuart Longland
2021-05-14 01:06:10 UTC
Permalink
On Thu, 13 May 2021 22:47:11 +0000
Post by t***@danwin1210.me
I am assuming I need to be installing new packages with `pkg_add -U` to
update the dependencies as needed. However, the manpage suggests this is
not desirable.
Maybe try `pkg_add -u` (lowercase 'u' not uppercase) first… it may be that
you need to update the packages you have installed now before you can
install any new ones.
--
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
...it's backed up on a tape somewhere.
Marc Espie
2021-05-14 07:35:43 UTC
Permalink
Post by t***@danwin1210.me
After upgrading 6.8->6.9 (stable, not current) using sysupgrade, I am
finding it not possible to install packages via pkg_add
When I try to install something, I get a series of errors like "<package
dependency library name>: bad major" or "<package dependency>: minor is too
small"
I am assuming I need to be installing new packages with `pkg_add -U` to
update the dependencies as needed. However, the manpage suggests this is not
desirable.
Sometimes, base snapshots and package snapshots are slightly out of synch.
this is what happened (rapid bumps to the crypto parts in base).

If you really know what you're doing, you can often work your way around it
by filling in the gaps. :)


As far as pkg_add -U, it's been developed as a quick solution to be able
to install a new package on-the-fly without having to update 600+ packages
first (like say, you figured you're missing an important component right
before you go live at a conference).

But you end up with a "skewed" package set coming from different snapshots,
so you're relying on everyone not missing any bump and not missing a "tight"
dependency between two library versions... works most of the time but... not
guaranteed.
Stuart Henderson
2021-05-14 12:21:14 UTC
Permalink
Post by Marc Espie
Post by t***@danwin1210.me
After upgrading 6.8->6.9 (stable, not current) using sysupgrade, I am
finding it not possible to install packages via pkg_add
When I try to install something, I get a series of errors like "<package
dependency library name>: bad major" or "<package dependency>: minor is too
small"
I am assuming I need to be installing new packages with `pkg_add -U` to
update the dependencies as needed. However, the manpage suggests this is not
desirable.
Sometimes, base snapshots and package snapshots are slightly out of synch.
this is what happened (rapid bumps to the crypto parts in base).
Not in -stable though..

Loading...