You are not logged in.

#1 2012-07-13 22:51:12

fwin
Member
Registered: 2011-02-05
Posts: 14

[SOLVED]power failure while upgrading

Hello everyone,

the title says it all, I was in the middle of "pacman -Syu" and then I had a power failure. After restarting my computer and trying to upgrade again I got the following message:

if you're sure a package manager is not already
  running, you can remove /var/lib/pacman/db.lck

I went to /var/lib/pacman and deleted db.lck, but now when I try to upgrade I get the following error:

error: lib32-dbus-core: signature from "Florian Pritz <bluewind@xinu.at>" is invalid
error: lib32-gnutls: signature from "Florian Pritz <bluewind@xinu.at>" is invalid
error: lib32-libglapi: signature from "Laurent Carlier <lordheavym@gmail.com>" is invalid
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.

Any help is appreciated, thanks in advance!!

Last edited by fwin (2012-07-14 03:09:05)

Offline

#2 2012-07-14 00:43:16

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

Re: [SOLVED]power failure while upgrading

Try to update your pacman-key database:

# pacman-key --populate archlinux
# pacman-key --updatedb

Offline

#3 2012-07-14 01:38:04

fwin
Member
Registered: 2011-02-05
Posts: 14

Re: [SOLVED]power failure while upgrading

Karol,

first of all thanks for the help!.

I tried to update the pacman-key database and I still get the same error, any other ideas?

I was thinking maybe downgrading the package that is giving me problems and then upgrading it. It may have been the one that was interrupted in the middle of the installation.

But....  what does the signature have to do with this?

Before I do the downgrade then upgrade option, I will keep reading about signatures because I don't fully understand this "mechanism"

thanks again!

Offline

#4 2012-07-14 02:55:37

fwin
Member
Registered: 2011-02-05
Posts: 14

Re: [SOLVED]power failure while upgrading

I believe I have solved the problem, this is what I did:

1. I disabled signature checking in /etc/pacman.conf as described here:

https://wiki.archlinux.org/index.php/Pa … leshooting

2. then I ran pacman -Syu and got a message about three packages that were corrupted in /var/cache/pacman/pkg/, pacman then asked me if I wanted to delete them and I said yes when the option for each package was presented.

3. Then I ran pacman -Syu again and it worked this time.

4. I went back to /etc/pacman.conf and enabled signature checking again.

I think  I took alot of extra steps to solve this, in case someone runs into this issue, it may be easier to do:

1. delete the problematic packages in /var/cache/pacman/pkg/, as explained here:

https://wiki.archlinux.org/index.php/Pa … leshooting

2. Run pacman -Syu


hopefully my solution will be helpful to someone!!


Again, thanks for replying Karol!!

Last edited by fwin (2012-07-14 03:02:58)

Offline

#5 2012-07-14 03:06:00

fwin
Member
Registered: 2011-02-05
Posts: 14

Re: [SOLVED]power failure while upgrading

How do I mark this as solved????......
it's been a while since the last time I posted here


edit: never mind I got it

Last edited by fwin (2012-07-14 03:10:08)

Offline

Board footer

Powered by FluxBB