python3 fails to install (postinst has invalid shebang line)
Bug #599208 reported by
Anders Kaseorg
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python3-defaults (Ubuntu) |
Fix Released
|
High
|
Scott Kitterman |
Bug Description
Setting up python3 (3.1.2-2ubuntu1) ...
dpkg (subprocess): unable to execute installed post-installation script (/var/lib/
dpkg: error processing python3 (--configure):
subprocess installed post-installation script returned error exit status 2
Related branches
Changed in python3-defaults (Ubuntu): | |
assignee: | nobody → Scott Kitterman (kitterman) |
importance: | Undecided → High |
status: | New → In Progress |
Changed in python3-defaults (Ubuntu): | |
milestone: | none → maverick-alpha-2 |
To post a comment you must log in.
After fixing the postinst, I got the following output but the package configuration succeeded (dpkg lists it as installed):
$ sudo dpkg --configure --pending python3. 1/runpy. py", line 128, in _run_module_as_main python3. 1/runpy. py", line 34, in _run_code python3. 1/py_compile. py", line 185, in <module> exit(main( )) python3. 1/py_compile. py", line 177, in main filename, doraise=True) python3. 1/py_compile. py", line 131, in compile python3. 1/py_compile. py", line 83, in read_encoding
Setting up python3 (3.1.2-2ubuntu1) ...
Traceback (most recent call last):
File "/usr/lib/
"__main__", fname, loader, pkg_name)
File "/usr/lib/
exec(code, run_globals)
File "/usr/lib/
sys.
File "/usr/lib/
compile(
File "/usr/lib/
encoding = read_encoding(file, "utf-8")
File "/usr/lib/
f = open(file, "rb")
IOError: [Errno 2] No such file or directory: '-'