package unity-tweak-tool 0.0.7+-0ubuntu8 failed to install/upgrade: installed unity-tweak-tool package post-installation script subprocess returned error exit status 1

Bug #1946477 reported by Brett Bogert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-tweak-tool (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The title pretty much says it all.

ProblemType: Package
DistroRelease: Ubuntu 21.10
Package: unity-tweak-tool 0.0.7+-0ubuntu8
ProcVersionSignature: Ubuntu 5.13.0-16.16-generic 5.13.13
Uname: Linux 5.13.0-16-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu70
Architecture: amd64
CasperMD5json:
 {
   "result": "skip"
 }
Date: Fri Oct 8 08:21:22 2021
ErrorMessage: installed unity-tweak-tool package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2021-10-04 (3 days ago)
InstallationMedia: WolfLand 21.10 Unity v1.8b - Release amd64
PackageArchitecture: all
Python3Details: /usr/bin/python3.9, Python 3.9.7, python3-minimal, 3.9.4-1build1
PythonDetails: N/A
SourcePackage: unity-tweak-tool
Title: package unity-tweak-tool 0.0.7+-0ubuntu8 failed to install/upgrade: installed unity-tweak-tool package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Brett Bogert (bbogert24) wrote :
Revision history for this message
Brett Bogert (bbogert24) wrote :

I think the title pretty much says it all

Revision history for this message
Brett Bogert (bbogert24) wrote :

Now that I have some time to look at the problem it seems that the post-install
is failing with the following error:

  File "/usr/lib/python3/dist-packages/UnityTweakTool/section/spaghetti/gsettings.py", line 109
    antialiasing = gnome('desktop.interface’)
                                             ^
SyntaxError: EOL while scanning string literal

If you edit the gsettings.py file with gedit you can see that the end parentheses is showing
in pink instead of white.

Don't know if this is a problem with the patch file but somehow we are picking up an EOL
character which is causing the closing parenthesis to be shown as pink instead of
white(maybe interpreted as an EOL signal or something like that).

As far as I can tell the coding changes seem to be correct for the moving of the schema
from "xsettings" to "desktop.interface" but I am a noob so what the hell do I know.

If I can gather more information or anything let me know.

Brett "WolfMan" Bogert
<email address hidden>

Revision history for this message
Michael (mike984) wrote :

I am getting the following error when trying to install unity-tweak-tool:

Selecting previously unselected package unity-tweak-tool.
(Reading database … 209562 files and directories currently installed.)
Preparing to unpack …/unity-tweak-tool_0.0.7±0ubuntu8_all.deb …
Unpacking unity-tweak-tool (0.0.7±0ubuntu8) …
Setting up unity-tweak-tool (0.0.7±0ubuntu8) …
/usr/lib/python3/dist-packages/UnityTweakTool/init.py:136: SyntaxWarning: “is not” with a literal. Did you mean “!=”?
assert id is not -1
File “/usr/lib/python3/dist-packages/UnityTweakTool/section/spaghetti/gsettings.py”, line 109
antialiasing = gnome('desktop.interface’)
^
SyntaxError: EOL while scanning string literal

/usr/lib/python3/dist-packages/UnityTweakTool/section/spaghetti/theme.py:155: SyntaxWarning: “is” with a literal. Did you mean “==”?
self.ui[‘check_cursor_size’].set_active(True if gsettings.interface.get_int(‘cursor-size’) is 48 else False)
dpkg: error processing package unity-tweak-tool (–configure):
installed unity-tweak-tool package post-installation script subprocess returned error exit status 1
Processing triggers for bamfdaemon (0.5.5+21.10.20210710-0ubuntu1) …
Rebuilding /usr/share/applications/bamf-2.index…
Processing triggers for desktop-file-utils (0.26-1ubuntu1) …
Processing triggers for hicolor-icon-theme (0.17-2) …
Processing triggers for gnome-menus (3.36.0-1ubuntu1) …
Processing triggers for libglib2.0-0:amd64 (2.68.4-1build1) …
Processing triggers for man-db (2.9.4-2) …
Processing triggers for mailcap (3.69ubuntu1) …
Errors were encountered while processing:
unity-tweak-tool
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up unity-tweak-tool (0.0.7±0ubuntu8) …
/usr/lib/python3/dist-packages/UnityTweakTool/init.py:136: SyntaxWarning: “is not” with a literal. Did you mean “!=”?
assert id is not -1
File “/usr/lib/python3/dist-packages/UnityTweakTool/section/spaghetti/gsettings.py”, line 109
antialiasing = gnome('desktop.interface’)
^
SyntaxError: EOL while scanning string literal

/usr/lib/python3/dist-packages/UnityTweakTool/section/spaghetti/theme.py:155: SyntaxWarning: “is” with a literal. Did you mean “==”?
self.ui[‘check_cursor_size’].set_active(True if gsettings.interface.get_int(‘cursor-size’) is 48 else False)
dpkg: error processing package unity-tweak-tool (–configure):
installed unity-tweak-tool package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
unity-tweak-tool

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity-tweak-tool - 0.0.7+-0ubuntu9

---------------
unity-tweak-tool (0.0.7+-0ubuntu9) impish; urgency=medium

  * debian/patches/new-fonts-schemas.patch:
    - use the right type of quote, fixes the postinst script erroring
      (lp: #1946477)

 -- Sebastien Bacher <email address hidden> Mon, 11 Oct 2021 11:36:29 +0200

Changed in unity-tweak-tool (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.