Great to hear you solved your problem. For future reference, I would guess you accidentally mistyped line 2 as install libtogl2 instead of apt-get install libtogl2:
$ sudo install libtogl2 install: missing destination file operand after 'libtogl2' Try 'install --help' for more information.
Rather than:
$ sudo apt-get install libtogl2 Reading package lists... Done Building dependency tree... Done Reading state information... Done The following NEW packages will be installed libtogl2 0 to upgrade, 1 to newly install, 0 to remove and 2 not to upgrade. Inst libtogl2 (2.0-1.1 Ubuntu:22.04/jammy-updates [amd64]) Conf libtogl2 (2.0-1.1 Ubuntu:22.04/jammy-updates [amd64])
Which is an easy mistake to make.