已卸载软件的 cgroup 文件

已卸载软件的 cgroup 文件

我最近在运行 pycharm-community 时遇到了一些问题,它完全无法加载,因此我决定完全删除该软件并再次尝试全新安装。与我目前使用的大多数软件不同,pycharm-community 是通过下载软件的 tarball 并运行 install.sh 脚本来安装的,因此我无法使用 apt 卸载。

我决定尝试删除与 pycharm-community 相关的所有文件,希望将其完全删除。以下是我的系统中名称中包含“pycharm”的所有文件的列表:

/var/snap/pycharm-community
/var/lib/lxcfs/cgroup/devices/system.slice/snap-pycharm\x2dcommunity-51.mount
/var/lib/lxcfs/cgroup/devices/system.slice/snap-pycharm\x2dcommunity-58.mount
/var/lib/lxcfs/cgroup/devices/system.slice/snap-pycharm\x2dcommunity-56.mount
/var/lib/lxcfs/cgroup/pids/system.slice/snap-pycharm\x2dcommunity-51.mount
/var/lib/lxcfs/cgroup/pids/system.slice/snap-pycharm\x2dcommunity-58.mount
/var/lib/lxcfs/cgroup/pids/system.slice/snap-pycharm\x2dcommunity-56.mount
/var/lib/lxcfs/cgroup/blkio/system.slice/snap-pycharm\x2dcommunity-51.mount
/var/lib/lxcfs/cgroup/blkio/system.slice/snap-pycharm\x2dcommunity-58.mount
/var/lib/lxcfs/cgroup/blkio/system.slice/snap-pycharm\x2dcommunity-56.mount
/var/lib/lxcfs/cgroup/memory/system.slice/snap-pycharm\x2dcommunity-51.mount
/var/lib/lxcfs/cgroup/memory/system.slice/snap-pycharm\x2dcommunity-58.mount
/var/lib/lxcfs/cgroup/memory/system.slice/snap-pycharm\x2dcommunity-56.mount
/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/snap-pycharm\x2dcommunity-51.mount
/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/snap-pycharm\x2dcommunity-58.mount
/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/snap-pycharm\x2dcommunity-56.mount
/var/lib/lxcfs/cgroup/name=systemd/system.slice/snap-pycharm\x2dcommunity-51.mount
/var/lib/lxcfs/cgroup/name=systemd/system.slice/snap-pycharm\x2dcommunity-58.mount
/var/lib/lxcfs/cgroup/name=systemd/system.slice/snap-pycharm\x2dcommunity-56.mount
/var/lib/snapd/seccomp/bpf/snap.pycharm-community.pycharm-community.bin
/var/lib/snapd/seccomp/bpf/snap.pycharm-community.pycharm-community.src
/var/lib/snapd/snaps/pycharm-community_56.snap
/var/lib/snapd/snaps/pycharm-community_58.snap
/var/lib/snapd/snaps/pycharm-community_51.snap
/var/lib/snapd/apparmor/profiles/snap-update-ns.pycharm-community
/var/lib/snapd/apparmor/profiles/snap.pycharm-community.pycharm-community
/var/lib/snapd/desktop/applications/pycharm-community_pycharm-community.desktop
/var/lib/snapd/cookie/snap.pycharm-community
/var/cache/apparmor/snap-update-ns.pycharm-community
/var/cache/apparmor/snap.pycharm-community.pycharm-community
/snap/pycharm-community
/snap/pycharm-community/51/bin/pycharm.png
/snap/pycharm-community/51/bin/pycharm.sh
/snap/pycharm-community/51/bin/pycharm.vmoptions
/snap/pycharm-community/51/bin/pycharm64.vmoptions
/snap/pycharm-community/51/command-pycharm-community.wrapper
/snap/pycharm-community/51/helpers/pycharm
/snap/pycharm-community/51/helpers/pycharm/pycharm_commands
/snap/pycharm-community/51/helpers/pycharm/pycharm_commands/pycharm_test.py
/snap/pycharm-community/51/helpers/pycharm/pycharm_load_entry_point.py
/snap/pycharm-community/51/helpers/pycharm/pycharm_run_utils.py
/snap/pycharm-community/51/helpers/pycharm/pycharm_setup_runner.py
/snap/pycharm-community/51/helpers/pycharm_generator_utils
/snap/pycharm-community/51/helpers/pycharm_matplotlib_backend
/snap/pycharm-community/51/helpers/pydev/merge_pydev_pycharm.txt
/snap/pycharm-community/51/helpers/pydev/pycharm-readme.txt
/snap/pycharm-community/51/lib/pycharm-pydev.jar
/snap/pycharm-community/51/lib/pycharm.jar
/snap/pycharm-community/51/lib/src/pycharm-openapi-src.zip
/snap/pycharm-community/51/lib/src/pycharm-pydev-src.zip
/snap/pycharm-community/51/meta/gui/pycharm-community.desktop
/snap/pycharm-community/51/snap/gui/pycharm-community.desktop
/snap/pycharm-community/58/bin/pycharm.png
/snap/pycharm-community/58/bin/pycharm.sh
/snap/pycharm-community/58/bin/pycharm.vmoptions
/snap/pycharm-community/58/bin/pycharm64.vmoptions
/snap/pycharm-community/58/command-pycharm-community.wrapper
/snap/pycharm-community/58/helpers/pycharm
/snap/pycharm-community/58/helpers/pycharm/pycharm_commands
/snap/pycharm-community/58/helpers/pycharm/pycharm_commands/pycharm_test.py
/snap/pycharm-community/58/helpers/pycharm/pycharm_load_entry_point.py
/snap/pycharm-community/58/helpers/pycharm/pycharm_run_utils.py
/snap/pycharm-community/58/helpers/pycharm/pycharm_setup_runner.py
/snap/pycharm-community/58/helpers/pycharm_generator_utils
/snap/pycharm-community/58/helpers/pycharm_matplotlib_backend
/snap/pycharm-community/58/helpers/pydev/merge_pydev_pycharm.txt
/snap/pycharm-community/58/helpers/pydev/pycharm-readme.txt
/snap/pycharm-community/58/lib/pycharm-pydev.jar
/snap/pycharm-community/58/lib/pycharm.jar
/snap/pycharm-community/58/lib/src/pycharm-openapi-src.zip
/snap/pycharm-community/58/lib/src/pycharm-pydev-src.zip
/snap/pycharm-community/58/meta/gui/pycharm-community.desktop
/snap/pycharm-community/58/snap/gui/pycharm-community.desktop
/snap/pycharm-community/56/bin/pycharm.png
/snap/pycharm-community/56/bin/pycharm.sh
/snap/pycharm-community/56/bin/pycharm.vmoptions
/snap/pycharm-community/56/bin/pycharm64.vmoptions
/snap/pycharm-community/56/command-pycharm-community.wrapper
/snap/pycharm-community/56/helpers/pycharm
/snap/pycharm-community/56/helpers/pycharm/pycharm_commands
/snap/pycharm-community/56/helpers/pycharm/pycharm_commands/pycharm_test.py
/snap/pycharm-community/56/helpers/pycharm/pycharm_load_entry_point.py
/snap/pycharm-community/56/helpers/pycharm/pycharm_run_utils.py
/snap/pycharm-community/56/helpers/pycharm/pycharm_setup_runner.py
/snap/pycharm-community/56/helpers/pycharm_generator_utils
/snap/pycharm-community/56/helpers/pycharm_matplotlib_backend
/snap/pycharm-community/56/helpers/pydev/merge_pydev_pycharm.txt
/snap/pycharm-community/56/helpers/pydev/pycharm-readme.txt
/snap/pycharm-community/56/lib/pycharm-pydev.jar
/snap/pycharm-community/56/lib/pycharm.jar
/snap/pycharm-community/56/lib/src/pycharm-openapi-src.zip
/snap/pycharm-community/56/lib/src/pycharm-pydev-src.zip
/snap/pycharm-community/56/meta/gui/pycharm-community.desktop
/snap/pycharm-community/56/snap/gui/pycharm-community.desktop
/snap/bin/pycharm-community
/sys/fs/cgroup/devices/system.slice/snap-pycharm\x2dcommunity-51.mount
/sys/fs/cgroup/devices/system.slice/snap-pycharm\x2dcommunity-58.mount
/sys/fs/cgroup/devices/system.slice/snap-pycharm\x2dcommunity-56.mount
/sys/fs/cgroup/pids/system.slice/snap-pycharm\x2dcommunity-51.mount
/sys/fs/cgroup/pids/system.slice/snap-pycharm\x2dcommunity-58.mount
/sys/fs/cgroup/pids/system.slice/snap-pycharm\x2dcommunity-56.mount
/sys/fs/cgroup/blkio/system.slice/snap-pycharm\x2dcommunity-51.mount
/sys/fs/cgroup/blkio/system.slice/snap-pycharm\x2dcommunity-58.mount
/sys/fs/cgroup/blkio/system.slice/snap-pycharm\x2dcommunity-56.mount
/sys/fs/cgroup/memory/system.slice/snap-pycharm\x2dcommunity-51.mount
/sys/fs/cgroup/memory/system.slice/snap-pycharm\x2dcommunity-58.mount
/sys/fs/cgroup/memory/system.slice/snap-pycharm\x2dcommunity-56.mount
/sys/fs/cgroup/cpu,cpuacct/system.slice/snap-pycharm\x2dcommunity-51.mount
/sys/fs/cgroup/cpu,cpuacct/system.slice/snap-pycharm\x2dcommunity-58.mount
/sys/fs/cgroup/cpu,cpuacct/system.slice/snap-pycharm\x2dcommunity-56.mount
/sys/fs/cgroup/systemd/system.slice/snap-pycharm\x2dcommunity-51.mount
/sys/fs/cgroup/systemd/system.slice/snap-pycharm\x2dcommunity-58.mount
/sys/fs/cgroup/systemd/system.slice/snap-pycharm\x2dcommunity-56.mount
/sys/kernel/security/apparmor/policy/profiles/snap-update-ns.pycharm-
community.26
/sys/kernel/security/apparmor/policy/profiles/snap.pycharm-community.pycharm-community.17
/etc/systemd/system/snap-pycharm\x2dcommunity-58.mount
/etc/systemd/system/snap-pycharm\x2dcommunity-51.mount
/etc/systemd/system/multi-user.target.wants/snap-pycharm\x2dcommunity-58.mount
/etc/systemd/system/multi-user.target.wants/snap-pycharm\x2dcommunity-51.mount
/etc/systemd/system/multi-user.target.wants/snap-pycharm\x2dcommunity-56.mount
/etc/systemd/system/snap-pycharm\x2dcommunity-56.moun

我查看了 snap 目录是什么,发现我可以使用sudo snap remove pycharm-community.现在,当我运行时,find / -iname "*pycharm*"以下文件仍然存在:

/var/lib/lxcfs/cgroup/devices/system.slice/snap-pycharm\x2dcommunity-51.mount
/var/lib/lxcfs/cgroup/devices/system.slice/snap-pycharm\x2dcommunity-56.mount
/var/lib/lxcfs/cgroup/pids/system.slice/snap-pycharm\x2dcommunity-51.mount
/var/lib/lxcfs/cgroup/pids/system.slice/snap-pycharm\x2dcommunity-56.mount
/var/lib/lxcfs/cgroup/blkio/system.slice/snap-pycharm\x2dcommunity-51.mount
/var/lib/lxcfs/cgroup/blkio/system.slice/snap-pycharm\x2dcommunity-56.mount
/var/lib/lxcfs/cgroup/memory/system.slice/snap-pycharm\x2dcommunity-51.mount
/var/lib/lxcfs/cgroup/memory/system.slice/snap-pycharm\x2dcommunity-56.mount
/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/snap-pycharm\x2dcommunity- 51.mount
/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/snap-pycharm\x2dcommunity-56.mount
/sys/fs/cgroup/devices/system.slice/snap-pycharm\x2dcommunity-51.mount
/sys/fs/cgroup/devices/system.slice/snap-pycharm\x2dcommunity-56.mount
/sys/fs/cgroup/pids/system.slice/snap-pycharm\x2dcommunity-51.mount
/sys/fs/cgroup/pids/system.slice/snap-pycharm\x2dcommunity-56.mount
/sys/fs/cgroup/blkio/system.slice/snap-pycharm\x2dcommunity-51.mount
/sys/fs/cgroup/blkio/system.slice/snap-pycharm\x2dcommunity-56.mount
/sys/fs/cgroup/memory/system.slice/snap-pycharm\x2dcommunity-51.mount
/sys/fs/cgroup/memory/system.slice/snap-pycharm\x2dcommunity-56.mount
/sys/fs/cgroup/cpu,cpuacct/system.slice/snap-pycharm\x2dcommunity-51.mount
/sys/fs/cgroup/cpu,cpuacct/system.slice/snap-pycharm\x2dcommunity-56.mount
/sys/kernel/security/apparmor/policy/profiles/snap-update-ns.pycharm-community.26
/sys/kernel/security/apparmor/policy/profiles/snap.pycharm-community.pycharm-community.17

我想知道这些文件是什么;如果我需要删除它们才能开始全新安装;如果是这样,我该如何删除它们?

答案1

我仍然不太明白这些文件是什么,但sudo snap install pycharm-community似乎正在工作。我在打开链接到我的 github 的项目时遇到了一些问题:

图形设备初始化失败:es2、sw
初始化 QuantumRenderer 时出错:未找到合适的管道
java.lang.RuntimeException:java.lang.RuntimeException:初始化 QuantumRenderer 时出错:
在 com.sun.javafx.tk.quantum.QuantumRenderer 处未找到合适的管道。 getInstance(QuantumRenderer.java:280)
位于 com.sun.javafx.tk.quantum.QuantumToolkit.init(QuantumToolkit.java:221)
位于 com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:205)
位于 com .sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:209)
位于 org.intellij.plugins.markdown.ui.preview.javafx.JavaFxHtmlPanel.lambda$null$4(JavaFxHtmlPanel.java:100)
位于 sun.awt。 SunToolkit.unsafeNonblockingExecute(SunToolkit.java:644)
在 sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)
在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 43)
在 java.lang.reflect.Method.invoke(Method.java:498)
在 com.intellij.ide.IdeEventQueue.unsafeNonblockingExecute(IdeEventQueue.java:1397)
在 org.intellij.plugins.markdown.ui.preview.javafx .JavaFxHtmlPanel.runFX(JavaFxHtmlPanel.java:134)
在 org.intellij.plugins.markdown.ui.preview.javafx.JavaFxHtmlPanel.lambda$new$5(JavaFxHtmlPanel.java:100)
在 com.intellij.openapi.application.TransactionGuardImpl$2 .run(TransactionGuardImpl.java:315)
在 com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:447)
在 com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator .java:431)
在 com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:415)
在 java.awt.event.InvocableEvent.dispatch(InitationEvent.java:311)
在 java.awt。 EventQueue.dispatchEventImpl(EventQueue.java:762)
在 java.awt.EventQueue.access$500(EventQueue.java:98)
在 java.awt.EventQueue$3.run(EventQueue.java:715)
在 java.awt.EventQueue$3。
在 java.security.AccessController.doPrivileged(本机方法)处运行(EventQueue.java:709)
在 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
处 在 java.awt.EventQueue.dispatchEvent(EventQueue.java:第732章)
在com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:779)
在com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:720)
在 com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:395)
在 java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
在 java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
在 java. awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
在 java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
在 java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
在 java.awt.EventDispatchThread.run (EventDispatchThread.java:82)
原因:java.lang.RuntimeException:初始化 QuantumRenderer 时出错:
在 com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.java:94)处找不到合适的管道
。 sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:124)
在 java.lang.Thread.run(Thread.java:745)

但根据来自的建议https://stackoverflow.com/questions/21185156/javafx-on-linux-is-showing-a-graphics-device-initialization-failed-for-es2-s#21203726我跑了sudo apt-get install libgtk2.0-bin libxtst6 libxslt1.1,现在一切似乎都进展顺利。

相关内容