You are not logged in.

#1 2012-04-11 14:33:59

matrix13
Member
Registered: 2012-04-06
Posts: 46

[SOLVED]pacman upgrade: error# failed to prepare transaction

Whenever I am trying to install some packages using pacman, I get a message to upgrade pacman. When I say 'yes', I get an error message.

##code_begin##
[root@arch matrix]# pacman -S libreoffice
:: 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...
warning: dependency cycle detected:
warning: udev will be installed before its util-linux dependency
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: gcc: requires gcc-libs=4.7.0-3
[root@arch matrix]#
##code_end##

This started after adding a new mirror and performing "pacman -Syu" (I was trying to install firefox in arch, which didn't go through even with different mirrors).
What should I do now to upgrade pacman?

Last edited by matrix13 (2012-04-11 14:48:24)

Offline

#2 2012-04-11 14:37:50

rbbt
Member
Registered: 2012-01-09
Posts: 38

Re: [SOLVED]pacman upgrade: error# failed to prepare transaction

First try to update pacman.

pacman -S pacman

Offline

#3 2012-04-11 14:48:09

matrix13
Member
Registered: 2012-04-06
Posts: 46

Re: [SOLVED]pacman upgrade: error# failed to prepare transaction

That upgraded pacman. Thank you.

Offline

#4 2012-04-11 22:50:51

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

Re: [SOLVED]pacman upgrade: error# failed to prepare transaction

Anyone else, looking at this, look at https://bbs.archlinux.org/viewtopic.php … 3#p1086153 which suggests the above method could break pacman (but I don't understand why yet).


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

#5 2012-04-12 14:42:44

biltong
Member
From: South Africa
Registered: 2011-09-01
Posts: 118

Re: [SOLVED]pacman upgrade: error# failed to prepare transaction

Try saying no when it asks if you want to upgrade pacman first, I don't know why that works but in a lot of cases (from a quick search) it does.

Offline

Board footer

Powered by FluxBB