完全删除未通过 apt-get 安装的应用程序

完全删除未通过 apt-get 安装的应用程序

我尝试了各种方法,安装了一个应用程序,但最后我还是不太确定自己做了什么。但我知道安装了一些东西,我想删除它。

该应用程序是 fluxgui。它发布后,我立即在 16.04 ubuntu 上安装了它,但无法用它安装 xflux。尝试使用 apt-get 删除它时,提示未找到软件包,我想我可能是从源代码安装了它。

我知道它在那里,因为应用程序有一个 GUI,当我启动操作系统时它会启动。我进行了定位并发现了以下内容:

katana@katana:~$ locate flux
/home/katana/.config/autostart/fluxgui.desktop
/home/katana/.gconf/apps/fluxgui
/home/katana/.gconf/apps/fluxgui/%gconf.xml
/home/katana/.local/share/icons/hicolor/16x16/apps/F889_flux.0.png
/home/katana/.local/share/icons/hicolor/32x32/apps/F889_flux.0.png
/home/katana/.local/share/icons/hicolor/48x48/apps/F889_flux.0.png
/home/katana/.wine/drive_c/users/katana/Local Settings/Application Data/FluxSoftware/Flux/flux.exe
/home/katana/.wine/drive_c/users/katana/Local Settings/Application Data/FluxSoftware/Flux/runtime/flux.psd
/home/katana/.wine/drive_c/users/katana/Local Settings/Application Data/FluxSoftware/Flux/runtime/flux.tre
/home/katana/workspace/f.lux-indicator-applet/fluxgui
/home/katana/workspace/f.lux-indicator-applet/fluxgui-dark.svg
/home/katana/workspace/f.lux-indicator-applet/fluxgui-light.svg
/home/katana/workspace/f.lux-indicator-applet/fluxgui.svg
/home/katana/workspace/f.lux-indicator-applet/xflux
/home/katana/workspace/f.lux-indicator-applet/xflux32
/home/katana/workspace/f.lux-indicator-applet/build/lib.linux-x86_64-2.7/fluxgui
/home/katana/workspace/f.lux-indicator-applet/build/lib.linux-x86_64-2.7/fluxgui/__init__.py
/home/katana/workspace/f.lux-indicator-applet/build/lib.linux-x86_64-2.7/fluxgui/exceptions.py
/home/katana/workspace/f.lux-indicator-applet/build/lib.linux-x86_64-2.7/fluxgui/fluxapp.py
/home/katana/workspace/f.lux-indicator-applet/build/lib.linux-x86_64-2.7/fluxgui/fluxcontroller.py
/home/katana/workspace/f.lux-indicator-applet/build/lib.linux-x86_64-2.7/fluxgui/preferences.glade
/home/katana/workspace/f.lux-indicator-applet/build/lib.linux-x86_64-2.7/fluxgui/settings.py
/home/katana/workspace/f.lux-indicator-applet/build/lib.linux-x86_64-2.7/fluxgui/xfluxcontroller.py
/home/katana/workspace/f.lux-indicator-applet/build/scripts-2.7/fluxgui
/home/katana/workspace/f.lux-indicator-applet/desktop/fluxgui.desktop
/home/katana/workspace/f.lux-indicator-applet/src/fluxgui
/home/katana/workspace/f.lux-indicator-applet/src/fluxgui/__init__.py
/home/katana/workspace/f.lux-indicator-applet/src/fluxgui/exceptions.py
/home/katana/workspace/f.lux-indicator-applet/src/fluxgui/fluxapp.py
/home/katana/workspace/f.lux-indicator-applet/src/fluxgui/fluxcontroller.py
/home/katana/workspace/f.lux-indicator-applet/src/fluxgui/preferences.glade
/home/katana/workspace/f.lux-indicator-applet/src/fluxgui/settings.py
/home/katana/workspace/f.lux-indicator-applet/src/fluxgui/xfluxcontroller.py
/usr/local/bin/fluxgui
/usr/local/bin/xflux
/usr/local/lib/python2.7/dist-packages/fluxgui
/usr/local/lib/python2.7/dist-packages/fluxgui/__init__.py
/usr/local/lib/python2.7/dist-packages/fluxgui/__init__.pyc
/usr/local/lib/python2.7/dist-packages/fluxgui/exceptions.py
/usr/local/lib/python2.7/dist-packages/fluxgui/exceptions.pyc
/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py
/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.pyc
/usr/local/lib/python2.7/dist-packages/fluxgui/fluxcontroller.py
/usr/local/lib/python2.7/dist-packages/fluxgui/fluxcontroller.pyc
/usr/local/lib/python2.7/dist-packages/fluxgui/preferences.glade
/usr/local/lib/python2.7/dist-packages/fluxgui/settings.py
/usr/local/lib/python2.7/dist-packages/fluxgui/settings.pyc
/usr/local/lib/python2.7/dist-packages/fluxgui/xfluxcontroller.py
/usr/local/lib/python2.7/dist-packages/fluxgui/xfluxcontroller.pyc
/usr/local/share/applications/fluxgui.desktop
/usr/local/share/icons/hicolor/scalable/apps/fluxgui-dark.svg
/usr/local/share/icons/hicolor/scalable/apps/fluxgui-light.svg
/usr/local/share/icons/hicolor/scalable/apps/fluxgui.svg

我确信如果我从自动启动中删除该条目,它将停止启动,但我希望将其全部删除。我想我可以删除 lib、bin 和 share 中的所有文件,但我担心我会留下一些隐藏的配置文件或类似的东西。有什么建议吗?

编辑:我看到 xflux 在那里,但它只安装在用户空间,而不是为 root 空间安装。它需要 root 权限,但当我尝试以 root 权限运行它时,它找不到它。

答案1

因此,看起来您可能有一个在 WINE 中运行的 fluxgui 版本。如果不会造成太大的破坏,您可以尝试卸载 WINE,看看这是否有助于摆脱 fluxgui。然后,当一切顺利时,您可以重新安装 WINE。

从您发布的内容中我看到的最重要的文件是:

/home/katana/.config/autostart/fluxgui.desktop
# launcher for the binary  

/home/katana/.wine/drive_c/users/katana/Local Settings/Application Data/FluxSoftware/Flux/flux.exe
# without the .exe the app cannot run

/usr/local/bin/fluxgui
# this is where Ubuntu looks to run your program. again the app cannot run without its binary.

/usr/local/lib/python2.7/dist-packages/fluxgui
# This is interesting. This tells me that fluxgui is a Python package.
# You could try using pip to uninstall:
# pip uninstall fluxgui

/usr/local/share/applications/fluxgui.desktop
# again, another launcher shortcut to the binary. remove this, and the app will be difficult to run.

相关内容