Installing software requires privileges, hence the need for 'sudo' and the reason for the error messages without it.

Also run 'sudo apt upgrade' or 'sudo apt full-upgrade' after 'sudo apt...