LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-11-2013, 01:28 PM   #1
lkraemer
Member
 
Registered: Aug 2008
Posts: 111

Rep: Reputation: 10
Slackware 14 - Current - Update won't allow gparted to execute


I'm running Slackware 14 (32 Bit) which I keep updated each month or so.
Today I updated my Slackware and now gparted doesn't execute.

bash-4.2$ which gparted
/usr/sbin/gparted
bash-4.2$

bash-4.2$ sudo gparted
Password:
/usr/sbin/gpartedbin: error while loading shared libraries: libparted.so.0: cannot open shared object file: No such file or directory
bash-4.2$

How did libparted.so.0 become missing? What is the solution to making gparted execute?

Thanks.

Larry
 
Old 05-11-2013, 02:15 PM   #2
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,184

Rep: Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021
Are you sure you didn't mix 32/64 bit while updating? Also, did you actually check that libparted.so 0 actually be there or not with 'locate libgparted" command, issued after having executed 'updatedb'?

Last edited by Didier Spaier; 05-11-2013 at 02:44 PM.
 
Old 05-11-2013, 02:20 PM   #3
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 861

Rep: Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685
Sounds like an update to -current rather than keeping 14.0 updated. The update in -current to parted-3.1 bumped the shared library from .0 to .2, so anything that was linked against the old shared library will at least need a recompile, and in some cases patches to work with the new parted API.
 
Old 05-11-2013, 02:21 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,576
Blog Entries: 2

Rep: Reputation: 4036Reputation: 4036Reputation: 4036Reputation: 4036Reputation: 4036Reputation: 4036Reputation: 4036Reputation: 4036Reputation: 4036Reputation: 4036Reputation: 4036
Are you sure that you use Slackware 14.0? On my Slackware 14.0 system I get this:
Code:
root / ☺ # locate libparted.so.0
/usr/lib/libparted.so.0.0.1
/usr/lib/libparted.so.0
So it definitely should be there.
In opposite, on my Slackware -current system I don't have libparted.so.0, but libparted.so.2.
If you run -current you can either try to fix your issues with symlinking libparted.so.0 to libparted.so.2 or, better with system-critical programs like GParted, recompile the GParted package.

Edit: too slow.
 
Old 05-11-2013, 04:45 PM   #5
lkraemer
Member
 
Registered: Aug 2008
Posts: 111

Original Poster
Rep: Reputation: 10
Didier Spaier, volkerdi, & TobiSGD:
I know for a fact I installed Slackware 14 (32 Bit) from a DVD. I've been executing the following commands
about once a month.
Code:
 
freshclam
slackpkg update
slackpkg install-new
slackpkg upgrade-all
Maybe I missed something on how to keep Slackware 14 Updated. So, exactly what commands should I have executed versus
what I actually executed? Is there a way to recover? I'm about at wits end, because every time I update I end up
with things that don't work, and I end up posting for help.

Can you explain in detail what the exact commands are to update Slackware 14, and what command updates to -current?


I did an updatedb and here is what I have for libparted:
Code:
bash-4.2$ locate libparted
/usr/lib/libparted-fs-resize.so.0.0.0
/usr/lib/pkgconfig/libparted.pc
/usr/lib/libparted.la
/usr/lib/libparted.so
/usr/lib/libparted-fs-resize.so.0
/usr/lib/libparted.so.2
/usr/lib/libparted.so.2.0.0
/usr/lib/libparted-fs-resize.la
/usr/lib/libparted-fs-resize.so
bash-4.2$
Now, I'm wondering what else won't work.

Thanks.

Larry
 
Old 05-11-2013, 04:58 PM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,233

Rep: Reputation: Disabled
Quote:
Originally Posted by lkraemer View Post
Can you explain in detail what the exact commands are to update Slackware 14, and what command updates to -current?
The commands you are using are correct, but it all depends on the URL you have uncommented in /etc/slackpkg/mirrors ... if that is the URL of a slackware-current mirror then you are no longer running Slackware 14.0 but slackware-current instead.

Eric

Edit: read http://docs.slackware.com/howtos:sla...using_slackpkg for more background info.

Last edited by Alien Bob; 05-11-2013 at 04:59 PM.
 
Old 05-11-2013, 05:37 PM   #7
lkraemer
Member
 
Registered: Aug 2008
Posts: 111

Original Poster
Rep: Reputation: 10
Alien Bob,
THANKS, that is where my problem is.

I had selected
Code:
ftp://mirrors.us.kernel.org/slackware/slackware-current/
versus Slackware 14.

Now, what is the best way to proceed, to get back to using Slackware 14 and have everything functional?

THANKS.

Larry
 
Old 05-11-2013, 06:23 PM   #8
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,550

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
revert back to Slackware 14.0 mirror and re-ran all the command that you use
Code:
slackpkg update
slackpkg install-new
slackpkg upgrade-all
 
Old 05-11-2013, 06:34 PM   #9
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 861

Rep: Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685
Quote:
Originally Posted by willysr View Post
revert back to Slackware 14.0 mirror and re-ran all the command that you use
Code:
slackpkg update
slackpkg install-new
slackpkg upgrade-all
I'm not so sure that will work. At least glibc is cannot be reverted without some manual intervention, and any new packages aren't going to be removed.

My advice would be that if -current is working well (more or less), go with it. Otherwise the best bet is a reinstall.
 
Old 08-21-2013, 01:50 AM   #10
miltonsj
LQ Newbie
 
Registered: Jan 2007
Posts: 7

Rep: Reputation: 0
I had the same problem with gparted. Here is what I did to solve it:

I installed slapt-get from HERE. You can get all the instructions you need on using slapt-get from that link. Make sure slapt-get is updated with the latest package list.

Next, I installed slapt-src with these commands in the terminal:
Code:
slapt-get -i slapt-src
Then, I did
Code:
slapt-src -u
to update the package list. Finally, I did
Code:
slapt-src -i gparted
to recompile and reinstall gparted.

After that, I had no problem with libparted dependencies and I could use gparted!

If you have any further questions, please PM me. Thanks and good luck...
 
Old 08-21-2013, 11:53 AM   #11
jon lee
Member
 
Registered: Jul 2013
Posts: 81

Rep: Reputation: Disabled
The most simple solution for this would be to do a
ln -s /usr/lib/libparted.so.2.0.0 /usr/lib/libparted.so.0
 
Old 08-21-2013, 01:48 PM   #12
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 861

Rep: Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685
Quote:
Originally Posted by jon lee View Post
The most simple solution for this would be to do a
ln -s /usr/lib/libparted.so.2.0.0 /usr/lib/libparted.so.0
That sounds like a very unsafe idea.
 
  


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
nslackpkg-2.0.0 -- update -- for slackware-current linuxxer Slackware 0 02-15-2013 02:18 AM
[SOLVED] Update Error in Slackware-current rickphilwi Slackware 4 11-23-2011 01:32 PM
Slackware Crash when update to current MarcosPauloBR Slackware 3 03-18-2011 11:12 PM
[SOLVED] update to current, rtorrent throws error, won't start mrclisdue Slackware 4 03-11-2011 08:14 AM
setting slackware to update to -current Cultist Slackware 4 11-28-2010 10:43 AM


All times are GMT -5. The time now is 01:53 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration