Reference page: http://gihyo.jp/admin/serial/01/ubuntu-recipe/0152 $ pwd /home/username $ sudo apt-get install build-essential devscripts $ dget -u https://ftp.yz.yamagata-u.ac.jp/pub/linux/ubuntu/archives/pool/universe/n/nim/nim_0.19.4-1.dsc $ sudo apt-get build-dep nim $ sudo apt install help2man $ cd nim -0.19.4 $ time dpkg-buildpackage -r -uc -b -d ... ... dpkg-deb: building package 'nim' in '../nim_0.19.4-1_i386.deb'. install -d debian/.debhelper/scratch-space/build-nim dpkg-deb --build debian/.debhelper/nim/dbgsym-root debian/.debhelper/scratch-space/build-nim dpkg-deb: building package 'nim-dbgsym' in 'debian/.debhelper/scratch-space/build-nim/nim-dbgsym_0.19.4-1_i386.deb'. Renaming nim-dbgsym_0.19.4-1_i386.deb to nim-dbgsym_0.19.4-1_i386.ddeb mv debian/.debhelper/scratch-space/build-nim/nim-dbgsym_0.19.4-1_i386.deb ../nim-dbgsym_0.19.4-1_i386.ddeb dpkg-deb --build debian/nim-doc .. dpkg-deb: building package 'nim-doc' in '../nim-doc_0.19.4-1_all.deb'. dpkg-genbuildinfo --build=binary dpkg-genchanges --build=binary >../nim_0.19.4-1_i386.changes dpkg-genchanges: info: binary-only upload (no source code included) dpkg-source --after-build nim-0.19.4 dpkg-source: warning: Testsuite field contains value autopkgtest, but no tests control file debian/tests/control dpkg-buildpackage: info: binary-only upload (no source included) real 29m8.233s user 22m43.114s sys 2m12.617s $ cd.. $ cp nim_0.19.4-1_i386.deb nim_0.19.4-1_i386_bionic_18.04.deb $ sudo apt install ./nim_0.19.4-1_i386_bionic_18.04.deb $ nim -v Nim Compiler Version 0.19.4 [Linux: i386] Compiled at 2019-03-05 Copyright (c) 2006-2018 by Andreas Rumpf active boot switches: -d:release