You are not logged in.

#1 2017-10-30 12:43:18

joanmanel
Member
Registered: 2012-11-06
Posts: 250

[solved] Problems after uninstalling ncurses

After trying a system update, I was getting a error saying that some files already existed on my filesystem. This error came from ncurses. So I decided to uninstall it, and reinstall it.

I remove it doing -Rdd

But now my system is broken. If I try to go to root, for example, it gives

bash: error while loading shared libraries: libncursesw.so.6: cannot open shared object file: No such file or directory

If I try to reinstall it using sudo I get something like

[group@sparkling ~]$ sudo pacman -S ncurses
resolving dependencies...
looking for conflicting packages...

Packages (1) ncurses-6.0+20170902-2

Total Installed Size:  3.47 MiB

:: Proceed with installation? [Y/n] 
(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: ncurses: missing required signature
:: File /var/cache/pacman/pkg/ncurses-6.0+20170902-2-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

I dont want to boot the computer because I am afraid it won't work again.

Is there any way to fix this?

Last edited by joanmanel (2017-10-31 16:17:35)

Offline

#2 2017-10-30 15:25:19

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,722

Re: [solved] Problems after uninstalling ncurses

Define "Try to go to root".  Did you log in as root? Or did you, while logged in as a normal user, use the su command?  If not the later, try that now.
When it gave you the opportunity do delete ncurses from your cache, please tell me you said "no"

Last edited by ewaller (2017-10-30 15:25:53)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2017-10-30 15:42:22

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

Re: [solved] Problems after uninstalling ncurses

libgcrypt depends on ncurses ... EVERYTHING DEPENDS ON NCURSES! (Ok, "virtually" ;-)

You'll likely have to fix the system offline: https://wiki.archlinux.org/index.php/Pa … an_upgrade (install ncurses from the installation medium)

Offline

#4 2017-10-30 16:09:05

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,722

Re: [solved] Problems after uninstalling ncurses

seth,  I was thinking they might be able to use LocalFileSigLevel = Optional iff they had not deleted the cached version.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#5 2017-10-30 16:11:54

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

Re: [solved] Problems after uninstalling ncurses

sudo depends on libgcrypt - idk, but nuking ncurses is usually close to "game over" (also xz depends on ncurses ...)

Offline

#6 2017-10-30 16:24:57

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,722

Re: [solved] Problems after uninstalling ncurses

seth wrote:

...also xz depends on ncurses ...

That I did not know.  Yeah, Tilt -- game over.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#7 2017-10-31 12:34:34

joanmanel
Member
Registered: 2012-11-06
Posts: 250

Re: [solved] Problems after uninstalling ncurses

seth wrote:

libgcrypt depends on ncurses ... EVERYTHING DEPENDS ON NCURSES! (Ok, "virtually" ;-)

You'll likely have to fix the system offline: https://wiki.archlinux.org/index.php/Pa … an_upgrade (install ncurses from the installation medium)

So I went through your link, and I was able to update the system with

pacman --root=/mnt --cachedir=/mnt/var/cache/pacman/pkg -Syyu

and then using a similar command I installed ncurses.

When I run the other command they say:

find /mnt/usr/lib -size 0

I actually got a lot of stuff going out, more than 5000 lines.

Anyway, I rebooted the system, and everything seems to be OK, it gives me green OKs during boot, but it doesnt go into GDM, it gets stuck in "[OK] Started accounts service", and doesnt go through that.

Stuff like "[OK] Started authorization manager" "Reached graphical Interface" "started gnome display manager" .... all these are also OK.

Offline

#8 2017-10-31 13:03:05

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

Re: [solved] Problems after uninstalling ncurses

Empty files are expectable notably if you've linux-headers installed. (Also the check is not necessary. You did not face a corrupted update, but deliberately removed some crucial files)

About GDM: https://bbs.archlinux.org/viewtopic.php?id=231381 ?

Offline

#9 2017-10-31 16:17:15

joanmanel
Member
Registered: 2012-11-06
Posts: 250

Re: [solved] Problems after uninstalling ncurses

seth wrote:

Empty files are expectable notably if you've linux-headers installed. (Also the check is not necessary. You did not face a corrupted update, but deliberately removed some crucial files)

About GDM: https://bbs.archlinux.org/viewtopic.php?id=231381 ?

now it works, thanks

Offline

Board footer

Powered by FluxBB