LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware 14 - Current - Update won't allow gparted to execute (http://www.linuxquestions.org/questions/slackware-14/slackware-14-current-update-wont-allow-gparted-to-execute-4175461564/)

lkraemer 05-11-2013 02:28 PM

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

Didier Spaier 05-11-2013 03:15 PM

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'?

volkerdi 05-11-2013 03:20 PM

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.

TobiSGD 05-11-2013 03:21 PM

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.

lkraemer 05-11-2013 05:45 PM

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

Alien Bob 05-11-2013 05:58 PM

Quote:

Originally Posted by lkraemer (Post 4949248)
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.

lkraemer 05-11-2013 06:37 PM

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

willysr 05-11-2013 07:23 PM

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


volkerdi 05-11-2013 07:34 PM

Quote:

Originally Posted by willysr (Post 4949279)
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.

miltonsj 08-21-2013 02:50 AM

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...:D

jon lee 08-21-2013 12:53 PM

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

volkerdi 08-21-2013 02:48 PM

Quote:

Originally Posted by jon lee (Post 5013221)
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.


All times are GMT -5. The time now is 10:02 PM.