我正在尝试使用以下方法删除包
sudo apt-get remove --purge ka-lite
但是当我运行该命令时,它会尝试下载并安装另一个包,而不是删除我要求的包。知道为什么会发生这种情况吗?或者如何只删除包?
这是输出(西班牙语)
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
ka-lite-bundle ka-lite-gtk
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
ka-lite-bundle
The following packages will be REMOVED:
ka-lite*
The following NEW packages will be installed:
ka-lite-bundle
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 375 MB of archives.
After this operation, 485 MB of additional disk space will be used.
Do you want to continue? [Y/n]
apt-cache rdepends 的输出:
ka-lite
Reverse Depends:
|ka-lite-gtk
ka-lite-bundle
ka-lite-raspberry-pi
答案1
解决方案很简单,甚至不知道您指的是哪个包。
您正在尝试删除另一个软件包所需的软件包。由于要删除的软件包有替代方案,因此将安装该替代方案。
您有以下选择。
- 请勿移除包装
- 接受替代方案
查找并删除需要删除的包或通过以下方式替代
apt-cache rdepends ka-lite
经过一番谷歌搜索,你已经使用 PPA 进行安装。因此使用下面的命令
sudo ppa-purge ppa:learningequality/ka-lite