after i check again, the problem may be not SWUP but 'rpmdb'. rpmdb: /var/lib/rpm/Packages: unexpected file type or format error: cannot open Packages index using db3 - Invalid argument (22) Unable to access the package manager database.
i'm trying to fix rpm database using this guide: http://www.rpm.org/hintskinks/repairdb/ but rpm database still error, some file like /usr/lib/rpm/rpmdb_verify and /usr/lib/rpm/db_dump is not exist. while from http://www.rpm.org/hintskinks/repairdb/ both file is needed. so how to fix rpm database on trustix? please help. M> when i try using swup to search package: M> swup --search-package <packagename> M> it giving this error, how to fix this? M> rpmdb: /var/lib/rpm/Packages: unexpected file type or format M> error: cannot open Packages index using db3 - Invalid argument (22) M> Unable to access the package manager database. M> Traceback (most recent call last): M> File "/usr/bin/swup", line 30, in ? M> retval, extra = runswup(sys.argv[1:]) M> File "/usr/bin/swup", line 24, in runswup M> retval = swup.main( args ) M> File "/usr/lib/swup/swup.py", line 549, in main M> agent = upgrade.search_package(args, config) M> File "/usr/lib/swup/upgrade.py", line 1497, in __init__ M> Upgrade.__init__(self, configdict) M> File "/usr/lib/swup/upgrade.py", line 116, in __init__ M> self.init() M> File "/usr/lib/swup/upgrade.py", line 104, in init M> self._init_driver() M> File "/usr/lib/swup/upgrade.py", line 71, in _init_driver M> self.pkgdrv = pkgdriver.pkgdriver(self.config, self.log) M> File M> "/usr/lib/python2.2/site-packages/swuplib/driver/pkgdriver.py", M> line 49, in __init__ M> raise ex.driver_error, message M> swuplib.ex.driver_error: Unable to access the package manager database. Markus _______________________________________________ tsl-discuss mailing list [email protected] http://lists.trustix.org/mailman/listinfo/tsl-discuss
