Problem installing Wine

Hello,

How the f*ck I can find out what packages have problem?
I googled, I cleaned and did everything from the start. but no................ :(

The only I didn't do, is to run after
Code:
sudo apt update
this
Code:
sudo apt install --install-recommends winehq-stable
Does it really matter? I run it before

Code:
manin@manos-PC:/etc$ 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 (= 9.0.0.0~focal-1)
E: Unable to correct problems, you have held broken packages.

Code:
manin@manos-PC:~$ sudo apt update --fix-missing
[sudo] password for manin:
Sorry, try again.
[sudo] password for manin:
Hit:1 https://dl.winehq.org/wine-builds/ubuntu focal InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/back_winehq-focal.sources:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/back_winehq-focal.sources:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/back_winehq-focal.sources:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/back_winehq-focal.sources:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/back_winehq-focal.sources:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/back_winehq-focal.sources:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/back_winehq-focal.sources:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/back_winehq-focal.sources:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/back_winehq-focal.sources:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target DEP-11-icons-hidpi (main/dep11/[email protected]) is configured multiple times in /etc/apt/sources.list.d/back_winehq-focal.sources:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/back_winehq-focal.sources:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/back_winehq-focal.sources:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/back_winehq-focal.sources:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/back_winehq-focal.sources:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/back_winehq-focal.sources:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/back_winehq-focal.sources:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/back_winehq-focal.sources:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/back_winehq-focal.sources:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/back_winehq-focal.sources:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/back_winehq-focal.sources:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/back_winehq-focal.sources:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target DEP-11-icons-hidpi (main/dep11/[email protected]) is configured multiple times in /etc/apt/sources.list.d/back_winehq-focal.sources:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/back_winehq-focal.sources:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/back_winehq-focal.sources:1 and /etc/apt/sources.list.d/winehq-focal.sources:1


manin@manos-PC:~$ cd /etc/apt/sources.list.d/
manin@manos-PC:/etc/apt/sources.list.d$ ls
back_winehq-focal.sources  cdemu-ubuntu-ppa-focal.list  cdemu-ubuntu-ppa-focal.list.save  google-chrome.list  google-chrome.list.save  winehq-focal.sources
manin@manos-PC:/etc/apt/sources.list.d$ sudo rm back_winehq-focal.sources
manin@manos-PC:/etc/apt/sources.list.d$ ls
manin@manos-PC:/etc/apt/sources.list.d$ sudo rm winehq-focal.sources
manin@manos-PC:/etc/apt/sources.list.d$ ls
cdemu-ubuntu-ppa-focal.list  cdemu-ubuntu-ppa-focal.list.save  google-chrome.list  google-chrome.list.save



manin@manos-PC:/etc/apt/sources.list.d$ sudo apt update --fix-missing
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
manin@manos-PC:/etc/apt/sources.list.d$ sudo apt install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-5.15.0-83-generic linux-hwe-5.15-headers-5.15.0-83 linux-image-5.15.0-83-generic linux-modules-5.15.0-83-generic linux-modules-extra-5.15.0-83-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


manin@manos-PC:/etc/apt/sources.list.d$ sudo apt autoremove
[sudo] password for manin:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  linux-headers-5.15.0-83-generic linux-hwe-5.15-headers-5.15.0-83 linux-image-5.15.0-83-generic linux-modules-5.15.0-83-generic linux-modules-extra-5.15.0-83-generic
0 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
After this operation, 599 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 230383 files and directories currently installed.)
Removing linux-headers-5.15.0-83-generic (5.15.0-83.92~20.04.1) ...
Removing linux-hwe-5.15-headers-5.15.0-83 (5.15.0-83.92~20.04.1) ...
Removing linux-modules-extra-5.15.0-83-generic (5.15.0-83.92~20.04.1) ...
Removing linux-modules-5.15.0-83-generic (5.15.0-83.92~20.04.1) ...
Removing linux-image-5.15.0-83-generic (5.15.0-83.92~20.04.1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.15.0-83-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-101-generic
Found initrd image: /boot/initrd.img-5.15.0-101-generic
Found linux image: /boot/vmlinuz-5.15.0-100-generic
Found initrd image: /boot/initrd.img-5.15.0-100-generic
ERROR: isw: wrong number of devices in RAID set "isw_chgcdjibgc_Volume1" [1/2] on /dev/sda
Adding boot menu entry for UEFI Firmware Settings
done
manin@manos-PC:/etc/apt/sources.list.d$ sudo dpkg --configure -a
manin@manos-PC:/etc/apt/sources.list.d$ sudo dpkg -l | grep ^..R
manin@manos-PC:/etc/apt/sources.list.d$ sudo apt clean
manin@manos-PC:/etc/apt/sources.list.d$ sudo apt update
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
 


Does it really matter?
Like installing from source code, some things you have to follow carefully or it will fail. WINE is like that, and it's not very forgiving. But you have a mess now, and you need to clean it up before you can install it again properly.

This article is a few years old but will probably still explain accurately how to remove WINE.

After WINE is completely removed, you can try sudo apt install wine as was suggested, or use Synaptic Package Manager or the Ubuntu software center. Those won't quite be the current version. Or you can try again with the instructions on winehq.org. However you go, good luck!
 
@bob466 Also mention he already found Linux equivalent of those.

Years ago.
m1213.gif
 
Like installing from source code, some things you have to follow carefully or it will fail. WINE is like that, and it's not very forgiving. But you have a mess now, and you need to clean it up before you can install it again properly.
This is why we developed 'portable', totally self-contained versions of WINE for Puppy.....which you can even run from a flash drive (if you feel so inclined). In such fashion, it can be moved between Puppy boxes, and will still function correctly.

The original 'portable'-WINE was developed by one of our Japanese members - Shinobar - many years ago, based around the standard WINE packages compiled by another of our members, version2013.

Then around 4 years ago, another of our members was browsing Github, and came across AppImages of WINE, with very simple instructions on how to link them into your OS.....three sym-links into /usr/bin, named 'wine', 'wine32', and 'wine-server'.

These AppImages were built properly.....including absolutely everything needed for them to work, unlike some that are simply re-packaged .debs, and which still hunt around the system for needed dependencies. NOT how a well-fettled & constructed AppImage is supposed to act..!

~~~~~~~~~~~~~~~~~~~~​

I took these and re-built the original 'portable' WINE in a different way, along with scripts to 'link' & 'unlink' the portable from your system. Want to run a Windows application? Link the 'portable' into Puppy, and run it. Finished with it? Simply un-link it.

Couldn't be easier. And it makes running WINE totally hassle-free for veterans & noobs alike...


Mike. :p
 
@manin1952 :-

The way I built the 'portable' versions, I doubt they would work for anything other than Puppy. This is mostly related to the way Puppy runs; she 'runs as root', and /root is, indeed, Puppy's 'home' user directory. However:-

AppImages are a 'portable' Linux format that will work under most distros. The builds I originally played around with can be found here:-

https://github.com/ferion11/Wine_Appimage/releases

.....and basic instructions further down the page here:-

https://github.com/ferion11/Wine_Appimage

However, these are rather older builds. from around 4 years ago. Current WINE is now up to version 9.xx. Mind you though, WINE took almost a decade to get from v1 to v5.....but only 4 years to get from v5 to v9. The pace of WINE development has accelerated tremendously this last few years.

Newer builds - from the 9-series - can be found here:-

https://github.com/mmtrt/WINE_AppImage/releases

"Continuous (staging)" is the newest build ATM; this is now at 9.5.

~~~~~~~~~~~~~~~~~~~
Technically, there's no reason at all why these shouldn't work for you. You're only sym-linking the AppImage (with a re-name) into /usr/bin so the system can find it. And once you've set it up - allowed WINE to create its 'prefix' in your /home/user directory - you can then move the prefix to an external drive or somewhere outside the OS, followed by sym-linking it back to where you've just moved it from.

There's a reason for doing this. The WINE 'prefix' in your /home/user directory is where the bulk of the emulated Windows install lives; it's quite big! By moving it to an external location, you stop your install from getting unmanageable, yet the system can still find it to run Windows applications. And having it externally mounted, means you can link it into / unlink it from multiple distros. In other words, you can 'share' a common WINE install between several operating systems..!


Mike. ;)
 
Last edited:


Latest posts

Top