LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackpkg+: One repository fails, they all fail (https://www.linuxquestions.org/questions/slackware-14/slackpkg-one-repository-fails-they-all-fail-4175501658/)

marnold 04-14-2014 09:24 AM

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.

Slax-Dude 04-14-2014 10:44 AM

I had to do the same :(

kikinovak 04-14-2014 11:27 AM

Quote:

Originally Posted by marnold (Post 5152281)
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.

phenixia2003 04-14-2014 01:10 PM

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

Slax-Dude 04-15-2014 07:02 AM

Quote:

Originally Posted by phenixia2003 (Post 5152446)
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.

ponce 04-15-2014 07:26 AM

Quote:

Originally Posted by marnold (Post 5152281)
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...

phenixia2003 04-15-2014 08:43 AM

Hello,

Quote:

Originally Posted by Slax-Dude (Post 5153029)
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

marnold 04-15-2014 07:21 PM

Quote:

Originally Posted by phenixia2003 (Post 5153110)
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.

phenixia2003 04-16-2014 04:35 AM

Hello,

Quote:

Originally Posted by marnold (Post 5153518)
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

zerouno 04-17-2014 05:05 AM

bug fixed!

Quote:

Originally Posted by marnold (Post 5152281)
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

marnold 04-18-2014 08:29 PM

Quote:

Originally Posted by zerouno (Post 5154406)
bug fixed!


as phenixia2003 tell, the best is to report it on that thread

Excellent! Thanks for the great utility!


All times are GMT -5. The time now is 08:57 PM.