无法在 16.04 依赖项错误上安装 wine

无法在 16.04 依赖项错误上安装 wine

我是 Linux 新手(ubuntu 16.04 lts),我一直在尝试为 Sketchup pro 8 安装 wine

我按照以下步骤安装了 wine

1. sudo dpkg --add-architecture i386  #to enable 32 bit
2.wget -nc https://dl.winehq.org/wine-builds/winehq.key 
  #to get the key
3. sudo apt-key add winehq.key #to add the key
4.sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'
5. sudo apt update
6.sudo apt install --install-recommends winehq-stable

在第 6 步之后,我得到了错误 umet 依赖项

The following packages have unmet dependencies.
wine-stable : Depends: wine-stable-i386 (= 4.0.3~xenial)
E: Unable to correct problems, you have held broken packages.

我尝试使用 aptitude 安装它来解决依赖关系

7.sudo aptitude install winehq-stable

但后来我得到了错误

      Keep the following packages at their current version:                                               
1)      gcc-5-base:i386 [Not Installed]                                                                   
2)      libasound2-plugins:i386 [Not Installed]                                                           
3)      libboost-filesystem1.58.0:i386 [Not Installed]                                                    
4)      libboost-system1.58.0:i386 [Not Installed]                                                        
5)      libcapnp-0.5.3:i386 [Not Installed]                                                               
6)      libegl1-mesa:i386 [Not Installed]                                                                 
7)      libfontconfig1:i386 [Not Installed]                                                               
8)      libgd3:i386 [Not Installed]                                                                       
9)      libgl1-mesa-dri:i386 [Not Installed]                                                              
10)     libgl1-mesa-glx:i386 [Not Installed]                                                              
11)     libglu1-mesa:i386 [Not Installed]                                                                 
12)     libgphoto2-6:i386 [Not Installed]                                                                 
13)     libicu55:i386 [Not Installed]                                                                     
14)     libjack-jackd2-0:i386 [Not Installed]                                                             
15)     libllvm6.0:i386 [Not Installed]                                                                   
16)     libmirclient9:i386 [Not Installed]                                                                
17)     libmircommon7:i386 [Not Installed]                                                                
18)     libmircore1:i386 [Not Installed]                                                                  
19)     libmirprotobuf3:i386 [Not Installed]                                                              
20)     libosmesa6:i386 [Not Installed]                                                                   
21)     libprotobuf-lite9v5:i386 [Not Installed]                                                          
22)     libsane:i386 [Not Installed]                                                                      
23)     libsdl2-2.0-0:i386 [Not Installed]                                                                
24)     libstdc++6:i386 [Not Installed]                                                                   
25)     libtxc-dxtn-s2tc0:i386 [Not Installed]                                                            
26)     libwayland-egl1-mesa:i386 [Not Installed]                                                         
27)     libxml2:i386 [Not Installed]                                                                      
28)     libxslt1.1:i386 [Not Installed]                                                                   
29)     wine-stable [Not Installed]                                                                       
30)     wine-stable-i386:i386 [Not Installed]                                                             
31)     winehq-stable [Not Installed]                                                                     

      Leave the following dependencies unresolved:                                                        
32)     libgl1-mesa-dri:i386 recommends libtxc-dxtn-s2tc:i386 | libtxc-dxtn-s2tc0:i386 | libtxc-dxtn0:i386
33)     wine-stable-i386:i386 recommends libfontconfig1:i386                                              
34)     wine-stable-i386:i386 recommends libglu1-mesa:i386 | libglu1:i386                                 
35)     wine-stable-i386:i386 recommends libosmesa6:i386                                                  
36)     wine-stable-i386:i386 recommends libsane:i386 | libsane1:i386                                     
37)     wine-stable-i386:i386 recommends libsdl2-2.0-0:i386                                               
38)     wine-stable-i386:i386 recommends libxslt1.1:i386                                                  


Accept this solution? [Y/n/q/?] y
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

我尝试过通过删除 winehq 存储库来安装 wine,但仍然遇到依赖问题。我甚至尝试手动安装依赖项 这个帖子

但我仍然遇到更多错误来解决依赖性问题

答案1

这可能是 16.04 特有的问题。我以前在 16.04 上安装各种程序时遇到过问题,原因是依赖关系未得到满足。如果可以,请安装 Ubuntu 18.04 并重试,因为将 18.04 软件包添加到 16.04 系统会导致 Ubuntu 系统崩溃。我在 18.04 VM 上运行了模拟安装,一切似乎都正常,但对 16.04 不太确定,因为我现在没有可用的系统映像,下载一个映像需要一整天的时间。

相关内容