Hint- fi you are looking for a particualr bit of software with ubuntu, go to the ubuntu package search page-
http://packages.ubuntu.com/
In some cases you might need to click the 'Descriptions' button to find the software. In this case, you dont, you should end up on this page-
http://packages.ubuntu.com/precise/p7zip
The reasons why your 'apt-get install 7zip' command failed is because its in the 'universe' repos (which may or may not be selected) and because you had the wrong package name (though I should point out that you normally need 'sudo' at the start of the command for ubuntu as well)
sudo apt-get install p7zip-full
You may want to add 'p7zip-rar' as well.
If that command fails, you rpobably dotn have the universe repo selected, this paeg shows you how to seletc that repo-
http://askubuntu.com/questions/14863...rse-repository