You are not logged in.

#1 2017-04-30 15:08:03

barronmo
Member
Registered: 2012-08-21
Posts: 55

Corrupted packages problem

I was following the instructions related to the ca-certificates-utils manual intervention.  Everything was fine until step 3 when I got the following error after

sudo pacman -Su

:

GPGME error: Invalid crypto engine  (over and over)

then

*.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature) (also over and over)

Since I had downloaded the packages already I tried uncommenting the SigLevel in /etc/pacman.conf.  That did not help.

#SigLevel = Required DatabaseOptional
...
SigLevel = Optional TrustAll

What should I do next.  I can't seem to perform the update.

Thanks, Mike

Offline

#2 2017-04-30 15:14:02

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: Corrupted packages problem

Please post the full output from `pacman -Su` in code tags you seem to be using code and quote tags interchangeably.

Offline

#3 2017-04-30 15:27:19

barronmo
Member
Registered: 2012-08-21
Posts: 55

Re: Corrupted packages problem

How to I route the output of pacman -Su to a file?

Offline

#4 2017-04-30 15:31:54

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: Corrupted packages problem

Offline

#5 2017-04-30 15:36:37

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: Corrupted packages problem

You won't see output or prompts if you use redirects, but your answers will still be passed to pacman. Alternatively, you can pipe into tee:

# pacman -Su 2>&1 | tee /tmp/pacman.output

Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2017-04-30 15:52:56

barronmo
Member
Registered: 2012-08-21
Posts: 55

Re: Corrupted packages problem

Since I seem to be limited to the command line since this upgrade failed, here is my transcription of the outpt for just one random package:

sudo pacman -S wget
resolving dependencies...
looking for conflicting packages...

Packages (2) libps1-0.17.0-2 wget-1.19.1-2

Total Download Size: 0.63 MiB
Total Installed Size: 2.70 MiB
Net Upgrade Size: 0.02 MiB

:: Proceed with installation? Y
:: Retrieving packages...
libps1-0.17.0-2-i686
wget-1.19.1-2-i686
2/2 checking keys in keyring
error: GPGME error: Invalid crypto engine
error: GPGME error: Invalid crypto engine
2/2 checking package integrity
error: GPGME error: Invalid crypto engine
error: GPGME error: Invalid crypto engine
:: File /var/cache/pacman/pkg/libpsl-0.17.0-2-i686.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature))
Do you want to delete it? Y
:: File /var/cache/pacman/pkg/wget-1.19.1-2-i686.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature))
Do you want to delete it? Y
error: failed to commit transaction (invalid or correpted package (PGP signature))
Errors occurred, no packages were upgraded.

This repeat over and over for all the packages if I do pacman -Su.

Offline

#7 2017-04-30 16:09:25

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: Corrupted packages problem

What is the output of the following please

$ pacman -Qi gpgme gnupg

Edit:
Also the system's pacman.log might prove helpful.

Last edited by loqs (2017-04-30 16:11:56)

Offline

#8 2017-04-30 17:10:43

barronmo
Member
Registered: 2012-08-21
Posts: 55

Re: Corrupted packages problem

I'm stuck on getting files off the laptop.  The command line is working and is connected to the internet, but the desktop is not functioning correctly- none of the programs work including the browser.

Offline

#9 2017-04-30 17:17:42

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: Corrupted packages problem

Boot the laptop with a live CD and finish the upgrade from there. It will be easier than e.g. attempting to manually untar the older package files into the right location location.


My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone

Offline

#10 2017-04-30 17:27:25

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: Corrupted packages problem

@Xyne what do you think the cause of the issue is?

Offline

#11 2017-04-30 18:06:31

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: Corrupted packages problem

loqs wrote:

@Xyne what do you think the cause of the issue is?

I'm not sure. The "invalid crypto engine" warnings make me suspect that a partial upgrade was performed (maybe due to ignored packages), leaving the system in an inconsistent state. Simply (re)moving /etc/ssl/certs/ca-certificates.crt does not seem to cause that error. The output from the recommended steps in the news items has not been shown so we are left to guess what he actually did.

I don't understand what happened between "pacman -Syuw" and "pacman -Su". Pacman should have been loaded with the same libraries on both invocations, so I would expect the "invalid crypto engine" error to have appeared during the first command or after the second. Maybe something got removed by mistake along with /etc/ssl/certs/ca-certificates.crt.

Another possibility is that there is no more space on the disk and that the upgrade was aborted, but that's not was has been reported in this thread. I'm also curious about the statement that he is "limited to the command line", as that indicates that other system libraries may be affected. Maybe the disk is dying.

I would probably boot a live CD and check the disk (health via S.M.A.R.T, and free space) right away now that I think about it, and then, if there are no problems, proceed with the upgrade from the live CD (or start backing up what I can if the disk is dying).


My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone

Offline

#12 2017-04-30 19:48:26

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,181

Re: Corrupted packages problem

barronmo wrote:

I'm stuck on getting files off the laptop.  The command line is working and is connected to the internet, but the desktop is not functioning correctly- none of the programs work including the browser.

https://wiki.archlinux.org/index.php/Li … in_clients

Offline

#13 2017-04-30 21:31:43

barronmo
Member
Registered: 2012-08-21
Posts: 55

Re: Corrupted packages problem

I tried using smartctl from a live cd.  There were a couple error messages that seem to be related to Windows, ie "Buffer Io Error On Device Dm-0 Logical Block...".  The behavior of that tool on the command line was unusual in that even after stopping a test it would keep sending output.  The wiki said the short test should only take a minute but once started the command prompt never returned.  I tried ctrl-C which would only work for a minute.  The wiki says smartctl -X is supposed to work but that was temporary also.  In the end I had to reboot.  I ran fsck from the live CD and did not get any error messages.

Finishing the upgrade from a live CD is something I've never done before.  Does it matter if the live CD is a couple years old?  Here's what I think I need to do to make that happen from the live CD root prompt:

mount /dev/sda1 /mnt
arch-chroot /mnt
pacman -Su

Is that correct?

Offline

#14 2017-04-30 21:39:43

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: Corrupted packages problem

arch-chroot /mnt
pacman -Su

After chrooting into the system the pacman you use will be the system's pacman which has proven to be broken.
Please use these instructions instead Pacman#pacman_crashes_during_an_upgrade
Edit:
If the live media predates 2016-02-23 then hooks will not be executed see https://www.archlinux.org/news/required … 016-04-23/

Last edited by loqs (2017-04-30 21:44:23)

Offline

#15 2017-04-30 21:43:10

barronmo
Member
Registered: 2012-08-21
Posts: 55

Re: Corrupted packages problem

Here is a copy of my recent pacman log.

Offline

#16 2017-04-30 21:46:37

barronmo
Member
Registered: 2012-08-21
Posts: 55

Re: Corrupted packages problem

pacman -Qi gpgme gnupg

Output

Offline

#17 2017-04-30 21:49:01

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,181

Re: Corrupted packages problem

live CD is a couple years old?

Download a current image from http://ftp.halifax.rwth-aachen.de/archl … 1-dual.iso and dd that onto a usb key to boot from?

I don't know what you did on smartctl, but "sudo smartctl -t short /dev/sda" doesn't output anything except an estimation about when it's done.
It rather sounds as if you got dmesg "spamming" into your login console.

Edit: The gpgme/gnupg query is apparently from the install disk?
Edit 2: replaced iso link w/ last dual architecture iso.

Last edited by seth (2017-04-30 21:56:41)

Offline

#18 2017-04-30 21:52:07

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: Corrupted packages problem

barronmo wrote:

I tried using smartctl from a live cd.  There were a couple error messages that seem to be related to Windows, ie "Buffer Io Error On Device Dm-0 Logical Block...".  The behavior of that tool on the command line was unusual in that even after stopping a test it would keep sending output.  The wiki said the short test should only take a minute but once started the command prompt never returned.  I tried ctrl-C which would only work for a minute.  The wiki says smartctl -X is supposed to work but that was temporary also.  In the end I had to reboot.  I ran fsck from the live CD and did not get any error messages.

What commands did you run exactly? What was the output that it kept sending? As noted above, running the test should produce no output.

Btw, fsck checks the file system while smartctl checks the physical disk. Even if fsck completes without error, there may still be something wrong with the disk.

barronmo wrote:

Finishing the upgrade from a live CD is something I've never done before.  Does it matter if the live CD is a couple years old?

Yeah, it matters. Pacman has changed over the years (e.g. database formats, package signing, hooks). You will need a recent version of the installation medium. Download the last ISO with support for i686 (as that seems to be what you are using, according to your first post) and dd it to a USB stick.

barronmo wrote:

Here's what I think I need to do to make that happen from the live CD root prompt:

mount /dev/sda1 /mnt
arch-chroot /mnt
pacman -Su

Is that correct?

Nope. If you chroot into the broken system then everything will work as if you had booted it, i.e. it won't work. You need to upgrade the system from the live environment, outside of the chroot. See related comments here.


My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone

Offline

#19 2017-04-30 21:57:30

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: Corrupted packages problem

[2017-01-29 21:12] [ALPM] transaction completed
[2017-01-29 21:12] [ALPM] running 'update-desktop-database.hook'...
[2017-01-29 21:28] [PACMAN] Running 'pacman -S cupsext'

Three month gap

[2017-04-29 16:26] [PACMAN] Running 'pacman -Syy'
[2017-04-29 16:26] [PACMAN] synchronizing package lists
[2017-04-29 16:27] [PACMAN] Running 'pacman -Syuw'
[2017-04-29 16:27] [PACMAN] synchronizing package lists
[2017-04-29 16:27] [PACMAN] starting full system upgrade

Partial upgrade ( followed by more partial upgrades )

[2017-04-29 17:10] [PACMAN] Running 'pacman -Su'

Now full system upgrade

[2017-04-29 17:13] [ALPM] transaction interrupted

User abort?

Offline

#20 2017-04-30 22:11:33

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Corrupted packages problem

So your last full update was more than 6 months ago, and you're on i686. Time to wipe it and install a different distro?

Edit: Looking again, looks like more than 8 months.

Last edited by Scimmia (2017-04-30 22:16:56)

Offline

#21 2017-05-01 06:02:27

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,181

Re: Corrupted packages problem

One of my netbooks will loke the same :-P
(and have picked a bit of dust on the outside)

@barronmo
32bit support is faded out, check "lscpu" on whether your system can do 64bit
warning: itanium CPUs will be (unsupported) ia64; all other intel chips (inc. latest netburst ie. pentium-4 with a stepping of 10 or so) will be supported x86-64

The problem here is you apparent habit to "pacman -Syuw" (update the disk cache for all packages) and then random "pacman -S" (install only single packages from the cache)
If you need to separate download and update, do "pacman -Syuw; pacman -Su"
You really need to know what you're doing in order to perform partial updates w/o risking to shoot yourself (that is, understand the potential impact of the particular action and rely on your skills to deal with the worst case outcome)

Offline

#22 2017-05-09 00:45:55

barronmo
Member
Registered: 2012-08-21
Posts: 55

Re: Corrupted packages problem

Seth:

I think you are right on two counts.  I need to switch over to 64 bit system, which my laptop does support, and I also need to slow down when I run into a problem updating.  This typically happens with every update- some sort of error message.  I will do a google search for a solution and then try it.  Sometimes it works but sometimes it doesn't.  In the future I'll post more questions on the list before rushing ahead as not everything marked 'solved' is a credible solution.

Mike

Offline

Board footer

Powered by FluxBB