r/openbsd • • 20d ago

Dependency

Post image

When im trying to update,this pop up and say cant update. Can someone explain this to me and help me pls?

15 Upvotes

4 comments sorted by

6

u/Run-OpenBSD 20d ago

doas pkg_add -u

If it continues consider changing your mirror in the /etc/installurl file to a more updated mirror...

3

u/_sthen OpenBSD Developer 18d ago

the first two lines at the top of the screenshot show that the problem is with libexpat, part of the base OS, and that the installed version is too old.

5

u/emiliot490 20d ago

Hi

Your packages are newer than your base system, so the package wants a newer expat than the one you have. Happens on snapshots when the base falls behind. Update the base first, then the packages:

doas sysupgrade -s

then after the reboot:

doas pkg_add -u

If you're on a normal release and not a snapshot, tell us which version, because then it's a different problem.

3

u/Izder456 20d ago

Are you running -current?

That error is telling you that a base system library (expat) is older than what the built packages expect.

When running snapshots, you really want to try to keep the base system and packages as close in sync as possible.

Try updating to the latest snapshot for your platform and trying again, if so...