上下文:小心地逐步将 Debian 11 升级到 Debian 12
因此我无法结束 apt-get 升级
The following packages have been kept back:
init-system-helpers
附加信息:
# dpkg -C
没有返回任何损坏的部门
root@debian:/etc/apt/sources.list.d# apt-mark showhold
php5-gd
我只有这个包裹被标记为保留。我无法避免这一点,我需要php5-gd
。
当尝试时
apt-get install init-system-helpers
我有
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 out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
php5-gd : Depends: libpng12-0 (>= 1.2.13-4) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
但我已经有了libpng12-0 1.2.50-2+deb8u3
root@debian:/etc/apt/sources.list.d# apt-get install libpng12-0
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libpng12-0 is already the newest version (1.2.50-2+deb8u3).
libpng12-0 set to manually installed.
实际上,php5-gd
被标记为保留,以避免破坏该系统上的许多遗留网站。
我应该怎么办?
- 我仍然可以回滚到升级前快照
- 但我想继续升级到 Debian 12
答案1
在 Debian 12 中,init-system-helpers
取决于usrmerge
或usr-is-merged
(强制/usr
合并)。usrmerge
与 1.2.54-6 之前的版本冲突libpng12-0
,并且由于该软件包不再从存储库中获得,apt
最终导致一个不可能的解决方案 - 它需要 keep php5-gd
,这需要libpng12-0
,但它也需要升级init-system-helpers
,这与你有的版本libpng12-0
。
要解决此问题,请安装libpng12-0
1.2.54-6(来自快照)。
然而,这只是一个缓刑。 PHP 5 软件包早已不复存在,您应该计划尽早迁移掉它们。