如何从 apt-get autoremove "queue" 中删除包

Jak*_*old 3 package-management ubuntu apt

我刚刚在 Ubuntu 10.04 上通过 apt-get 安装了 Calibre 用于电子书管理,但是我发现它是当前版本后面的一个主要版本,所以我决定直接从源代码重新安装它。

当我卸载打包版本时,apt 将一堆依赖项添加到 autoremove 队列中,并且当我从源安装更新版本的 Calibre 时,它​​不知道它依赖于这些包。

现在我基本上拥有了我想要的所有库,但它们仍在自动删除队列中。

The following packages were automatically installed and are no longer required:
  libqt4-script libqt4-designer libqt4-dbus python-lxml python-cherrypy3
  python-encutils libqt4-xmlpatterns libqt4-help python-qt4 python-clientform
  python-sip python-django python-mechanize libqt4-svg python-django-tagging
  libphonon4 libqt4-xml libqt4-assistant libqt4-webkit libqt4-scripttools
  python-beautifulsoup python-pypdf python-dateutil python-cssutils
Use 'apt-get autoremove' to remove them.
Run Code Online (Sandbox Code Playgroud)

我如何告诉 apt 我想保留这些软件包的安装,而不需要手动重新安装它们?

小智 6

只需使用 apt-get 安装:

sudo apt-get install libqt4-script libqt4-designer libqt4-dbus python-lxml python-cherrypy3 python-encutils libqt4-xmlpatterns libqt4-help python-qt4 python-clientform python-sip python-django python-mechanize libqt4-svg python-django-tagging   libphonon4 libqt4-xml libqt4-assistant libqt4-webkit libqt4-scripttools  python-beautifulsoup python-pypdf python-dateutil python-cssutils
Run Code Online (Sandbox Code Playgroud)

它实际上不会安装它们。它只会将标志设置为手动安装。