安装 Wine 时,您持有损坏的软件包...

安装 Wine 时,您持有损坏的软件包...

我尝试安装 Wine。它以前可以工作,但我收到以下消息:

The following packages have unmet dependencies:

  wine1.7 : Depends: wine1.7-i386 (= 1:1.7.55-0ubuntu1)
E: Unable to correct problems, you have held broken packages.

我该如何处理破损的包裹?

答案1

您可以使用 apt 从手册页运行检查;

查看

       check is a diagnostic tool; it updates the package cache and checks
       for broken dependencies.

只需运行;

$ sudo apt-get check

您也可以尝试使用‘-f’选项运行您的 apt-get 命令(再次从手册页中);

-f, --fix-broken

       Fix; attempt to correct a system with broken dependencies in place.
       This option, when used with install/remove, can omit any packages
       to permit APT to deduce a likely solution. If packages are
       specified, these have to completely correct the problem. The option
       is sometimes necessary when running APT for the first time; APT
       itself does not allow broken package dependencies to exist on a
       system. It is possible that a system's dependency structure can be
       so corrupt as to require manual intervention (which usually means
       using dpkg --remove to eliminate some of the offending packages).
       Use of this option together with -m may produce an error in some
       situations. Configuration Item: APT::Get::Fix-Broken.

您的命令很简单;

$ sudo apt-get -f install win1.7

相关内容