LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 04-26-2007, 08:37 PM   #31
GrapefruiTgirl
Moderator
 
Registered: Dec 2006
Location: N.S.
Distribution: Slackware64
Posts: 4,236
Thanked: 180

[Log in to get rid of this advertisement]
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.
GrapefruiTgirl is online now     Reply With Quote
Old 04-26-2007, 08:49 PM   #32
BCarey
Senior Member
 
Registered: Oct 2005
Distribution: Slackware
Posts: 1,153
Thanked: 14
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
BCarey is offline     Reply With Quote
Old 04-26-2007, 09:36 PM   #33
mago
Member
 
Registered: Apr 2004
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 233
Thanked: 0

Original Poster
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.
mago is offline     Reply With Quote
Old 04-26-2007, 09:41 PM   #34
GrapefruiTgirl
Moderator
 
Registered: Dec 2006
Location: N.S.
Distribution: Slackware64
Posts: 4,236
Thanked: 180
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 ??)
GrapefruiTgirl is online now     Reply With Quote
Old 04-27-2007, 07:07 AM   #35
erklaerbaer
Member
 
Registered: Mar 2006
Distribution: Slackware
Posts: 381
Thanked: 0
try /var/log/packages
erklaerbaer is offline     Reply With Quote
Old 04-27-2007, 09:30 AM   #36
GrapefruiTgirl
Moderator
 
Registered: Dec 2006
Location: N.S.
Distribution: Slackware64
Posts: 4,236
Thanked: 180
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
GrapefruiTgirl is online now     Reply With Quote
Old 04-27-2007, 09:36 AM   #37
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,396
Thanked: 128
Um, maybe I'm misunderstanding something, but you *really* do NOT want to remove /var/log/packages.
rworkman is offline     Reply With Quote
Old 04-27-2007, 09:42 AM   #38
GrapefruiTgirl
Moderator
 
Registered: Dec 2006
Location: N.S.
Distribution: Slackware64
Posts: 4,236
Thanked: 180
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.
GrapefruiTgirl is online now     Reply With Quote
Old 04-27-2007, 11:04 AM   #39
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,396
Thanked: 128
Ah okay. I know slackpkg is supposed to do that for you. Maybe that code is where the bug lies...
rworkman is offline     Reply With Quote
Old 04-27-2007, 12:05 PM   #40
erklaerbaer
Member
 
Registered: Mar 2006
Distribution: Slackware
Posts: 381
Thanked: 0
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 12:06 PM..
erklaerbaer is offline     Reply With Quote
Old 04-27-2007, 07:49 PM   #41
GrapefruiTgirl
Moderator
 
Registered: Dec 2006
Location: N.S.
Distribution: Slackware64
Posts: 4,236
Thanked: 180
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..
GrapefruiTgirl is online now     Reply With Quote
Old 04-27-2007, 09:11 PM   #42
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,396
Thanked: 128
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 09:12 PM..
rworkman is offline     Reply With Quote
Old 04-28-2007, 01:35 AM   #43
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,396
Thanked: 128
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
rworkman is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


All times are GMT -5. The time now is 02:10 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration