Install one of the packages that provides the
adb command. One way is:
sudo apt install adb.
Although you've haven't said what you're trying to do with Anbox or why you have run those commands, the specific command you're running that produced the error message is:
adb install f.apk
adb install will not install Anbox, but it can be used to install an app inside an Android system that you are using with Anbox.
Ubuntu does not ship with the Android Debug Bridge preinstalled, so the
adb command is not present on your system until you install a package that provides it. The error message you saw told you that
android-tools-adb packages provide the
adb command, and that you can install either package by running
sudo apt install <selected package>, where the text
<selected package> is replaced with the name of the package you choose to install.
If you have not run
sudo apt update recently to update the package manager's database of what packages are available from where and in what versions, I suggest doing so before installing the package.
Therefore, you can install the
adb package by running these commands:
sudo apt update
sudo apt install adb
You can also install it however else you prefer to install packages, such as in the Software Center / Ubuntu Software utility or the Synaptic Package Manager.
Once you've installed
adb you will be able to run that
adb install command. Whether or not it will work, and whether or not it will accomplish whatever you're trying to do, depends on other factors that cannot be discerned from the information you've given. But installing
adb should completely solve the specific error you have asked about.