Articles of aptitude

ufw阻止apt和dns

我在我的Debian系统上安装了ufw,如下所示: # aptitude install ufw # ufw limit 22 # ufw allow 80 # ufw allow 443 # ufw enable # ufw status verbose Status: active Logging: on (low) Default: deny (incoming), allow (outgoing) New profiles: skip To Action From — —— —- 20 LIMIT Anywhere 80 ALLOW Anywhere 443 ALLOW Anywhere 一个简单的ping google.com失败,任何aptitude install都将失败。 […]

在ubuntu 11.04上安装supervisord时出现错误。 有任何解决这个问题的方法吗?

# aptitude install supervisor The following NEW packages will be installed: python-medusa{a} python-meld3{a} supervisor 0 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/290 kB of archives. After unpacking 1,552 kB will be used. Do you want to continue? [Y/n/?] Y Selecting previously deselected package python-medusa. (Reading […]

如何在没有用户交互的情况下安装软件包?

我有一个脚本可以下载并replaceDebian中的内核头文件。 function fixHeaders(){ #Replace the kernel headers from OVH with standard kernel headers… aptitude -y install linux-image-2.6.32-5-amd64 sed s/'GRUB_DEFAULT=0'/'GRUB_DEFAULT=1'/g update-grub echo "Rebooting the machine. Run this script again after reboot and choose option 2." sleep 1 reboot } 我遇到的问题是,在aptitude下载软件包后,它将脚本引入到文本gui中,并询问用户一堆问题。 有什么办法可以跳过这个或在适当的时间发送标签/进入select“确定”的所有答案?

如何在Ubuntu中locking软件包?

在CentOS上,存在yum versionlock选项,您可以将软件包locking到特定的版本,因此永远不会升级。 我想那个 puppet-server-2.7.19-1 puppet-2.7.19-1 保持在2.7,并从未升级到3.0。 木偶实验室已经发布了3.0,并把它放到稳定的回购,所以2.7将升级到3.0,这是不是向后兼容。 Ubuntu有没有类似yum versionlock东西?

禁用/删除Apt(-get)

无论如何,禁用/删除基于debian的服务器上的apt-get。 我宁愿使用aptitude,也不希望其他用户使用apt-get来安装软件包,以避免软件包/数据库问题。

如何生成与apt-get或aptitude一起使用的响应文件?

我需要通过木偶安装exim4。 由于此安装需要交互式configuration,因此我需要一个响应文件,但是我不知道如何生成一个响应文件。 那么,我如何生成一个响应文件?

Debian – “警告:将安装以下软件包的不受信任的版本!”

当我尝试安装或更新我得到的任何软件包: Untrusted packages could compromise your system's security. You should only proceed with the installation if you are certain that this is what you want to do. 我强烈怀疑这是与我得到更新的错误有关: $ sudo aptitude update Get: 1 http://ftp.us.debian.org wheezy InRelease [208 kB] Get: 2 http://debian.lcs.mit.edu wheezy InRelease [208 kB] Ign http://ftp.us.debian.org wheezy InRelease Hit http://ftp.us.debian.org wheezy/main amd64 Packages/DiffIndex […]

我如何列出所有从lenny-backports安装的软件包?

在Debian或其衍生产品中,如何列出我从lenny-backports安装的所有软件包? 我最近想出的是: aptitude search ~i~Alenny-backports 但是,即使当前安装的版本不是来自backports的版本,也会列出在backports中存在版本的所有已安装软件包。 我只想列出当前安装的版本来自backports的软件包(或者,如果更简单,则不是lenny)。 干杯

在debian中创build一个虚拟包最简单的方法是什么?

在debian中创build一个“虚拟包”最简单的方法是什么? 我的问题:我已经从源代码编译/安装MySQL,现在需要告诉其他软件包,MySQL已经安装(否则,他们也将尝试安装MySQL …)。 我search了互联网,但没有find这个问题的快速答案。 是否有一个简单的命令来告诉aptitude安装的东西,但排除一个特定的必需库/依赖项(如MySQL)。 这将是解决问题的另一种方法。

能力:列出所有以前推荐的软件包

有时在安装软件包时,aptitude会推荐其他几个软件包。 有没有办法显示所有以前推荐的所有已安装软件包? 提前致谢。 卡斯帕 编辑: 感谢迄今的答复。 我已经尝试过了: aptitude show ~i | grep '^Recommends' | cut -d ' ' -f 2- 那大多是好的。 但它也给了回来的东西,如: console-setup | console-data (>= 2002.12.04dbs-1) 我想要一个简单的方法,安装所有缺less的推荐软件包。 所以 aptitude install console-setup | console-data (>= 2002.12.04dbs-1) 将无法正常工作;-) 有没有办法,没有手动检查所有条目,这样做?