Unable to locate package gcc
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
Related videos on Youtube
user297904
Updated on September 18, 2022Comments
-
user297904 over 1 year
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 .
-
A J over 9 yearsr u using server version or desktop version of 10.04
-
user297904 over 9 yearsdesktop version
-
user297904 over 9 yearsdo u mean reinstall because i cant get even upgrade with sudo apt-get upgrade
-
A J over 9 yearsaskubuntu.com/questions/91815/…, this will help you...
-
-
user297904 over 9 yearsOk but how to upgraded i nedd to reinstall it or just with terminal
-
Keith over 9 yearsUpgrading from 10.04 to 14.04 will take several steps. First you need to upgrade to 12.04 LTS and from there to 14.04 LTS. It may be easier/faster if you install 14.04 from scratch, but that depends on how much customisation you have done so far. Or, you could just upgrade to 12.04 as that will be supported for a few more years.
-
A J over 9 years@user297904 I have updated answer please try it...
-
user297904 over 9 yearsOk i read the update and it works thanks a lot :D
-
A J over 9 years@Whaaaaaat thank u for suggestion, I will consider in future...