PDA

View Full Version : [kubuntu] g++-3.4 no longer exists on Kubuntu 8.10



digithom
January 29th, 2009, 09:10 AM
Hi,

I'm new on this forum and I want basically reopen a thread preveiusly opened by another user and closed without an answer.
I can't find g++-3.4 on the repositories, even if cpp-3.4, gcc-3.4 and so on are still present.
In order to install this package I've installed an older version of g++-3.4 and all the related packages:

cpp-3.4_3.4.6-6ubuntu3_amd64.deb
g++-3.4_3.4.6-6ubuntu3_amd64.deb
gcc-3.4_3.4.6-6ubuntu3_amd64.deb
gcc-3.4-base_3.4.6-6ubuntu3_amd64.deb
libstdc++6-dev_3.4.6-6ubuntu3_amd64.deb

Now, at each upgrade, adept wants to upgrade cpp and gcc to the latest release and REMOVE the libstdc++6-dev and g++ !

What can I do ?
Why is the g++-3.4 missing ?

Thanks,

Thomas.

Partyboi2
January 29th, 2009, 09:38 AM
You can hold the packages. This link will show you a couple of ways.
http://www.ubuntugeek.com/how-to-prevent-a-package-from-being-updated-in-ubuntu.html

digithom
January 29th, 2009, 06:51 PM
You can hold the packages. This link will show you a couple of ways.
http://www.ubuntugeek.com/how-to-prevent-a-package-from-being-updated-in-ubuntu.html

Thanks, I was able to do it only by running aptitude in interactive mode but, unfortunately, the update manager of KDE don't cares about settings done in this way.
Anyway, I can't understand why this pachage is no longer distributed within the stadard repositories ...

slakkie
January 29th, 2009, 08:17 PM
You could also try to pin a package:



Package: linux-generic linux-headers-generic linux-image-generic linux-restricted-modules-generic linux-server linux-image-server
Pin: version 2.6.24.19.21
Pin-Priority: 1001

Package: libavahi-client3 libavahi-common-data libavahi-common3 libavahi-compat-libdnssd1 libavahi-glib1 libavahi-qt3-1
Pin: version 0.6.22
Pin-Priority: 1001


By doing this apt-get/aptitude or any other frontend to apt will not upgrade your package.

More information can be found here: http://www.debian.org/doc/manuals/apt-howto/ch-apt-get.en.html

digithom
February 3rd, 2009, 12:21 PM
You could also try to pin a package:



Package: linux-generic linux-headers-generic linux-image-generic linux-restricted-modules-generic linux-server linux-image-server
Pin: version 2.6.24.19.21
Pin-Priority: 1001

Package: libavahi-client3 libavahi-common-data libavahi-common3 libavahi-compat-libdnssd1 libavahi-glib1 libavahi-qt3-1
Pin: version 0.6.22
Pin-Priority: 1001


By doing this apt-get/aptitude or any other frontend to apt will not upgrade your package.

More information can be found here: http://www.debian.org/doc/manuals/apt-howto/ch-apt-get.en.html


OK, now it works.
The file /etc/apt/preferences was not present and, as usual, write a config file from scratch is more difficult than edit an existing one ...

Thanks again.

blenzi
May 7th, 2009, 02:06 PM
Same problem in Jaunty 9.04, need g++-3.4, only gcc-3.4 is available. Any new solutions?

Thank you,
Bruno

digithom
May 11th, 2009, 08:50 AM
Hi Bruno,

from my side, the "solution" was: manually install gcc-3.4.6-6ubuntu3 and lock the distro to this version.
This second part is the most important one, because the update manager will try to upgrade gcc-3.4.6 to the newest version and remove the g++ that is still non longer distributed.
Don't ask me why ;-(

Nobody seems to take care of this ...

Bye,
Thomas.