Install libosmpbf-java by entering the following commands in the terminal:
sudo apt update sudo apt install libosmpbf-java
Java access library for OpenStreetMap PBF file format
Osmpbf is a Java/C library to read and write OpenStreetMap PBF files. PBF (Protocol buffer Binary Format) is a binary file format for OpenStreetMap data that uses Google Protocol Buffers as low-level storage. . This package provides a Java library.