LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   install g++ (https://www.linuxquestions.org/questions/linux-newbie-8/install-g-4175416156/)

sallyde 07-11-2012 11:41 AM

install g++
 
Hi All,

I'm trying to install g++ on my Ubuntu 9.10 \n \l
I used this command : apt-get install build-essential
and this command : apt-get install g++
and i got the error that follows in both situations and when i used g++ --version to see if g++ installed or not is said that it is not installed :-/
error :
Err http://ie.archive.ubuntu.com karmic-updates/main libstdc++6-4.4-dev 4.4.1-4ubuntu9
404 Not Found
Err http://security.ubuntu.com karmic-security/main libstdc++6-4.4-dev 4.4.1-4ubuntu9
404 Not Found [IP: 91.189.92.184 80]
Err http://ie.archive.ubuntu.com karmic/main g++ 4:4.4.1-1ubuntu2
404 Not Found
Err http://security.ubuntu.com karmic-security/main g++-4.4 4.4.1-4ubuntu9
404 Not Found [IP: 91.189.92.184 80]
Failed to fetch http://security.ubuntu.com/ubuntu/po...ntu9_amd64.deb 404 Not Found [IP: 91.189.92.184 80]
Failed to fetch http://security.ubuntu.com/ubuntu/po...ntu9_amd64.deb 404 Not Found [IP: 91.189.92.184 80]
Failed to fetch http://ie.archive.ubuntu.com/ubuntu/...ntu2_amd64.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

i also tried apt-get update and apt-get install build-essential --fix-missing and apt-get install g++ --fix-missing but none of them worked :-/

any idea?
thanks in advance :)

Doc CPU 07-11-2012 12:12 PM

Hi there,

Quote:

Originally Posted by sallyde (Post 4725160)
I'm trying to install g++ on my Ubuntu 9.10 \n \l
I used this command : apt-get install build-essential
and this command : apt-get install g++
and i got the error that follows in both situations and when i used g++ --version to see if g++ installed or not is said that it is not installed :-/
error :
Err http://ie.archive.ubuntu.com karmic-updates/main libstdc++6-4.4-dev 4.4.1-4ubuntu9
404 Not Found
Err http://security.ubuntu.com karmic-security/main libstdc++6-4.4-dev 4.4.1-4ubuntu9
404 Not Found [IP: 91.189.92.184 80]
Err http://ie.archive.ubuntu.com karmic/main g++ 4:4.4.1-1ubuntu2
404 Not Found
Err http://security.ubuntu.com karmic-security/main g++-4.4 4.4.1-4ubuntu9
404 Not Found [IP: 91.189.92.184 80]
Failed to fetch http://security.ubuntu.com/ubuntu/po...ntu9_amd64.deb 404 Not Found [IP: 91.189.92.184 80]
Failed to fetch http://security.ubuntu.com/ubuntu/po...ntu9_amd64.deb 404 Not Found [IP: 91.189.92.184 80]
Failed to fetch http://ie.archive.ubuntu.com/ubuntu/...ntu2_amd64.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

actually, you're a bit late. Support for Ubuntu 9.10 "Karmic" has run out long ago, and the software repositories for it aren't present any longer.
Are you sure you don't like to upgrade to a more recent version? For instance, 10.04 "Lucid" would be an LTS which is supported until spring of 2013.

You may be lucky and find the required package as a .deb file for download somewhere, so that you can install it manually.
However, I'd favor a system upgrade from scratch - and then keep it up to date while it is still being supported. :-)

[X] Doc CPU

sallyde 07-11-2012 12:20 PM

well, i think it is better to upgarde to the newer version. so how i should upgared my OS?
i tried to install the update-manager-core package using sudo apt-get install update-manager-core and it even stuck with the same error :-/

knudfl 07-11-2012 12:27 PM

Welcome to LQ.

Getting 'apt-get install g++' etc. working on "Ubuntu 9.10 unsupported" :
Please replace the /etc/apt/sources.list text with this :
Code:

deb http://old-releases.ubuntu.com/ubuntu/ karmic main restricted
deb http://old-releases.ubuntu.com/ubuntu/ karmic multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ karmic-updates main restricted
deb http://old-releases.ubuntu.com/ubuntu/ karmic-updates multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ karmic-backports main restricted
deb http://old-releases.ubuntu.com/ubuntu/ karmic-backports multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ karmic-security main restricted
deb http://old-releases.ubuntu.com/ubuntu/ karmic-security multiverse universe


sallyde 07-11-2012 12:34 PM

Hi, thanks butit didn't work. i replaced my /etc/apt/sources.list file with this newer version :-/ but still it doesn't work. the error changed to

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package g

sallyde 07-11-2012 12:43 PM

I see, thanks, first i should used apt-get install update and then apt-get install g++ :) and now it works :) should i replace /etc/apt/sources.list with the previous versoin after installing g++ or not?
thanks

knudfl 07-11-2012 01:06 PM

Your original /etc/apt/sources.list points to current Ubuntu links.

Ubuntu 9.10 was moved to "The Ubuntu museum" / "The old archive"
long time ago, and stays there.
The original links can never be used again.

Doc CPU 07-11-2012 03:37 PM

Hi there,

Quote:

Originally Posted by sallyde (Post 4725208)
well, i think it is better to upgarde to the newer version. so how i should upgared my OS?

I recommend you to first back up your personal data, then download an ISO image of a recent distro like Ubuntu 12.04 (or why not try Mint?), burn it to a CD, and finally wipe your HDD and reinstall your system from that CD. Then restore your personal files.

Quote:

Originally Posted by sallyde (Post 4725208)
i tried to install the update-manager-core package using sudo apt-get install update-manager-core and it even stuck with the same error :-/

Of course it did. It's out of date.

[X] Doc CPU

Doc CPU 07-14-2012 11:27 AM

Hi there,

Quote:

Originally Posted by knudfl (Post 4725276)
Ubuntu 9.10 was moved to "The Ubuntu museum" / "The old archive"
long time ago, and stays there.
The original links can never be used again.

no doubt you're right.

However, I don't understand why the Ubuntu guys do that. If they still keep the original lists under a "special" URL ... I mean, wouldn't it make more sense to leave them where they always were, and just not update them any more? Or even better, supply one final update of update-manager that reminds the user of the outdated system every time it boots?
That way, users who deliberately keep an old system alive can at least install additional packages that match their old system.

I was annoyed of that behavior, too, when "Jaunty" ran out. Each time I booted my old Jaunty box, update-manager popped up and told me "Your system is up to date". That was nonsense, of course, but update-manager couldn't get any more recent repos, so it thought everything was fine. Only when I tried to install some package, I ran into the same trouble as sallyde.

[X] Doc CPU

knudfl 07-14-2012 11:42 AM

# 9

Well, it's the same for Debian, Fedora :
Old Deb http://www.debian.org/distrib/archive > http://archive.debian.net/
Old Fedora http://archives.fedoraproject.org/pu.../fedora/linux/

One difference from a supported version is :
It's a fixed mirror, no more mirror lists.

.


All times are GMT -5. The time now is 12:03 AM.