You are not logged in.

#1 2016-09-09 06:29:07

lashawnerlantz
Member
Registered: 2016-09-09
Posts: 24

[SOLVED] Invalid crypto engine and libncursesw.so.5 not found

this is a linode arch linux server. mostly nothing has been changed from default. it has a lot of my code files on it and I have not been paying for backups.
everything was working, then

pacman -S mariadb

Installed

mariadb error: libncursesw.so.6 not found

pacman -S ncurses

libncursesw.so.6 installed, deleted libncursesw.so.5

/usr/bin/bash error on most commands: missing libncursesw.so.5

can't install/update anything, get:
(1/1) checking keys in keyring                                                            [####################################################] 100%
error: GPGME error: Invalid crypto engine
(1/1) checking package integrity                                                          [####################################################] 100%
error: GPGME error: Invalid crypto engine
error: gpgme: missing required signature
:: File /var/cache/pacman/pkg/gpgme-1.6.0-3-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]

I can't sftp into the machine to get files. I'm currently sshed into the machine but idk if this current session ends if I could get back.

Last edited by lashawnerlantz (2016-09-09 09:51:06)

Offline

#2 2016-09-09 06:44:25

lashawnerlantz
Member
Registered: 2016-09-09
Posts: 24

Re: [SOLVED] Invalid crypto engine and libncursesw.so.5 not found

These things have had no effect.

Reinstall gpgme, libgcrypt from cache

sudo pacman -U gpgme-1.6.0-3-x86_64.pkg.tar.xz
sudo pacman -U libgcrypt-1.7.3-1-x86_64.pkg.tar.xz

Using scp to copy files off the server gave the libncurses error.

Last edited by lashawnerlantz (2016-09-09 07:22:12)

Offline

#3 2016-09-09 07:01:55

lashawnerlantz
Member
Registered: 2016-09-09
Posts: 24

Re: [SOLVED] Invalid crypto engine and libncursesw.so.5 not found

$ cat /etc/pacman.conf
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta    = 0.7
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
#Color
#TotalDownload
CheckSpace
#VerbosePkgLists

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

#[testing]
#Include = /etc/pacman.d/mirrorlist

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

#[community-testing]
#Include = /etc/pacman.d/mirrorlist

[community]
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist

#[multilib]
#Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

Offline

#4 2016-09-09 07:44:48

lashawnerlantz
Member
Registered: 2016-09-09
Posts: 24

Re: [SOLVED] Invalid crypto engine and libncursesw.so.5 not found

soft linked libncurses6 to 5 and got rid of that error. Now just all kinds of key/pgp errors. I deleted /etc/pacman.d/gnupg

Offline

#5 2016-09-09 08:19:32

lashawnerlantz
Member
Registered: 2016-09-09
Posts: 24

Re: [SOLVED] Invalid crypto engine and libncursesw.so.5 not found

$sudo pacman-key --init
$sudo pacman-key --populate archlinux

This fixed the key errors. I built the ncurses5-compat-libs from the AUR. Now I just need to install it?

Last edited by lashawnerlantz (2016-09-09 08:46:22)

Offline

#6 2016-09-09 08:32:35

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: [SOLVED] Invalid crypto engine and libncursesw.so.5 not found

This smells like a partial update..... Do a full system update.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#7 2016-09-09 08:46:06

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

Re: [SOLVED] Invalid crypto engine and libncursesw.so.5 not found

Agreed.

lashawnerlantz, please read https://wiki.archlinux.org/index.php/Sy … nsupported

When is the last time you did a full system upgrade? Also, don't symlink shared libraries like that, the name changed for a reason -- the ABI was changed. If you need the older library, it is available on the AUR.


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

#8 2016-09-09 08:47:28

lashawnerlantz
Member
Registered: 2016-09-09
Posts: 24

Re: [SOLVED] Invalid crypto engine and libncursesw.so.5 not found

@Wormzy, I had to symlink to get rid of the error that prevented me from doing anything. See my edited post above, is that AUR package not the right one?

Offline

#9 2016-09-09 08:51:54

lashawnerlantz
Member
Registered: 2016-09-09
Posts: 24

Re: [SOLVED] Invalid crypto engine and libncursesw.so.5 not found

WorMzy wrote:

If you need the older library, it is available on the AUR.

@Wormzy, I had to symlink to get rid of the error that prevented me from doing anything. See my edited post above, is that AUR package not the right one?

I've never done a full upgrade. I just tried and got

python2-pip: /usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/contrib/socks.py exists in filesystem

fatal error.

Offline

#10 2016-09-09 09:00:49

lashawnerlantz
Member
Registered: 2016-09-09
Posts: 24

Re: [SOLVED] Invalid crypto engine and libncursesw.so.5 not found

$ makepkg -sri
==> WARNING: A package has already been built, installing existing package...
==> Installing package ncurses5-compat-libs with pacman -U...
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) ncurses5-compat-libs-6.0-4

Total Installed Size:  1.72 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                                            [####################################################] 100%
(1/1) checking package integrity                                                          [####################################################] 100%
(1/1) loading package files                                                               [####################################################] 100%
(1/1) checking for file conflicts                                                         [####################################################] 100%
error: failed to commit transaction (conflicting files)
ncurses5-compat-libs: /usr/lib/libncursesw.so.5 exists in filesystem
Errors occurred, no packages were upgraded.
==> WARNING: Failed to install built package(s).

$ sudo rm /usr/lib/libncursesw.so.5 

$ makepkg -sri
/usr/bin/bash: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory

@wormzy, see that?? How do I get around it?

I'm rebuilding with --force this time...

Last edited by lashawnerlantz (2016-09-09 09:05:55)

Offline

#11 2016-09-09 09:07:03

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

Re: [SOLVED] Invalid crypto engine and libncursesw.so.5 not found

If you've never done a full upgrade, you should probably just reinstall. You have at least a years worth of news to read and updates to catch up on.

However, if you're unable or unwilling to update regularly, then Arch is not the right distro for you.


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

#12 2016-09-09 09:42:46

lashawnerlantz
Member
Registered: 2016-09-09
Posts: 24

Re: [SOLVED] Invalid crypto engine and libncursesw.so.5 not found

After doing

pacman -Syu --force

and

makepkg -sri

, everything is working.

Last edited by lashawnerlantz (2016-09-09 09:44:05)

Offline

#13 2016-09-09 09:54:29

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

Re: [SOLVED] Invalid crypto engine and libncursesw.so.5 not found

Wow.

everything is working

For now. Forcing a years+ worth of updates was a really stupid thing to do though, and you are on your own with any problems that arise because of it.


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

Board footer

Powered by FluxBB