New answers tagged software-sources
Edit sources.list and comment out the duplicate entry. Edit sources.list: sudo nano /etc/apt/sources.list Place a # in front of the duplicate entry Save: CTRL + X, Y, ENTER Update: sudo apt-get update Now try again.
sudo mv /etc/apt/sources.list.d/google.list’ /etc/apt/sources.list.d/google.list I thinks this should work as the file currently has the name google.list’, but it needs to end in *.list to work - the above command should move/rename it to a file with the appropriate extension.
Upgrading 10.04 to 12.04 is strange idea - why don't you want to have 14.04? Anyway, upgrading such old Ubuntu release will almost certainly lead to troubles. Just make a backup of your files and use whole disk to install current version of Ubuntu - 14.04.
Try to install it after an update: sudo apt-get update && sudo apt-get install patch
You're looking specifically for the Oracle 7 java? If so, you may have better luck with the answer given by @user283885. Webupd8 also has an Oracle 8 java installer at this link. If however, you just want easy to maintain, java runtimes, you should consider removing the PPS from software sources, and using the Ubuntu Software Center to load OpenJDK, ...
If you want to regenerate your sources.list you could use http://repogen.simplylinux.ch/ Select your country, your Ubuntu version and choose the repositories you want. Run in a terminal: sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak gksu gedit /etc/apt/sources.list Delete all contents and then paste (Ctrl+A, Delete and Ctrl+V) the output from ...
Open a Terminal. First make a backup: sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak You can open /etc/apt/sources.list in a text editor with root privileges: gksu gedit /etc/apt/sources.list Then go to Edit - Replace and replace the current country ID with ir. For example if you have us.archive.ubuntu.com you would write in the Search box ...
Top 50 recent answers are included