I tried to install gcc compiler because I want to learn programming I have an old computer 1gb ram so I installed an older version of Ubuntu (10.04) and its working faster than before but when I try to install gcc package by writing
sudo apt-get install gcc
but the following text appear :
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gcc
so I said maybe the problem is that my version of ubuntu is too old so I wrote in the terminal
sudo get-apt upgrade
but this also appear to me
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
and I tried also
sudo apt-get update
but many lines appear and the last one was
E: Some index files failed to download, they have been ignored, or old ones used instead
and I noticed also that this version of Ubuntu don't have a graphical package manager so .