Remove wine3.0 with ubuntu18.04LTS and install wine5.0 (winehq)

After inserting wine3.0, I learned that wine5.0 was released, so I was addicted to trying to reinsert it, so I will leave it as a memorandum.

Remove wine3.0

sudo apt show | I tried to remove what is displayed as installed by grep wine for the time being.

sudo apt remove --autoremove wine-stable wine32 wine64
sudo apt remove winetricks

It seems that it disappeared for the time being, but I'm worried that the icons of Windows applications installed with wine remain everywhere ...

I'm addicted to the stage of putting winehq

Follow the steps in WineHQ Wiki ...

sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo add-apt-repository'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main '

$ sudo apt install --install-recommends winehq-stable
Loading the package list...Done
Creating a dependency tree
Reading status information...Done
Some packages could not be installed. Probably possible
Did you request no situation?(I'm using an unstable distribution
If)Required packages have not been created yet or moved from Incoming
It is possible that it has not been moved.
The following information may help resolve this issue:

The following packages have unmet dependencies:
 winehq-stable :Dependence: wine-stable (= 5.0.2~bionic)
E:Unable to solve the problem. I have a broken change-protected package.

... I'm here, dependency.

This "dependency" is really disgusting for a really living person on Windows. It may be possible to solve it by examining it, but it takes time because there is no log or information, and as a result, there are old memories and experiences that sometimes "cannot be solved" ... Ah.

Action 1: Delete the garbage

Let's trace how Gugu worried about the same thing.

cd $HOME
rm .config/menus/applications-merged/wine*
rm -r .local/share/applications/wine
rm .local/share/desktop-directories/wine*

#I didn't run it because I didn't have the following two lines
# rm -r .wine
# rm .local/share/icons/????_*.xpm

I'm glad that the wreckage of the remaining application icons disappeared cleanly thanks to this.

But I was still told "dependency". Damn.

Action 2: Eliminate the broken dependency

There was a person who had the same trouble when I went through it, so I decided to follow in the footsteps.

If wine-stable is broken, I wonder if I should put it in once.

$ sudo apt install --install-recommends wine-stable
Loading the package list...Done
Creating a dependency tree
Reading status information...Done
Some packages could not be installed. Probably possible
Did you request no situation?(I'm using an unstable distribution
If)Required packages have not been created yet or moved from Incoming
It is possible that it has not been moved.
The following information may help resolve this issue:

The following packages have unmet dependencies:
 wine-stable :Dependence: wine-stable-i386 (= 5.0.2~bionic)
Dependence: wine-stable-amd64 (= 5.0.2~bionic)But not trying to install
E:Unable to solve the problem. I have a broken change-protected package.

Then, I was told that i386 and amd64 were used this time, so I'll put them in.

$ sudo apt install --install-recommends wine-stable-i386
Loading the package list...Done
Creating a dependency tree
Reading status information...Done
Some packages could not be installed. Probably possible
Did you request no situation?(I'm using an unstable distribution
If)Required packages have not been created yet or moved from Incoming
It is possible that it has not been moved.
The following information may help resolve this issue:

The following packages have unmet dependencies:
 wine-stable-i386:i386 :Dependence: libfaudio0:i386 but can't install
Recommendation: libcapi20-3:i386 but not about to be installed
Recommendation: libcups2:i386 but not about to be installed
Recommendation: libglu1-mesa:i386 but not trying to install or
                                 libglu1:i386
Recommendation: libgsm1:i386 but not about to be installed
Recommendation: libgssapi-krb5-2:i386 but not about to be installed
Recommendation: libkrb5-3:i386 but not about to be installed
Recommendation: libodbc1:i386 but not about to be installed
Recommendation: libosmesa6:i386 but not about to be installed
Recommendation: libsane:i386 or
                                 libsane1:i386 but not about to be installed
Recommendation: libsdl2-2.0-0:i386 but not about to be installed
Recommendation: libv4l-0:i386 but not about to be installed
Recommendation: libxcomposite1:i386 but not about to be installed
Recommendation: libxcursor1:i386 but not about to be installed
Recommendation: libxfixes3:i386 but not about to be installed
Recommendation: libxi6:i386 but not about to be installed
Recommendation: libxinerama1:i386 but not about to be installed
Recommendation: libxrandr2:i386 but not about to be installed
Recommendation: libxrender1:i386 but not about to be installed
Recommendation: libxslt1.1:i386 but not about to be installed
Recommendation: libxxf86vm1:i386 but not about to be installed
E:Unable to solve the problem. I have a broken change-protected package.

Hanya, I was told something again! !! It seems that various things are not enough, so I decided to put in the first "faudio", but that, like I saw it somewhere with this name.

Speaking of which, in the WineHQ Wiki I saw earlier ...

Ubuntu 18.04 / Linux Mint 19.x does not provide FAudio, which is the current Wine dependency. Follow the instructions at https://forum.winehq.org/viewtopic.php?f=8&t=32192 to install FAudio from OBS. (FAudio packages for Ubuntu 19.10 and later are in the distribution's universe repository.)

There was, Faudio was ... So I proceeded according to WineHQ Forum.

First, download the following 2 files (either browser or wget as you like)

https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/amd64/libfaudio0_19.07-0~bionic_amd64.deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/i386/libfaudio0_19.07-0~bionic_i386.deb

So install

$ sudo dpkg -i libfaudio0_19.07-0_bionic_amd64.deb 
Previously unselected package libfaudio0:You have selected amd64.
(Loading database...Currently 177643 files and directories are installed.)
libfaudio0_19.07-0_bionic_amd64.Preparing to deploy deb...
libfaudio0:amd64 (19.07-0~bionic)Is deploying...
dpkg:Due to dependency issues libfaudio0:Unable to set amd64:
 libfaudio0:amd64 depends on(depends)To do: libsdl2-2.0-0 (>= 2.0.8) ...However:
Package libsdl2-2.0-0 is not yet installed.

dpkg:Package libfaudio0:An error occurred while processing amd64(--install):
Dependency issues-Forgo settings
libc-bin (2.27-3ubuntu1.3)Processing the trigger of...
An error occurred during processing:
 libfaudio0:amd64

See you again! !!

Then install libc-bin!

$ sudo apt install libc-bin
Loading the package list...Done
Creating a dependency tree
Reading status information...Done
libc-bin is already the latest version(2.27-3ubuntu1.3)is.
libc-bin was set to be manually installed.
To fix these'apt --fix-broken install'You may need to do.
The following packages have unmet dependencies:
 libfaudio0 :Dependence: libsdl2-2.0-0 (>= 2.0.8)But not trying to install
 libfaudio0:i386 :Dependence: libsdl2-2.0-0:i386 (>= 2.0.8)But not trying to install
E:Unresolved dependencies.'apt --fix-broken install'Try to run(Or please specify the solution)。

Nuho, what's this time! !! But this time, there was an instruction to try this, so follow it.

$ sudo apt --fix-broken install
Loading the package list...Done
Creating a dependency tree
Reading status information...Done
Resolving dependencies...Done
The following additional packages will be installed:
  libasound2:i386 libasyncns0:i386 libbsd0:i386 libdbus-1-3:i386 libdrm2:i386 libegl-mesa0:i386 libegl1:i386 libexpat1:i386
  libffi6:i386 libflac8:i386 libgbm1:i386 libglapi-mesa:i386 libglvnd0:i386 libogg0:i386 libpulse0:i386 libsdl2-2.0-0
:
(Omitted because it is long)
:
man-db (2.8.3-2ubuntu0.1)Processing the trigger of...
libc-bin (2.27-3ubuntu1.3)Processing the trigger of...

It seems that something went well, so I installed FAudio again.

$ sudo dpkg -i libfaudio0_19.07-0_bionic_amd64.deb 
(Loading database...Currently 177758 files and directories are installed.)
libfaudio0_19.07-0_bionic_amd64.Preparing to deploy deb...
libfaudio0:amd64 (19.07-0~bionic)so(19.07-0~to bionic)Overwrite expansion...
libfaudio0:amd64 (19.07-0~bionic)Is set...
libc-bin (2.27-3ubuntu1.3)Processing the trigger of...
$ sudo dpkg -i libfaudio0_19.07-0_bionic_i386.deb 
(Loading database...Currently 177758 files and directories are installed.)
libfaudio0_19.07-0_bionic_i386.Preparing to deploy deb...
libfaudio0:i386 (19.07-0~bionic)so(19.07-0~to bionic)Overwrite expansion...
libfaudio0:i386 (19.07-0~bionic)Is set...
libc-bin (2.27-3ubuntu1.3)Processing the trigger of...

This time it worked, so I finally installed winehq, which is the original purpose.

$ sudo apt install --install-recommends winehq-stable
Loading the package list...Done
Creating a dependency tree
Reading status information...Done
The following additional packages will be installed:
  gstreamer1.0-plugins-base:i386 libasn1-8-h
:
(It's really long, so I'll omit it)
:
wine-stable (5.0.2~bionic)Is set...
winehq-stable (5.0.2~bionic)Is set...
libc-bin (2.27-3ubuntu1.3)Processing the trigger of...
$ wine --version
wine-5.0.2

That's why I finally entered (-;

Bonus: winetricks and garbled characters

Since it is a convenient tool to run Wine, we also introduced it.

$ sudo apt install winetricks
$ winetricks 

When I started it, wine-mono, wine-gecko, and one more thing was missing, so I installed it obediently.

When the window opens, select "select the default wine prefix"-> "install a fonts"-> "Check cjk fonts and OK" to download and install Japanese fonts one after another.

After installing and running "IP Messenger" as a trial, I was able to communicate properly. It was good, it was good.

(Addition) Dealing with icons that do not disappear

I installed an application other than IP Messenger, but it didn't work, so I uninstalled it, but the icon remained firmly in "Display application". I searched around and deleted the following files and restarted, and it disappeared safely ... but I want you to do this properly ...

~/.config/menus/applications-merged/wine-Programs-[app name].menu 
~/.local/share/applications/wine/Programs/*[app name]*.desktop 
~/.local/share/icons/(Various sizes)/*[Does it contain part of the app name?]*.png
~/.local/share/desktop-directories/wine-Programs-[app name].directory 

Recommended Posts

Remove wine3.0 with ubuntu18.04LTS and install wine5.0 (winehq)
Install Java and Tomcat with Ansible
Install rbenv with apt on ubuntu and put ruby
How to install Gradle and Kotlin with SDKMAN (Mac)
Install java with Homebrew
Install Ruby 3.0.0 with asdf
Install and configure Keycloak
Install Gradle with ubuntu16.04
Install buildah and container-selinux
Install Composer with Docker
[PHP8] Install and use PECL YAML function (YAML parser) with Docker
Install Ruby 3.0.0 Preview 1 with a combination of Homebrew and rbenv