我试图得到一个标记为具有“安全更新”的软件包列表 我的基础系统是Ubuntu 14.04 例如,Ubuntu 14.04上有一个脚本,它将列出可用更新的数量。 dynamic的motd使用它。 /usr/lib/update-notifier/apt-check 运行没有参数给以分号分隔的输出到stderr,例如: $ /usr/lib/update-notifier/apt-check 60;11 <– (this is actually standard error) 这个脚本有“人类可读的”和“包名”标志。 大! 但是,“软件包名称”只是抛出了正在更新的软件包,并没有把它们放到安全/非安全堆中。 我如何知道“安全更新”桶中的内容? 我尝试过这样的事情: apt-get -s dist-upgrade | grep "^Inst" | grep -i security 那个不适合我 我正在考虑拆开apt-check脚本并重新使用它,但是我想知道在这样做之前是否有现有的设备可以做我想做的事情。 更新 我最终修改了python脚本“/ usr / lib / update-notifier / apt-check”,并且基本上增加了输出来打印包详细信息,只要脚本检查了“isSecurityUpgrade()”函数。 (有关详细信息,请参阅脚本)
Debian jessie会在每次apt-get upgrade提示,安装了一个更新的内核,并且需要重启。 如何禁用此警告,因为我想重新启动,当它适合,我知道有一个新的内核可用? 而且一个类似的对话框显示“你需要重新启动这些服务,因为库已经更新了”,即使当我已经决定“我想重新启动这三个,而另外两个不应该重启“之前。
我在升级Debian服务器上的rsyslog时遇到了问题。 root@trip:/home# apt-get upgrade Reading package lists… Done Building dependency tree Reading state information… Done Calculating upgrade… Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y […]
我有一堆机器(Ubuntu服务器)的设置,这些机器在地理上是分开的,用于开发相同的代码库。 有时我需要从我的网站上安装软件包,然后SSH到其他所有软件包,并安装软件包。 我想自动化,如果我已经在我的机器(主)上安装了一个新的包,它会自动安装到其他人。 这个过程不必是瞬间的,它可以在黑夜中完成。 为此,我试图用“包”资源来使用puppet,但这意味着我需要为每个新安装的包添加另一个条目。 没有其他的方法(比如检查已安装的软件包并在新软件包中插入一个新条目)? 我也看过木偶的apt模块,但是找不到与此相关的任何东西。
我为我的Google Cloud Platform实例select了Debian 9,并且正在运行sudo apt update和sudo apt upgrade ,直到昨天,我安装了apache(没有别的),并且没有做任何其他的系统修改。 我通常通过SSL连接到虚拟机,并保持窗口打开几个小时,但昨天,试图安装libopencv-dev通过运行sudo apt update , sudo apt upgrade和sudo apt install libopencv-dev ,我得到以下错误: myusername@instance-1:~$ sudo apt update Ign:1 http://deb.debian.org/debian stretch InRelease Get:2 http://deb.debian.org/debian stretch-updates InRelease [88.5 kB] Get:3 http://deb.debian.org/debian stretch-backports InRelease [82.9 kB] Hit:4 http://deb.debian.org/debian stretch Release Hit:5 http://security.debian.org stretch/updates InRelease Hit:7 http://packages.cloud.google.com/apt cloud-sdk-stretch InRelease Hit:8 http://packages.cloud.google.com/apt google-cloud-compute-stretch […]
我在我的服务器上有一个非常奇怪的问题,我刚刚从Debian 7升级到9.它没有列出应该存在于其存储库中的一些软件包… $ cat /etc/apt/sources.list deb http://ftp.de.debian.org/debian/ stable main contrib non-free deb-src http://ftp.de.debian.org/debian/ stable main contrib non-free deb http://ftp.de.debian.org/debian/ stable-updates main contrib non-free deb-src http://ftp.de.debian.org/debian/ stable-updates main contrib non-free deb http://security.debian.org/ stable/updates main deb-src http://security.debian.org/ stable/updates main deb http://ftp.debian.org/debian stretch-backports main deb-src http://ftp.debian.org/debian stretch-backports main $ aptitude update Hit http://ftp.debian.org/debian stretch-backports InRelease Hit http://security.debian.org stable/updates […]
我正在尝试使用rdiff-backup来为Ubuntu 8.04LTS服务器中的某些文件夹创build备份副本。 我试图用另一台更现代的Ubuntu发行版(9.10)在另一台服务器上做备份。 我将这称为“客户”。 需要在客户端和服务器上安装rdiff-backup。 它在两台机器上的apt存储库上都可用,所以我使用sudo apt-get install rdiff-backup来安装它。 问题是安装在服务器上的版本比客户机上的版本旧(1.1.15 vs 1.2.8)。 因此,当我尝试让他们一起工作时,我会遇到错误。 所以我需要两个版本是一样的。 这些情况下的标准程序是什么? 我应该尝试升级服务器上的版本还是降级客户端上的版本? 我该怎么做? 如果有用的话,我想指出rdiff-backup apt-package有一些依赖 – librsync1 & python-support 附上错误,我得到的情况下,他们帮助: rdiff-backup egarcia@test::/var/rails/ohwr/backup /home/kikito/backup/files Warning: Local version 1.2.8 does not match remote version 1.1.15. Exception ' Warning Security Violation! Bad request for function: rpath.make_file_dict with arguments: ['/var/rails/ohwr/backup'] ' raised of class '<class […]
我需要安装python-twisted,所以… $ sudo aptitude install python-twisted [[…]] The following packages have unmet dependencies: python-twisted-mail: Depends: python-twisted-core (>= 10.1) but 10.0.0-3 is to be installed. python-twisted-news: Depends: python-twisted-core (>= 10.1) but 10.0.0-3 is to be installed. python-twisted-words: Depends: python-twisted-core (>= 10.1) but 10.0.0-3 is to be installed. python-twisted-names: Depends: python-twisted-core (>= 10.1) but 10.0.0-3 is to […]
我在一个64位的Debian 6。 我需要安装LAMP。 apt-get update apt-get upgrade apt-get install apache2-mpm-prefork libapache2-mod-php5 mysql-server php5-mysql php5-gd 那些命令够了吗? 谢谢
我已经在VirtualBox虚拟机上安装了Ubuntu服务器,现在我正在试着按照教程说我需要安装一个名为csh的软件包。 当我input这行 sudo apt-get install csh 我得到“无法find包csh”。 所有其他4个我试图安装的软件包都会发生这种情况。 我不确定我做错了什么。 也许虚拟机无法连接到互联网。 我该如何检查或排除故障?