You are not logged in.

#26 2012-04-12 23:19:58

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

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

scottharlan wrote:

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

Yes, say "n" here:

:: Do you want to cancel the current operation
:: and upgrade these packages now? [Y/n] 

Offline

#27 2012-04-13 17:02:16

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

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

Mr.Elendig wrote:
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.

That is all correct and exactly the why how I think about Archlinux.
But in this case. No. Simply.

* What pacman is not:
Correct. But pacman itself automatically offers the pacman upgrade itself as first step to do!

* Think before upgrading.
Minor upgrade. Pacman should be updated a early as possible in process. Common sense. Hit "Y".

* Read before upgrading.
You remember. We missed a message on the homepage!

* Read pacman's output while upgrading.
Done. Thats why we are here.


Don't take this a critic on you or the developers. The link the the topic above is just not the "right answer" in this case :-)
Why? Allan's answers here and this link seems to describe pretty well why.

Last edited by hoschi (2012-04-13 17:07:00)

Offline

#28 2012-04-14 19:17:18

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:
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.

Yes. I seen  late. jaja.

Offline

#29 2012-04-17 11:37:24

Leajon
Member
Registered: 2012-04-17
Posts: 10

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

Thx, it worked.

Offline

#30 2012-04-25 05:42:17

samion
Member
From: Ukraine, Zaporozhye
Registered: 2010-12-14
Posts: 4
Website

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

Thanks, working

Offline

#31 2012-05-05 19:46:48

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

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

Since people (ref: IRC) seems to be selectively reading only the two last post in this tread, I'm going to reiterate on this once again:

Dav wrote:

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

Do NOT do this ^
The correct solution is to remove SyncFirst from pacman.conf or say no to updating pacman first. Updating pacman separately can break pacman or worse.
Take note that SyncFirst has been removed from pacman 4.1, so removing it from your config is probably the best thing to do.


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

Offline

#32 2012-08-17 16:25:55

thePenahi
Member
From: Finland
Registered: 2012-04-28
Posts: 6

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

I have a similar problem but none of these solutions presented in here don't solve it.

So I have this (same) error:

sudo pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
:: Replace grub2-bios with core/grub-bios? [Y/n] 
:: Replace grub2-common with core/grub-common? [Y/n] 
:: Replace kdemultimedia-kioslave with extra/kdemultimedia-audiocd-kio? [Y/n] 
:: Replace kdemultimedia-kioslave with extra/libkcddb? [Y/n] 
:: Replace kdemultimedia-kioslave with extra/libkcompactdisc? [Y/n] 
:: Replace pycrypto with extra/python2-crypto? [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

and if I just try "N" to the gcc-libs question:

$ sudo pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
:: Replace grub2-bios with core/grub-bios? [Y/n] 
:: Replace grub2-common with core/grub-common? [Y/n] 
:: Replace kdemultimedia-kioslave with extra/kdemultimedia-audiocd-kio? [Y/n] 
:: Replace kdemultimedia-kioslave with extra/libkcddb? [Y/n] 
:: Replace kdemultimedia-kioslave with extra/libkcompactdisc? [Y/n] 
:: Replace pycrypto with extra/python2-crypto? [Y/n] 
resolving dependencies...
looking for inter-conflicts...
:: gcc-libs and gcc-libs-multilib are in conflict. Remove gcc-libs-multilib? [y/N] n
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: gcc-libs and gcc-libs-multilib are in conflict

I have had this problem maybe two weeks (or more), because when I first got it I did a quick search for it and somebody had said that It may go away if there comes a update to gcc, so wait for a while (or something similar). Well that obviously didn't work.

I updated pacman, didn't work. I deleted the SyncFirst option in /etc/pacman.conf, didn't work. If I hit "n" to every one of those permissions to replace packages it ends up with

...
resolving dependencies...
looking for inter-conflicts...
:: libkcddb and kdemultimedia-kioslave are in conflict. Remove kdemultimedia-kioslave? [y/N] n
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: libkcddb and kdemultimedia-kioslave are in conflict

So yeah, I have no idea what to do. Any help will be appreciated.

Last edited by thePenahi (2012-08-17 16:27:53)

Offline

#33 2012-08-17 23:56:11

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

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

Do you have gcc-libs-multilib installed? If so, try installing gcc-libs. When it says it needs to remove gcc-libs-multilib, tell it to go ahead. Then try updating again. If all goes well, reinstall gcc-libs-multilib.


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

#34 2012-08-19 14:30:04

thePenahi
Member
From: Finland
Registered: 2012-04-28
Posts: 6

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

cfr wrote:

Do you have gcc-libs-multilib installed? If so, try installing gcc-libs. When it says it needs to remove gcc-libs-multilib, tell it to go ahead. Then try updating again. If all goes well, reinstall gcc-libs-multilib.

Yes I have gcc-libs-multilib installed and if I try installing gcc-libs [even though I have lib32-gcc-libs installed (and same error below comes when I try to uninstall it)] and it askes me to remove the gcc-libs multilib and if I hit "y" it gives the same error as in the whole system update:

error: failed to prepare transaction (could not satisfy dependencies)
:: gcc-multilib: requires gcc-libs-multilib=4.7.0-5

Damn this drives me crazy.

Offline

#35 2012-08-19 14:34:36

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

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

So install gcc rather than gcc-multilib temporarily.


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

#36 2012-08-19 14:39:35

thePenahi
Member
From: Finland
Registered: 2012-04-28
Posts: 6

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

cfr wrote:

So install gcc rather than gcc-multilib temporarily.

... Aaaand the same error comes up.

Offline

#37 2012-08-19 15:21:52

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

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

What happens exactly? It should tell you it will need to uninstall gcc-multilib. Are you saying that even though you tell it to do so, it still complains that gcc-multilib needs gcc-libs-multilib?


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

#38 2012-08-20 14:25:07

thePenahi
Member
From: Finland
Registered: 2012-04-28
Posts: 6

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

cfr wrote:

What happens exactly? It should tell you it will need to uninstall gcc-multilib. Are you saying that even though you tell it to do so, it still complains that gcc-multilib needs gcc-libs-multilib?

Oh sorry, a little mistake; it wasn't the same error:

$ sudo pacman -S gcc 
Password: 
resolving dependencies...
looking for inter-conflicts...
:: gcc-libs and gcc-libs-multilib are in conflict. Remove gcc-libs-multilib? [y/N] Y
:: gcc and gcc-multilib are in conflict. Remove gcc-multilib? [y/N] Y
error: failed to prepare transaction (could not satisfy dependencies)
:: libtool-multilib: requires gcc-multilib=4.7.0

I deleted libtool-multilib and then installed gcc and gcc-libs successfully.
And then ran

pacman -Syu

and no errors when it was looking for inter-conflicts.
Though I got another error in the end of the installation

error: failed to commit transaction (conflicting files)
glibc: /lib exists in filesystem

but that  problem doesn't belong in this topic.


But thank you so much for your help and time.

Offline

#39 2012-08-20 22:05:54

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

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

That problem is also covered in the wiki (and extensively on the forums) so you should be on the right road now!


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

Board footer

Powered by FluxBB