LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial 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 04-26-2007, 07:37 PM   #31
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550

Hi BCarey. I have since tried that too. I backed up the contents and deleted/recreated the folder. Also I tried setting a different fresh folder entirely, and still no go.
 
Old 04-26-2007, 07:49 PM   #32
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,476

Rep: Reputation: Disabled
Which folder? How do you recreate /var/log/packages? What I did was look through /var/log/packages where I spotted a number of duplicate packages, which I then removed with "removepkg".

Brian
 
Old 04-26-2007, 08:36 PM   #33
mago
Member
 
Registered: Apr 2004
Location: Costa Rica
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 284

Original Poster
Rep: Reputation: 33
I upgraded to slackpkg-2.35 and everything works fine.

You might want to go to http://ufpr.dl.sourceforge.net/sourc...2-noarch-1.tgz to get it.
 
Old 04-26-2007, 08:41 PM   #34
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Brian, I just copied all the crap from /var/cache/ to a spare location, and made a brand new packages folder. Then I uninstalled Slackpkg and deleted any traces of it. And then reinstalled it fresh, configured the mirror, set up the configuration etc..
And it still did the same thing right off the get-go. It would UPDATE itself as far as the text file lists and stuff, but then I'd try to do an patches-upgrade, and the weirdness began afresh :s

Anyhow, I am going to check out the new one mentioned by mago, and get back to you'se.
(Incidentally, why does sourceforge not provide MD5's ??)
 
Old 04-27-2007, 06:07 AM   #35
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
try /var/log/packages
 
Old 04-27-2007, 08:30 AM   #36
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
LOL that's what I get for computing late at night!!
Erklaerbaer, thanks for that clarification!! I will try that today and update you guys
Thanks again
 
Old 04-27-2007, 08:36 AM   #37
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
Um, maybe I'm misunderstanding something, but you *really* do NOT want to remove /var/log/packages.
 
Old 04-27-2007, 08:42 AM   #38
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Hi Rob, no not remove it, but check for duplicates and remove/uninstall any duplicate packages.
Atleast, that's what I will be trying.
Seems to me I already looked once for dupes, and didn't see any, but I will be looking again.
 
Old 04-27-2007, 10:04 AM   #39
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
Ah okay. I know slackpkg is supposed to do that for you. Maybe that code is where the bug lies...
 
Old 04-27-2007, 11:05 AM   #40
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
Quote:
Originally Posted by me
you probably have a broken /var/log/packages. see if there are packages more then one time installed.

(i know slackpkg should recognize that, but for e.g. with two glibc-zoneinfo it does not )


........

Last edited by erklaerbaer; 04-27-2007 at 11:06 AM.
 
Old 04-27-2007, 06:49 PM   #41
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
You guys are great Thanks for all the advice, and for your patience everyone!
I went to /var/log/packages and did indeed see two versions of bash, so... I started up pkgtool, selected 'remove packages' and then scrolled through the entire list. I found a half dozen or so duplicate packages, of different versions, so I selected "remove" for each older version of the dupes.
I tried Slackpkg again, and it started to work --- it at least tried to download, but it was trying to upgrade me to four older packages, that did not exist on the mirror (I checked manually). So I changed mirrors, Updated slackpkg again, and again ran 'upgrade-all'. And it WORKED! It located about 10 things for which there were new releases or patches, so I picked a few, downloaded them, and installed them without incident.
Yay!! Thanks again peoples -- I guess the question remaining is how/why the duplicates are slipping through the net..
 
Old 04-27-2007, 08:11 PM   #42
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
Quote:
Originally Posted by GrapefruiTgirl
You guys are great Thanks for all the advice, and for your patience everyone!
I went to /var/log/packages and did indeed see two versions of bash, so... I started up pkgtool, selected 'remove packages' and then scrolled through the entire list. I found a half dozen or so duplicate packages, of different versions, so I selected "remove" for each older version of the dupes.
I tried Slackpkg again, and it started to work --- it at least tried to download, but it was trying to upgrade me to four older packages, that did not exist on the mirror (I checked manually). So I changed mirrors, Updated slackpkg again, and again ran 'upgrade-all'. And it WORKED! It located about 10 things for which there were new releases or patches, so I picked a few, downloaded them, and installed them without incident.
Yay!! Thanks again peoples -- I guess the question remaining is how/why the duplicates are slipping through the net..

There a few possible ways that duplicate packages could end up installed, but the most common is by using installpkg(8) rather than upgradepkg(8) [1] to install newer versions of packages already installed.
On that note, other than a few exceptions [2], a good way to upgrade large numbers of packages is with the --install-new option to upgradepkg(8); basically, this causes it to upgrade existing packages, and if a package is not currently installed, the --install-new switch installs it.

[1] Basically, what upgradepkg does is rename the original package, install the contents of the new package, and remove the original (renamed) package. Any files that exist in two or more packages will not be removed, so only the files that are not present in the new package will be removed by this.

[2] One notable exception is installing a new kernel package - it's usually a good idea to keep your old kernel image and modules around at least until you confirm that the new one will boot properly. Another exception might be packages that add custom kernel modules (we split the madwifi build into a libs/utils portion and a driver portion at SlackBuilds.org for this very reason) - you often want to leave the driver for kernel X in place while also installing it for kernel Y.

Back on the subject of slackpkg, I'll let PiterPunk know the outcome of this next time I talk to him; I'm almost certain that he doesn't monitor this forum.

Last edited by rworkman; 04-27-2007 at 08:12 PM.
 
Old 04-28-2007, 12:35 AM   #43
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
Does anyone still have the /var/log/packages directory in its original state (when it was causing this problem)? If so, PiterPunk would like for you to tar it up and mail it to him. If you don't have it still, but you do recall the packages that were duplicates, look in /var/log/removed_packages and pluck the relevant entries out of there - and explain why you're giving him those instead of /var/log/packages. There's a potential solution in the works, but the exact implementation has yet to be determined, and we're going to want testing with some configurations that actually exposed the bug. Be sure to advise the version of slackpkg you're using (although I *strongly* recommend that you reproduce the bug in 2.52 if you want to help - 2.02 is old now).

PiterPUNK's mail address is listed in /etc/slackpkg/slackpkg.conf
 
  


Reply

Tags
slackpkg, upgrade


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
swaret and slackpkg lodder Slackware 5 10-14-2005 04:37 AM
Slackpkg vs. Swaret. mdarby Slackware 3 11-18-2004 10:10 PM
Why does patrick seem to favor slackpkg over swaret? Barx Slackware 4 11-10-2004 09:59 AM
swaret or slackpkg ? frochet Slackware 8 06-11-2004 01:08 PM
slapt-get, swaret, or SlackPkg ??? GloVe Slackware 2 10-05-2003 12:11 PM


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