LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-27-2022, 10:12 AM   #1
Herve5
Member
 
Registered: Oct 2016
Location: Europe
Distribution: Debian & Ubuntu Mate
Posts: 107

Rep: Reputation: Disabled
'old' Ubuntu crashed by replacing a libnss3.so file, need ecryptfs recoverinfg user


Hello,
My situation is rather complicated.
I just tried upgrading LibreOffice v7 to 7.3 on my SO's Ubuntu computer, classically running the dpkg command as per the book. This failed, and after a nonconclusive attempt to deinstall/reinstall I launched LibreOffice from the terminal and detected a file named libnsso.so was not with the right version.
Having LibreOffice 7.3 running on my own Debian 11 machine, I got the extremely bad idea to replace the old Ubuntu file with my more recent one, which of course I did with silly sudo commands.
Since then the Ubuntu machine just refuses its user password, not even opening a prompt for it (there is a red mention talking about encryption failure instead).

I managed to switch boot to an old USB live key with Debian 10 on it; I now see the internal disks.
I thought it'd be easy to retrieve the old libnss3.so file and put it back in place; alas, my SO's user files are encrypted (on a separate disk) with ecryptfs.

I do have her passphrase (and password) but when I try the command "mount--t ecryptfs /..." it fails with the message 'can't find in /etc/fstab', which I interpret as normal, because I'm running from the USB live disk with a probably minimal fstab (a command that I do NOT master anyway -and in addition the volume is already mounted! But I don't know ecryptfs actually...)

What can I do?

Is my idea of recuperating the old file the best one? (wat would be the right ecryptfs command?)
Ideally I'd like to repair the system.
Otherwise I at least would like to retrieve the user disk.

If all goes wrong I also have backups created with 'Backintime' (https://github.com/bit-team/backintime) so I presume in theory I could reinstall the whole system (she has LOTS of apps...) and then retrieve all user files from a backup, but for me very low-level user (as you could definitely see) this means days of work :-(


Thank you!!
Hervé

Last edited by Herve5; 07-27-2022 at 10:13 AM.
 
Old 07-27-2022, 01:34 PM   #2
lvm_
Member
 
Registered: Jul 2020
Posts: 925

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
When mounting filesystem which is not defined in fstab you have to specify mountpoint explicitly: mount -t type <device> <mountpoint>
 
1 members found this post helpful.
Old 07-27-2022, 11:38 PM   #3
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,809
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
If you can chroot into the damaged system you should be able to apt-get reinstall libnss3, but if not, download the .deb package from which to copy the file you replaced.
 
1 members found this post helpful.
Old 07-28-2022, 04:23 AM   #4
Herve5
Member
 
Registered: Oct 2016
Location: Europe
Distribution: Debian & Ubuntu Mate
Posts: 107

Original Poster
Rep: Reputation: Disabled
Thank you all for your advice!
I thnk we can close this topic; in the end I just managed to revert the system to its previous state thanks to the 'Timeshift' app that I fortunately had installed. While daring (for me) the process went very fluid and safe in fact :-)
Thank you again for your very precise insight, that I defintely will remember!
Hervé
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ecryptfs: Recovering Private Files After .ecryptfs File Deleted GrovesP Linux - Security 4 12-10-2021 11:22 AM
Google Chrome - error loading libnss3.so dc_eros Slackware 9 06-02-2010 04:04 PM
[ECRYPTFS] ecryptfs_init_miscdev: Error whilst attempting to open [/dev/ecryptfs] nitinarora Linux - Kernel 0 03-22-2010 05:36 AM
OpenOffice installation: "cannot find shared libraries: libnss3.so" Compile this Slackware 4 09-14-2009 06:58 PM
conflict issues between libnss3-1 & libnss3-0 hallows1 Linux - Software 0 05-22-2009 05:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration