You are not logged in.

#1 2012-01-30 12:25:31

roginovicci
Member
Registered: 2010-11-06
Posts: 43

[Solved ]Upgrade failed

pacman -Syu always fails with

error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.

in /etc/pacman.conf

...
SigLevel = Never
...
[multilib]
SigLevel = Never
Include = /etc/pacman.d/mirrorlist
...

What's wrong?

Last edited by roginovicci (2012-01-31 15:25:32)

Offline

#2 2012-01-30 12:29:30

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

Re: [Solved ]Upgrade failed

Post your full pacman.conf and the complete output of your failed pacman call.

Offline

#3 2012-01-30 12:37:04

roginovicci
Member
Registered: 2010-11-06
Posts: 43

Re: [Solved ]Upgrade failed

[options]
HoldPkg     = pacman glibc
SyncFirst   = pacman
Architecture = auto

CheckSpace
SigLevel = Never

[core]
#SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[extra]
#SigLevel = PackageOptional
Include = /etc/pacman.d/mirrorlist

[community]
#SigLevel = PackageOptional
Include = /etc/pacman.d/mirrorlist

[multilib]
SigLevel = Never 
Include = /etc/pacman.d/mirrorlist

uname -a
Linux raman 3.1.3-1-ARCH #1 SMP PREEMPT Sun Nov 27 21:08:51 CET 2011 x86_64 Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz GenuineIntel GNU/Linux

pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
:: Replace module-init-tools with core/kmod? [Y/n] 
:: Replace perl-exiftool with extra/perl-image-exiftool? [Y/n] 
resolving dependencies...
:: There are 2 providers available for java-environment:
:: Repository extra
   1) jdk7-openjdk  2) openjdk6

Enter a number (default=1): 
Targets (548): akonadi-1.7.0-1  alsa-lib-1.0.25-1  alsa-oss-1.0.25-1  alsa-plugins-1.0.25-1  alsa-utils-1.0.25-1
               apr-util-1.3.12-5  attica-0.3.0-1  automake-1.11.2-1  avahi-0.6.30-6  avogadro-1.0.3-4  babl-0.1.6-1
               binutils-multilib-2.22-4.1  bison-2.5-3  blas-3.4.0-1  bluez-4.98-2  boost-libs-1.48.0-2

skiped (too much to post'em all)
Total Installed Size:   4808.78 MiB
Net Upgrade Size:       258.03 MiB

Proceed with installation? [Y/n] y
(545/545) checking package integrity                                         [###########################################] 100%
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded

How to clear database and download packages again?
Thank you!

Offline

#4 2012-01-30 12:43:36

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

Re: [Solved ]Upgrade failed

You can look in the output of "pacman --debug -Syu" to see what package is corrupted.   Then you can delete it from /var/cache/pacman/pkg.

Offline

#5 2012-01-30 13:22:30

roginovicci
Member
Registered: 2010-11-06
Posts: 43

Re: [Solved ]Upgrade failed

it's seems impossible to find corrupted file. here is a part of log:

debug: sha256sum: cd9b5ddd5d77380ee313070ab85721e7e32b34e48e21f9b5a656759a9878014f
debug: checking sha256sum for /var/cache/pacman/pkg/lib32-gettext-0.18.1.1-2-x86_64.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/wine-1.3.37-1.1-x86_64.pkg.tar.xz
debug: sha256sum: f8b0c2b0af03756e9a94396543ef86a4c28e95b2258fa9a5b95993fd72630158
debug: checking sha256sum for /var/cache/pacman/pkg/wine-1.3.37-1.1-x86_64.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/xf86-video-intel-2.17.0-2-x86_64.pkg.tar.xz
debug: sha256sum: 216874443ab8a5af5ae885ff3c52329320eeaae31cd87ee1b5683cc0f646ce80
debug: checking sha256sum for /var/cache/pacman/pkg/xf86-video-intel-2.17.0-2-x86_64.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/xf86-video-vmware-11.1.0-1-x86_64.pkg.tar.xz
debug: sha256sum: 30eeeba65ebe7fc855391be6387da2f59751d777bb986e0998d77ed546d0566d
debug: checking sha256sum for /var/cache/pacman/pkg/xf86-video-vmware-11.1.0-1-x86_64.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/xkeyboard-config-2.5-1-any.pkg.tar.xz
debug: sha256sum: 84a957bc65ddc4d49f62be60c3a0960b97a6dca30037f64cef6612ec075d5583
debug: checking sha256sum for /var/cache/pacman/pkg/xkeyboard-config-2.5-1-any.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/xorg-server-common-1.11.4-1-x86_64.pkg.tar.xz
debug: sha256sum: 5744bc2cb8b23fc0e102a3bf0ad0b6be9f47a3d64b075ebe09fe8e3a57609d82
debug: checking sha256sum for /var/cache/pacman/pkg/xorg-server-common-1.11.4-1-x86_64.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/xorg-server-1.11.4-1-x86_64.pkg.tar.xz
debug: sha256sum: 04a24b16245d1195a88a65ea1247e9ba5e6ef260cd44769abad6dae7d5777a73
debug: checking sha256sum for /var/cache/pacman/pkg/xorg-server-1.11.4-1-x86_64.pkg.tar.xz
debug: returning error 33 from check_validity : invalid or corrupted package
error: failed to commit transaction (invalid or corrupted package)

I've removed /var/cache/pacman/pkg/xorg-server-1.11.4-1-x86_64.pkg.tar.xz and downloaded again. Same result. Thats an odd result while common upgrade.

Offline

#6 2012-01-30 13:35:47

roginovicci
Member
Registered: 2010-11-06
Posts: 43

Re: [Solved ]Upgrade failed

I've parsed the full huge log and found the following:

debug: checking sha256sum for /var/cache/pacman/pkg/gdbm-1.10-1-x86_64.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/perl-5.14.2-7-x86_64.pkg.tar.xz
debug: sha256sum: 63a7edd5d982f07b9f3caedbddd33c3d196db9e29b3086bb7607efba69b18760
debug: checking sha256sum for /var/cache/pacman/pkg/perl-5.14.2-7-x86_64.pkg.tar.xz
debug: returning error 6 from _alpm_pkg_validate_internal : wrong or NULL argument passed
debug: found cached pkg: /var/cache/pacman/pkg/libmysqlclient-5.5.20-1-x86_64.pkg.tar.xz
debug: sha256sum: ad3ec7e473cb64346a0acc8ed5e8cd1b2b0f0c4d9144e1263e53ee49e44d66c9
debug: checking sha256sum for /var/cache/pacman/pkg/libmysqlclient-5.5.20-1-x86_64.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/mysql-clients-5.5.20-1-x86_64.pkg.tar.xz
debug: sha256sum: 253f29e382a6801f028aa2b0a95f113cbd33298739acf86d5598a58e111a82c3
debug: checking sha256sum for /var/cache/pacman/pkg/mysql-clients-5.5.20-1-x86_64.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/mysql-5.5.20-1-x86_64.pkg.tar.xz
debug: sha256sum: 6e7a3f5ea8b05101809933b114aa3ad5136a99cc72d7261519ffa98aea0901b1
is it perl package fails?

I've rm /var/cache/pacman/pkg/perl-5.14.2-7-x86_64.pkg.tar.xz

and same result sad

Last edited by roginovicci (2012-01-30 13:38:58)

Offline

#7 2012-01-30 16:21:05

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [Solved ]Upgrade failed

mod action: As this issue looks generic rather than simply an installation problem, I'm moving this thread to Pacman & Package Upgrade Issues.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#8 2012-01-30 18:14:09

roginovicci
Member
Registered: 2010-11-06
Posts: 43

Re: [Solved ]Upgrade failed

the odd issue, I upgraded perl manually with pacman -S perl, but next time I'm trying full upgrade with pacman -Syu I've got the same issue

Offline

#9 2012-01-30 19:21:36

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [Solved ]Upgrade failed

You need to post the entire log if you want someone else to be able to figure out where the problem is.

This sounds a lot like https://bbs.archlinux.org/viewtopic.php?id=134683. Same advice about FTP servers undoubtedly applies.

Last edited by falconindy (2012-01-30 19:22:19)

Offline

#10 2012-01-31 14:32:40

roginovicci
Member
Registered: 2010-11-06
Posts: 43

Re: [Solved ]Upgrade failed

Thank you. I have the last question:
I have a lot of packages with the same name but different versions in /var/cache/pacman/pkg. This leads to huge disk space leakage. for example:

>ls kdebase-lib-*
kdebase-lib-4.7.1-1-x86_64.pkg.tar.xz  kdebase-lib-4.7.3-1-x86_64.pkg.tar.xz  kdebase-lib-4.8.0-1-x86_64.pkg.tar.xz
kdebase-lib-4.7.2-1-x86_64.pkg.tar.xz  kdebase-lib-4.7.4-1-x86_64.pkg.tar.xz

Is it possible to remove old versions and left the only last one ( kdebase-lib-4.8.0-1-x86_64.pkg.tar.xz in my example)

Offline

#11 2012-01-31 14:34:32

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

Re: [Solved ]Upgrade failed

It's possible. Please read pacman's man page for details.

There are also some more elaborate scripts that can keep e.g. the last n versions of a package.

Offline

#12 2012-01-31 14:35:46

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [Solved ]Upgrade failed

karol wrote:

There are also some more elaborate scripts that can keep e.g. the last n versions of a package.

paccache is one such script... It's part of community/pacman-contrib.

Offline

#13 2012-01-31 15:24:45

roginovicci
Member
Registered: 2010-11-06
Posts: 43

Re: [Solved ]Upgrade failed

Thx. Solved.

Offline

#14 2012-02-18 17:19:30

sinoohe
Member
Registered: 2010-12-02
Posts: 12

Re: [Solved ]Upgrade failed

Hi
I have the same problem , when I run: pacman -Suu --debug , it says:

debug: checking sha256sum for /var/cache/pacman/pkg/xorg-xfd-1.1.1-1-i686.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/xplc-0.3.13-4-i686.pkg.tar.xz
debug: sha256sum: bd91d3c36167094866dca1fafc8b7e4bc0bffeb985bdfb2a8658d7beff541b26
debug: checking sha256sum for /var/cache/pacman/pkg/xplc-0.3.13-4-i686.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/yakuake-2.9.8-2-i686.pkg.tar.xz
debug: sha256sum: 36995e58d99f8fef7b1f17874582069c344bf1658d032a99217d80db19958d55
debug: checking sha256sum for /var/cache/pacman/pkg/yakuake-2.9.8-2-i686.pkg.tar.xz
debug: returning error 33 from check_validity : invalid or corrupted package
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.
debug: unregistering database 'local'
debug: freeing package cache for repository 'local'
debug: unregistering database 'core'
debug: freeing package cache for repository 'core'
debug: unregistering database 'extra'
debug: freeing package cache for repository 'extra'
debug: unregistering database 'community'
debug: freeing package cache for repository 'community'

But it's interesting that I can install yakuake package by pacman -U
I think the problem is not with the package,I downloaded several times
Do you have any idea how to solve this?

Offline

Board footer

Powered by FluxBB