LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 07-19-2013, 08:22 PM   #1
Miranden
Member
 
Registered: May 2012
Distribution: Slackware
Posts: 203

Rep: Reputation: 19
Errors after upgrading to current, can't start X, slackpkg or vim


Hi,

I just tried upgrading to 64-current on my laptop, which has successfully run it before (about a month ago). I added a current mirror and then did this:

Code:
slackpkg update
slackpkg install-new
slackpkg upgrade-all
Then I did slackpkg upgrade-all again.

When I came out of the upgrade, things were broken. The first thing I did was rerun lilo and reboot to get to the new kernel, but when it came to the login screen, nothing I typed was input. I pressed letter keys and nothing happened. I did a hard reset and came back to the login screen again. This time I could type.

Once inside, I tried to use vim to open /etc/lilo.conf and it would not work. I got an error that said:

Code:
vim: error while loading shared libraries:libgpm.so.2:cannot open shared object file: No such file or directory
I tried to start slackpkg again to see if it saw missing packages on my system, and it said that I had not chosen a mirror (which of course I had, because I had used it before). So I used nano to go back and uncomment my mirror again.

But when I tried to run slackpkg update again, it said

Code:
wget: error while loading shared libraries: libpcre.so.1: cannot open shared object file:No such file or directory
grep: /tmp/slackpkg.a6WX9Y/ChangeLog.txt: No such file or directory
Then just to see I tried to start X. It didn't work.

Does anyone know what went wrong? Thank you!
 
Old 07-19-2013, 09:11 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,594

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
You had a partial upgrade
Try downloading pcre and gpm manually and perform upgradepkg on those two packages first
 
1 members found this post helpful.
Old 07-19-2013, 10:11 PM   #3
Miranden
Member
 
Registered: May 2012
Distribution: Slackware
Posts: 203

Original Poster
Rep: Reputation: 19
Thank you. Do you mean the ones from here?

http://mirrors.slackware.com/slackwa...7-x86_64-2.txz

http://mirrors.slackware.com/slackwa...3-x86_64-1.txz


I found these by doing a google search for "gpm slackware current" (or pcre), finding some links from slackbuilds.org that show where the respective packages are in the directory structure (like this one, showing pcre is in "l": http://slackbuilds.org/mirror/slackw...source/l/pcre/), and then going to the Slackware file tree on mirrors.slackware.com and looking in those locations. But somehow I don't think this roundabout process is what people who know what they are doing usually do. What would have been the best way to find them?

And would you mind telling me what about my errors told you I should go get these specific packages? I don't really understand.

Thank you very much!
 
Old 07-19-2013, 10:36 PM   #4
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,594

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Yes, those are the files missing on your system
you can try to use the official mirror at OSUOSL
http://slackware.osuosl.org/slackware64-current/
 
1 members found this post helpful.
Old 07-19-2013, 11:31 PM   #5
Miranden
Member
 
Registered: May 2012
Distribution: Slackware
Posts: 203

Original Poster
Rep: Reputation: 19
It worked! I downloaded the packages in Links (finally had a use for a text only browser), and slackpkg is over there slacking away right now, finishing upgrading the rest of my packages. From the looks of things it wants to reinstall almost my entire system. So thanks! I still wish I knew how you arrived at that, though . . .

And I don't actually understand what happened. Why would a partial upgrade break libraries I already had in the system? I get how a partial upgrade could happen if my internet cut out for some reason (it is indeed wireless), but why, then, would the packages that were in there before stop working? Vim worked fine before the upgrade, so I don't see why I would need the upgraded package for it to work afterwards. Do the packages get removed before they are downloaded? That seems unlikely.

And why wouldn't my keyboard work? That seems like a kernel thing . . .

I don't get it.
 
Old 07-20-2013, 01:42 AM   #6
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,594

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
The packages are linked to the new libraries and your system doesn't have that new libraries (probably caused by the partial upgrade or any other reason), so it will not work anymore unless you satisfy the dependencies.

That's why slackpkg was rebuilt to enable DOWNLOAD_ALL=ON in the configuration file to prevent this situation to happen in the future.

Another solution is to have a local slackware mirror on your system and point slackpkg to that mirror instead of pointing to mirror on the public server. That way, you will not have any problem suppose your Internet connection was cut, since you already have all the packages in your local machine first. I would suggest to use AlienBOB's rsync script.
 
1 members found this post helpful.
Old 07-20-2013, 03:03 PM   #7
Miranden
Member
 
Registered: May 2012
Distribution: Slackware
Posts: 203

Original Poster
Rep: Reputation: 19
Okay, I see. Thank you for explaining. I guess I didn't really understand what libraries were before. I found a good explanation here, though.

Now when I execute

Code:
ldd /usr/bin/vim
I can see all of the libraries that are required, including libgpm.so.2. I understand better now.

I do think I will use Alien's rsync script to put up a local mirror of the Slackware tree. That will make things a lot smoother I think.
 
  


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] Most recent upgrade in current causing firefox and slackpkg errors vdemuth Slackware 8 10-30-2010 01:08 PM
[SOLVED] slackpkg upgrade...not upgrading :-( the_penguinator Slackware 3 03-24-2010 08:14 PM
[SOLVED] slackpkg insists on NOT upgrading me to slackware64-current. What am I missing? GrapefruiTgirl Slackware 5 03-04-2010 02:01 PM
Upgrading glibc 2.3.4 -> 2.3.6 with slackpkg kuitang Slackware 3 03-13-2006 07:36 PM
upgrading the kernel using slackpkg cavalier Slackware 17 05-27-2005 06:54 PM


All times are GMT -5. The time now is 05:06 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