This is actually way easier than the answer me what you do is - sudo apt get-update then run - sudo apt install code