我注意到 WINE Windows 应用程序没有响应,似乎是缺少依赖项。Wine 本来可以运行,但突然就不行了。我尝试清除 WINE 并重新安装,但当我运行 winecfg 时,仍然收到错误,提示需要 wine32,但无法安装:
sudo apt-get install wine32
Reading package lists... Done
Building dependency tree
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:
wine32:i386 : Depends: libwine:i386 (= 5.0-3ubuntu1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
这似乎意味着 libwine 未安装,但是当我尝试安装它时,我收到一条消息,提示它已安装并且是最新版本:
sudo apt-get install libwine
Reading package lists... Done
Building dependency tree
Reading state information... Done
libwine is already the newest version (5.0-3ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
运行后dpkg --get-selections | grep hold
没有显示任何缺失。我也运行了sudo apt install libwine:i386
,但仍然有未满足的依赖项,我将很快进行调查。
sudo apt install libwine:i386
Reading package lists... Done
Building dependency tree
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:
libwine:i386 : Depends: libfaudio0:i386 (>= 19.06.07) but it is not going to be installed
Depends: libglib2.0-0:i386 (>= 2.12.0) but it is not going to be installed
Depends: libgstreamer-plugins-base1.0-0:i386 (>= 1.0.0) but it is not going to be installed
Depends: libgstreamer1.0-0:i386 (>= 1.4.0) but it is not going to be installed
Recommends: gstreamer1.0-plugins-good:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
apt-cache policy gstreamer1.0-plugins-base:i386 gstreamer1.0-plugins-base
gstreamer1.0-plugins-base:i386:
Installed: (none)
Candidate: 1.16.2-4
Version table:
1.16.2-4 500
500 http://us.archive.ubuntu.com/ubuntu focal/main i386 Packages
500 http://archive.ubuntu.com/ubuntu focal/main i386 Packages
gstreamer1.0-plugins-base:
Installed: 1.16.2-4
Candidate: 1.16.2-4
Version table:
*** 1.16.2-4 500
500 http://us.archive.ubuntu.com/ubuntu focal/main amd64 Packages
500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
100 /var/lib/dpkg/status
这表明 gstreamer1.0-plugins-base:i386 没有安装,但它也没有安装。
sudo apt install gstreamer1.0-plugins-base:i386
Reading package lists... Done
Building dependency tree
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:
gstreamer1.0-plugins-base:i386 : Depends: libglib2.0-0:i386 (>= 2.40) but it is not going to be installed
Depends: libgstreamer-plugins-base1.0-0:i386 (>= 1.16.2) but it is not going to be installed
Depends: libgstreamer1.0-0:i386 (>= 1.16.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
尝试上述操作后,我再次尝试安装 Win32,但出现此错误:
sudo apt-get install wine32
E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 52585 (apt)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?