2019年5月11日土曜日

解決: UbuntuでUnity-tweak-toolが起動エラー

Unity-tweak-toolが起動しなくなりました。

直りました。結局、全部入れなおすとよかったです。

↓以下は修正の試行錯誤の失敗の記録です。

$ unity-tweak-tool
/usr/lib/python3/dist-packages/UnityTweakTool/__init__.py:40: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
Error: schema com.canonical.indicator.bluetooth not installed
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

こんなエラーが出ます。bluetoothのindicatorがない?とか。


The following schema is missing
com.canonical.indicator.bluetooth
In order to work properly, Unity Tweak Tool recommends you install the necessary packages


https://askubuntu.com/questions/843433/missing-bluetooth-applet-on-16-04
これの通りにインストールしてみましたが、NG。
$ sudo apt-get install --reinstall blueman



$ unity-tweak-tool
/usr/lib/python3/dist-packages/UnityTweakTool/__init__.py:40: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
        Another instance of Unity Tweak Tool seems to be running with
        process id 6498. Switching to the already existing window.
        If you believe there is no other instance running, remove the
        file /home/shimo/.cache/unity-tweak-tool/pid.lockfile and try again.

Error: schema com.canonical.indicator.bluetooth not installed
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.


これはいまいち分からない synaptic をインストールするらしい
https://ubuntuforums.org/showthread.php?t=2181375


unity-tweak-toolをリセットしてみるものの、NG。

$ unity-tweak-tool --reset-unity
/usr/lib/python3/dist-packages/UnityTweakTool/__init__.py:40: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
WARNING: You are about to reset Unity to its default configuration.
    This will result in loss of configuration.
    It is normal for your desktop to flicker during the process.
    Type yes to continue, anything else to exit.
  
Do you wish to continue?yes
Initialising Unity reset
Killing Unity and Compiz
Resetting compiz plugins
Schema org.compiz.session successfully reset
Schema org.compiz.scaleaddon successfully reset
Schema org.compiz.core successfully reset
Schema org.compiz.clone successfully reset
Schema org.compiz.ring successfully reset
Schema org.compiz.scale successfully reset
Schema org.compiz.composite successfully reset
Schema org.compiz.wallpaper successfully reset
Schema org.compiz.screenshot successfully reset
Schema org.compiz.mblur successfully reset
Schema org.compiz.workarounds successfully reset
Schema org.compiz.animation successfully reset
Schema org.compiz.shift successfully reset
Schema org.compiz.winrules successfully reset
Schema org.compiz.opengl successfully reset
Schema org.compiz.water successfully reset
Schema org.compiz.matecompat successfully reset
Schema org.compiz.fade successfully reset
Schema org.compiz.mousepoll successfully reset
Schema org.compiz.gnomecompat successfully reset
Schema org.compiz.grid successfully reset
Schema org.compiz.shelf successfully reset
Schema org.compiz.kdecompat successfully reset
Schema org.compiz.opacify successfully reset
Schema org.compiz.obs successfully reset
Schema org.compiz.cube successfully reset
Schema org.compiz.annotate successfully reset
Schema org.compiz.freewins successfully reset
Schema org.compiz.staticswitcher successfully reset
Schema org.compiz.maximumize successfully reset
Schema org.compiz.firepaint successfully reset
Schema org.compiz.trailfocus successfully reset
Schema org.compiz.resize successfully reset
Schema org.compiz.splash successfully reset
Schema org.compiz.neg successfully reset
Schema org.compiz.profile successfully reset
Schema org.compiz.wobbly successfully reset
Schema org.compiz.unityshell successfully reset
Schema org.compiz.extrawm successfully reset
Schema org.compiz.switcher successfully reset
Schema org.compiz.titleinfo successfully reset
Schema org.compiz.place successfully reset
Schema org.compiz.snap successfully reset
Schema org.compiz.scalefilter successfully reset
Schema org.compiz.resizeinfo successfully reset
Schema org.compiz.vpswitch successfully reset
Schema org.compiz.commands successfully reset
Schema org.compiz.widget successfully reset
Schema org.compiz.decor successfully reset
Schema org.compiz.showdesktop successfully reset
Schema org.compiz.expo successfully reset
Schema org.compiz.addhelper successfully reset
Schema org.compiz.rotate successfully reset
Schema org.compiz.td successfully reset
Schema org.compiz.move successfully reset
Schema org.compiz.crashhandler successfully reset
Schema org.compiz.wizard successfully reset
Schema org.compiz.thumbnail successfully reset
Schema org.compiz.imgsvg successfully reset
Schema org.compiz.mag successfully reset
Schema org.compiz.put successfully reset
Schema org.compiz.cubeaddon successfully reset
Schema org.compiz.wall successfully reset
Schema org.compiz.ezoom successfully reset
Schema org.compiz.imgjpeg successfully reset
Schema org.compiz.notification successfully reset
Schema org.compiz.bench successfully reset
Schema org.compiz.workspacenames successfully reset
Schema org.compiz.fadedesktop successfully reset
Schema org.compiz.showmouse successfully reset
Schema org.compiz.unitymtgrabhandles successfully reset
Schema org.compiz.showrepaint successfully reset
Resetting more compiz plugins
Schema org.compiz.gwd successfully reset
Schema org.compiz successfully reset
Schema org.compiz.integrated successfully reset
Resetting Unity settings
Schema com.canonical.Unity.Dash successfully reset
Schema com.canonical.Unity successfully reset
Schema com.canonical.Unity.FilesLens successfully reset
Schema com.canonical.Unity.Interface successfully reset
Schema com.canonical.Unity.Runner successfully reset
Schema com.canonical.Unity.Devices successfully reset
Schema com.canonical.Unity.ApplicationsLens successfully reset
Schema com.canonical.Unity.Decorations successfully reset
Schema com.canonical.Unity.Gestures successfully reset
Schema com.canonical.Unity.IntegratedMenus successfully reset
Reset complete. Reloading unity
GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.
compizconfig - Info: Backend     : gsettings
compizconfig - Info: Integration : true
compizconfig - Info: Profile     : unity
We're already using profile 'unity', no need to switch
unity-panel-service stop/waiting
unity7 stop/waiting
unity-panel-service start/running, process 7945
unity7 start/running, process 8049
Please log out and log back in.

リセットの中にbluetoothがないようです。今このPCではbluetoothがいつのまにか認識されなくなっています()使っていないし)。そこらへんのデバイスのモジュールと同時にライブラリが消えてしまったのでしょうね。

0 件のコメント:

コメントを投稿