首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Ubuntu20.04上安装wine64和wine32的问题

在Ubuntu20.04上安装wine64和wine32的问题
EN

Ask Ubuntu用户
提问于 2021-04-17 20:09:54
回答 1查看 2.2K关注 0票数 6

每当我试图安装wine64时,它都告诉我要删除重要的包,而我不知道如何解决这个问题。

安装wine64的结果如下所示:

代码语言:javascript
复制
$ sudo apt install wine64
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  apache2-data apache2-utils ethtool git-man gparted-common hwloc ieee-data liba52-0.7.4 libapr1 libaprutil1 libaprutil1-dbd-sqlite3
  libaprutil1-ldap libass9 libbs2b0 libcdio19 libdazzle-1.0-0 libdvdread8 libegl1-mesa liberror-perl libfftw3-double3 libflite1
  libgtkglext1 liblilv-0-0 liblinear4 liblua5.2-0 libmpeg2-4 libmysofa1 libnorm1 libopencore-amrnb0 libopencore-amrwb0 libpango-perl
  libpangox-1.0-0 libpcre16-3 libpcre32-3 libpgm-5.2-0 libpostproc55 librubberband2 libsepol1-dev libserd-0-0 libsidplay1v5
  libsord-0-0 libsratom-0-0 libvidstab1.1 libwxbase3.0-0v5 libx264-160 libxcb-xtest0 libzmq5 lua-lpeg ndiff nmap-common python-cairo
  python-gobject-2 python-pysqlite2 python-wxversion python3-bs4 python3-debconf python3-html5lib python3-lxml python3-soupsieve
  python3-webencodings
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libapt-pkg6.0 libpci3 pciutils python3-distupgrade ubuntu-release-upgrader-core wine
Suggested packages:
  q4wine winbind winetricks playonlinux wine-binfmt dosbox exe-thumbnailer | kio-extras wine64-preloader
Recommended packages:
  apt wine32
The following packages will be REMOVED:
  aircrack-ng anydesk apache2 apache2-bin apt apt-utils code git gnome-calendar gparted gstreamer1.0-libav gstreamer1.0-plugins-ugly
  libavfilter7 libblkid-dev libffi-dev libfprint-2-tod1 libglib2.0-dev libglib2.0-dev-bin libgtk2-perl libllvm9 libmount-dev
  libpcre2-dev libpcre2-posix2 libpcre3-dev libpcrecpp0v5 libselinux1-dev libwxgtk3.0-gtk3-0v5 net-tools nmap python-gtk2
  python-wxgtk3.0 ubuntu-desktop ubuntu-desktop-minimal ubuntu-minimal ubuntu-release-upgrader-gtk update-manager update-notifier
  update-notifier-common uuid-dev vino zenmap zoom
The following NEW packages will be installed:
  wine wine64
The following packages will be upgraded:
  libapt-pkg6.0 libpci3 pciutils python3-distupgrade ubuntu-release-upgrader-core
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt
5 upgraded, 2 newly installed, 42 to remove and 37 not upgraded.
Need to get 1,311 kB of archives.
After this operation, 700 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?]

使用以下方法执行sudo apt update && upgrade结果:

代码语言:javascript
复制
Hit:1 http://downloads.metasploit.com/data/releases/metasploit-framework/apt lucid InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu focal InRelease                                                                             
Hit:3 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease                                                                     
Hit:4 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease                                                                   
Hit:5 http://ppa.launchpad.net/gezakovacs/ppa/ubuntu focal InRelease                                                                  
Hit:6 http://security.ubuntu.com/ubuntu focal-security InRelease                                 
Hit:7 http://dl.google.com/linux/chrome/deb stable InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

葡萄酒安装:

代码语言:javascript
复制
$ sudo apt install wine                                 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  q4wine winbind winetricks playonlinux wine-binfmt dosbox exe-thumbnailer | kio-extras
The following NEW packages will be installed:
  wine
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 51.9 kB of archives.
After this operation, 197 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu focal/universe amd64 wine all 5.0-3ubuntu1 [51.9 kB]
Fetched 51.9 kB in 0s (348 kB/s)
Selecting previously unselected package wine.
(Reading database ... 276005 files and directories currently installed.)
Preparing to unpack .../wine_5.0-3ubuntu1_all.deb ...
Unpacking wine (5.0-3ubuntu1) ...
Setting up wine (5.0-3ubuntu1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for wine (5.0-3ubuntu1) ...

wine
it looks like wine32 is missing, you should install it.
as root, please execute "apt-get install wine32"
Usage: wine PROGRAM [ARGUMENTS...]   Run the specified program
       wine --help                   Display this help and exit
       wine --version                Output version information and exit

在发生此错误后,我还试图安装wine32,这会导致依赖关系错误:

代码语言:javascript
复制
$ sudo apt 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:i386以解决依赖问题时,我会收到这个坏包问题:

代码语言:javascript
复制
$ 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: libfontconfig1:i386 (>= 2.12.6) but it is not going to be installed
                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: libgphoto2-6:i386 (>= 2.5.10) 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
                Depends: libldap-2.4-2:i386 (>= 2.4.7) but it is not going to be installed
                Depends: libx11-6:i386 but it is not going to be installed
                Depends: libxext6:i386 but it is not going to be installed
                Recommends: libcups2:i386 (>= 1.4.0) but it is not going to be installed
                Recommends: libgl1:i386 but it is not going to be installed
                Recommends: libglu1-mesa:i386 but it is not going to be installed or
                            libglu1:i386
                Recommends: libgnutls30:i386 (>= 3.6.5) but it is not going to be installed
                Recommends: libosmesa6:i386 (>= 10.2~) but it is not going to be installed
                Recommends: libsane:i386 (>= 1.0.24) but it is not going to be installed
                Recommends: libsdl2-2.0-0:i386 (>= 2.0.10) but it is not going to be installed
                Recommends: libxcomposite1:i386 (>= 1:0.4.5) but it is not going to be installed
                Recommends: libxcursor1:i386 (> 1.1.2) but it is not going to be installed
                Recommends: libxfixes3:i386 but it is not going to be installed
                Recommends: libxi6:i386 but it is not going to be installed
                Recommends: libxinerama1:i386 but it is not going to be installed
                Recommends: libxrandr2:i386 but it is not going to be installed
                Recommends: libxrender1:i386 but it is not going to be installed
                Recommends: libxxf86vm1:i386 but it is not going to be installed
                Recommends: libgl1-mesa-dri:i386 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.

我还尝试了其他教程来安装winehq-stable,但是它说它有未满足的依赖关系。

代码语言:javascript
复制
$ sudo apt install --install-recommends winehq-stable
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:
 winehq-stable : Depends: wine-stable (= 6.0.0~focal-1)

E: Unable to correct problems, you have held broken packages

我也很聪明,它还建议保留wine32包。因此,如果该解决方案获得批准,它就不会做任何事情。我该怎么办?

EN

回答 1

Ask Ubuntu用户

发布于 2021-04-18 10:57:16

我想说你应该先做:

代码语言:javascript
复制
sudo apt update
sudo apt upgrade -y
sudo apt dist-upgrade -y
sudo apt install wine
票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1332102

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档