Hinweis: Das Forum wird geschlossen! Neue Registrierungen sind nicht mehr möglich!

 Zurück zu Pro-Linux   Foren-Übersicht   FAQ     Suchen    Mitgliederliste
RPM gelöchst nach Updateversuch von Redhat 9 auf Fedora 2

 
Neuen Beitrag schreiben   Auf Beitrag antworten    Pro-Linux Foren-Übersicht -> Sonstiges
Vorheriges Thema anzeigen :: Nächstes Thema anzeigen  
Autor Nachricht
Michael1971
Gast





BeitragVerfasst am: 08. März 2005 12:48   Titel: RPM gelöchst nach Updateversuch von Redhat 9 auf Fedora 2

Hallo zusammen,

wir haben bei dem Update von RH9 auf FC2 seltsamerweise unser RPM zerschossen und kommen mit den Standard-Verfahren nicht so recht weiter...

Wir sind über jede Idee dankbar.

Viele Grüße
Michael

Problembeschreibung
RPM Crash während System Update

Ausgangslage
• RedHat 9
• yum
• apt4rpm

Aktion
• Update der Quellserverlist (/etc/apt/sources.list)
• apt-get dist-upgrade

Fehler
• upgrade - Aktion wurde durch System abgebrochen
• rpm samt Datenbank gelöscht
• apt4rpm gelöscht

Ansätze zur Lösung
1) Neukompilierung von rpm in der Version 4.2
Fehler während der Kompilierung ( make )
siehe Anhang compile_errors.txt

2) Manuelles Kopieren aller von RPM benötigten Dateien von einem enfernten RedHat 9 System
Aufgetretener Fehler nach dieser Form der RPM - Wiederherstellung
siehe Anhang run_errors.txt

##############################################
compile_errors.txt ###############################
##############################################
rpmmodule.c: In function `setVerbosity':
rpmmodule.c:90: `args' undeclared (first use in this function)
rpmmodule.c:95: `Py_None' undeclared (first use in this function)
rpmmodule.c:96: `PyObject' undeclared (first use in this function)
rpmmodule.c:96: parse error before ')' token
rpmmodule.c: At top level:
rpmmodule.c:101: parse error before '*' token
rpmmodule.c:101: parse error before '*' token
rpmmodule.c:102: warning: return type defaults to `int'
rpmmodule.c:102: warning: function declaration isn't a prototype
rpmmodule.c: In function `setEpochPromote':
rpmmodule.c:103: `args' undeclared (first use in this function)
rpmmodule.c:105: `Py_None' undeclared (first use in this function)
rpmmodule.c:106: `PyObject' undeclared (first use in this function)
rpmmodule.c:106: parse error before ')' token
rpmmodule.c: At top level:
rpmmodule.c:111: parse error before "rpmModuleMethods"
rpmmodule.c:111: warning: type defaults to `int' in declaration of `rpmModuleMethods'
rpmmodule.c:112: warning: braces around scalar initializer
rpmmodule.c:112: warning: (near initialization for `rpmModuleMethods[0]')
rpmmodule.c:112: warning: initialization makes integer from pointer without a cast
rpmmodule.c:112: `PyCFunction' undeclared here (not in a function)
rpmmodule.c:112: warning: excess elements in scalar initializer
rpmmodule.c:112: warning: (near initialization for `rpmModuleMethods[0]')
rpmmodule.c:112: parse error before "rpmts_Create"
rpmmodule.c:112: `METH_VARARGS' undeclared here (not in a function)
rpmmodule.c:112: warning: excess elements in scalar initializer
rpmmodule.c:112: warning: (near initialization for `rpmModuleMethods[0]')
rpmmodule.c:113: warning: excess elements in scalar initializer
rpmmodule.c:113: warning: (near initialization for `rpmModuleMethods[0]')
rpmmodule.c:120: warning: braces around scalar initializer
rpmmodule.c:120: warning: (near initialization for `rpmModuleMethods[1]')
rpmmodule.c:120: warning: initialization makes integer from pointer without a cast
rpmmodule.c:120: `PyCFunction' undeclared here (not in a function)
rpmmodule.c:120: warning: excess elements in scalar initializer
rpmmodule.c:120: warning: (near initialization for `rpmModuleMethods[1]')
rpmmodule.c:120: parse error before "rpmrc_AddMacro"
rpmmodule.c:120: `METH_VARARGS' undeclared here (not in a function)
rpmmodule.c:120: warning: excess elements in scalar initializer
rpmmodule.c:120: warning: (near initialization for `rpmModuleMethods[1]')
rpmmodule.c:121: warning: excess elements in scalar initializer
rpmmodule.c:121: warning: (near initialization for `rpmModuleMethods[1]')
rpmmodule.c:122: warning: braces around scalar initializer
rpmmodule.c:122: warning: (near initialization for `rpmModuleMethods[2]')
rpmmodule.c:122: warning: initialization makes integer from pointer without a cast
rpmmodule.c:122: `PyCFunction' undeclared here (not in a function)
rpmmodule.c:122: warning: excess elements in scalar initializer
rpmmodule.c:122: warning: (near initialization for `rpmModuleMethods[2]')
rpmmodule.c:122: parse error before "rpmrc_DelMacro"
rpmmodule.c:122: `METH_VARARGS' undeclared here (not in a function)
rpmmodule.c:122: warning: excess elements in scalar initializer
rpmmodule.c:122: warning: (near initialization for `rpmModuleMethods[2]')
rpmmodule.c:123: warning: excess elements in scalar initializer
rpmmodule.c:123: warning: (near initialization for `rpmModuleMethods[2]')
rpmmodule.c:125: warning: braces around scalar initializer
rpmmodule.c:125: warning: (near initialization for `rpmModuleMethods[3]')
rpmmodule.c:125: warning: initialization makes integer from pointer without a cast
rpmmodule.c:125: `PyCFunction' undeclared here (not in a function)
rpmmodule.c:125: warning: excess elements in scalar initializer
rpmmodule.c:125: warning: (near initialization for `rpmModuleMethods[3]')
rpmmodule.c:125: parse error before "archScore"
rpmmodule.c:125: `METH_VARARGS' undeclared here (not in a function)
rpmmodule.c:125: warning: excess elements in scalar initializer
rpmmodule.c:125: warning: (near initialization for `rpmModuleMethods[3]')
rpmmodule.c:126: warning: excess elements in scalar initializer
rpmmodule.c:126: warning: (near initialization for `rpmModuleMethods[3]')
rpmmodule.c:128: warning: braces around scalar initializer
rpmmodule.c:128: warning: (near initialization for `rpmModuleMethods[4]')
rpmmodule.c:128: warning: initialization makes integer from pointer without a cast
rpmmodule.c:128: `PyCFunction' undeclared here (not in a function)
rpmmodule.c:128: warning: excess elements in scalar initializer
rpmmodule.c:128: warning: (near initialization for `rpmModuleMethods[4]')
rpmmodule.c:128: parse error before "hdrLoad"
rpmmodule.c:128: `METH_VARARGS' undeclared here (not in a function)
rpmmodule.c:128: warning: excess elements in scalar initializer
rpmmodule.c:128: warning: (near initialization for `rpmModuleMethods[4]')
rpmmodule.c:129: warning: excess elements in scalar initializer
rpmmodule.c:129: warning: (near initialization for `rpmModuleMethods[4]')
rpmmodule.c:130: warning: braces around scalar initializer
rpmmodule.c:130: warning: (near initialization for `rpmModuleMethods[5]')
rpmmodule.c:130: warning: initialization makes integer from pointer without a cast
rpmmodule.c:130: `PyCFunction' undeclared here (not in a function)
rpmmodule.c:130: warning: excess elements in scalar initializer
rpmmodule.c:130: warning: (near initialization for `rpmModuleMethods[5]')
rpmmodule.c:130: parse error before "rhnLoad"
rpmmodule.c:130: `METH_VARARGS' undeclared here (not in a function)
rpmmodule.c:130: warning: excess elements in scalar initializer
rpmmodule.c:130: warning: (near initialization for `rpmModuleMethods[5]')
rpmmodule.c:131: warning: excess elements in scalar initializer
rpmmodule.c:131: warning: (near initialization for `rpmModuleMethods[5]')
rpmmodule.c:132: warning: braces around scalar initializer
rpmmodule.c:132: warning: (near initialization for `rpmModuleMethods[6]')
rpmmodule.c:132: warning: initialization makes integer from pointer without a cast
rpmmodule.c:132: `PyCFunction' undeclared here (not in a function)
rpmmodule.c:132: warning: excess elements in scalar initializer
rpmmodule.c:132: warning: (near initialization for `rpmModuleMethods[6]')
rpmmodule.c:132: parse error before "rpmMergeHeadersFromFD"
rpmmodule.c:132: `METH_VARARGS' undeclared here (not in a function)
rpmmodule.c:132: warning: excess elements in scalar initializer
rpmmodule.c:132: warning: (near initialization for `rpmModuleMethods[6]')
rpmmodule.c:133: warning: excess elements in scalar initializer
rpmmodule.c:133: warning: (near initialization for `rpmModuleMethods[6]')
rpmmodule.c:134: warning: braces around scalar initializer
rpmmodule.c:134: warning: (near initialization for `rpmModuleMethods[7]')
rpmmodule.c:134: warning: initialization makes integer from pointer without a cast
rpmmodule.c:134: `PyCFunction' undeclared here (not in a function)
rpmmodule.c:134: warning: excess elements in scalar initializer
rpmmodule.c:134: warning: (near initialization for `rpmModuleMethods[7]')
rpmmodule.c:134: parse error before "rpmHeaderFromFD"
rpmmodule.c:134: `METH_VARARGS' undeclared here (not in a function)
rpmmodule.c:134: warning: excess elements in scalar initializer
rpmmodule.c:134: warning: (near initialization for `rpmModuleMethods[7]')
rpmmodule.c:135: warning: excess elements in scalar initializer
rpmmodule.c:135: warning: (near initialization for `rpmModuleMethods[7]')
rpmmodule.c:136: warning: braces around scalar initializer
rpmmodule.c:136: warning: (near initialization for `rpmModuleMethods[8]')
rpmmodule.c:136: warning: initialization makes integer from pointer without a cast
rpmmodule.c:136: `PyCFunction' undeclared here (not in a function)
rpmmodule.c:136: warning: excess elements in scalar initializer
rpmmodule.c:136: warning: (near initialization for `rpmModuleMethods[8]')
rpmmodule.c:136: parse error before "rpmHeaderFromFile"
rpmmodule.c:136: `METH_VARARGS' undeclared here (not in a function)
rpmmodule.c:136: warning: excess elements in scalar initializer
rpmmodule.c:136: warning: (near initialization for `rpmModuleMethods[8]')
rpmmodule.c:137: warning: excess elements in scalar initializer
rpmmodule.c:137: warning: (near initialization for `rpmModuleMethods[8]')
rpmmodule.c:139: warning: braces around scalar initializer
rpmmodule.c:139: warning: (near initialization for `rpmModuleMethods[9]')
rpmmodule.c:139: warning: initialization makes integer from pointer without a cast
rpmmodule.c:139: `PyCFunction' undeclared here (not in a function)
rpmmodule.c:139: warning: excess elements in scalar initializer
rpmmodule.c:139: warning: (near initialization for `rpmModuleMethods[9]')
rpmmodule.c:139: parse error before "setLogFile"
rpmmodule.c:139: `METH_VARARGS' undeclared here (not in a function)
rpmmodule.c:139: warning: excess elements in scalar initializer
rpmmodule.c:139: warning: (near initialization for `rpmModuleMethods[9]')
rpmmodule.c:140: warning: excess elements in scalar initializer
rpmmodule.c:140: warning: (near initialization for `rpmModuleMethods[9]')
rpmmodule.c:142: warning: braces around scalar initializer
rpmmodule.c:142: warning: (near initialization for `rpmModuleMethods[10]')
rpmmodule.c:142: warning: initialization makes integer from pointer without a cast
rpmmodule.c:142: `PyCFunction' undeclared here (not in a function)
rpmmodule.c:142: warning: excess elements in scalar initializer
rpmmodule.c:142: warning: (near initialization for `rpmModuleMethods[10]')
rpmmodule.c:142: parse error before "versionCompare"
rpmmodule.c:142: `METH_VARARGS' undeclared here (not in a function)
rpmmodule.c:142: warning: excess elements in scalar initializer
rpmmodule.c:142: warning: (near initialization for `rpmModuleMethods[10]')
rpmmodule.c:143: warning: excess elements in scalar initializer
rpmmodule.c:143: warning: (near initialization for `rpmModuleMethods[10]')
rpmmodule.c:144: warning: braces around scalar initializer
rpmmodule.c:144: warning: (near initialization for `rpmModuleMethods[11]')
rpmmodule.c:144: warning: initialization makes integer from pointer without a cast
rpmmodule.c:144: `PyCFunction' undeclared here (not in a function)
rpmmodule.c:144: warning: excess elements in scalar initializer
rpmmodule.c:144: warning: (near initialization for `rpmModuleMethods[11]')
rpmmodule.c:144: parse error before "labelCompare"
rpmmodule.c:144: `METH_VARARGS' undeclared here (not in a function)
rpmmodule.c:144: warning: excess elements in scalar initializer
rpmmodule.c:144: warning: (near initialization for `rpmModuleMethods[11]')
rpmmodule.c:145: warning: excess elements in scalar initializer
rpmmodule.c:145: warning: (near initialization for `rpmModuleMethods[11]')
rpmmodule.c:146: warning: braces around scalar initializer
rpmmodule.c:146: warning: (near initialization for `rpmModuleMethods[12]')
rpmmodule.c:146: warning: initialization makes integer from pointer without a cast
rpmmodule.c:146: `PyCFunction' undeclared here (not in a function)
rpmmodule.c:146: warning: excess elements in scalar initializer
rpmmodule.c:146: warning: (near initialization for `rpmModuleMethods[12]')
rpmmodule.c:146: parse error before "setVerbosity"
rpmmodule.c:146: `METH_VARARGS' undeclared here (not in a function)
rpmmodule.c:146: warning: excess elements in scalar initializer
rpmmodule.c:146: warning: (near initialization for `rpmModuleMethods[12]')
rpmmodule.c:147: warning: excess elements in scalar initializer
rpmmodule.c:147: warning: (near initialization for `rpmModuleMethods[12]')
rpmmodule.c:148: warning: braces around scalar initializer
rpmmodule.c:148: warning: (near initialization for `rpmModuleMethods[13]')
rpmmodule.c:148: warning: initialization makes integer from pointer without a cast
rpmmodule.c:148: `PyCFunction' undeclared here (not in a function)
rpmmodule.c:148: warning: excess elements in scalar initializer
rpmmodule.c:148: warning: (near initialization for `rpmModuleMethods[13]')
rpmmodule.c:148: parse error before "setEpochPromote"
rpmmodule.c:148: `METH_VARARGS' undeclared here (not in a function)
rpmmodule.c:148: warning: excess elements in scalar initializer
rpmmodule.c:148: warning: (near initialization for `rpmModuleMethods[13]')
rpmmodule.c:149: warning: excess elements in scalar initializer
rpmmodule.c:149: warning: (near initialization for `rpmModuleMethods[13]')
rpmmodule.c:151: warning: braces around scalar initializer
rpmmodule.c:151: warning: (near initialization for `rpmModuleMethods[14]')
rpmmodule.c:151: warning: initialization makes integer from pointer without a cast
rpmmodule.c:151: `PyCFunction' undeclared here (not in a function)
rpmmodule.c:151: warning: excess elements in scalar initializer
rpmmodule.c:151: warning: (near initialization for `rpmModuleMethods[14]')
rpmmodule.c:151: parse error before "rpmds_Single"
rpmmodule.c:151: `METH_VARARGS' undeclared here (not in a function)
rpmmodule.c:151: warning: excess elements in scalar initializer
rpmmodule.c:151: warning: (near initialization for `rpmModuleMethods[14]')
rpmmodule.c:152: warning: excess elements in scalar initializer
rpmmodule.c:152: warning: (near initialization for `rpmModuleMethods[14]')
rpmmodule.c:154: warning: braces around scalar initializer
rpmmodule.c:154: warning: (near initialization for `rpmModuleMethods[15]')
rpmmodule.c:154: warning: initialization makes integer from pointer without a cast
rpmmodule.c:155: warning: data definition has no type or storage class
rpmmodule.c: In function `initrpm':
rpmmodule.c:167: `PyObject' undeclared (first use in this function)
rpmmodule.c:167: `d' undeclared (first use in this function)
rpmmodule.c:167: `o' undeclared (first use in this function)
rpmmodule.c:167: `tag' undeclared (first use in this function)
rpmmodule.c:167: `dict' undeclared (first use in this function)
rpmmodule.c:167: warning: left-hand operand of comma expression has no effect
rpmmodule.c:167: warning: left-hand operand of comma expression has no effect
rpmmodule.c:167: warning: left-hand operand of comma expression has no effect
rpmmodule.c:171: `m' undeclared (first use in this function)
rpmmodule.c:190: warning: implicit declaration of function `Py_InitModule3'
rpmmodule.c:196: warning: implicit declaration of function `PyModule_GetDict'
rpmmodule.c:203: warning: implicit declaration of function `PyErr_NewException'
rpmmodule.c:203: warning: assignment makes pointer from integer without a cast
rpmmodule.c:205: warning: implicit declaration of function `PyDict_SetItemString'
rpmmodule.c:242: request for member `ob_type' in something not a structure or union
rpmmodule.c:242: `PyType_Type' undeclared (first use in this function)
rpmmodule.c:243: request for member `ob_type' in something not a structure or union
rpmmodule.c:244: request for member `ob_type' in something not a structure or union
rpmmodule.c:245: request for member `ob_type' in something not a structure or union
rpmmodule.c:246: request for member `ob_type' in something not a structure or union
rpmmodule.c:247: request for member `ob_type' in something not a structure or union
rpmmodule.c:248: request for member `ob_type' in something not a structure or union
rpmmodule.c:249: request for member `ob_type' in something not a structure or union
rpmmodule.c:250: request for member `ob_type' in something not a structure or union
rpmmodule.c:251: request for member `ob_type' in something not a structure or union
rpmmodule.c:254: warning: implicit declaration of function `PyDict_New'
rpmmodule.c:257: warning: implicit declaration of function `PyInt_FromLong'
rpmmodule.c:259: warning: implicit declaration of function `Py_DECREF'
rpmmodule.c:260: warning: implicit declaration of function `PyDict_SetItem'
rpmmodule.c:260: warning: implicit declaration of function `PyString_FromString'
rpmmodule.c:267: warning: implicit declaration of function `PyCObject_FromVoidPtr'
make[3]: *** [rpmmodule.lo] Fehler 1
make[3]: Verlassen des Verzeichnisses Verzeichnis »/home/user_1/rpm-4.2/python«
make[2]: *** [all-recursive] Fehler 1
make[2]: Verlassen des Verzeichnisses Verzeichnis »/home/user_1/rpm-4.2/python«
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlassen des Verzeichnisses Verzeichnis »/home/user_1/rpm-4.2«
make: *** [all] Fehler 2
[root@www rpm-4.2]#

###########################################
run_errors.txt ###############################
###########################################
rpm -ivh package.i386.rpm

error: cannot open Packages database in /var/lib/rpm
warning: mjpegtools-1.6.1-fr5.i386.rpm: V3 DSA signature: NOKEY, key ID e42d547b
error: cannot open Packages database in /var/lib/rpm
 

Hans Solo
prolinux-forum-admin


Anmeldungsdatum: 20.04.2004
Beiträge: 601
Wohnort: AT

BeitragVerfasst am: 08. März 2005 23:44   Titel:

hi

lösch mal alles in /var/lib/rpm (oder vielleicht besser alles woanders hinkopieren)
und dann den befehl
rpm --rebuilddb

falls das nicht hilft findest du vielleicht hier rat:
http://www.rpm.org/hintskinks/repairdb/


ausserdem würde ich für ein distributions upgrade yum verwenden und nicht apt.

mfg
arno
_________________
[root@host]# cd /pub
[root@host]# more beer
 
Benutzer-Profile anzeigen Private Nachricht senden Website dieses Benutzers besuchen

mschwendt



Anmeldungsdatum: 14.02.2003
Beiträge: 37

BeitragVerfasst am: 13. März 2005 5:50   Titel:

Anderer Ansatz: erste CD im rescue Modus booten, nicht das chroot betreten, sondern stattdessen die rpm* Pakete von außerhalb mit passendem --root Parameter überinstallieren.
 
Benutzer-Profile anzeigen Private Nachricht senden

Beiträge vom vorherigen Thema anzeigen:   
     Pro-Linux Foren-Übersicht -> Sonstiges Alle Zeiten sind GMT + 1 Stunde
Seite 1 von 1

 
Gehen Sie zu:  

Powered by phpBB © phpBB Group
pro_linux Theme © 2004 by Mandaxy