You are not logged in.

#1 2012-04-11 07:55:47

useradded
Member
From: Edinburgh, UK
Registered: 2010-05-15
Posts: 77

[SOLVED] pacman update fails: gcc requires gcc-libs=4.7.0-3

Hi

I ran pacman -Syu this morning and there's an update to pacman to install first, so I say yes but it fails like this:

:: Synchronising package databases...
 core is up to date
 extra is up to date
 community is up to date
:: The following packages should be upgraded first :
    pacman
:: Do you want to cancel the current operation
:: and upgrade these packages now? [Y/n] y

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

But I have gcc-libs 4.7.0-3 installed:

pacman -Qs gcc-libs
 
local/gcc-libs 4.7.0-3 (base)
    Runtime libraries shipped by GCC

So what's going on?

Last edited by useradded (2012-04-11 08:08:09)

Offline

#2 2012-04-11 08:02:19

Dav
Member
Registered: 2012-04-02
Posts: 1

Re: [SOLVED] pacman update fails: gcc requires gcc-libs=4.7.0-3

I was getting this error. I solved it by updated pacman on its own e.g. pacman -S pacman

Offline

#3 2012-04-11 08:07:50

useradded
Member
From: Edinburgh, UK
Registered: 2010-05-15
Posts: 77

Re: [SOLVED] pacman update fails: gcc requires gcc-libs=4.7.0-3

Thanks, I see now.  The error comes at the 'conflicts' stage not the 'dependencies' one and there was an update - gcc-libs 4.7.0-4 - to be installed alongside pacman, so pacman had to be installed first.

Offline

#4 2012-04-11 08:07:52

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: [SOLVED] pacman update fails: gcc requires gcc-libs=4.7.0-3

Or just say "N" when asked...

Offline

#5 2012-04-11 09:09:17

Hanos
Member
Registered: 2011-12-23
Posts: 2

Re: [SOLVED] pacman update fails: gcc requires gcc-libs=4.7.0-3

Thank you !!!

I solved this, thanks to your hlep.

Offline

#6 2012-04-11 12:07:14

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: [SOLVED] pacman update fails: gcc requires gcc-libs=4.7.0-3

Doesn't this step sound  like a manual intervention?

Why doesnt this come on frontpage news or notification in mailing lists?


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#7 2012-04-11 12:52:34

adduu
Member
From: India
Registered: 2011-10-14
Posts: 14

Re: [SOLVED] pacman update fails: gcc requires gcc-libs=4.7.0-3

@Dav

Thanks for the help. That did the trick!

Offline

#8 2012-04-11 15:14:05

fpilee
Member
From: Windows 7
Registered: 2011-10-06
Posts: 104
Website

Re: [SOLVED] pacman update fails: gcc requires gcc-libs=4.7.0-3

Allan wrote:

Or just say "N" when asked...

pacman is the first package to be updated and alone. If you put N, pacman will be installed with other packages, and must be a reason to update pacman first. I use dav method.

Offline

#9 2012-04-11 15:20:49

kevwil
Member
From: Colorado, USA
Registered: 2010-11-13
Posts: 4
Website

Re: [SOLVED] pacman update fails: gcc requires gcc-libs=4.7.0-3

This just struck me as well. This should be on the home page news.

Offline

#10 2012-04-11 15:31:28

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: [SOLVED] pacman update fails: gcc requires gcc-libs=4.7.0-3

Allan wrote:

Or just say "N" when asked...

the lack of information surprises me.

what is the issue at hand? is pacman's behaviour correct?

Offline

#11 2012-04-11 16:47:47

th3xer0
Member
Registered: 2012-04-11
Posts: 1

Re: [SOLVED] pacman update fails: gcc requires gcc-libs=4.7.0-3

Thanks

Offline

#12 2012-04-11 18:49:01

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] pacman update fails: gcc requires gcc-libs=4.7.0-3

eldragon wrote:
Allan wrote:

Or just say "N" when asked...

the lack of information surprises me.

what is the issue at hand? is pacman's behaviour correct?

https://bugs.archlinux.org/task/27214


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#13 2012-04-11 20:30:57

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: [SOLVED] pacman update fails: gcc requires gcc-libs=4.7.0-3

fpilee wrote:
Allan wrote:

Or just say "N" when asked...

pacman is the first package to be updated and alone. If you put N, pacman will be installed with other packages, and must be a reason to update pacman first. I use dav method.

Which could result in breaking pacman...   

Which is why it is dumb to follow the solution suggested by the guy who has one post over the one from one of the pacman developers.

Offline

#14 2012-04-11 22:46:28

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,131

Re: [SOLVED] pacman update fails: gcc requires gcc-libs=4.7.0-3

How might that break pacman? Assuming databases are current, is running

pacman -S pacman

followed by

pacman -Syu

different from what pacman itself is trying to do?

Is the message that pacman should be updated first just wrong?

So is this what you should do?

$ pacman -Syu
Recent ML chatter: linux(2)
:: Synchronizing package databases...
 core                                           101.8 KiB   480K/s 00:00 [########################################] 100%
 extra                                         1385.2 KiB   832K/s 00:02 [########################################] 100%
 community                                     1636.1 KiB   810K/s 00:02 [########################################] 100%
 multilib                                        86.4 KiB   522K/s 00:00 [########################################] 100%
:: The following packages should be upgraded first :
    pacman
:: Do you want to cancel the current operation
:: and upgrade these packages now? [Y/n] y

resolving dependencies...
looking for inter-conflicts...
:: gcc-libs and gcc-libs-multilib are in conflict. Remove gcc-libs-multilib? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: gcc-multilib: requires gcc-libs-multilib=4.7.0-3
No pacnew files to update.

$ pacman -Syu
...

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

I thought that itself might break pacman, which is why I updated pacman on its own. So I obviously don't get how it works...

Plus, why did you say "Or, just..." which suggests it is an alternative method rather than a better one...?

Last edited by cfr (2012-04-11 22:49:15)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#15 2012-04-11 23:04:00

theodore
Member
Registered: 2008-09-09
Posts: 151

Re: [SOLVED] pacman update fails: gcc requires gcc-libs=4.7.0-3

just press "n" and everything works like a charm.....;-)

Offline

#16 2012-04-11 23:17:04

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: [SOLVED] pacman update fails: gcc requires gcc-libs=4.7.0-3

cfr wrote:

How might that break pacman? Assuming databases are current, is running

pacman -S pacman

followed by

pacman -Syu

different from what pacman itself is trying to do?

Is the message that pacman should be updated first just wrong?

It's not quite the same, the first just installs pacman, and only checks if the dependencies are met, but won't update them if they're already installed. Doing a full pacman -Syu will update everything. So the first is a similar risk as any other case of doing a partial update.

It seems there was actually some discussion among pacman devs about removing this option, since it's less needed than it was in the earlier days of pacman.

Allan, based on that thread it sounds a bit like it might be a good idea to remove pacman from the SyncFirst line in pacman.conf until it's officially removed. Is that the case or are there other issues that I might have missed since I don't follow pacaman development?

Offline

#17 2012-04-12 00:16:35

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,131

Re: [SOLVED] pacman update fails: gcc requires gcc-libs=4.7.0-3

mcmillan wrote:

It's not quite the same, the first just installs pacman, and only checks if the dependencies are met, but won't update them if they're already installed. Doing a full pacman -Syu will update everything. So the first is a similar risk as any other case of doing a partial update.

Thanks for that explanation. That makes more sense to me now.

So can pacman's "... should be updated first..." messages be safely ignored when they refer to pacman itself? I mean, in general?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#18 2012-04-12 06:38:15

bigjimlefou
Member
Registered: 2011-07-15
Posts: 1

Re: [SOLVED] pacman update fails: gcc requires gcc-libs=4.7.0-3

Just updated with the "N" solution, all seems good now smile.

Offline

#19 2012-04-12 08:25:35

EasySly
Member
Registered: 2012-03-25
Posts: 35

Re: [SOLVED] pacman update fails: gcc requires gcc-libs=4.7.0-3

I resolved it by such commands:

sudo pacman -Sy pacman

after:

sudo pacman -Syu

and everything was ok

smile

Offline

#20 2012-04-12 08:40:06

hoschi
Member
From: Ulm (Germany)
Registered: 2008-11-03
Posts: 457

Re: [SOLVED] pacman update fails: gcc requires gcc-libs=4.7.0-3

hadrons123 wrote:

Doesn't this step sound  like a manual intervention?

Why doesnt this come on frontpage news or notification in mailing lists?


I also wonder. This should be on the homepage, with explanation why automatic update fails here.

// edit
Its maybe required to import some key manually during this update with "pacman -r KEY_HERE"
rationale: recent updates to gnupg breaks automatic key import, pacman 4.0.3 should fix this
source: https://bbs.archlinux.org/viewtopic.php?id=138498

Last edited by hoschi (2012-04-12 09:07:10)

Offline

#21 2012-04-12 12:02:45

mister_playboy
Member
Registered: 2012-01-23
Posts: 17

Re: [SOLVED] pacman update fails: gcc requires gcc-libs=4.7.0-3

Allan wrote:

Which is why it is dumb to follow the solution suggested by the guy who has one post over the one from one of the pacman developers.

Perhaps your user title should be in bold red font or something... smile

Thanks for your help.


Teach not that I died in vain; rather, teach that I did not die by demonstrating that I live in you.--- ACIM

Offline

#22 2012-04-12 15:01:49

scottharlan
Member
Registered: 2012-03-09
Posts: 1

Re: [SOLVED] pacman update fails: gcc requires gcc-libs=4.7.0-3

When I tried hitting 'n' when prompted about the conflict I got this error:

λ sudo pacman -Syu
Password: 
:: Synchronizing package databases...
 core                                                                                     101.8 KiB  2.20M/s 00:00 [#####################################################################] 100%
 extra                                                                                   1385.3 KiB  3.51M/s 00:00 [#####################################################################] 100%
 community                                                                               1635.2 KiB  3.25M/s 00:00 [#####################################################################] 100%
 multilib                                                                                  86.4 KiB  3.47M/s 00:00 [#####################################################################] 100%
:: 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... 
:: gcc-libs and gcc-libs-multilib are in conflict. Remove gcc-libs-multilib? [y/N] 
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: gcc-libs and gcc-libs-multilib are in conflict

However when I updated pacman manually first through pacman -S pacman, it updated successfully.  However I did notice that there were updates to both gcc-libs-multilib and gcc-libs when I did -Syu.


Edit: It looks like Allan was referring to the first prompt though.  i.e. upgrading pacman after the system upgrade correct?

Last edited by scottharlan (2012-04-12 15:04:05)

Offline

#23 2012-04-12 16:17:15

workdowg
Member
Registered: 2010-12-31
Posts: 69

Re: [SOLVED] pacman update fails: gcc requires gcc-libs=4.7.0-3

Dav wrote:

I was getting this error. I solved it by updated pacman on its own e.g. pacman -S pacman

Thank you... I was getting this error

:: Do you want to cancel the current operation
:: and upgrade these packages now? [Y/n] 
resolving dependencies...
warning: dependency cycle detected:
warning: udev will be installed before its util-linux dependency
looking for inter-conflicts...
:: gcc-libs and gcc-libs-multilib are in conflict. Remove gcc-libs-multilib? [y/N] 
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: gcc-libs and gcc-libs-multilib are in conflict

Offline

#24 2012-04-12 17:04:59

mankand007
Member
From: Chennai, India
Registered: 2012-02-26
Posts: 43
Website

Re: [SOLVED] pacman update fails: gcc requires gcc-libs=4.7.0-3

pacman -S pacman

followed by

pacman -Syu

solved it for me...


Custom built Openbox Arch linux 64

blog:
http://manikandan.means.it

Offline

#25 2012-04-12 17:41:23

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] pacman update fails: gcc requires gcc-libs=4.7.0-3

hoschi wrote:
hadrons123 wrote:

Doesn't this step sound  like a manual intervention?

Why doesnt this come on frontpage news or notification in mailing lists?


I also wonder. This should be on the homepage, with explanation why automatic update fails here.

Imo it is covered pretty well by this. Just too bad that almost no one follows the advices in that post.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

Board footer

Powered by FluxBB