我经常知道我需要的命令行程序的名称,但我不知道提供该程序的包的名称。如何找到包含我需要的程序的包的名称?在基于 RPM 的系统上,他们可以whatprovides选择rpm -q --whatprovides /usr/X11R6/bin/xclock找到正确的软件包。基于 Debian 的系统有类似的东西吗?
我正在使用名为PrinceXML的东西生成 PDF ,它似乎需要一个名为:msttcorefonts 的包
我一直无法使用 aptitude 来获取它,我将此作为错误接收:
$ sudo apt-get install msttcorefonts
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package msttcorefonts is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package msttcorefonts has no installation candidate
Run Code Online (Sandbox Code Playgroud)
我怎样才能安装这个包?
我正在尝试安装一堆 .deb 文件而无需与它们交互。例如,MySQL 服务器将提示交互式菜单,以根据 dpkg 的配置输入管理密码。
我试过了。
export DEBIAN_FRONTEND=noninteractive && export DEBIAN_PRIORITY=critical && sudo /usr/bin/dpkg -i ./files/*
Run Code Online (Sandbox Code Playgroud)
我知道我可以在没有配置的情况下提取文件。我正在尝试创建一个 bash 脚本来部署一个预先配置了 Apache、php、mySQL 等默认安装的服务器。但是,这种“交互式安装”导致了问题。
关于如何禁用它的任何想法?或解决方法?
谢谢
在 CentOS 上存在yum versionlock选项,您可以在其中将软件包锁定到特定版本,因此它永远不会升级到那个版本。
我愿意
puppet-server-2.7.19-1
puppet-2.7.19-1
Run Code Online (Sandbox Code Playgroud)
停留在 2.7,从未升级到 3.0。Puppet Labs 已经发布了 3.0 并将其放入稳定的 repo 中,因此 2.7 将升级到 3.0,这不向后兼容。
Ubuntu 有类似的东西yum versionlock吗?
假设您apt-get upgrade从 ssh 会话发出并且要升级的软件包之一是 openssh-server。
升级后是否重启了新的sshd进程?如果是,会话如何维护?如果没有,我应该明确地重新启动它还是我遗漏了什么?
我需要为所有 Ubuntu apt 存储库制作一个一次性镜像(为了记录,这是因为我将它发送到肯尼亚(请参阅此处和此处)。
我之前做过并使用了apt-mirror,这正是我想要的。但是现在我想慢慢来,所以我想限制它用于下载的带宽。有什么简单的方法可以做到吗?任何神奇的 apt 配置设置?
在 Debian/Ubuntu 机器上安装某些软件包(如 RabbitMQ)时,该post-install步骤默认为启动服务。
虽然这在大多数情况下很好,但在某些情况下(例如,当您已经在所需端口上运行了服务时)这会失败,从而apt-get导致完全失败。
有没有办法告诉apt-get跳过所有这些post-install步骤,以便它仍然可以正确安装?
注意这与安装过程中的问题无关,即使在交互式会话中,这些安装也会失败,因为post-install步骤失败失败没有正确处理
刚刚获得了一个运行 Ubuntu 11.04 的新 VPS 并尝试更新它。我收到了这个错误。每当使用 apt-get 时,我都会遇到相同的错误
login as: root
root@199.193.248.80's password:
Welcome to Ubuntu 11.04 (GNU/Linux 2.6.38-8-generic-pae i686)
* Documentation: https://help.ubuntu.com/
Last login: Mon May 7 19:55:45 2012 from 108.192.44.54
root@Rx:~# apt-get update
Err http://security.ubuntu.com natty-security InRelease
Err http://archive.ubuntu.com natty InRelease
Err http://security.ubuntu.com natty-security Release.gpg
Temporary failure resolving 'security.ubuntu.com'
Err http://archive.ubuntu.com natty-updates InRelease
Err http://archive.ubuntu.com natty Release.gpg
Temporary failure resolving 'archive.ubuntu.com'
Err http://archive.ubuntu.com natty-updates Release.gpg
Temporary failure resolving 'archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/natty/InRelease …Run Code Online (Sandbox Code Playgroud) 在 Ubuntu 12.04 LTS 上,使用 512MB RAM 的服务器,apt-check最多使用 250 个内存并导致我的系统每晚都无法使用,例如
ps ax | grep apt
14895 ? DN 0:02 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable
14896 ? DN 0:02 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable
14899 ? DN 0:02 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable
14902 ? DN 0:02 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable
14906 ? DN 0:02 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable
14912 ? DN 0:02 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable
14913 ? DN 0:02 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable
14914 ? DN 0:01 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable
14915 ? DN 0:01 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable …Run Code Online (Sandbox Code Playgroud) sudo apt-get update
Run Code Online (Sandbox Code Playgroud)
得到这个错误:
W: GPG error: http://debian.datastax.com stable Release: The following signatures were invalid: KEYEXPIRED 1439480363 KEYEXPIRED 1439480363 KEYEXPIRED 1439480363
Run Code Online (Sandbox Code Playgroud)
即使使用--fix-missing,仍然有同样的错误。