Shared object "libarchive.so.5" not found, required by "pkg"

Hello, Dear experts!
I have the following problem on FreeBSD

Shared object "libarchive.so.5" not found, required by "pkg"

Any command with pkg -v gives me the output above.

How to solve this problem

Regards,
Nusrat
Nusrat NuriyevAsked:
Who is Participating?
 
gheistCommented:
Hello my friend. You here again with messed up FreeBSD upgrades.
Install a clean system and read the manual when upgrading FreeBSD - first kernel, then ALL userland, then ALL ports
0
 
Nusrat NuriyevAuthor Commented:
Could you tell me all ways to mess up FreeBSD upgrades? Is it an infinite number?
0
 
gheistCommented:
Well I have little experience with them.

All i know that libarchive.5 can be mappedto libarchive.6 by libmap.conf, and then you can fix the pkg installation.
First you need to ensure kernel and userland (including pkg) works fine, otherwise you get pkg-s with dependencies in both versions of FreeBSD.

Normally one sticks with 9-RELENG or 10-RELENG, and when that gets retired server is so old they install new server with new release.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.