Install postgresql-10-pgrouting by entering the following commands in the terminal:
sudo apt update sudo apt install postgresql-10-pgrouting
Description:
Routing functionality support for PostgreSQL/PostGIS
pgRouting extends the PostGIS/PostgreSQL geospatial database to provide geospatial routing and other network analysis functionality. . This package supports PostgreSQL 10.
Homepage: http://www.pgrouting.org
Version: 2.5.2-1build1
Section: universe/misc