我正在从Debian 7(Wheezy)升级到9(Stretch)。
我试过了:
apt-get clean apt-get update apt-get upgrade
我得到一个错误,因为它试图解压缩看起来像这样的manpages。
输出:
After this operation, 585 kB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://ftp.us.debian.org/debian/ stretch/main manpages all 4.10-2 [1,222 kB] Fetched 1,222 kB in 0s (2,055 kB/s) Reading changelogs... Done (Reading database ... 187746 files and directories currently installed.) Preparing to replace manpages 3.44-1 (using .../manpages_4.10-2_all.deb) ... Unpacking replacement manpages ... dpkg: error processing /var/cache/apt/archives/manpages_4.10-2_all.deb (--unpack): trying to overwrite '/usr/share/man/man1/iconv.1.gz', which is also in package libc-bin 2.13-38+deb7u12 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Processing triggers for man-db ... Errors were encountered while processing: /var/cache/apt/archives/manpages_4.10-2_all.deb W: Ignoring Provides line with DepCompareOp for package libapt-inst W: Ignoring Provides line with DepCompareOp for package libapt-pkg W: Ignoring Provides line with DepCompareOp for package libespeak-dev W: Ignoring Provides line with DepCompareOp for package libespeak1 W: Ignoring Provides line with DepCompareOp for package libgpgme11-dev W: Ignoring Provides line with DepCompareOp for package kodi-api-guilib W: Ignoring Provides line with DepCompareOp for package kodi-api-pvr W: Ignoring Provides line with DepCompareOp for package libparse-cpan-meta-perl W: Ignoring Provides line with DepCompareOp for package libjpeg62 W: Ignoring Provides line with DepCompareOp for package lsb W: Ignoring Provides line with DepCompareOp for package lsb-core W: Ignoring Provides line with DepCompareOp for package php-psr-log-implementation W: Ignoring Provides line with DepCompareOp for package php-seclib W: Ignoring Provides line with DepCompareOp for package php-sabre-http W: Ignoring Provides line with DepCompareOp for package php-math-biginteger W: Ignoring Provides line with DepCompareOp for package pkg-config W: Ignoring Provides line with DepCompareOp for package pypy-cffi W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-max W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-min W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-max W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-min W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-max W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-min W: Ignoring Provides line with DepCompareOp for package sagenb-export W: Ignoring Provides line with DepCompareOp for package sagenb-export W: You may want to run apt-get update to correct these problems E: Sub-process /usr/bin/dpkg returned an error code (1)
我也试图强制它:
dpkg -i –force-overwrite /var/cache/apt/archives/manpages_4.10-2_all.deb
(Reading database ... 187746 files and directories currently installed.) Preparing to replace manpages 3.44-1 (using .../manpages_4.10-2_all.deb) ... Unpacking replacement manpages ... dpkg: warning: overriding problem because --force enabled: trying to overwrite '/usr/share/man/man1/iconv.1.gz', which is also in package libc-bin 2.13-38+deb7u12 dpkg: warning: overriding problem because --force enabled: trying to overwrite '/usr/share/man/man1/ldd.1.gz', which is also in package libc-bin 2.13-38+deb7u12 dpkg: warning: overriding problem because --force enabled: trying to overwrite '/usr/share/man/man1/locale.1.gz', which is also in package libc-bin 2.13-38+deb7u12 dpkg: warning: overriding problem because --force enabled: trying to overwrite '/usr/share/man/man1/localedef.1.gz', which is also in package libc-bin 2.13-38+deb7u12 dpkg: warning: overriding problem because --force enabled: trying to overwrite '/usr/share/man/man1/mtrace.1.gz', which is also in package libc-dev-bin 2.13-38+deb7u12 dpkg: warning: overriding problem because --force enabled: trying to overwrite '/usr/share/man/man1/sprof.1.gz', which is also in package libc-dev-bin 2.13-38+deb7u12 dpkg: warning: overriding problem because --force enabled: trying to overwrite '/usr/share/man/man5/gai.conf.5.gz', which is also in package libc-bin 2.13-38+deb7u12 dpkg: warning: overriding problem because --force enabled: trying to overwrite '/usr/share/man/man8/iconvconfig.8.gz', which is also in package libc-bin 2.13-38+deb7u12 dpkg: warning: overriding problem because --force enabled: trying to overwrite '/usr/share/man/man8/ld.so.8.gz', which is also in package libc-bin 2.13-38+deb7u12 dpkg: warning: overriding problem because --force enabled: trying to overwrite '/usr/share/man/man8/ldconfig.8.gz', which is also in package libc-bin 2.13-38+deb7u12 dpkg: warning: overriding problem because --force enabled: trying to overwrite '/usr/share/man/man8/zic.8.gz', which is also in package libc-bin 2.13-38+deb7u12 Setting up manpages (4.10-2) ... Processing triggers for man-db ...
Debian不支持从一个套件升级到另一个,这不是直接的“后续”。
关于你的具体情况:你需要先升级到jessie ,然后再stretch 。