[SOLVED] Can't install g++ on Mageia 4

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] Can't install g++ on Mageia 4

Postby hawk03_SIGN9 » Sep 7th, '14, 05:10

Hey guys, I'm trying to install g++ on my Mageia, so I wrote this on my terminal:
Code: Select all
sudo urpmi gcc-c++

and here is the output:
Code: Select all
The following package cannot be installed because it depends on packages
that are older than the installed ones:
gcc-c++-4.8.2-3.mga4

I've also tried using some random rpms which wouldn't install because of the version incompabilities. My gcc's version is 4.8.2 and I can't find a 4.8.2 g++ compiler. I'm not sure what to do, so if you have any ideas please hit me!
Last edited by hawk03_SIGN9 on Sep 7th, '14, 17:33, edited 1 time in total.
hawk03_SIGN9
 
Posts: 15
Joined: May 1st, '13, 18:52

Re: Can't install g++ on Mageia 4

Postby doktor5000 » Sep 7th, '14, 09:36

Please show the output of
Code: Select all
urpmq --list-media active --list-url
sudo urpmi --debug gcc-c++
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18066
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Can't install g++ on Mageia 4

Postby hawk03_SIGN9 » Sep 7th, '14, 17:32

First of all, thanks for the answer. Secondly, the second command did the job and now g++ works fine! Here is the output asked, in case it may help someone:
Code: Select all
Core Release (distrib1) http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/4/i586/media/core/release
Core Release Debug (distrib2) http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/4/i586/media/debug/core/release
Core Updates (distrib3) http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/4/i586/media/core/updates
Core Updates Debug (distrib4) http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/4/i586/media/debug/core/updates
Core Backports (distrib7) http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/4/i586/media/core/backports
Nonfree Release (distrib11) http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/4/i586/media/nonfree/release
Nonfree Release Debug (distrib12) http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/4/i586/media/debug/nonfree/release
Nonfree Updates (distrib13) http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/4/i586/media/nonfree/updates
Nonfree Updates Debug (distrib14) http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/4/i586/media/debug/nonfree/updates
Nonfree Backports (distrib17) http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/4/i586/media/nonfree/backports
Tainted Release (distrib21) http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/4/i586/media/tainted/release
Tainted Updates (distrib23) http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/4/i586/media/tainted/updates
Tainted Updates Debug (distrib24) http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/4/i586/media/debug/tainted/updates
Tainted Backports (distrib27) http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/4/i586/media/tainted/backports

And here is the second command's output:
Code: Select all
getting lock on urpmi
parsing: /etc/urpmi/mediacfg.d/Official-4-i586
parsing: /etc/urpmi/mediacfg.d/Official-4.1-i586
loading mirrors cache
using mirror http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/4/i586
using mirror http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/4/i586
using mirror http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/4/i586
using mirror http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/4/i586
using mirror http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/4/i586
using mirror http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/4/i586
using mirror http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/4/i586
using mirror http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/4/i586
using mirror http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/4/i586
using mirror http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/4/i586
using mirror http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/4/i586
using mirror http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/4/i586
using mirror http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/4/i586
using mirror http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/4/i586
examining synthesis file [/var/lib/urpmi/Core Release (distrib1)/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Core Release Debug (distrib2)/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Core Updates (distrib3)/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Core Updates Debug (distrib4)/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Core Backports (distrib7)/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Nonfree Release (distrib11)/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Nonfree Release Debug (distrib12)/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Nonfree Updates (distrib13)/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Nonfree Updates Debug (distrib14)/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Nonfree Backports (distrib17)/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Tainted Release (distrib21)/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Tainted Updates (distrib23)/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Tainted Updates Debug (distrib24)/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Tainted Backports (distrib27)/synthesis.hdlist.cz]
getting exclusive lock on rpm
search_packages: found gcc-c++-4.8.2-3.mga4.i586 matching gcc-c++
search_packages: found gcc-c++-4.8.2-3.2.mga4.i586 matching gcc-c++
found package(s): gcc-c++-4.8.2-3.mga4.i586 gcc-c++-4.8.2-3.2.mga4.i586
opening rpmdb (root=, write=)
chosen gcc-c++-4.8.2-3.2.mga4.i586 for gcc-c++|gcc-c++
selecting gcc-c++-4.8.2-3.2.mga4.i586
gcc-c++ is not in potential orphans
opening rpmdb (root=, write=)
getting graph of dependencies for sorting
sorting graph of dependencies
rpms sorted by dependencies:
gcc-c++
selecting gcc-c++-4.8.2-3.2.mga4.i586
transaction valid: remove= update=gcc-c++
scheduled sets of transactions:
remove=0= update=1=gcc-c++


retrieving rpm files from medium "Core Updates (distrib3)"...
retrieving $MIRRORLIST media/core/updates gcc-c++-4.8.2-3.2.mga4.i586.rpm
'/usr/bin/aria2c' '--log' '/var/cache/urpmi/partial/.aria2.log' '--auto-file-renaming=false' '--ftp-pasv' '--summary-interval=0' '--follow-metalink=mem' '--metalink-enable-unique-protocol=true' '--metalink-preferred-protocol=http' '--max-tries=5' '--lowest-speed-limit=20K' '--timeout' '3' '--split=3' '--uri-selector=adaptive' '--server-stat-if=/root/.aria2-adaptive-stats' '--server-stat-of=/root/.aria2-adaptive-stats' '--connect-timeout=6' '-Z' '-j1' '--allow-overwrite=true' '/var/cache/urpmi/.metalink'
aria2c:
    $MIRRORLIST: media/core/updates/gcc-c++-4.8.2-3.2.mga4.i586.rpm
aria2c: 09/07 18:23:50 [NOTICE] ServerStat file /root/.aria2-adaptive-stats loaded successfully.
aria2c:
aria2c: 09/07 18:23:51 [ERROR] CUID#6 - Download aborted. URI=http://mirror.oss.maxcdn.com/mageia/distrib/4/i586/media/core/updates/gcc-c++-4.8.2-3.2.mga4.i586.rpm
aria2c: Exception: [AbstractCommand.cc:312] errorCode=3 URI=http://mirror.oss.maxcdn.com/mageia/distrib/4/i586/media/core/updates/gcc-c++-4.8.2-3.2.mga4.i586.rpm
aria2c:   -> [HttpSkipResponseCommand.cc:215] errorCode=3 Resource not found
aria2c: [#e28999 0B/4.6MiB(0%) CN:1 DL:0B]
aria2c: [#e28999 656KiB/4.6MiB(13%) CN:1 DL:642KiB ETA:6s]
aria2c: [#e28999 1.5MiB/4.6MiB(34%) CN:1 DL:806KiB ETA:3s]
aria2c: [#e28999 2.3MiB/4.6MiB(50%) CN:1 DL:795KiB ETA:2s]
aria2c: [#e28999 3.0MiB/4.6MiB(67%) CN:1 DL:790KiB ETA:1s]
aria2c: [#e28999 3.6MiB/4.6MiB(78%) CN:1 DL:729KiB ETA:1s]
aria2c: [#e28999 4.4MiB/4.6MiB(97%) CN:1 DL:751KiB]
aria2c:
aria2c: 09/07 18:23:58 [NOTICE] Download complete: /var/cache/urpmi/partial/gcc-c++-4.8.2-3.2.mga4.i586.rpm
aria2c:                                                                       
aria2c: 09/07 18:23:58 [NOTICE] ServerStat file /root/.aria2-adaptive-stats saved successfully.
aria2c:
aria2c: Download Results:
aria2c: gid   |stat|avg speed  |path/URI
aria2c: ======+====+===========+=======================================================
aria2c: e28999|OK  |   733KiB/s|/var/cache/urpmi/partial/gcc-c++-4.8.2-3.2.mga4.i586.rpm
aria2c:
aria2c: Status Legend:
aria2c: (OK):download completed.
retrieved $MIRRORLIST media/core/updates gcc-c++-4.8.2-3.2.mga4.i586.rpm
...retrieving done
verifying signature of /var/cache/urpmi/rpms/gcc-c++-4.8.2-3.2.mga4.i586.rpm
installing gcc-c++-4.8.2-3.2.mga4.i586.rpm from /var/cache/urpmi/rpms
starting installing packages
opening rpmdb (root=, write=1)
created transaction for installing on / (remove=0, install=0, upgrade=1)
trans: scheduling update of gcc-c++-4.8.2-3.2.mga4.i586 (id=31696, file=/var/cache/urpmi/rpms/gcc-c++-4.8.2-3.2.mga4.i586.rpm)
Preparing...                     #############################################
      1/1: gcc-c++               #############################################
removing installed rpms (gcc-c++-4.8.2-3.2.mga4.i586.rpm) from /var/cache/urpmi/rpms
unlocking urpmi database
unlocking rpm database
EXITING (pid=4005)
hawk03_SIGN9
 
Posts: 15
Joined: May 1st, '13, 18:52

Re: [SOLVED] Can't install g++ on Mageia 4

Postby doktor5000 » Sep 7th, '14, 18:29

Maybe the mirror you're using was syncing packages at the time you first tried to install, that could be an explanation.

Although you should revisit the repo configuration, as currently you seem to have enabled ALL repositories, which is not what you want.
That way you will also get testing packages installed which have not been releases as normal updates and may break something.
Please check our software management MAQeia for more information on software and package management.

You want to enable core_release, core_updates, nonfree_release, nonfree_updates and tainted_release and tainted_updates.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18066
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest