Install Wine on Ubuntu USB Live Persistent

Questions about Wine on Linux
Locked
Opariti
Level 1
Level 1
Posts: 6
Joined: Fri Oct 22, 2021 11:56 am

Install Wine on Ubuntu USB Live Persistent

Post by Opariti »

I'm trying to install Wine on a USB key hosting Ubuntu 20.04.3 LTS Live Persistent. The machine is 64 bits.
I followed the Wine installation instructions and I get stuck when adding the repository. I entered the command as per the wiki and I get a bunch of ignored packages from cdrom. It seems that the repo is searched on cdrom.
If I continue with the update I have several messages pointing to cdrom, so I gave up.
My question: is it possible to install Wine on a USB key Live Persistent?
Thanks
Opariti
Level 1
Level 1
Posts: 6
Joined: Fri Oct 22, 2021 11:56 am

Re: Install Wine on Ubuntu USB Live Persistent

Post by Opariti »

Here is some additional information.
When trying to install on the Ubuntu USB Live peristent device as per the internet non-connected computer prodecure I get the following error (terminal screen copy):

ubuntu@ubuntu:~$ sudo apt-get --download-only install winehq-devel
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-devel : Depends: wine-devel (= 6.20~focal-1)
E: Unable to correct problems, you have held broken packages.

Then, I try to solve this dependency (terminal screen copy):

ubuntu@ubuntu:~$ sudo apt-get install wine-devel
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:
wine-devel : Depends: wine-devel-i386 (= 6.20~focal-1)
Depends: wine-devel-amd64 (= 6.20~focal-1) but it is not going to be installed
W: Not using locking for read only lock file /var/lib/dpkg/lock-frontend
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: Unable to correct problems, you have held broken packages.

And if I continue, for the marked packages, I have the same type of error messages. The USB key and the hosting computer are reliable, therefore I don't understand where the "broken packages" come from.
I hope this info would help having some idea about what's going on. Thanks
spoon0042
Level 6
Level 6
Posts: 570
Joined: Thu Dec 24, 2009 11:00 am

Re: Install Wine on Ubuntu USB Live Persistent

Post by spoon0042 »

For wine to install and work you are going to need a whole mess of 32-bit packages and I doubt the live usb is setup for that. You can see what that involves for a conventional setup here: https://wiki.winehq.org/Ubuntu

If that's the case it would likely be easier to use a 32-bit OS assuming that's possible and you don't intend to run any 64-bit apps. Otherwise you'd have to figure out how to get all the 32-bit dependencies into the live usb environment which probably isn't fun.
Opariti
Level 1
Level 1
Posts: 6
Joined: Fri Oct 22, 2021 11:56 am

Re: Install Wine on Ubuntu USB Live Persistent

Post by Opariti »

Thank you!
hopperman
Level 2
Level 2
Posts: 17
Joined: Wed Nov 03, 2021 9:53 am

Re: Install Wine on Ubuntu USB Live Persistent

Post by hopperman »

Hi, I am not using UBUNTU but I am using Debian 11 live persistence from usb. Since UBUNTU is Debian based it is possible.
You can run both 64 bit and 32 bit applications. I tried on Debian.

I want to ask a question first :
Do you anychance open both "package manager" and "terminal screen" to install packages "at the same time"? If so, then your error got meanings about "lock". Since you can not install any package inside terminal, while it is under lock by package manager, because they use the same files. You have to close the package manager and them you try terminal commands.
daveweaton
Level 2
Level 2
Posts: 23
Joined: Mon Aug 30, 2021 2:14 am

Re: Install Wine on Ubuntu USB Live Persistent

Post by daveweaton »

I don't know how well it work for what you have in mind, but there used to be a user on this forum who actually installed linux Mint on a MicroSD card and runs their Chromebook from it, including full wine. I know you would lose some of the portability in terms of some drivers, etc., but perhaps it would work for you to install to the card rather than try to run a persistent live version.
Locked