LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-13-2016, 09:09 AM   #1
sdowney717
Member
 
Registered: Sep 2015
Posts: 495

Rep: Reputation: Disabled
Must remove a created link, how from terminal?


Code:
lrwxrwxrwx  1 root root       25 Apr  8 11:52 libboost_system.so -> libboost_system.so.1.58.0
lrwxrwxrwx  1 root root       51 Jun 13 08:56 libboost_system.so.1.46.1 -> /usr/lib/x86_64-linux-gnu/libboost_system.so.1.55.0
lrwxrwxrwx  1 root root       51 Jun 13 08:38 libboost_system.so.1.54.1 -> /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0
lrwxrwxrwx  1 root root       25 Apr  8 11:52 libboost_thread.so -> libboost_thread.so.1.58.0
I created two symlink and now many programs can not start.
I could not run GQRX, so following this, http://askubuntu.com/questions/59333...ared-libraries
Quote:
Create a symbolic link

If you have the file /usr/lib/x86_64-linux-gnu/libboost_system.so.1.55.0

64-bit

sudo ln -s /usr/lib/x86_64-linux-gnu/libboost_system.so.1.55.0 /usr/lib/x86_64-linux-gnu/libboost_system.so.1.46.1
Has totally messed up my system. I subbed 1.58 for 1.55 etc...
So now synaptic and nautilus dont run from terminal
Code:
root@scott-P5QC:/home/scott# synaptic
synaptic: error while loading shared libraries: libboost_system.so.1.58.0: cannot open shared object file: No such file or directory
root@scott-P5QC:/home/scott# nautilus
nautilus: error while loading shared libraries: libboost_system.so.1.58.0: cannot open shared object file: No such file or directory
root@scott-P5QC:/home/scott# gqrx
gqrx: error while loading shared libraries: libboost_system.so.1.58.0: cannot open shared object file: No such file or directory
I got the symlink names by running this
root@scott-P5QC:/home/scott# ls -lR /usr/lib/x86_64-linux-gnu/ | grep ^l
 
Old 06-13-2016, 09:25 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 17,544

Rep: Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929
Code:
sudo rm -i <linkname>
but be sure to NOT remove the original file, just the link itself. You cannot restore deleted file(s) and also you may make your system unusable (in case you removed a system library)
 
Old 06-13-2016, 09:27 AM   #3
sdowney717
Member
 
Registered: Sep 2015
Posts: 495

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
Code:
sudo rm -i <linkname>
but be sure to NOT remove the original file, just the link itself. You cannot restore deleted file(s) and also you may make your system unusable (in case you removed a system library)
lrwxrwxrwx 1 root root 51 Jun 13 08:56 libboost_system.so.1.46.1 -> /usr/lib/x86_64-linux-gnu/libboost_system.so.1.55.0
lrwxrwxrwx 1 root root 51 Jun 13 08:38 libboost_system.so.1.54.1 -> /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0

For these what would be the link name part?
 
Old 06-13-2016, 09:32 AM   #4
sdowney717
Member
 
Registered: Sep 2015
Posts: 495

Original Poster
Rep: Reputation: Disabled
Quote:
root@scott-P5QC:/home/scott# sudo rm -i /usr/lib/x86_64-linux-gnu/libboost_system.so.1.46.1
rm: remove symbolic link '/usr/lib/x86_64-linux-gnu/libboost_system.so.1.46.1'? y
root@scott-P5QC:/home/scott# sudo rm -i /usr/lib/x86_64-linux-gnu/libboost_system.so.1.54.1
rm: remove symbolic link '/usr/lib/x86_64-linux-gnu/libboost_system.so.1.54.1'? y
root@scott-P5QC:/home/scott# nautilus
nautilus: error while loading shared libraries: libboost_system.so.1.58.0: cannot open shared object file: No such file or directory
root@scott-P5QC:/home/scott#
I think I managed to remove the links but programs are not starting

All I did was create those 2 links, AFAIK.
 
Old 06-13-2016, 09:34 AM   #5
sdowney717
Member
 
Registered: Sep 2015
Posts: 495

Original Poster
Rep: Reputation: Disabled
Quote:
scott@scott-P5QC:~$ firefox
XPCOMGlueLoad error for file /usr/lib/firefox/libmozgtk.so:
libboost_system.so.1.58.0: cannot open shared object file: No such file or directory
Couldn't load XPCOM.
scott@scott-P5QC:~$
firefox cant start either anymore
 
Old 06-13-2016, 09:49 AM   #6
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,325

Rep: Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760
Please post output with:
Code:
ls -l /usr/lib/x86_64-linux-gnu/libboost_system.so
ls -l /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0
 
Old 06-13-2016, 12:52 PM   #7
sdowney717
Member
 
Registered: Sep 2015
Posts: 495

Original Poster
Rep: Reputation: Disabled
I am really really stuck now.
I went away to work on the yard, came back and Ubuntu had turned off the monitor, like it always does.
But I could not wake it back up. So I had to force power off and on, then grub loads. Select Ubuntu and it loads for a while then flashes a console with clearing inodes and black-grey screen over and over and over.
Since I dual boot win7, I am posting from that OS now.

I figure libboost1.58 is deeply involved with many aspects of the linux os.

I think the easiest thing is reinstall the linux OS partition, unless you know of an easier way to repair this?

Last edited by sdowney717; 06-13-2016 at 12:54 PM.
 
Old 06-13-2016, 01:00 PM   #8
sdowney717
Member
 
Registered: Sep 2015
Posts: 495

Original Poster
Rep: Reputation: Disabled
http://www.ubuntu.com/download/desktop
You know what?
Click the download link, and it does not tell you whether your getting 32 bit or 64 bit.
It just starts downloading 4gb of data.

Only way I see is do the bit torrent to select 32 or 64 bit, any ideas?

Ok, maybe this will work, but only 1.4gb??
http://releases.ubuntu.com/16.04/

Last edited by sdowney717; 06-13-2016 at 01:04 PM.
 
Old 06-13-2016, 02:01 PM   #9
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,325

Rep: Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760
boost is a C++ libraries package, it's not involved in running your system at all...

You shutdown'ed your computer brutally so that's why it was checking filesystem on next boot.
Your ubunty install is probably still fine, just be patient and let it boot
 
Old 06-13-2016, 03:27 PM   #10
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,592

Rep: Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114
Quote:
Originally Posted by keefaz View Post
boost is a C++ libraries package, it's not involved in running your system at all...

You shutdown'ed your computer brutally so that's why it was checking filesystem on next boot.
Your ubunty install is probably still fine, just be patient and let it boot
Never put it past Ubuntu to get C++ involved in booting. In a Ubuntu 16.04 VM, I just tried removing /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0, and the machine refuses to boot. It does an fsck of the root filesystem a couple of times, then just sits there with a black screen.
 
Old 06-13-2016, 06:12 PM   #11
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,325

Rep: Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760
I stand corrected
Wow I would never have thought that boost would be a mandatory component for a gnu/linux operating system

Wait.. Ubuntu boots in runlevel 4 by default? Maybe it has to do with the Xsession display manager (kdm, gdm)?

Last edited by keefaz; 06-13-2016 at 06:16 PM.
 
Old 06-13-2016, 08:58 PM   #12
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,592

Rep: Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114
Quote:
Originally Posted by keefaz View Post
I stand corrected
Wow I would never have thought that boost would be a mandatory component for a gnu/linux operating system

Wait.. Ubuntu boots in runlevel 4 by default? Maybe it has to do with the Xsession display manager (kdm, gdm)?
That's probably it. It took me a while to figure out how to get to a GRUB prompt in a VM (I had to type a character while holding down <SHIFT>), but once I did, I was able to boot in rescue mode and get to a root shell.

Trying to replace that missing file from that rescue environment is going to present a bit of a challenge, though.
 
Old 06-14-2016, 06:17 AM   #13
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,325

Rep: Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760
I would try to boot in runlevel 3 from grub, then log in and hopefully find all is working but X
Then use whatever ubuntu package manager tool to reinstall that boost package
 
Old 06-14-2016, 07:30 AM   #14
sdowney717
Member
 
Registered: Sep 2015
Posts: 495

Original Poster
Rep: Reputation: Disabled
Hi, I reinstalled the OS.
The ubiquity installer partially failed, none of my previously installed packages could be reinstalled. That is a lot of messages to watch flash by as failed. I really thought it would boot a dead system.
Complaint was 'you have held broken packages'. So I walked away to let it finish complaining.

Came back, rebooted drive, and it loaded the OS ok, with none of my previously installed packages. So spent some time manually installing and that works.
I use gnome, so of course it boots unity.

The installer option of just reinstalling 16.04 and all my packages, which is what I chose. I have my users in a separate partition and it handled that ok.

Last edited by sdowney717; 06-14-2016 at 07:32 AM.
 
Old 06-14-2016, 07:36 AM   #15
sdowney717
Member
 
Registered: Sep 2015
Posts: 495

Original Poster
Rep: Reputation: Disabled
I ran the requested commands on my reinstalled os, and get this
Quote:
scott@scott-P5QC:~$ ls -l /usr/lib/x86_64-linux-gnu/libboost_system.so
ls: cannot access '/usr/lib/x86_64-linux-gnu/libboost_system.so': No such file or directory
scott@scott-P5QC:~$ ls -l /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0
-rw-r--r-- 1 root root 14496 Apr 8 11:54 /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0
scott@scott-P5QC:~$
This whole troublesome mess came about because GQRX stopped working, complained of libboost error.

My next step is to try GQRX again and wonder what will happen.

This is the link, and how to do this.
http://gqrx.dk/download/install-ubuntu

Last edited by sdowney717; 06-14-2016 at 07:38 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] zcat command created link in home directory EDDY1 Linux - Newbie 3 04-24-2011 06:37 AM
I created a c .so object, and can link successfully, now I want to make it for c++ morty346 Programming 4 06-11-2009 11:24 AM
I created a link but it doesn't work. Gins Linux - General 12 09-26-2008 09:33 PM
remove a folder created 3 days ago. eduac Linux - Software 4 10-17-2005 12:15 PM
How does VC link a dll created by cygwin? chuanyung Programming 1 02-25-2004 01:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:21 AM.

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