Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
cześć,
no problem mam taki, potrzebowałem mieć python2.4 i 2.5. na 2.5 miał chodzić mod_python dla apache. to się dało.
tyle tylko, że później potrzebowałem domontować ten pakiet który zawiera mysql_config, i tu się zaczęły schody bo system nie wiem czemu cały czas używa pythona2.5, nawet jeżeli symlink w /usr/bin prowadzi na 2.4.4
i teraz problem jest taki że, mam pakiety:
reportbug i buildbot
których za chiny nie mogę usunąć z systemu.
podczas ich demontażu gdy python (/usr/bin/python) wskazuje na /usr/bin/python2.4 pojawiają się tego typu krzaczory:
INFO: using unsupported version '/usr/bin/python2.5' Traceback (most recent call last): File "/usr/bin/pycentral", line 1373, in ? main() File "/usr/bin/pycentral", line 1367, in main rv = action.run(global_options) File "/usr/bin/pycentral", line 889, in run self.options.exclude, byte_compile_default=True) File "/usr/bin/pycentral", line 672, in install self.default_runtime.byte_compile(self.private_files, AttributeError: 'NoneType' object has no attribute 'byte_compile' dpkg: error processing reportbug (--configure): subprocess post-installation script returned error exit status 1 Setting up buildbot (0.7.4-3) ... INFO: using unsupported version '/usr/bin/python2.5' Traceback (most recent call last): File "/usr/bin/pycentral", line 1373, in ? main() File "/usr/bin/pycentral", line 1367, in main rv = action.run(global_options) File "/usr/bin/pycentral", line 889, in run self.options.exclude, byte_compile_default=True) File "/usr/bin/pycentral", line 672, in install self.default_runtime.byte_compile(self.private_files, AttributeError: 'NoneType' object has no attribute 'byte_compile' dpkg: error processing buildbot (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: reportbug buildbot E: Sub-process /usr/bin/dpkg returned an error code (1)
pytanie więc, jak sobie z tym poradzić i jak doprowadzić do tego, by wyrzucić na chwilę chociaż 2.5 niech zostanie 2.4, wtedy będę mógł zabrać się za ten pakiet którego potrzebuje z mysql_config (to jest libmysqlclient15-dev bodajże czy jakoś tak)
albo jak się tych dwóch pakietów wyzbyć kompletnie ? dpkg coś nie pozwala :/
Offline
#aptitude purge .....
Offline
wynik aptitude purge python2.5
przy pozostałych dwóch pakietach jest tak samo.
# aptitude purge python2.5 Reading package lists... Done Building dependency tree... Done Reading extended state information Initializing package states... Done Reading task descriptions... Done Building tag database... Done The following packages have been kept back: linux-image-2.6-686 The following packages will be REMOVED: python2.5{p} 0 packages upgraded, 0 newly installed, 1 to remove and 1 not upgraded. Need to get 0B of archives. After unpacking 0B will be used. Do you want to continue? [Y/n/?] Writing extended state information... Done (Reading database ... 33918 files and directories currently installed.) Removing python2.5 ... Purging configuration files for python2.5 ... Setting up reportbug (3.31) ... INFO: using unsupported version '/usr/bin/python2.5' Traceback (most recent call last): File "/usr/bin/pycentral", line 1373, in ? main() File "/usr/bin/pycentral", line 1367, in main rv = action.run(global_options) File "/usr/bin/pycentral", line 889, in run self.options.exclude, byte_compile_default=True) File "/usr/bin/pycentral", line 672, in install self.default_runtime.byte_compile(self.private_files, AttributeError: 'NoneType' object has no attribute 'byte_compile' dpkg: error processing reportbug (--configure): subprocess post-installation script returned error exit status 1 Setting up buildbot (0.7.4-3) ... INFO: using unsupported version '/usr/bin/python2.5' Traceback (most recent call last): File "/usr/bin/pycentral", line 1373, in ? main() File "/usr/bin/pycentral", line 1367, in main rv = action.run(global_options) File "/usr/bin/pycentral", line 889, in run self.options.exclude, byte_compile_default=True) File "/usr/bin/pycentral", line 672, in install self.default_runtime.byte_compile(self.private_files, AttributeError: 'NoneType' object has no attribute 'byte_compile' dpkg: error processing buildbot (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: reportbug buildbot E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover:
Offline
a na siłę z parametrem -f?
Offline
na siłe z -f
# apt-get remove -f buildbot Reading package lists... Done Building dependency tree... Done The following packages will be REMOVED: buildbot 0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded. 2 not fully installed or removed. Need to get 0B of archives. After unpacking 2195kB disk space will be freed. Do you want to continue [Y/n]? (Reading database ... 33918 files and directories currently installed.) Removing buildbot ... INFO: using unsupported version '/usr/bin/python2.5' Traceback (most recent call last): File "/usr/bin/pycentral", line 1373, in ? main() File "/usr/bin/pycentral", line 1367, in main rv = action.run(global_options) File "/usr/bin/pycentral", line 952, in run pkg.remove(runtimes, remove_script_files=True) File "/usr/bin/pycentral", line 697, in remove default_runtime.remove_byte_code(self.private_files) AttributeError: 'NoneType' object has no attribute 'remove_byte_code' dpkg: error processing buildbot (--remove): subprocess pre-removal script returned error exit status 1 INFO: using unsupported version '/usr/bin/python2.5' Traceback (most recent call last): File "/usr/bin/pycentral", line 1373, in ? main() File "/usr/bin/pycentral", line 1367, in main rv = action.run(global_options) File "/usr/bin/pycentral", line 889, in run self.options.exclude, byte_compile_default=True) File "/usr/bin/pycentral", line 672, in install self.default_runtime.byte_compile(self.private_files, AttributeError: 'NoneType' object has no attribute 'byte_compile' dpkg: error while cleaning up: subprocess post-installation script returned error exit status 1 Errors were encountered while processing: buildbot E: Sub-process /usr/bin/dpkg returned an error code (1)
Offline
a to? rm -rf ~/.python2.5
Offline
myhost:~# rm -rf ~/.python2.5 myhost:~# apt-get remove buildbot Reading package lists... Done Building dependency tree... Done The following packages will be REMOVED: buildbot 0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded. 2 not fully installed or removed. Need to get 0B of archives. After unpacking 2195kB disk space will be freed. Do you want to continue [Y/n]? (Reading database ... 33918 files and directories currently installed.) Removing buildbot ... INFO: using unsupported version '/usr/bin/python2.5' Traceback (most recent call last): File "/usr/bin/pycentral", line 1373, in ? main() File "/usr/bin/pycentral", line 1367, in main rv = action.run(global_options) File "/usr/bin/pycentral", line 952, in run pkg.remove(runtimes, remove_script_files=True) File "/usr/bin/pycentral", line 697, in remove default_runtime.remove_byte_code(self.private_files) AttributeError: 'NoneType' object has no attribute 'remove_byte_code' dpkg: error processing buildbot (--remove): subprocess pre-removal script returned error exit status 1 INFO: using unsupported version '/usr/bin/python2.5' Traceback (most recent call last): File "/usr/bin/pycentral", line 1373, in ? main() File "/usr/bin/pycentral", line 1367, in main rv = action.run(global_options) File "/usr/bin/pycentral", line 889, in run self.options.exclude, byte_compile_default=True) File "/usr/bin/pycentral", line 672, in install self.default_runtime.byte_compile(self.private_files, AttributeError: 'NoneType' object has no attribute 'byte_compile' dpkg: error while cleaning up: subprocess post-installation script returned error exit status 1 Errors were encountered while processing: buildbot E: Sub-process /usr/bin/dpkg returned an error code (1)
Offline
zobacz tu coś mam: http://forum.suse.pl/index.php?topic=15689.0;wap2
Offline
no ok, tylko co tu mają do rzeczy rpmy ? :)
to jak widać debian jest, z rpmów niczego nie robiłem, wsio z apta.
Offline
Jak się nie może rozwiązać jakiegoś problemu to trzeba szukać wujek google nigdy nie zawodzi:D więc zagłębiamy się w lekturę!
Offline
hmm a może starczało by, wykluczyć te pakiety z dpkg - reportbug i buildbot, tak aby na nie nie patrzył. wówczas może da się pójść dalej... tylko nie mogę się tego właśnie doszukać
Offline
nie no nie moge sie do tego doorac za chiny, ma moze ktos jeszcze jakis pomysl ?
z cala reszta juz sobie poradzilem, teraz chodzi jedynie o to, by te dwa pakiety nie wysadzaly error w momencie kiedy instaluje cokolwiek przez apt-get (czyt. korzystam z dpkg)
bylbym baaardzo wdzieczny.
pozdrowka,
Fo
Offline
może dpkg reconfigure buildbot?
Offline
no shitowo to wyglada caly czas :/
dpkg-reconfigure buildbot /usr/sbin/dpkg-reconfigure: buildbot is broken or not fully installed
z checia dooralbym sie do miejsca w ktorym dpkg w ogole trzyma taka informacje jak to ze jest cos takiego jak buildbot i wyrzucil to recznie to by zalatwilo sprawe, ew. jakby bylo to kiedys potrzebne to reinstall i pewnie by mryglo ale to takie reczne grzebanie w dpkg - no to mozna sie latwo poslizgnac a nie chce systemu pakietow schrzanic juz kompletnie
Offline