我刚刚通过apt-get在Ubuntu10.04安装了电子书管理工具,但是我发现它是当前版本背后的一个主要版本,所以我决定直接从源代码中重新安装它。
当我卸载打包版本时,apt向自动删除队列添加了大量依赖项,并且当我从源代码中安装了新版本的量程时,它不知道它依赖于这些包。
现在我基本上有了我想要的所有库,但是它们仍然在自动删除队列中。
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.发布于 2011-02-11 23:51:37
只需使用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它不会真正安装它们。它只会将标志设置为手动安装。
发布于 2015-05-11 14:40:17
Apt-get知道软件包是作为依赖项自动安装的。您应该将它们标记为“手册”,以便让apt知道您希望它们保持安装状态:
apt-mark manual [packages]发布于 2010-12-05 12:00:14
如果我很了解你,你可以把这些软件包标记成好像它们是手动安装的。Apt-get不允许您这样做。但是,aptitude允许对这些标志进行操作。
看看这个帖子。有些人不赞成混合使用apt-get和aptitude。所以,小心点!
https://serverfault.com/questions/209293
复制相似问题