I am wondering

Why? always ?

sudo nano file_name
sudo apt-get install whatever
sudo apt-get install -f
sudo apt-get remove

Why not just!! Simplify.

Edit your ~/.bash_profile.

nano ~/.bash_profile

and add something like the following lines, which you use on a daily basis.

alias snano='sudo nano'
alias apt-update='sudo apt-get update'
alias apt-fix='sudo apt-get -f install'
alias apt-remove='sudo apt-get remove'

close and re-open it.

Now you can simply use apt-fix instead of typing sudo apt-get -f install

Life made simpler 🙂