You are not logged in.

#1 2012-10-12 16:42:44

Los Frijoles
Member
Registered: 2012-06-23
Posts: 40

[SOLVED] Update has corrupted package but doesn't say what package?

The last slew of updates has a broken package or something from the mirror I am using. However, when pacman fails it doesn't tell me which package is broken. This is what I get:

Total Download Size:    4.40 MiB
Total Installed Size:   625.69 MiB
Net Upgrade Size:       8.35 MiB

Proceed with installation? [Y/n]
:: Retrieving packages from extra...
gparted-0.14.0-1-i686   1367.8 KiB  31.6K/s 00:43 [#####################] 100%
mtdev-1.1.3-1-i686        14.7 KiB  22.6K/s 00:01 [#####################] 100%
openexr-1.7.1-1-i686       3.1 MiB  59.0K/s 00:53 [#####################] 100%
xterm-283-1-i686         244.4 KiB   104K/s 00:02 [#####################] 100%
(31/31) checking package integrity                 [#####################] 100%
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.

Doesn't pacman usually say which package was broken? Is there any way to find out? I already tried running in verbose mode but that didn't give any hints. The log doesn't have anything either.

This isn't localized to one computer either. Both my desktop and laptop which run arch are currently stuck because of this same error.

Last edited by Los Frijoles (2012-10-16 01:18:53)

Offline

#2 2012-10-12 16:50:18

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

Re: [SOLVED] Update has corrupted package but doesn't say what package?

Try running 'pacman -Syu --debug'.
The output will be pretty long, but at the end you may find some valuable info.

Offline

#3 2012-10-12 20:31:59

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,551

Re: [SOLVED] Update has corrupted package but doesn't say what package?

If you are sharing the same packages between computers, it'll give the same error.
At this point you can drop y from the pacman line and just do pacman -Su --debug.

Also look for files in the cache that have the part extension.

Last edited by nomorewindows (2012-10-16 12:48:47)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#4 2012-10-16 01:18:11

Los Frijoles
Member
Registered: 2012-06-23
Posts: 40

Re: [SOLVED] Update has corrupted package but doesn't say what package?

My desktop (which runs x86_64) somehow magically fixed itself. However, on my laptop I ended up writing a script to take in a list of package names (with versions of course...don't want to destroy my cache) and delete the cached package. After doing that and commenting out my first two mirrors it started working again.

I used the debug option but it was difficult to find the problem among the 130 or so packages that needed to be updated by the time I got around to doing that.

Offline

Board footer

Powered by FluxBB