You are not logged in.

#1 2018-08-03 10:28:35

picarica
Member
Registered: 2018-01-23
Posts: 48

[SOLVED]So i replace/removed /usr/lib/

hello so i accidently

sudo cp /home/picarica/somelibs/* /usr/lib/

my screen gone black and i couldn't get into my system.

So first thing i tried using

pacman -Syu

with recovery console ctrl+f2
it said it was missing lib or something like that didn't worked

then i burned arhclinux iso to usb and from liveUSB i did

mount /dev/sdb3 /mnt (sdb3 main filesystem /home is somewhere else)
rsync /usr/lib/* /mnt/usr/lib/

after that i rebooted went to recovery console again and did

pacman -Syu

which finally worked and after that i could get into my login screen (display manager will be mentioned below)
but after logging in it threw me back to login screen, so i still couldnt login
after that i red somewhere that i should try

pacman -Qk
pacman -Syu

did that but no difference

i am bad at repairing linux if you have any ideas to try let me know and if you want to want to know more info let me know

MORE INFO ABOUT SOFTWARE/HARDWARE:
OS: arch linux newest 64x
disk setup:
/dev/sdb3 /
/dev/sda3 /home

DE:xfce4
Display manage(login):Lightdm-kde (not the gtk one)
RAM:8GB
Swap space:8GB
CPU: AMD FX-8320E
GPU: nvidia geforce 1050ti

Last edited by picarica (2018-08-03 14:38:53)

Offline

#2 2018-08-03 10:44:47

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

Re: [SOLVED]So i replace/removed /usr/lib/

You did not post the output from pacman -Qk.  Please post the output of `pacman -Qkk`
Edit:
Why are you copying files to /usr/lib?  Is this now the second time you broke your system doing this? ( https://bbs.archlinux.org/viewtopic.php?id=239184 )

Last edited by loqs (2018-08-03 10:46:56)

Offline

#3 2018-08-03 11:05:34

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

Re: [SOLVED]So i replace/removed /usr/lib/

boot the install image and reinstall all the packages, you can use pacstrap or pacman  --sysroot for it.


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

Offline

#4 2018-08-03 11:20:15

ua4000
Member
Registered: 2015-10-14
Posts: 566

Re: [SOLVED]So i replace/removed /usr/lib/

Mr.Elendig wrote:

boot the install image and reinstall all the packages, you can use pacstrap or pacman  --sysroot for it.

and not rsync the files somewhere from the iso :-)

Offline

#5 2018-08-03 11:51:19

picarica
Member
Registered: 2018-01-23
Posts: 48

Re: [SOLVED]So i replace/removed /usr/lib/

loqs wrote:

You did not post the output from pacman -Qk.  Please post the output of `pacman -Qkk`
Edit:
Why are you copying files to /usr/lib?  Is this now the second time you broke your system doing this? ( https://bbs.archlinux.org/viewtopic.php?id=239184 )

no its the same problem but admins closed my post for many reasons so i tried better formating my post and tried fixing it
also sorry but i dont know how to post output of pacman qk because i am in recovery shell and have on idea how to copy it and paste it, and i saw only some libre offices missing when it was scrolling fast

and i copied those filer for hope of fixing the error of libs not existing

Offline

#6 2018-08-03 12:07:50

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [SOLVED]So i replace/removed /usr/lib/

You could use a commandline pastebin
And you really should already know how to store the output of a command in a file.

pacman -Qkk >/tmp/pkgcheck

| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#7 2018-08-03 12:19:10

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

Re: [SOLVED]So i replace/removed /usr/lib/

You will have to conduct an offline fix, re-installign all packages.

Combine
https://wiki.archlinux.org/index.php/Pa … an_upgrade
and
https://wiki.archlinux.org/index.php/Pa … endency.3F

Your posts btw. got deleted for only *one* reason…

Offline

#8 2018-08-03 14:29:37

picarica
Member
Registered: 2018-01-23
Posts: 48

Re: [SOLVED]So i replace/removed /usr/lib/

all the main libs got fixed by

pacman -Qnq | pacman -S

  thank you seth

Offline

#9 2018-08-03 15:20:53

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

Re: [SOLVED]So i replace/removed /usr/lib/

Have you checked for untracked libraries remaining in /usr/lib?

Offline

#10 2018-08-03 23:02:27

picarica
Member
Registered: 2018-01-23
Posts: 48

Re: [SOLVED]So i replace/removed /usr/lib/

loqs wrote:

Have you checked for untracked libraries remaining in /usr/lib?

actually i have not and not sure how to do it yet, could that be a problem in the future?

Offline

#11 2018-08-04 05:19:37

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

Re: [SOLVED]So i replace/removed /usr/lib/

could that be a problem in the future?

What do you think will be the consequences? Do you consider that a problem?

not sure how to do it yet

Start by understanding the command you issued, "pacman -Qh"
There's a complementary option to "-n" (that however can not be bound to "pacman -S", at best those packages are from AUR)
If you installed stuff bypassing the package manager, you might want to list all files in all, filter them for the critical path and use that list to isolate completely untracked files in that path (which should be much faster than checking the package for every file in /usr/lib)

Offline

Board footer

Powered by FluxBB