Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 8099  / 2 Years ago, wed, may 25, 2022, 3:32:49

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 .


More From » apt

 Answers
0

Desktop version of 10.04 end the life so you can't install gcc using apt-get...



You should upgrade to latest version of Ubuntu.



To upgrade latest you can do with sed, first open terminal(Ctrl+Alt+T) and type the following,



sudo sed -i -e 's/archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list


then update with



sudo apt-get update && sudo apt-get dist-upgrade

[#23454] Thursday, May 26, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
shionnky

Total Points: 276
Total Questions: 104
Total Answers: 108

Location: Montenegro
Member since Thu, Jun 16, 2022
2 Years ago
shionnky questions
;