You are not logged in.
Hello there.
Pacman fails to upgrade due to corrupted packages and I feel like I am in serious trouble. Under different circumstances (some deadlines next week) I would definitely reinstall the system. That said, it is actually working like a charm for like three years now and I would prefer keeping it running.
A couple of weeks ago, some types of errors described below started to appear when upgrading via pacman -Syu (probably some kind of aborted upgrade I cant remember). The --force option always made pacman get through, but from then on I always would be presented with these errors, so I had to use (the, pun intended) --force
Starting today, pacman doesn't get to the end of pacman -Syu --force.
Instead, I get
error: failed to prepare transaction (invalid or corrupted package) Leading up to it, there is an infinite series of errors, that can be summarized as:
(...)
looking for conflicting packages...
error: duplicated database entry 'package-name' ###(10+ times)
error: could not open file /var/lib/pacman/local/'package-name'/desc: No such file or directory ###(300+ times)
warning: could not fully load metadata for package 'the first package to appear in the list of error: could not open file (...)'The whole mess is here: http://pastebin.com/1Vi9LS0q
What I tried so far:
1 --force (see above)
2 https://wiki.archlinux.org/index.php?ti … l_database (lots of package conflicts)
Search on google and on the forums yielded only similar problems, most of the times solved by --force.
How to diagnose this? Might there be a solution? Or should I prepare for a reinstall next week?
Thanks in advance!
Last edited by todayalemon (2016-03-25 02:22:12)
Offline
Sounds like you've got some serious filesystem problems.
Offline
Sounds like you've got some serious filesystem problems.
Could you elaborate? That could be one possibility, but there are many others. How might we test weather this is the case? How might the OP deal with this if it is the case? As is, your post sounds like little more than "it sucks to be you" which - even if true - is not productive.
todayalemon, I'm not sure what guides you found that said to use --force. That is almost always a bad idea, it it most definitely should never be used for a full system upgrade. Under very specific conditions it may be necessary to --force a single package or two, but never the whole upgrade. The pacman wiki clearly warns against using it:
Warning: Take care when using the --force switch (for example pacman -Syu --force) as it can cause major problems if used improperly. It is highly recommended to only use this option when the Arch news instructs the user to do so.
It's not clear though if/how that would lead to these errors. I suspect something odd happened in a previous upgrade - getting some more information about the history might help. Can you post your full pacman log on a file sharing site and link to it here?
The second point under what you said you tried looks like it was the right thing to do. How did that work? That link describes how to collect some diagnostic information and what steps you can take. What were the results of those diagnostics? Which steps did you take? What were their results?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
As is, your post sounds like little more than "it sucks to be you" which - even if true - is not productive.
I disagree. It points the OP in a direction with something they can check out. I assumed that fsck was general knowledge.
Offline
Hey guys,
sorry for the delay, some stressful days lay behind and ahead of me.
This is also the reason why I want to try to get this corrected rather than doing a installation from scratch, if all fails, re-installation in May.
So, first, thanks for the input, here comes pacmans history:
leading up to the first use of pacman -Sy(y)u --force:
(0) http://pastebin.com/uk3RjFg1
starting usage of --force:
(1) http://pastebin.com/cTR76Cv2
(2) http://pastebin.com/8fr7Hkse
Later this week I will redo the procedure from the posted link and post output as well.
Thanks again!
Last edited by todayalemon (2016-03-31 16:42:31)
Offline
Oh dear. You've been habitually running `pacman -Syyu --force` continually over the past year. I couldn't even speculate what sorts of problems that would lead to. I'm not remotely equipped to help with this - if it were me, I'd reinstall, and learn how to learn pacman properly.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline