Ubuntu install problems

W

waugust

I have 2.5 (for GAE), 2.6 (Ubuntu default), and 3.1 installed.
Whenever I apt-get install anything It ends with a series of python
(dependency?) errors. Anybody got any idea?
aptget libgcj-common
Reading package lists...
Done
Building dependency
tree
Reading state information...
Done
libgcj-common is already the newest
version.
0 upgraded, 0 newly installed, 0 to remove and 6 not
upgraded.
26 not fully installed or
removed.
After this operation, 0B of additional disk space will be
used.
Setting up libgcj-common
(1:4.4.1-1ubuntu2) ...
Compiling /usr/lib/python3.1/dist-packages/
aotcompile.py ...
File "/usr/lib/python3.1/dist-packages/aotcompile.py", line
115
raise Error, "nothing to
do"

^
SyntaxError: invalid
syntax

Compiling /usr/lib/python3.1/dist-packages/classfile.py ...
File "/usr/lib/python3.1/dist-packages/classfile.py", line 30
raise TypeError, type(arg)
^
SyntaxError: invalid syntax

pycentral: pycentral pkginstall: error byte-compiling files (2)
pycentral pkginstall: error byte-compiling files (2)
dpkg: error processing libgcj-common (--configure):
subprocess installed post-installation script returned error exit
status 1
dpkg: dependency problems prevent configuration of
libgcj10:
libgcj10 depends on libgcj-common (>= 1:4.1.1-21);
however:
Package libgcj-common is not configured
yet.
dpkg: error processing libgcj10 (--
configure):
dependency problems - leaving
unconfigured
dpkg: dependency problems prevent configuration of libgcj-bc:

It snowballs down from there for:

No apport report written because MaxReports is reached already
Errors
were encountered while processing:
libgcj-common
libgcj10
libgcj-bc
ant-gcj
ant-optional-gcj
python-transaction
python-zconfig
python-zdaemon
python-zope.exceptions
python-zope.testing
python-zope.proxy
python-zodb
python-zope.component
gaphor
gcj-4.4-jre-lib
python-speechd
python-pyatspi
gnome-orca
python-configglue
python-telepathy
python-ubuntuone-storageprotocol
python-ubuntuone-client
telepathy-butterfly
ubuntuone-client
ubuntuone-client-gnome
python-zope.hookable
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
S

Steven D'Aprano

I have 2.5 (for GAE), 2.6 (Ubuntu default), and 3.1 installed. Whenever
I apt-get install anything It ends with a series of python (dependency?)
errors. Anybody got any idea?

It looks like apt-get is supposed to be using 2.6 or 2.5, but somehow is
running 3.1 instead.

If you run "python -V", what does it say?
 
M

MRAB

waugust said:
I have 2.5 (for GAE), 2.6 (Ubuntu default), and 3.1 installed.
Whenever I apt-get install anything It ends with a series of python
(dependency?) errors. Anybody got any idea?
Reading package lists...
Done
Building dependency
tree
Reading state information...
Done
libgcj-common is already the newest
version.
0 upgraded, 0 newly installed, 0 to remove and 6 not
upgraded.
26 not fully installed or
removed.
After this operation, 0B of additional disk space will be
used.
Setting up libgcj-common
(1:4.4.1-1ubuntu2) ...
Compiling /usr/lib/python3.1/dist-packages/
aotcompile.py ...
File "/usr/lib/python3.1/dist-packages/aotcompile.py", line
115
raise Error, "nothing to
do"

^
SyntaxError: invalid
syntax

Compiling /usr/lib/python3.1/dist-packages/classfile.py ...
File "/usr/lib/python3.1/dist-packages/classfile.py", line 30
raise TypeError, type(arg)
^
SyntaxError: invalid syntax
[snip]
In Python 2 an exception can be raised with the old-style:

raise Error, "nothing to do"

or the new-style:

raise Error("nothing to do")

In Python 3 the old style is not supported (it was abandoned as part of
the general clean-up).

Another related change is that the old-style:

except Error, e:

in Python 2 has been completely replaced by the new-style:

except Error as e:

in Python 3 (also available in Python 2.6).
 
W

waugust

It looks like apt-get is supposed to be using 2.6 or 2.5, but somehow is
running 3.1 instead.

If you run "python -V", what does it say?
python -V
Python 2.6.4

odd..yeah, I uninstalled all of the listed packages and started to
install again and got the same problem...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top