cinnamon-desktop-environment: installation from apt fails due to python issues
Hi everyone,
first post here. Today I ran apt upgrade and apt told me that cinnamon related packages were supposed to be upgraded. I confirmed but during installation I received a lot of python related errors (see here https:/
Specifically, the cinnamon-common package couldn't be configured due to errors that looked very similar to python3 vs python2 usage (e.g. print without parenthesis).
I've managed to work around it by symlinking py3compile to pycompile (I found that the package calls py3compile on its postinst script).
Could this be a bug in how the package was created? Should it call pycompile instead of py3compile?
System info:
Ubuntu 18.04 beta
Kernel: 4.15.8-
Let me know If I can give more info. Thanks.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- actionparsnip
- Solved:
- Last query:
- Last reply:
Related FAQ:
None Link to a FAQ
Revision history for this message
|
#1 |
luca@luca-
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
cinnamon cinnamon-common cinnamon-core cjs gconf2 gir1.2-cmenu-3.0 gir1.2-
libgnome-keyring0 libkeybinder-3.0-0 libmozjs-38-0 python-pam python-pexpect python-pil python-ptyprocess python-pyinotify
Suggested packages:
cinnamon-doc python-opencv gconf-defaults-
The following NEW packages will be installed:
cinnamon cinnamon-common cinnamon-core cinnamon-
libgksu2-0 libgnome-
0 upgraded, 21 newly installed, 0 to remove and 0 not upgraded.
Need to get 3.042 kB/4.643 kB of archives.
After this operation, 20,0 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Fetched 3.042 kB in 1s (5.819 kB/s)
Selecting previously unselected package libgnome-
(Reading database ... 263008 files and directories currently installed.)
Preparing to unpack .../00-
Unpacking libgnome-
Selecting previously unselected package libgnome-
Preparing to unpack .../01-
Unpacking libgnome-
Selecting previously unselected package gir1.2-
Preparing to unpack .../02-
Unpacking gir1.2-
Selecting previously unselected package python-pil:amd64.
Preparing to unpack .../03-
Unpacking python-pil:amd64 (5.0.0-1) ...
Selecting previously unselected package cinnamon-common.
Preparing to unpack .../04-
Unpacking cinnamon-common (3.6.7-3) ...
Selecting previously unselected package libmozjs-
Preparing to unpack .../05-
Unpacking libmozjs-38-0:amd64 (38.8.0~
Selecting previously unselected package libcjs0:amd64.
Preparing to unpack .../06-
Unpacking libcjs0:amd64 (3.6.1-0ubuntu1) ...
Selecting previously unselected package cjs.
Preparing to unpack .../07-
Unpacking cjs (3.6.1-0ubuntu1) ...
Selecting previously unselected package gir1.2-cmenu-3.0.
Preparing to unpack .../08-
Unpacking gir1.2-cmenu-3.0 (3.6.0-1) ...
Selecting previously unselected package libkeybinder-
Preparing to unpack .../09-
Unpacking libkeybinder-
Selecting previously unselected package gir1.2-
Preparing to unpack .../10-
Unpacking gir1.2-
Selecting previously unselected package python-pam.
Preparing to unpack .../11-
Unpacking python-pam (0.4.2-13.2ubuntu4) ...
Selecting previously unselected package python-ptyprocess.
Preparing to unpack .../12-
Unpacking python-ptyprocess (0.5.2-1) ...
Selecting previously unselected package python-pexpect.
Preparing to unpack .../13-
Unpacking python-pexpect (4.2.1-1) ...
Selecting previously unselected package python-pyinotify.
Preparing to unpack .../14-
Unpacking python-pyinotify (0.9.6-1) ...
Selecting previously unselected package cinnamon.
Preparing to unpack .../15-
Unpacking cinnamon (3.6.7-3) ...
Selecting previously unselected package cinnamon-core.
Preparing to unpack .../16-
Unpacking cinnamon-core (3.6) ...
Selecting previously unselected package cinnamon-
Preparing to unpack .../17-
Unpacking cinnamon-
Selecting previously unselected package gconf2.
Preparing to unpack .../18-
Unpacking gconf2 (3.2.6-4ubuntu1) ...
Selecting previously unselected package libgksu2-0.
Preparing to unpack .../19-
Unpacking libgksu2-0 (2.0.13~
Selecting previously unselected package gksu.
Preparing to unpack .../20-
Unpacking gksu (2.0.2-9ubuntu1) ...
Setting up libgnome-
Setting up gconf2 (3.2.6-4ubuntu1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3) ...
Processing triggers for libglib2.0-0:amd64 (2.56.0-2ubuntu1) ...
Setting up libgnome-
Setting up python-pyinotify (0.9.6-1) ...
Setting up gir1.2-
Setting up gir1.2-cmenu-3.0 (3.6.0-1) ...
Setting up python-ptyprocess (0.5.2-1) ...
Processing triggers for libc-bin (2.27-0ubuntu2) ...
Processing triggers for man-db (2.8.2-1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1) ...
Setting up python-pam (0.4.2-13.2ubuntu4) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Setting up libmozjs-38-0:amd64 (38.8.0~
Setting up python-pil:amd64 (5.0.0-1) ...
Setting up libgksu2-0 (2.0.13~
update-
Setting up libkeybinder-
Setting up cinnamon-common (3.6.7-3) ...
File "/usr/share/
print "Invalid args"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Invalid args")?
File "/usr/share/
print """
Module "polib" not available.
Please install the package "python-polib" and try again
"""
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("""
Module "polib" not available.
Please install the package "python-polib" and try again
""")?
File "/usr/share/
print e
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(e)?
File "/usr/share/
print e
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(e)?
File "/usr/share/
print e
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(e)?
File "/usr/share/
print e
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(e)?
File "/usr/share/
except (IOError, xml.parsers.
SyntaxError: invalid syntax
File "/usr/share/
print "set", value
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("set", value)?
File "/usr/share/
except Exception, msg:
SyntaxError: invalid syntax
File "/usr/share/
except Exception, detail:
SyntaxError: invalid syntax
File "/usr/share/
except Exception, e:
SyntaxError: invalid syntax
File "/usr/share/
print CANNOT_
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(CANNOT_
File "/usr/share/
print "No settings modules found!!"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("No settings modules found!!")?
File "/usr/share/
print "Loading Accessibility module"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Loading Accessibility module")?
File "/usr/share/
print "Loading Applets module"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Loading Applets module")?
File "/usr/share/
print "Loading Backgrounds module"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Loading Backgrounds module")?
File "/usr/share/
print "Loading Calendar module"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Loading Calendar module")?
File "/usr/share/
print "%s: " % info.get_name()
^
SyntaxError: invalid syntax
File "/usr/share/
print "Loading Desklets module"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Loading Desklets module")?
File "/usr/share/
print "Loading Desktop module"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Loading Desktop module")?
File "/usr/share/
print "Loading Effects module"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Loading Effects module")?
File "/usr/share/
print "Loading Extensions module"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Loading Extensions module")?
File "/usr/share/
print "Loading Fonts module"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Loading Fonts module")?
File "/usr/share/
print "Loading General module"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Loading General module")?
File "/usr/share/
print "Loading HotCorner module"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Loading HotCorner module")?
File "/usr/share/
print "Loading Info module"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Loading Info module")?
File "/usr/share/
print "Loading Keyboard module"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Loading Keyboard module")?
File "/usr/share/
print "Loading Mouse module"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Loading Mouse module")?
File "/usr/share/
print "Loading Notifications module"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Loading Notifications module")?
File "/usr/share/
print "Loading Online Account module"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Loading Online Account module")?
File "/usr/share/
print "Loading Panel module"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Loading Panel module")?
File "/usr/share/
print "Loading Power module"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Loading Power module")?
File "/usr/share/
print "Loading Privacy module"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Loading Privacy module")?
File "/usr/share/
print "Loading Screensaver module"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Loading Screensaver module")?
File "/usr/share/
print "Loading Sound module"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Loading Sound module")?
File "/usr/share/
print "Loading Startup Applications module"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Loading Startup Applications module")?
File "/usr/share/
print "Loading Themes module"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Loading Themes module")?
File "/usr/share/
print "Loading Tiling module"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Loading Tiling module")?
File "/usr/share/
print "Loading User module"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Loading User module")?
File "/usr/share/
print "Loading Windows module"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Loading Windows module")?
File "/usr/share/
print "Loading Workspaces module"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Loading Workspaces module")?
File "/usr/share/
except Exception, detail:
SyntaxError: invalid syntax
File "/usr/share/
except Exception, detail:
SyntaxError: invalid syntax
dpkg: error processing package cinnamon-common (--configure):
installed cinnamon-common package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of cinnamon:
cinnamon depends on cinnamon-common (= 3.6.7-3); however:
Package cinnamon-common is not configured yet.
dpkg: error processing package cinnamon (--configure):
dependency problems - leaving unconfigured
Setting up python-pexpect (4.2.1-1) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up libcjs0:amd64 (3.6.1-0ubuntu1) ...
Setting up cjs (3.6.1-0ubuntu1) ...
dpkg: dependency problems prevent configuration of cinnamon-core:
cinnamon-core depends on cinnamon (>= 3.6); however:
Package cinnamon is not configured yet.
dpkg: error processing package cinnamon-core (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cinnamon-
cinnamon-
Package cinnamon-core is not configured yet.
dpkg: error processing package cinnamon-
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for gconf2 (3.2.6-4ubuntu1) ...
Setting up gksu (2.0.2-9ubuntu1) ...
Processing triggers for libc-bin (2.27-0ubuntu2) ...
Errors were encountered while processing:
cinnamon-common
cinnamon
cinnamon-core
cinnamon-
E: Sub-process /usr/bin/dpkg returned an error code (1)
Revision history for this message
|
#2 |
There is no limit to text here so pastebin isn't required. I've pasted the text in case the pastebin gets removed
Revision history for this message
|
#3 |
What is the output of:
apt-cache policy cinnamon-common cinnamon cinnamon-core cinnamon-
Thanks
Revision history for this message
|
#4 |
Thanks for pasting the pastebin.
Here´s the output:
luca@luca-mipro:~$ apt-cache policy cinnamon-common cinnamon cinnamon-core cinnamon-
cinnamon-common:
Installed: 3.6.7-3
Candidate: 3.6.7-3
Version table:
*** 3.6.7-3 500
500 http://
500 http://
100 /var/lib/
cinnamon:
Installed: 3.6.7-3
Candidate: 3.6.7-3
Version table:
*** 3.6.7-3 500
500 http://
100 /var/lib/
cinnamon-core:
Installed: 3.6
Candidate: 3.6
Version table:
*** 3.6 500
500 http://
500 http://
100 /var/lib/
cinnamon-
Installed: 3.6
Candidate: 3.6
Version table:
*** 3.6 500
500 http://
500 http://
100 /var/lib/
Revision history for this message
|
#5 |
I suggest you report a bug. You can do this with:
ubuntu-bug cinnamon
Bionic is not ready and not stable
Revision history for this message
|
#6 |
Yeah I know it's not stable, I'm trying it out and I thought I could help by submitting this issue I've faced today.
Here's the bug url, for reference: https:/
Thanks for answering!
Revision history for this message
|
#7 |
Thanks actionparsnip, that solved my question.
Revision history for this message
|
#8 |
A new version has been prepared (3.6.7-4), which is supposed to solve this problem.
This new release should be available on all mirror servers in a few hours.