LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 04-14-2014, 09:24 AM   #1
marnold
Member
 
Registered: Dec 2005
Distribution: Slackware64 14.1
Posts: 255

Rep: Reputation: 32
Slackpkg+: One repository fails, they all fail


I ran into a problem today that I have seen several times. I was trying to update my system. I knew that AlienBob had updated libreoffice. Right now, the official slackpkg+ website is not responding. I ran "slackpkg update" followed by "slackpkg upgrade-all". It found no updates while giving the warning that the slackpkgplus repository had failed. If I edited that repository out of slackpkgplus.conf, and then reran those two commands, it found the libreoffice update.

Basically, slackpkgplus needs to handle missing/down repositories more gracefully than it currently does. I'd file a bug, but with the website down, I have no idea where to do that.
 
Old 04-14-2014, 10:44 AM   #2
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, Portugal
Distribution: Slackware
Posts: 253

Rep: Reputation: 71
I had to do the same
 
Old 04-14-2014, 11:27 AM   #3
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: ElementaryOS, Ubuntu LTS, Slackware
Posts: 1,537

Rep: Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709
Quote:
Originally Posted by marnold View Post
I ran into a problem today that I have seen several times. I was trying to update my system. I knew that AlienBob had updated libreoffice. Right now, the official slackpkg+ website is not responding. I ran "slackpkg update" followed by "slackpkg upgrade-all". It found no updates while giving the warning that the slackpkgplus repository had failed. If I edited that repository out of slackpkgplus.conf, and then reran those two commands, it found the libreoffice update.

Basically, slackpkgplus needs to handle missing/down repositories more gracefully than it currently does. I'd file a bug, but with the website down, I have no idea where to do that.
Just comment out the line and upgrade slackpkg+ manually... if you need to upgrade it in the first place.
 
Old 04-14-2014, 01:10 PM   #4
phenixia2003
Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 289

Rep: Reputation: 165Reputation: 165
Hello,

You can pass options to wget with the variable WGETOPTS. For instance if you want wget to retry failed download only 1 time, and a timeout of 10 seconds, run slackpkg as below :

Code:
 WGETOPTS="--tries=1 --timeout=10" slackpkg update
--
SeB
 
Old 04-15-2014, 07:02 AM   #5
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, Portugal
Distribution: Slackware
Posts: 253

Rep: Reputation: 71
Quote:
Originally Posted by phenixia2003 View Post
Hello,

You can pass options to wget with the variable WGETOPTS. For instance if you want wget to retry failed download only 1 time, and a timeout of 10 seconds, run slackpkg as below :

Code:
 WGETOPTS="--tries=1 --timeout=10" slackpkg update
--
SeB
Hi phenixia2003,

First of all, a big thank you to zerouno and you for this excellent tool

The problem is not how many retries a failed download gets, but when one repo is down (like it happened with the slackpkg+ repo) then all others fail as well.
 
Old 04-15-2014, 07:26 AM   #6
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,428

Rep: Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867
Quote:
Originally Posted by marnold View Post
I'd file a bug, but with the website down, I have no idea where to do that.
dunno if it's the proper place, but as the code is published on github, maybe you can try its issue tracker...
 
Old 04-15-2014, 08:43 AM   #7
phenixia2003
Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 289

Rep: Reputation: 165Reputation: 165
Hello,

Quote:
Originally Posted by Slax-Dude View Post
Hi phenixia2003,

First of all, a big thank you to zerouno and you for this excellent tool

The problem is not how many retries a failed download gets, but when one repo is down (like it happened with the slackpkg+ repo) then all others fail as well.
Yes, sorry. In this case, with checkgpg turned off, the other repositories should work. So the next time you can try this :

Code:
$ slackpkg -checkgpg=off update

--
SeB
 
1 members found this post helpful.
Old 04-15-2014, 07:21 PM   #8
marnold
Member
 
Registered: Dec 2005
Distribution: Slackware64 14.1
Posts: 255

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by phenixia2003 View Post
Yes, sorry. In this case, with checkgpg turned off, the other repositories should work. So the next time you can try this :

Code:
$ slackpkg -checkgpg=off update
--
SeB
I'll try that next time. Thanks! Is there a way that Slackpkg+ itself can be changed to handle this situation more gracefully?

And thanks again for the great tool. It makes maintaining a Slackware installation much, much easier.

Last edited by marnold; 04-15-2014 at 07:23 PM.
 
Old 04-16-2014, 04:35 AM   #9
phenixia2003
Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 289

Rep: Reputation: 165Reputation: 165
Hello,

Quote:
Originally Posted by marnold View Post
I'll try that next time. Thanks! Is there a way that Slackpkg+ itself can be changed to handle this situation more gracefully?
Here is a better solution for this issue.

Greetings.

--
SeB
 
Old 04-17-2014, 05:05 AM   #10
zerouno
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 256

Rep: Reputation: 69
bug fixed!

Quote:
Originally Posted by marnold View Post
I'd file a bug, but with the website down, I have no idea where to do that.
as phenixia2003 tell, the best is to report it on that thread
 
Old 04-18-2014, 08:29 PM   #11
marnold
Member
 
Registered: Dec 2005
Distribution: Slackware64 14.1
Posts: 255

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by zerouno View Post
bug fixed!


as phenixia2003 tell, the best is to report it on that thread
Excellent! Thanks for the great utility!
 
  


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
slackpkg vs. third-party package repository kikinovak Slackware 268 07-16-2014 08:15 AM
[SOLVED] Fail reboot after upgrade with slackpkg janucaria Slackware 4 05-14-2013 12:22 AM
yum fails with error: Cannot retrieve repository metadata (repomd.xml) for repository dmendonsa Fedora 6 02-10-2010 07:23 PM
Bug in slackpkg -- fail to find installed package? grissiom Slackware 8 07-16-2009 05:26 AM
Slackpkg fails on upgrade-all albhaf Slackware 1 12-02-2006 10:22 AM


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