Re: System needs repair after fsck
On Sun, 10 Jul 2005 23:13:53 -0400, Marty wrote:
> Marty wrote:
>
>> Here's what I get on my sarge system:
>>
>> $ apt-cache rdepends debconf |grep python
>> python2.3-popy
>> python2.2-popy
>> python2.1-popy
>> libapache2-mod-python2.3
>> libapache2-mod-python2.2
>
> Sorry, that should be "depends," and python doesn't
> appear, so I don't know where python is being called,
> but it still probably has some corrupted files.
The saga continues:
Since any apt-get action ends in
Setting up debconf (1.4.30.13) ...
Traceback (most recent call last):
File "/usr/lib/python2.3/compileall.py", line 156, in ?
exit_status = not main()
File "/usr/lib/python2.3/compileall.py", line 146, in main
force, rx, quiet):
File "/usr/lib/python2.3/compileall.py", line 83, in compile_dir
if not compile_dir(fullname, maxlevels - 1, dfile, force, rx, quiet):
File "/usr/lib/python2.3/compileall.py", line 83, in compile_dir
if not compile_dir(fullname, maxlevels - 1, dfile, force, rx, quiet):
File "/usr/lib/python2.3/compileall.py", line 83, in compile_dir
if not compile_dir(fullname, maxlevels - 1, dfile, force, rx, quiet):
File "/usr/lib/python2.3/compileall.py", line 68, in compile_dir
except py_compile.PyCompileError,err:
AttributeError: 'module' object has no attribute 'PyCompileError'
on /usr/lib/python2.3/compileall.py
I checked the sanity of this Python source;
on a sane system:
$ md5sum /usr/lib/python2.3/compileall.py
fc8159171507a474468f41270ff20f74 /usr/lib/python2.3/compileall.py
and on the sick system:
$ md5sum /usr/lib/python2.3/compileall.py
fc8159171507a474468f41270ff20f74 /usr/lib/python2.3/compileall.py
So, the source is okay.
Can I compile it manually ?:
# python /usr/lib/python2.3/compileall.py
Listing /usr/lib/python2.3 ...
Compiling /usr/lib/python2.3/quopri.py ...
Traceback (most recent call last):
File "/usr/lib/python2.3/compileall.py", line 156, in ?
exit_status = not main()
File "/usr/lib/python2.3/compileall.py", line 149, in main
success = compile_path()
File "/usr/lib/python2.3/compileall.py", line 104, in compile_path
force, quiet=quiet)
File "/usr/lib/python2.3/compileall.py", line 68, in compile_dir
except py_compile.PyCompileError,err:
AttributeError: 'module' object has no attribute 'PyCompileError'
I cannot; meaning that ? what ? Is python broken ?
If yes, how to reinstall it without using apt / dpkg (which cannot be
used, because debconf is broken - the circular effect ! ) ??
Uwe
Reply to: