PDA

View Full Version : [ubuntu] help with sudo apt-get



psiho333
March 11th, 2009, 10:31 AM
Hi!

I have a problem using sudo apt-get [whatever].

For example, when i try sudo apt-get install g++, or sudo aptitude install build-essential, which should be used to install a C++ compiler, I get the same error. No packages found. I have installed ubuntu using wubi (inside windows vista). So perhaps that is causing the problem? And how can I solve it?

thanks for the answer

klemens
March 11th, 2009, 10:45 AM
can you post:


cat /etc/apt/sources.list

stumbleUpon
March 11th, 2009, 10:46 AM
update your package list and try again. in a terminal

sudo apt-get update && sudo apt-get install g++ build-essential

skymera
March 11th, 2009, 10:47 AM
Sync your sources with the servers.


sudo apt-get update

then install your program

loucifer87
March 11th, 2009, 02:13 PM
That was my first problem. i just switched to ubuntu herdy few hours ago..
Reading alot of threads here keeps a newbies like me to get a little knowledge about linux.
Thanks guys.. :p

psiho333
March 12th, 2009, 09:06 AM
thank you very much. It finally works now:D just had to update the list of servers.