Articles of apt

如何下载源码,修改源码,重新编译和构build.deb包?

我必须定制我的Apache2 suExec模块,以确保一些特殊的环境variables通过suExec传递。 如何下载源代码表单Debian软件包apache2-suexec ,修改suexec.c – > safe_env_lst ,重新编译并重新构build.deb包,以便在生产系统上展开。 我尝试了apt-get source apache2-suexec但没有在发生的apache2- *文件夹中findsuexec.c 。 改变的源代码应该是这样的: static const char *const safe_env_lst[] = { /* variable name starts with */ "HTTP_", "SSL_", /* NEW: Perl debugging variables */ "PERL5OPT=", "PERL5LIB=", "PERLDB_OPTS=", "DBGP_IDEKEY=", /* NEW: FCGI variables */ "FCGI=", "FCGI_CONNECTION=", "FCGI_RUNTIME=", "FCGI_STARTTIME=", 草稿基于: http : //static.askapache.com/httpd/support/suexec.c

Debian apt依赖不匹配(libc6)

早些时候,我试图通过apt-get(cython)来安装软件包,但是它Errors were encountered while processing: message时Errors were encountered while processing:了Errors were encountered while processing: ,从此apt就拒绝安装任何东西。 apt-get check输出如下: root@dix:~# apt-get check Reading package lists… Done Building dependency tree Reading state information… Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: libc6 : Depends: libc-bin (= 2.11.3-2) but […]

无法在Ubuntu上升级PostgreSQL

当我运行apt-get upgrade ,出现以下错误: dpkg: dependency problems prevent configuration of postgresql-9.1: postgresql-client-9.1 (9.1.7-0ubuntu12.04) breaks postgresql-9.1 (<< 9.1.7-0ubuntu12.04) and is installed. Version of postgresql-9.1 to be configured is 9.1.6-1~precise2. dpkg: error processing postgresql-9.1 (–configure): dependency problems – leaving unconfigured dpkg: dependency problems prevent configuration of postgresql: postgresql depends on postgresql-9.1; however: Package postgresql-9.1 is not configured yet. […]

Debian //在多个服务器之间同步软件包/版本

我目前正在pipe理一打服务器。 apt-cacher-ng安装在开发服务器上以维护包。 这个想法是在生产服务器上具有完全相同的版本和数量的软件包。 我们首先在dev服务器上进行更新/升级,然后在validation安装(可能需要几个小时或一天)之后,我们在生产服务器上进行相同的安装。 问题是,在开发者和生产服务器上进行更新的时候,软件包的版本可能已经改变了,所以生产服务器不会得到相同版本的软件包。 我可以强制客户端(生产服务器)与开发服务器同步,而不是在互联网上检索较新的软件包? 或者,有什么聪明的自动化方法来确保我的客户端与开发服务器同步? 谢谢阅读。

升级mysql时,出现空间不足的错误

我在ec2实例的驱动器上跑出了空间,并挂载了溢出/ tmp空间。 当我进行apt-get更新/升级时,我注意到了这一点,升级失败了,因为它在tmp上没有更多的空间。 当我尝试升级时,我现在解决了空间问题我得到: 你可能想运行'apt-get -f install'来纠正这些。 以下软件包具有未满足的依赖关系:mysql-server-5.5:取决于:mysql-server-core-5.5(= 5.5.29-0ubuntu0.12.04.1),但安装了5.5.29-0ubuntu0.12.04.2 E:未满足依赖关系。 尝试使用-f。 所以我试图apt-get -f安装并得到这个错误: dpkg:依赖关系问题阻止了mysql-server-5.5的configuration:mysql-server-5.5取决于mysql-server-core-5.5(= 5.5.29-0ubuntu0.12.04.1); 然而:系统上的mysql-server-core-5.5的版本是5.5.29-0ubuntu0.12.04.2。 dpkg:error handlingmysql-server-5.5(–configure):dependency problems – leaving unconfigured没有写入apport报告,因为错误信息表明它从之前的失败中得到后续错误。 dpkg:依赖关系问题阻止mysql-server的configuration:mysql-server依赖于mysql-server-5.5; 然而:包mysql-server-5.5尚未configuration。 dpkg:处理mysql-server时出错(–configure):依赖关系问题 – 保持未configuration没有写入报告报告,因为错误信息表明它从前面的失败中得到后续错误。 处理时遇到错误:mysql-server-5.5 mysql-server E:subprocess/ usr / bin / dpkg返回错误码(1) 我试图使用apt-get clean,但没有奏效。 我希望有一个更容易的修复比试图删除/清除MySQL,因为我有我每天使用的数据库。 谢谢您的帮助

无法通过apt-get在Debian中安装ntp

当试图安装ntp (因为我的服务器时钟是错误的),它只是puked这个大规模的错误。 任何想法如何解决这个问题? root@pan-prodweb01:~# apt-get install ntp Reading package lists… Done Building dependency tree Reading state information… Done ntp is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 75 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do […]

将模块添加到nginx-light(Debian / dotdeb)

http://packages.debian.org/testing/nginx-light http://packages.debian.org/testing/nginx-full 我可以添加模块到nginx-light安装,只有在nginx-full中可用,无需重新编译?

安装nginx乘客模块时发生apt-get依赖性问题

对不起,我不知道如何解决依赖关系问题。 我的Ubuntu服务器是12.04 64位 $ sudo apt-get install libcurl4-openssl-dev Reading package lists… Done Building dependency tree Reading state information… Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved […]

在Ubuntu 12.04上更新postgres 9.3.x的小版本?

我需要做什么来更新Postgres到一个新的小版本? 即9.3.1至9.3.2? 所有的文档都是停止服务器并安装新的二进制文件。 我需要通过apt-get升级所需步骤的更多详细信息。 除非apt不执行升级? 注意:我通过http://wiki.postgresql.org/wiki/Apt的说明安装了Postgres 注2:我使用上面的url提供的shell脚本来安装postgres apt repo。 我运行了以下命令: sudo apt-get install postgresql-9.3 sudo apt-get install postgresql-contrib-9.3

“php5-fpm:无法识别的服务”以及从PPA恢复后的其他问题

添加了一个存储库,以便在Ubuntu 12.04.3 LTS中轻松地从PHP 5.3迁移到5.5。 在添加了PPA并按照https://askubuntu.com/a/109544中的大部分build议之后,似乎PPA没有足够好地处理升级,或者有些东西有点偏离,甚至在制作完成之后仍然无法正常工作必要的configuration更改后升级。 我删除了PPA,并清除了一些东西,然后重新安装,但现在看起来更多了,我似乎无法恢复到正确的工作状态。 我备份了我所有的configuration,只是试图让事情像以前一样工作无济于事。 例如: myusername ~ $ sudo service php5-fpm stop php5-fpm: unrecognized service myusername ~ $ sudo /etc/init.d/php5-fpm stop sudo: /etc/init.d/php5-fpm: command not found myusername ~ $ ls -al /etc/init.d/php5-fpm lrwxrwxrwx 1 root root 21 Dec 12 17:00 /etc/init.d/php5-fpm -> /lib/init/upstart-job 我不知道还有什么可以去恢复的东西,更乐意回到默认设置,并把我的configuration放回去,但我不认为我已经取消了升级的成功。 我怎样才能修理东西,或让事情恢复到理智的工作状态?