将 qmail 从 1.03-38 升级到 1.06-5

将 qmail 从 1.03-38 升级到 1.06-5

我有点麻烦。我尝试升级 chroot 环境,但似乎在此过程中破坏了 dpkg。

我不知道问题的原因是否是 apt-get 无法处理 qmail 升级或者是其他原因(似乎 snmpd 在最后一轮中也没有“完成”)。

我认为我要解决的错误是:

E: Sub-process /usr/bin/dpkg returned an error code (1)

看来我的 qmail 版本太旧了,升级到 apt 镜像中的版本变化太大了。我在 Google 上搜索过,但尚未找到 1.03-38 和 1.06-5 之间的任何版本。

(删除了几行并且调整了格式)

# apt-get install qmail

The following extra packages will be installed:
  qmail-run qmail-uids-gids
Suggested packages:
  dot-forward qmail-tools
The following NEW packages will be installed:
  qmail-run qmail-uids-gids
The following packages will be upgraded:
  qmail
1 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
107 not fully installed or removed.

Do you want to continue [Y/n]?
Get:1 http://10.105.176.67/debian/ wheezy/main snmpd i386 5.4.3~dfsg-2.8+deb7u1 [964 kB]
Fetched 964 kB in 0s (6,685 kB/s)
Can not write log, openpty() failed (/dev/pts not mounted?)
(Reading database ... 1852018 files and directories currently installed.)
Preparing to replace qmail 1.03-38 (using .../archives/qmail_1.06-5_i386.deb) ...
Upgrading from qmail version 1.03-38 is not yet supported.
dpkg: error processing /var/cache/apt/archives/qmail_1.06-5_i386.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
rmdir: failed to remove `/var/lib/qmail': Directory not empty
insserv: warning: script 'K01qmail' missing LSB tags and overrides
insserv: warning: script 'qmail' missing LSB tags and overrides
dpkg: regarding .../qmail-uids-gids_1.06-5_all.deb containing qmail-uids-gids:
 qmail conflicts with qmail-uids-gids
  qmail-uids-gids (version 1.06-5) is to be installed.

dpkg: error processing /var/cache/apt/archives/qmail-uids-gids_1.06-5_all.deb (--unpack):
 conflicting packages - not installing qmail-uids-gids
dpkg: regarding .../qmail-run_2.0.2_all.deb containing qmail-run:
 qmail-run conflicts with mail-transport-agent
  qmail provides mail-transport-agent and is present and installed.

dpkg: error processing /var/cache/apt/archives/qmail-run_2.0.2_all.deb (--unpack):
 conflicting packages - not installing qmail-run
Errors were encountered while processing:
 /var/cache/apt/archives/qmail_1.06-5_i386.deb
 /var/cache/apt/archives/qmail-uids-gids_1.06-5_all.deb
 /var/cache/apt/archives/qmail-run_2.0.2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

我刚刚运行了这个:

dpkg --configure -a

至少这让我解决了 dpkg 的问题/错误。我迫切需要安装自定义 deb 包。

当我尝试安装自定义 deb 包时,我收到了很多这样的消息:

mycustompackage depends on libssl1.0.0 (>= 1.0.1t-1+deb7u1); however:
  Package libssl1.0.0:i386 is not configured yet.

我猜我的最后一批修补不知何故以错误结束,并且 dpkg 不允许我做任何其他事情。

我的 qmail(可能还有 snmpd)问题仍然存在,但我现在只需要“修复” dpkg。

相关内容