Author Topic: Package Manager Woes  (Read 3781 times)

btanoue

  • Newbie
  • *
  • Posts: 31
    • View Profile
Package Manager Woes
« on: November 17, 2005, 11:07:37 pm »
Hi,

I just installed the RC12 pdaXrom on my C1000, and I"m loving, it.  I installed a whole bunch of packages on my sd card.  After a reboot, the package manager doesn't seem to know those packages are installed although, I can still run the programs.

I actually want to uninstall a few programs that are on my sd card, but can't since the package manger doesn't think they are installed.

Any help would be great.

btanoue
Zaurus SL-C1000
Cacko 1.23 and updated sd-mmc driver
4 Gig SD
Linksys WCF-12 CF Card

SL-5500 quietly sitting on shelf
ROM (unknown)
256 M SD Card

Netgear Wireless CF cards are the worst, went through 2 of them!

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Package Manager Woes
« Reply #1 on: November 18, 2005, 02:03:20 am »
Is there a /mnt/card/usr/lib/ipkg/status file?
is there something in this file?

what do you have in your /etc/ipkg.conf?

does ipkg -d /mnt/card status return anything?
« Last Edit: November 18, 2005, 02:03:53 am by pgas »
SLC-860 cacko / senao wifi

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Package Manager Woes
« Reply #2 on: November 18, 2005, 04:25:06 am »
There are a few bugs in the package management system. Here are a couple that I've come across and quick fixed:

I have partitioned the internal HD on my 3100 into 5 partitions, the 2 extra partitions being ext3 and a 256MB swap.

Originally I had the ext3 partition mounted at /mnt/hdd, but the package manager stubbornly refuses to let me install apps there, even though I had added it to /etc/ipkg.conf. I have since found that for some reason the (gui) package manager doesn't seem to read (or use that file), furthermore changes that I make to /etc/ipkg.conf gets overwritten (ie restored to "factory defaults") by the package manager. Anyway in order to install to my ext3 partition I had to use /mnt/hd as the mount point.

So now I was able to install stuff to the HD, but when I looked at the installation log I saw that after each package installed there was an error saying "couldn't find <PACKAGE> on /mnt/hd". After reading around, I learnt that after installing to "external storage", links must be made in the internal filesystem so the programs will be referenced correctly. This linking business is performed by /usr/bin/ipkg-link.

So for the 1st bug, in ipkg-link, the paths for the possible "external storage" locations are hardcoded into the "findpackage()" function, ie it does not read them from /etc/ipkg.conf. My quick and dirty fix was hijack one of the hardcoded locations and modify it to /mnt/hd. That fixed the installation problems.

The 2nd bug is found in the uninstallation of programs. Again the program that deals with this /usr/bin/ipkg-uninstall has the possible "external storage" locations hardcoded. BTW the code in this is much neater than that of ipkg-link. The quick fix is to add /mnt/hd into the PREFIXES.

The real fix for both these problems is to have them read the config from /etc/ipkg.conf, but I'll leave that as an exercise for the reader  

-- cheers
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Package Manager Woes
« Reply #3 on: November 18, 2005, 04:34:11 am »
Quote
The real fix for both these problems is to have them read the config from /etc/ipkg.conf, but I'll leave that as an exercise for the reader laugh.gif

are you using rc12?
I've done this exercise, and ipkg-link in rc12 should read the destinations from /etc/ipkg.conf

IThe package manager should  read /etc/ipkg.conf in rc12 also.
« Last Edit: November 18, 2005, 04:35:17 am by pgas »
SLC-860 cacko / senao wifi

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Package Manager Woes
« Reply #4 on: November 18, 2005, 09:43:35 am »
Quote
are you using rc12?
I've done this exercise, and ipkg-link in rc12 should read the destinations from /etc/ipkg.conf

IThe package manager should  read /etc/ipkg.conf in rc12 also.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=104150\"][{POST_SNAPBACK}][/a][/div]

Yes, I'm using rc12 (not lite). Fresh install (from Cacko rom).

No, ipkg-link in rc12 does not read in /etc/ipkg.conf. Instead it has a horrendous   nested if-then-else to test for a number of hardcoded locations. The version of packagemanager I have installed is 1.1.0-1, and embedix-utils (which provides the ipkg* stuff) is 1.0.9-1. Both were what came with rc12.

-- cheers
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Package Manager Woes
« Reply #5 on: November 18, 2005, 09:51:44 am »
hmm, maybe the latest versions have not been added for the 1000/3100 rom then:

you can find updated versions here:

http://pierre.ellh.com/ipk/

(i'm not sure if these are the latest  )
« Last Edit: November 18, 2005, 09:52:33 am by pgas »
SLC-860 cacko / senao wifi

btanoue

  • Newbie
  • *
  • Posts: 31
    • View Profile
Package Manager Woes
« Reply #6 on: November 18, 2005, 11:54:31 pm »
Quote
Is there a /mnt/card/usr/lib/ipkg/status file?
is there something in this file?

what do you have in your /etc/ipkg.conf?

does ipkg -d /mnt/card status return anything?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=104139\"][{POST_SNAPBACK}][/a][/div]

Yes, but only a few of the packages that I have installed.  Is it simply that I can edit this file and then have the missing packages found so that I may uninstall them?

or should I do a fresh rom install?

btanoue
Zaurus SL-C1000
Cacko 1.23 and updated sd-mmc driver
4 Gig SD
Linksys WCF-12 CF Card

SL-5500 quietly sitting on shelf
ROM (unknown)
256 M SD Card

Netgear Wireless CF cards are the worst, went through 2 of them!

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Package Manager Woes
« Reply #7 on: November 19, 2005, 02:08:11 am »
the status file may have been corrupted, you could add the missing package in the file but you also need the list of files in usr/lib/ipkg/info.

If the lists of files for the missing packages are not present, perhaps the easiest way is to resinstall the packages and remove them afterwards.
SLC-860 cacko / senao wifi