portupgrade -a meckert

SpecialAgent

BSD Trainee
Hallo, weiss jemand was ich tun soll?

Code:
[root@kosh /home/user]# portupgrade -a
[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument; rebuild needed] [Rebuilding the pkgdb <format:bdb_btree> in /var/db/pkg ... [Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument; rebuild needed] [Rebuilding the pkgdb <format:bdb_btree> in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument: Cannot update the pkgdb!]: Cannot update the pkgdb!]
Command failed [exit code 1]: /usr/local/sbin/pkgdb -aFQ
[root@kosh /home/user]#

Danke.
 
Versuch mal ein
Code:
# rm /var/db/pkg/pkgdb.db /usr/ports/INDEX*.db
und führe danach portupgrade nochmals aus.

Gruss Scnaeg
 
Und auch hier mal wieder der Hinweis: Lest /usr/ports/UPDATING !

Hier der entsprechende Eintrag dazu:

Code:
20060703:
  AFFECTS: users of sysutils/portupgrade
  AUTHOR: sem@FreeBSD.org

  Because portupgrade had a problem with detecting Berkley DB version 2
  or newer, and the default database format is now set to use these
  versions, you can end up with a portupgrade that does not work with
  older databases. A quick fix is to remove the databases, type:
  'rm /var/db/pkg/pkgdb.db /usr/ports/INDEX*.db'.
  portupgrade will recreate them automaticaly. It does absolutely no harm.

  If you do not want remove the databases, you should detect what database
  type do you use, and set the port options for portupgrade accordingly.
  Follow these instructions:

  - run 'pkgdb -fu' *before* upgrading and take a look on the output.
    You can see database format there as: format:XXX, where XXX is your
    current database format.
  - Go to portupgrade port directory and configure the port with
    `make config' command. If you have bdb_* format, then turn on the BDB4
    option.  If you have bdb1_* format, then turn off BDB4 and turn on
    the BDB1 option.  If you have dbd_hash format, then turn off all options.
  - Upgrade portupgrade.

  Note: if you change database format with changing port options,
  you should remove the ruby-bdb* port that you don't need anymore.
  Alternatively, you can hard code database format in your pkgtools.conf.
 
Das Problem hatte ich letztens auch. Unschoen war dabei jedoch, dass in der UPDATING da noch nichts stand und ich mir nicht erklaeren konnte, wo das Problem herkommt... hab dann einfach ne aeltere Version von portupgrade wieder draufgemacht, ging auch :D
 
Zurück
Oben