
答案1
Flatpack
在 shell 設定檔中安裝一些命令。如果刪除:
/etc/profile.d/flatpak.sh
你應該沒問題。
另請注意,刪除包apt-get remove ...
不會刪除包的配置,而是同時apt-get purge ...
刪除包和配置(在這種情況下purge
應該刪除該文件)。
答案2
正如@Eduardo 說得好,跑步
# apt-get purge flatpak
將刪除導致問題的檔案。
# apt-get purge flatpak
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
flatpak*
0 upgraded, 0 newly installed, 1 to remove and 103 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 143676 files and directories currently installed.)
Purging configuration files for flatpak (1.2.5-0+deb10u4) ...
與手動刪除文件相比,我更喜歡該命令(文件名可能會更改,但 apt 知道它需要知道什麼)。
就我而言,該軟體包也被刪除,但像您一樣,設定檔被留下。