自动删除并安装软件包

自动删除并安装软件包

我看到 ubuntu 需要循环安装然后卸载 4 个软件包。以下是控制台的一些输出:

$ sudo apt autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 2 not to upgrade.
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
libcec4 libp8-platform2 libva-drm1
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed
  libcec4 libp8-platform2 libva-drm1
The following packages have been kept back:
  kodi kodi-bin
0 to upgrade, 3 to newly install, 0 to remove and 2 not to upgrade.
Need to get 229 kB of archives.
After this operation, 777 kB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.

忽略 Kodi 包,我并不急于从 16.1 升级到 17.0。

注意:我没有列出sudo apt update您所期望的内容。如果我单击安装所述软件包,则自动删除将要求我删除它们。我认为这个问题是在我从以前的 ppa 卸载 nexcloud-client 软件包并从 nextcloud-dev ppa 重新安装它后出现的,但我不确定。

关于我应该怎样修复此问题,您有什么想法吗?

编辑-更新:

关于第一条评论,在给出上述结果的同一终端上:

sudo apt-mark manual libcec4
libcec4 can not be marked as it is not installed.

还:

$ apt-cache policy libcec4
libcec4:
  Installed: (none)
  Candidate: 4.0.1.1~xenial
  Version table:
     4.0.1.1~xenial 500
        500 http://ppa.launchpad.net/team-xbmc/ppa/ubuntu xenial/main amd64 Packages

嗯,这似乎与 kodi 有关,也许这些包是 17.0 所需的?

答案1

根据@user535733的建议,我通过输入将有问题的包设置为手动

sudo apt-mark manual libcec4 libp8-platform2 libva-drm1

PS 我可以将系统升级到 kodi17 来看看会发生什么,但是我还没有时间学习新的界面并根据我的用例重新配置它。

相关内容