r@DESKTOP-SD2C393:~$ sudo dpkg -i gf_3.10-2_amd64.deb Selecting previously unselected package gf. (Reading database ... 42105 files and directories currently installed.) Preparing to unpack gf_3.10-2_amd64.deb ... Unpacking gf (3.10-2) ... dpkg: dependency problems prevent configuration of gf: gf depends on libffi6 (>= 3.0.4); however: Package libffi6 is not installed. gf depends on libtinfo5 (>= 6); however: Package libtinfo5 is not installed. dpkg: error processing package gf (--install): dependency problems - leaving unconfigured Processing triggers for libc-bin (2.31-0ubuntu9) ... Errors were encountered while processing: gf r@DESKTOP-SD2C393:~$ sudo apt install libffi6 Reading package lists... Done Building dependency tree Reading state information... Done Package libffi6 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'libffi6' has no installation candidate r@DESKTOP-SD2C393:~$ cabal cabal: no command given (try --help) r@DESKTOP-SD2C393:~$ cabal install alex happy Warning: The install command is a part of the legacy v1 style of cabal usage. Please switch to using either the new project style and the new-install command or the legacy v1-install alias as new-style projects will become the default in the next version of cabal-install. Please file a bug if you cannot replicate a working v1- use case with the new-style commands. For more information, see: https://wiki.haskell.org/Cabal/NewBuild Resolving dependencies... Downloading alex-3.2.5 Downloading happy-1.20.0 Downloaded alex-3.2.5 Downloaded happy-1.20.0 Starting alex-3.2.5 Starting happy-1.20.0 Building alex-3.2.5 Building happy-1.20.0 Completed alex-3.2.5 Completed happy-1.20.0 Warning: could not create symlinks in /home/r/.cabal/bin for alex, happy because the files exist there already and are not managed by cabal. You can create symlinks for these executables manually if you wish. The executable files have been installed at /home/r/.cabal/bin/alex, /home/r/.cabal/bin/happy r@DESKTOP-SD2C393:~$ gf gf: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory r@DESKTOP-SD2C393:~$ sudo apt install libtinfo5 Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: gf : Depends: libffi6 (>= 3.0.4) but it is not installable E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). r@DESKTOP-SD2C393:~$ sudo apt install libffi6 libtinfo5 Reading package lists... Done Building dependency tree Reading state information... Done Package libffi6 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'libffi6' has no installation candidate r@DESKTOP-SD2C393:~$ gf gf: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory r@DESKTOP-SD2C393:~$ sudo apt --fix-broken install [sudo] password for r: Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages will be REMOVED: gf 0 upgraded, 0 newly installed, 1 to remove and 110 not upgraded. 1 not fully installed or removed. After this operation, 120 MB disk space will be freed. Do you want to continue? [Y/n] Y (Reading database ... 44875 files and directories currently installed.) Removing gf (3.10-2) ... dpkg: warning: while removing gf, directory '/usr/lib/pkgconfig' not empty so not removed Processing triggers for libc-bin (2.31-0ubuntu9) ... r@DESKTOP-SD2C393:~$ gf bash: /usr/bin/gf: No such file or directory r@DESKTOP-SD2C393:~$