PDA

View Full Version : [ubuntu] should i reinstall?



newbux
January 5th, 2009, 04:02 AM
i am a very new linux user and i added a repository as advised by a forum response on a different website. later i learned i couldve installed it from the command terminal so i thought that i mightve been social engineered to download somehting i dont want. so i reinstalled OS will this take care of any possible problems? thanks

Dave_Connor
January 5th, 2009, 04:16 AM
sudo nano /etc/apt/sources.list and delete with ctrl+k to remove the lines and then enter in terminal "sudo apt-get update". You might have not gotten tricked but the extra lists allow you to install additional software without having to build it yourself.

newbux
January 5th, 2009, 04:21 AM
thanks can you explain in detail what the terminal code does im still catchin on thanks

aesis05401
January 5th, 2009, 04:40 AM
newbux - you can research the terminal command by opening a terminal and typing: man nano

This will show you the manual page for nano - where it is explained that nano is a text editor knock-off of the pico editor... a text editor.

The remainder of the command is a path to a file (sources.list) to open in the text editor (where you will delete the entries for the repos you added but do not trust).

If you are not used to CLI commands then you may find sudo gedit <path to sources.list> more friendly on your eyes. Gedit is just another text editor that will appear more GUI friendly.

As for the second command: man apt-get displays the manual page - scroll down to the 'update' section and you will find that the command Dave_Connor suggests will synch your machine back up with the repositories listed in sources.list.

https://help.ubuntu.com/community/UsingTheTerminal <-- and check this page out. Your terminal skills don't need to be elite to be extremely useful, just learn at least enough to feel comfy reading man pages/reading log files and you will be well on your way.

newbux
January 5th, 2009, 04:53 AM
thanks for the help

m_duck
January 5th, 2009, 04:54 AM
Just nitpicking but technically you should use gksudo (or gksu) when using graphical applications and sudo for command line ones. Useful link. (http://www.psychocats.net/ubuntu/graphicalsudo)

Also, have a look round the rest of the given site, its pretty useful, especially when just getting started.

aesis05401
January 5th, 2009, 05:00 AM
m_duck, nice link - definitely worth a look.

newbux
January 5th, 2009, 05:14 AM
yes it is nice link thanks

joshmuffin
January 5th, 2009, 05:15 AM
You should never have to re-install ubuntu

That being said: you should have your home on a separate partition just in case.

hyper_ch
January 5th, 2009, 04:29 PM
joshmuffing: I disagree!

you should re-install when you got hacked/rootkitted... because then you can't trust your system anymore.