Pit pits when installing dotnet on Ubuntu 18.04 LTS + WINE + winetricks

wrap up

background

Problem phenomenon

(1) 403 Forbidden

When I try to install dotnet462 or later with winetricks, the installer download fails.

$ winetricks dotnet462
...

Sent a connection request via HTTP, waiting for a response... 403 FORBIDDEN
2020-12-30 01:18:59 error 403: FORBIDDEN。

------------------------------------------------------
Downloading https://web.archive.org/web/2000/https://www.dropbox.com/s/1bdocgbate8hc8z/dotNetFx462_Full_x86_x64_Slim.exe?dl=1 failed
------------------------------------------------------

(2) Exit without installing the dotnet462 DLL

When I try to install dotnet462 or later with winetricks, it exits without an error, but the dll is not installed.

$ export WINEARCH=win32
$ export WINEPREFIX=$HOME/winedotnet
$ winetricks -q dotnet462
...

$ winetricks list-installed
Executing mkdir -p /home/username
Using winetricks 20201206-next - sha256sum: 0feed209ffbf9d38dd1dd0ed93f9303c12a585077c6efe35ea7525d1004b3b8b with wine-5.0.3 and WINEARCH=win32
remove_mono
remove_mono
remove_mono

Workaround

(1) Install the latest version of winetricks

Follow the official documentation below to install the latest version of winetricks.

https://wiki.winehq.org/Winetricks#Getting_winetricks https://appdb.winehq.org/objectManager.php?sClass=version&iId=34702

sudo wget 'https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks' -O /usr/local/bin/winetricks
sudo chmod +x /usr/local/bin/winetricks

If you have installed the package with apt, uninstall it. sudo apt remove -y winetricks

(2) Install the cabextract package

Install the cabextract package with apt.

sudo apt install -y cabextract

https://kakurasan.blogspot.com/2015/07/winetricks-features-usage.html#h-winetricks-features-usage-1-2

By the way, p7zip is additionally installed in the apt package version of winetricks.

$ apt show winetricks | grep -i depends Depends: binutils, cabextract, p7zip, unzip, wget | curl, wine

Reference script

# winetricks
sudo wget -O /usr/local/bin/winetricks 'https://raw.githubusercontent.com/Winetr
icks/winetricks/master/src/winetricks'
sudo chmod +x /usr/local/bin/winetricks

# cabextract
sudo apt install -y cabextract

# dotnet462
export WINEARCH=win32
export WINEPREFIX=$HOME/winedotnet
export WINEDLLOVERRIDES="mscoree,mshtml="
wineboot --init
winetricks -q --force dotnet462 corefonts cjkfonts

Recommended Posts

Pit pits when installing dotnet on Ubuntu 18.04 LTS + WINE + winetricks
Installing OpenMX on Ubuntu 18.04.5 LTS
Apache2 on Ubuntu20.04 LTS
What I stumbled upon when installing Ruby on Ubuntu
Record video on ubuntu18.04 LTS
Install raspi-config on Ubuntu 20.04 (LTS)
Install WordPress 5.5 on Ubuntu 20.04 LTS
I made a mistake when installing VLC on Ubuntu 18.04 via snap
Installing Ruby + Rails on Ubuntu 18.04 (rbenv)
Wake on Lan settings on Ubuntu 20.04.1 LTS
Installing and using Ansible on Ubuntu 16.04
Check when nvidia-smi on Ubuntu doesn't work
Disable pop-ups when switching workspaces on Ubuntu 20.04