You are not logged in.

#1 2012-02-16 19:03:00

genusr
Member
Registered: 2012-01-05
Posts: 21

"gcc: requires gcc-libs"

Pacman is acting up. Whenever I try to -S or -Syu, I get the following:

resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: gcc: requires gcc-libs=4.6.2-5

I think this means I need to install gcc-libs, but "pacman -S gcc-libs" results in a similar error. How can I get gcc-libs?
Thanks!

Offline

#2 2012-02-16 19:26:06

SS4
Member
From: !Rochford, Essex
Registered: 2010-12-05
Posts: 699

Re: "gcc: requires gcc-libs"

Update your mirrors and run

pacman -Syyu

I see that gcc and gcc-libs are version 4.6.2-7


Rauchen verboten

Offline

#3 2012-02-16 19:28:38

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: "gcc: requires gcc-libs"

If that's all you get, pacman is indeed acting up. But I think you are just giving partial info, which is not good if you want help.

Still, a guess: did you tell pacman to upgrade itself first? Try not to do that (because it keeps gcc at old version, which needs an older gcc-libs than the one that gets pulled in by the new pacman's dependencies).

Offline

#4 2012-02-16 19:42:31

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: "gcc: requires gcc-libs"

Pleeeease search the forum before posting.
https://bbs.archlinux.org/viewtopic.php?pid=1057709

Offline

#5 2012-02-16 20:38:19

genusr
Member
Registered: 2012-01-05
Posts: 21

Re: "gcc: requires gcc-libs"

Raynman wrote:

If that's all you get, pacman is indeed acting up. But I think you are just giving partial info, which is not good if you want help.

Still, a guess: did you tell pacman to upgrade itself first? Try not to do that (because it keeps gcc at old version, which needs an older gcc-libs than the one that gets pulled in by the new pacman's dependencies).

Thanks, this is the full output:

pacman -S gcc-libs
:: The following packages should be upgraded first :
    pacman
:: Do you want to cancel the current operation
:: and upgrade these packages now? [Y/n] 

resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: gcc: requires gcc-libs=4.6.2-5

Offline

#6 2012-02-16 20:40:34

genusr
Member
Registered: 2012-01-05
Posts: 21

Re: "gcc: requires gcc-libs"

karol wrote:

Pleeeease search the forum before posting.
https://bbs.archlinux.org/viewtopic.php?pid=1057709

I looked at a bunch of these, but non of the solutions worked for me. When I run

pacman -S pacman
resolving dependencies...
looking for inter-conflicts...

Targets (1): pacman-4.0.2-1

Total Installed Size:   3.49 MiB
Net Upgrade Size:       0.04 MiB

Proceed with installation? [Y/n] Y
(1/1) checking package integrity                   [######################] 100%
error: pacman: signature from "Dave Reisner <d@falconindy.com>" is unknown trust
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

Thanks.

Offline

#7 2012-02-16 20:42:01

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: "gcc: requires gcc-libs"

Do you have package signing set up? What's the output of 'pacman -Q pacman'?

Offline

#8 2012-02-16 20:53:44

genusr
Member
Registered: 2012-01-05
Posts: 21

Re: "gcc: requires gcc-libs"

karol wrote:

Do you have package signing set up? What's the output of 'pacman -Q pacman'?

I get:

pacman -Q pacman
pacman 4.0.1-4

Is it possible that this is a problem with key permissions? When I run "pacman -Syy pacman" I get:

:: Synchronizing package databases...
 core                              106.0 KiB   351K/s 00:00 [################################] 100%
 extra                            1283.1 KiB   513K/s 00:03 [################################] 100%
 community                        1108.5 KiB   514K/s 00:02 [################################] 100%
 multilib                           88.3 KiB   350K/s 00:00 [################################] 100%
 archlinuxfr                        25.3 KiB   115K/s 00:00 [################################] 100%
resolving dependencies...
looking for inter-conflicts...

Targets (1): pacman-4.0.2-1

Total Installed Size:   3.49 MiB
Net Upgrade Size:       0.04 MiB

Proceed with installation? [Y/n] 
(1/1) checking package integrity                            [################################] 100%
error: pacman: signature from "Dave Reisner <d@falconindy.com>" is unknown trust
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

Offline

#9 2012-02-16 21:21:24

SS4
Member
From: !Rochford, Essex
Registered: 2010-12-05
Posts: 699

Re: "gcc: requires gcc-libs"

Did you run

pacman-key --init

when pacman 4 first installed?


Rauchen verboten

Offline

#10 2012-02-16 21:57:54

genusr
Member
Registered: 2012-01-05
Posts: 21

Re: "gcc: requires gcc-libs"

SS4 wrote:

Did you run

pacman-key --init

when pacman 4 first installed?

Yes, I did. The pacman I have now is the one I installed off of the disk image. I can't reinstall pacman now because I get the key error.

Offline

#11 2012-02-16 22:02:00

ur6lad
Member
From: Kharkiv, Ukraine
Registered: 2009-06-23
Posts: 34
Website

Re: "gcc: requires gcc-libs"

karol wrote:

Pleeeease search the forum before posting.
https://bbs.archlinux.org/viewtopic.php?pid=1057709

Wrong link because

I totally agree with next comment

However i also think that when posting an answer that recommends searching it should also contain links to the threads where the question is handeled.


genusr, see [SOLVED] latest pacman upgrade - hoping for news update

Last edited by ur6lad (2012-02-16 22:04:38)


tg:ur6lad
Run Arch on MSI Cubi 2, wayland+sway

Offline

#12 2012-02-16 22:05:31

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: "gcc: requires gcc-libs"

Offline

#13 2012-02-24 13:56:59

dlin
Member
From: Taipei,Taiwan
Registered: 2005-09-21
Posts: 265

Re: "gcc: requires gcc-libs"

I face the same problem today.
My solution is:
$ pacman -Syy  # make sure mirror resync
$ pacman -S pacman # still get the same error
resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: gcc: requires gcc-libs=4.6.2-5

# this error means gcc-libs maybe removed later, but your gcc require it.
# because I only use gcc when 'makepkg', I could stand without gcc for a while,
pacman -Rddn gcc  # force remove gcc
pacman -S pacman # now it workable
pacman -Su # upgrade world, because you have -Syy, so, we don't require -Syu again.


Running 4 ArchLinux including sh4twbox,server,notebook,desktop. my AUR packages

Offline

Board footer

Powered by FluxBB