主页

在安装 wine 时报错:E: Unable to correct problems, you have held broken packages.

2024-03-18 04:47PM

问题如下:

meiyi@meiyi-Extensa-2511G:~/Downloads$ sudo apt install --install-recommends winehq-stable
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
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:
 winehq-stable : Depends: wine-stable (= 9.0.0.0~mantic-1)
E: Unable to correct problems, you have held broken packages.

解决方法:

1. 可以使用这个命令

使用 aptitude 而不是 apt-get。 它更加智能,它不仅会为您处理降级冲突的软件包,还会提出一系列建议,询问您想要在许多可能的建议工作方案中选择哪一个。

sudo aptitude install myNewPackage 

2. 如果还没有安装 aptitiude 需要先使用下面的命令进行安装

sudo apt-get install aptitude 

 eg:

$ sudo aptitude install winehq-stable
The following NEW packages will be installed:
  winehq-stable{b} 
The following packages will be REMOVED:
  fonts-wine{u} glib-networking:i386{u} gstreamer1.0-plugins-base:i386{u} gstreamer1.0-plugins-good:i386{u} gstreamer1.0-x:i386{u} libaa1:i386{u} libapparmor1:i386{u} libasound2:i386{u} 
  libasound2-plugins:i386{u} libasyncns0:i386{u} libatomic1:i386{u} libavahi-client3:i386{u} libavahi-common-data:i386{u} libavahi-common3:i386{u} libavc1394-0:i386{u} libbrotli1:i386{u} 
  libbsd0:i386{u} libcaca0:i386{u} libcairo-gobject2:i386{u} libcairo2:i386{u} libcapi20-3{u} libcapi20-3:i386{u} libcdparanoia0:i386{u} libcups2:i386{u} libcurl4:i386{u} libdatrie1:i386{u} 
  libdbus-1-3:i386{u} libdecor-0-0:i386{u} libdecor-0-plugin-1-cairo:i386{u} libdeflate0:i386{u} libdrm-amdgpu1:i386{u} libdrm-intel1:i386{u} libdrm-nouveau2:i386{u} libdrm-radeon1:i386{u} 
  libdrm2:i386{u} libdv4:i386{u} libdw1:i386{u} libedit2:i386{u} libelf1:i386{u} libexif12:i386{u} libexpat1:i386{u} libfaudio0{u} libfaudio0:i386{u} libffi8:i386{u} libflac8:i386{u} 
……
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
                                         
Current status: 9775 (+1) new.

返回>>

登录

请登录后再发表评论。

评论列表:

目前还没有人发表评论