最近升级到 Ubuntu 22.04。Ubuntu 的桌面 Viber 应用程序坏了。我想现在就删除它。但是,当尝试使用以下方法删除它时apt
:
sudo apt remove viber
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
viber
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 385 GB disk space will be freed.
Do you want to continue? [Y/n]
当尝试运行从官方网站下载的新 DEB 时,它说存在碎片错误。
我已经通过以下方式找到并删除了所有与 Viber 相关的文件:
sudo find / -name "viber*" 2>/dev/null
/snap/kde-frameworks-5-qt-5-15-3-core20/8/usr/share/icons/breeze/apps/48/viber.svg
/snap/kde-frameworks-5-qt-5-15-3-core20/8/usr/share/icons/breeze-dark/apps/48/viber.svg
/snap/kde-frameworks-5-core18/32/usr/share/icons/breeze/apps/48/viber.svg
/snap/kde-frameworks-5-core18/32/usr/share/icons/breeze-dark/apps/48/viber.svg
/home/<user-name>/Downloads/viber.deb
感觉运行apt remove
会擦除一些重要的东西,比如整个系统分区。
问题
在这种情况下运行安全吗apt remove
?应用程序是否可能已被删除,在这种情况下如何从注册表中清理系统 - 这样它就知道应用程序已被删除。
Viber 是使用从官方网站下载的 DEB 文件安装的。Snap 没有官方 Viber 软件包。
还:
sudo snap list | grep viber*
sudo snap list | grep blender*
blender 2.93.9 2255 2.93lts/stable blenderfoundation* classic
答案1
好的,在偶然发现这篇文章后:https://linuxx.info/version-viber-for-gnu-linux-requires-320-gb-of-free-space/。
我只是运行了apt remove viber
:
sudo apt remove viber
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
viber
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 385 GB disk space will be freed.
Do you want to continue? [Y/n] y
dpkg: warning: files list file for package 'viber' missing; assuming package has no files currently installed
(Reading database ... 195039 files and directories currently installed.)
Removing viber (16.1.0.37) ...
没有磁盘被擦除。看来开发人员还没有修复大小问题。