有很多pkgs没有被“apt-get purge”删除,我想自动清理它们。 你不能apt-get purge apache2.2-common因为pkg已经被删除了。 您仍然可以使用dpkg -L apache2.2-common列出pkg中的文件。 这意味着我可以删除pkg中的文件列表,但dpkg如何知道这一点? 如何删除留下的configuration文件并将其从以下报告中删除? 示例输出: $ dpkg -l | grep ^rc rc apache2.2-common 2.2.14-5ubuntu8.10 Apache HTTP Server common files rc libapache2-mod-php5filter 5.3.10-1ubuntu2ppa6~lucid server-side, HTML-embedded scripting languag rc libapr1 1.3.8-1ubuntu0.3 The Apache Portable Runtime Library rc libaprutil1 1.3.9+dfsg-3ubuntu0.10.04.1 The Apache Portable Runtime Utility Library rc libgd2-xpm 2.0.36~rc1~dfsg-3.1ubuntu1 GD Graphics Library […]
有没有办法重新configurationslapd,提供所有configuration选项作为命令行参数/参数? 我的目标是find交互式用户界面的替代scheme。 谢谢
如果在dpkgconfiguration中出现问题,我们需要在安装新软件包之前运行dpkg –configure -a。 有没有办法检查是否需要运行“dpkg –configure -a”? 我们可以检查的任何文件?
我试图将我的Wordpress网站从托pipe的VPS移动到我的OVH专用机器,并在即时通讯中尝试安装WP。 但是,按照这些说明,我得到这个错误: Setting up exim4-daemon-light (4.80-7+deb7u1) … [….] Starting MTA:2015-07-04 22:33:53 Exim configuration error in line 38 of /var/lib/exim4/config.autogenerated.tmp: main option "acl_smtp_mime" unknown Invalid new configfile /var/lib/exim4/config.autogenerated.tmp, not installing /var/lib/exim4/config.autogenerated.tmp to /var/lib/exim4/config.autogenerated invoke-rc.d: initscript exim4, action "start" failed. dpkg: error processing exim4-daemon-light (–configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered […]
/etc/php/7.0/apache2/php.ini文件在Ubuntu 16.04上来自哪里? dpkg -S /etc/php/7.0/apache2/php.ini 什么也不返回 dpkg -S /etc/php/7.0/apache2/ 显示该目录是由libapache2-mod-php7.0包安装的,但是 dpkg-query -L libapache2-mod-php7.0 不提“php.ini”。 我猜这个文件是在postinstall过程中复制的。 有没有办法确定哪个软件包安装正在创build这个文件?
尝试升级时出现此错误: Preparing to replace nginx 1.4.4-4~raring (using …/nginx_1.4.5-1~raring_amd64.deb) … Unpacking replacement nginx … dpkg: error processing /var/cache/apt/archives/nginx_1.4.5-1~raring_amd64.deb (–unpack): trying to overwrite '/usr/sbin/nginx', which is also in package nginx-full 1.4.4-4~raring dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/nginx_1.4.5-1~raring_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) 我正在使用这些回购: deb […]
我正在为基于Debian的系统构build安装密钥。 安装密钥基本上是将磁盘镜像复制到系统上,然后在chroot中安装一些在构build过程中复制到安装密钥上的软件包。 安装密钥所做的一件事是擦除现有的ssh密钥(所以我们不会创build一堆“完全相同”的ssh服务器)。 要尝试坚持debian的做事方式,我运行dpkg-reconfigure openssh-server来重新生成密钥,但是在重新configuration结束时,它会尝试重新启动服务器,这当然不会在安装密钥chroot中运行。 是否有可能告诉debconf重新configuration,但不要重新启动服务?
Debian或Ubuntu是否具有loggingapt / aptitude命令的function? 我也可以在Redhat中提出有关yum命令的问题。 他们有历史档案吗?
意外删除了/ var / lib / dpkg / info /,现在我在安装/删除软件包时遇到问题,提示错误,导致无法find关于安装软件包的信息。 有没有什么办法来保存系统或需要彻底重新安装debian? :/
运行后 apt-get update apt-get upgrade apt-get dist-upgrade apt-get install -f dpkg –configure -a 我得到以下错误: dpkg –configure -a Setting up initramfs-tools (0.112) … update-initramfs: deferring update (trigger activated) Setting up linux-image-3.8-2-amd64 (3.8.13-1) … Running depmod. vmlinuz(/boot/vmlinuz-3.8-2-amd64 ) points to /boot/vmlinuz-3.8-2-amd64 (/boot/vmlinuz-3.8-2-amd64) — doing nothing at /var/lib/dpkg/info/linux-image-3.8-2-amd64.postinst line 268. The link /initrd.img is a dangling linkto /boot/initrd.img-3.8-2-amd64 […]