winehq installation in deepin

Questions about Wine on Linux
sasi
Level 2
Level 2
Posts: 14
Joined: Tue Dec 18, 2018 3:22 am

winehq installation in deepin

Post by sasi »

dear all,

i am new to unix/linux/debian.

i have installed deepin in a dual core processor with four 60Gb partioned hard disk. Deepin is running fine.
I followed the steps given in winehq.org page. but i am unlucky.

some bash error occurs when i execute the following command.
deb https://dl.winehq.org/wine-builds/debian/ DISTRO main

the distro was jessian and also sid.

i am unable to proceed beyond this. Please help

thanks

sasi.
User avatar
dimesio
Moderator
Moderator
Posts: 13201
Joined: Tue Mar 25, 2008 10:30 pm

Re: winehq installation in deepin

Post by dimesio »

some bash error occurs when i execute the following command.
deb https://dl.winehq.org/wine-builds/debian/ DISTRO main

the distro was jessian and also sid.
Well, if "jessian" was really what you entered at the command line, that's the problem, because the distro is jessie.

Beyond that "some bash error" is not something anyone can troubleshoot. You need to copy and paste exactly what was in the terminal, including the commands you entered.
sasi
Level 2
Level 2
Posts: 14
Joined: Tue Dec 18, 2018 3:22 am

Re: winehq installation in deepin

Post by sasi »

Thank you dear for replying,

Following are the instructions that i followed.

wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
Next add the repository to /etc/apt/sources.list or create a *.list under /etc/apt/sources.list.d/ with the following content:

deb https://dl.winehq.org/wine-builds/debian/ DISTRO main
with DISTRO being either wheezy, jessie, stretch, buster or sid

Update packages:


following are the screen contents in the terminal window

jothish@jothish-PC:~/Desktop$ wget -nc https://dl.winehq.org/wine-builds/Release.key
--2018-12-19 12:43:53-- https://dl.winehq.org/wine-builds/Release.key
Resolving dl.winehq.org (dl.winehq.org)... 151.101.2.217, 151.101.66.217, 151.101.130.217, ...
Connecting to dl.winehq.org (dl.winehq.org)|151.101.2.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3122 (3.0K) [application/pgp-keys]
Saving to: ‘Release.key’

Release.key 100%[============================>] 3.05K --.-KB/s in 0.006s

2018-12-19 12:43:58 (536 KB/s) - ‘Release.key’ saved [3122/3122]

jothish@jothish-PC:~/Desktop$ sudo apt-key add Release.key
[sudo] password for jothish:
OK
jothish@jothish-PC:~/Desktop$ deb https://dl.winehq.org/wine-builds/debian/ jessie main
bash: deb: command not found
jothish@jothish-PC:~/Desktop$ deb https://dl.winehq.org/wine-builds/debian/ jessie main
bash: deb: command not found
jothish@jothish-PC:~/Desktop$

Please advice

sasi
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: winehq installation in deepin

Post by jkfloris »

when i execute the following command
deb https://... isn't a command. It is a line of text which you can add to /etc/apt/sources.list
sasi
Level 2
Level 2
Posts: 14
Joined: Tue Dec 18, 2018 3:22 am

Re: winehq installation in deepin

Post by sasi »

thank you, there is some improvement in my progress,

however still i am unable to get things right. Following are the contents of my terminal


jothish@jothish-PC:~/Desktop$ sudo apt-get update
Hit:1 http://packages.deepin.com/deepin panda InRelease
Reading package lists... Done
jothish@jothish-PC:~/Desktop$ sudo apt-get install --install-recommends winehq-stable
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package winehq-stable
jothish@jothish-PC:~/Desktop$ sudo apt-get install --install-recommends winehq-staging
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package winehq-staging
jothish@jothish-PC:~/Desktop$


Please advice

sasi
User avatar
dimesio
Moderator
Moderator
Posts: 13201
Joined: Tue Mar 25, 2008 10:30 pm

Re: winehq installation in deepin

Post by dimesio »

It doesn't look like you actually added the WineHQ repository. You need to. As jkfloris said (and I neglected to make clear, sorry), you need to edit your /etc/apt/sources.list in a text editor and add the line

Code: Select all

deb https://dl.winehq.org/wine-builds/debian/ jessie main
to it.

That said, I recommend holding off doing anything today. We are in the process of changing the packaging build source from the old build server to the OBS, and everyone is soon going to have to download and install a new repository key. An announcement and new instructions will be posted when it's ready.
User avatar
dimesio
Moderator
Moderator
Posts: 13201
Joined: Tue Mar 25, 2008 10:30 pm

Re: winehq installation in deepin

Post by dimesio »

FYI, the repository change is complete, so you can go ahead and add the new key and edit your /etc/apt/sources.list.
sasi
Level 2
Level 2
Posts: 14
Joined: Tue Dec 18, 2018 3:22 am

Re: winehq installation in deepin

Post by sasi »

Thanks for the great efforts to answer me.

yet for some reason , i am unable to get winehq installed. i have followed the right proceedure. pl have a look at the
terminal output i had.

jothish@jothish-PC:~/Desktop$ sudo nano /etc/apt/sources.list
jothish@jothish-PC:~/Desktop$ sudo apt update
Hit:1 http://linux.teamviewer.com/deb stable InRelease
Hit:2 http://linux.teamviewer.com/deb preview InRelease
Get:3 https://dl.winehq.org/wine-builds/debian jessie InRelease [6,242 B]
Get:4 https://dl.winehq.org/wine-builds/debian jessie/main amd64 Packages [50.7 kB]
Get:5 https://dl.winehq.org/wine-builds/debian jessie/main i386 Packages [50.2 kB]
Fetched 107 kB in 32s (3,377 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
jothish@jothish-PC:~/Desktop$ 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 (= 3.0.4~jessie)
E: Unable to correct problems, you have held broken packages.
jothish@jothish-PC:~/Desktop$


i do not know what mistake i am committing.

sasi
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: winehq installation in deepin

Post by jkfloris »

Hit:1 http://linux.teamviewer.com/deb stable InRelease
Hit:2 http://linux.teamviewer.com/deb preview InRelease
Get:3 https://dl.winehq.org/wine-builds/debian jessie InRelease [6,242 B]
Get:4 https://dl.winehq.org/wine-builds/debian jessie/main amd64 Packages [50.7 kB]
Get:5 https://dl.winehq.org/wine-builds/debian jessie/main i386 Packages [50.2 kB]
Is this the complete output? If it is, you are missing the Offical Debian repo.
Can you post the output of:

Code: Select all

cat /etc/apt/sources.list
sasi
Level 2
Level 2
Posts: 14
Joined: Tue Dec 18, 2018 3:22 am

Re: winehq installation in deepin

Post by sasi »

thanks for the reply,

i just followed the instructions given in the following link.
https://wiki.winehq.org/Debian

following is the output you asked for:

jothish@jothish-PC:~/Desktop$ cat /etc/apt/sources.list
deb https://dl.winehq.org/wine-builds/debian/ jessie main

#deb https://dl.winehq.org/wine-builds/debian/ jessie main

jothish@jothish-PC:~/Desktop$


sasi.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: winehq installation in deepin

Post by jkfloris »

Are there any files in /etc/apt/sources.list.d/ ?
sasi
Level 2
Level 2
Posts: 14
Joined: Tue Dec 18, 2018 3:22 am

Re: winehq installation in deepin

Post by sasi »

thanks.

yes, there is a file named teamviewer.list. the contents of it are as given under.

### TeamViewer DEB repository list

### NOTE: Manual changes to this file
### - prevent it from being updated by TeamViewer package updates
### - will be lost after using the 'teamviewer repo' command
### The original file can be restored with this command:
### cp /opt/teamviewer/tv_bin/script/teamviewer.list /etc/apt/sources.list.d/teamviewer.list
### which has the same effect as 'teamviewer repo default'

### NOTE: It is preferred to use the following commands to edit this file:
### teamviewer repo - show current repository configuration
### teamviewer repo default - restore default configuration
### teamviewer repo disable - disable the repository
### teamviewer repo main [stable] - make all TeamViewer packages available (default)
### teamviewer repo tv13 [stable] - make TeamViewer 13 packages available
### stable omit preview and beta releases


### Choose stable main to receive updates for TeamViewer 13 and upcoming major releases
### Choose preview main to receive early updates for TeamViewer 13 and to receive major beta releases

### Choose stable tv13 to receive updates for TeamViewer 13
### Choose preview tv13 to receive early updates for TeamViewer 13

deb http://linux.teamviewer.com/deb stable main
deb http://linux.teamviewer.com/deb preview main

# deb http://linux.teamviewer.com/deb stable tv13
# deb http://linux.teamviewer.com/deb preview tv13


sasi
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: winehq installation in deepin

Post by jkfloris »

Is Jessie the Debian version you use?
sasi
Level 2
Level 2
Posts: 14
Joined: Tue Dec 18, 2018 3:22 am

Re: winehq installation in deepin

Post by sasi »

i do not know, i am new to linux environment.
sasi
Level 2
Level 2
Posts: 14
Joined: Tue Dec 18, 2018 3:22 am

Re: winehq installation in deepin

Post by sasi »

i am using deepin
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: winehq installation in deepin

Post by jkfloris »

These two commands should get you up and running

Code: Select all

sudo sed -i 's/jessie/sid/g' /etc/apt/sources.list
echo "deb http://packages.deepin.com/deepin unstable main contrib non-free" | sudo tee -a /etc/apt/sources.list
The first line replace the jessie winehq repo into the sid version. (Deepin is based on debian sid)
The second line adds the Deepin repo back
sasi
Level 2
Level 2
Posts: 14
Joined: Tue Dec 18, 2018 3:22 am

Re: winehq installation in deepin

Post by sasi »

Thanks

is the third line which contains sudo a separate command Or

should i Icopy and paste the second line and third line together at one go ?

sasi
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: winehq installation in deepin

Post by jkfloris »

Code: Select all

echo "deb http://packages.deepin.com/deepin unstable main contrib non-free" | sudo tee -a /etc/apt/sources.list
Is one long line.
Last edited by jkfloris on Thu Dec 20, 2018 4:26 am, edited 1 time in total.
sasi
Level 2
Level 2
Posts: 14
Joined: Tue Dec 18, 2018 3:22 am

Re: winehq installation in deepin

Post by sasi »

these are the contents of terminal window after i did .

jothish@jothish-PC:~/Desktop$ sudo sed -i 's/jessie/sid/g' /etc/apt/sources.list
[sudo] password for jothish:
jothish@jothish-PC:~/Desktop$ sudo sed -i 's/jessie/sid/g' /etc/apt/sources.list
jothish@jothish-PC:~/Desktop$ echo "deb http://packages.deepin.com/deepin unstable main contrib non-free" | sudo tee -a /etc/apt/sources.list
deb http://packages.deepin.com/deepin unstable main contrib non-free
jothish@jothish-PC:~/Desktop$

i hope the above is correct. what are the next steps ?

thanks for the untiring help

sasi
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: winehq installation in deepin

Post by jkfloris »

Looks good!
Next run

Code: Select all

sudo apt update
sudo apt install --install-recommends winehq-stable
sasi
Level 2
Level 2
Posts: 14
Joined: Tue Dec 18, 2018 3:22 am

Re: winehq installation in deepin

Post by sasi »

great improvement , but the last stage is giving problems as you can see below

jothish@jothish-PC:~/Desktop$ sudo apt update
Get:1 http://linux.teamviewer.com/deb stable InRelease [9,357 B]
Get:2 http://linux.teamviewer.com/deb preview InRelease [9,358 B]
Get:3 http://packages.deepin.com/deepin unstable InRelease [11.4 kB]
Get:4 http://linux.teamviewer.com/deb stable/main i386 Packages [2,201 B]
Get:5 https://dl.winehq.org/wine-builds/debian sid InRelease [4,699 B]
Get:6 http://linux.teamviewer.com/deb stable/main amd64 Packages [2,376 B]
Get:7 http://linux.teamviewer.com/deb preview/main i386 Packages [1,496 B]
Get:8 http://linux.teamviewer.com/deb preview/main amd64 Packages [1,670 B]
Get:9 http://packages.deepin.com/deepin unstable/main i386 Packages [20.2 MB]
Get:10 https://dl.winehq.org/wine-builds/debian sid/main i386 Packages [49.0 kB]
Get:11 https://dl.winehq.org/wine-builds/debian sid/main amd64 Packages [49.6 kB]
Get:12 http://packages.deepin.com/deepin unstable/main amd64 Packages [20.3 MB]
Get:13 http://packages.deepin.com/deepin unstable/non-free amd64 Packages [342 kB]
Get:14 http://packages.deepin.com/deepin unstable/contrib amd64 Packages [184 kB]
Get:15 http://packages.deepin.com/deepin unstable/contrib i386 Packages [178 kB]
Get:16 http://packages.deepin.com/deepin unstable/non-free i386 Packages [279 kB]
Fetched 41.6 MB in 1min 51s (374 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
jothish@jothish-PC:~/Desktop$ 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 (= 3.0.4~sid)
E: Unable to correct problems, you have held broken packages.
jothish@jothish-PC:~/Desktop$


sasi
sasi
Level 2
Level 2
Posts: 14
Joined: Tue Dec 18, 2018 3:22 am

Re: winehq installation in deepin

Post by sasi »

I once again tried the following , but same result.

sudo apt update
sudo apt install --install-recommends winehq-stable

thanks
sasi
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: winehq installation in deepin

Post by jkfloris »

Sometimes aptitude will give a better result

Code: Select all

sudo aptitude --with-recommends install winehq-stable
sasi
Level 2
Level 2
Posts: 14
Joined: Tue Dec 18, 2018 3:22 am

Re: winehq installation in deepin

Post by sasi »

this is what i get now.. is wine installed now ?


jothish@jothish-PC:~/Desktop$ sudo aptitude --with-recommends install winehq-stable
[sudo] password for jothish:
The following NEW packages will be installed:
libncurses5{a} libncurses5:i386{a} libtinfo5:i386{a} wine-stable{a}
wine-stable-amd64{a} wine-stable-i386:i386{ab} winehq-stable{b}
0 packages upgraded, 7 newly installed, 0 to remove and 1 not upgraded.
Need to get 45.1 MB of archives. After unpacking 422 MB will be used.
The following packages have unmet dependencies:
winehq-stable : Conflicts: wine but 3.0.1-2 is installed
Conflicts: wine:i386 which is a virtual package, provided by:
- wine-development (3.9-1), but it is not going to be installed
- wine (3.0.1-2), but 3.0.1-2 is installed
- winehq-staging:i386 (4.0~rc2~sid), but it is not going to be installed
- winehq-staging:i386 (4.0~rc1~sid), but it is not going to be installed
- winehq-staging:i386 (3.9.0~sid), but it is not going to be installed
- winehq-staging:i386 (3.8.0~sid), but it is not going to be installed
- winehq-staging:i386 (3.7.0~sid), but it is not going to be installed
- winehq-staging:i386 (3.6.0~sid), but it is not going to be installed
- winehq-staging:i386 (3.21.0~sid), but it is not going to be installed
- winehq-staging:i386 (3.20.0~sid), but it is not going to be installed
- winehq-staging:i386 (3.19.0~sid), but it is not going to be installed
- winehq-staging:i386 (3.18.0~sid), but it is not going to be installed
- winehq-staging:i386 (3.17.0~sid), but it is not going to be installed
- winehq-staging:i386 (3.15.0~sid), but it is not going to be installed
- winehq-staging:i386 (3.14.0~sid), but it is not going to be installed
- winehq-staging:i386 (3.13.0~sid), but it is not going to be installed
- winehq-staging:i386 (3.13.0-2~sid), but it is not going to be installed
- winehq-staging:i386 (3.12.0~sid), but it is not going to be installed
- winehq-staging:i386 (3.11.0~sid), but it is not going to be installed
- winehq-staging:i386 (3.10.0~sid), but it is not going to be installed
- winehq-staging:i386 (2.9.0~sid), but it is not going to be installed
- winehq-staging:i386 (2.8.0~sid), but it is not going to be installed
- winehq-staging:i386 (2.7.0~sid), but it is not going to be installed
- winehq-staging:i386 (2.6.0~sid), but it is not going to be installed
- winehq-staging:i386 (2.5.0~sid), but it is not going to be installed
- winehq-staging:i386 (2.4.0-3~sid), but it is not going to be installed
- winehq-staging:i386 (2.21.0~sid), but it is not going to be installed
- winehq-staging:i386 (2.20.0~sid), but it is not going to be installed
- winehq-staging:i386 (2.19.0~sid), but it is not going to be installed
- winehq-staging:i386 (2.18.0~sid), but it is not going to be installed
- winehq-staging:i386 (2.17.0~sid), but it is not going to be installed
- winehq-staging:i386 (2.16.0~sid), but it is not going to be installed
- winehq-staging:i386 (2.15.0~sid), but it is not going to be installed
- winehq-staging:i386 (2.14.0~sid), but it is not going to be installed
- winehq-staging:i386 (2.13.0~sid), but it is not going to be installed
- winehq-staging:i386 (2.12.0~sid), but it is not going to be installed
- winehq-staging:i386 (2.11.0~sid), but it is not going to be installed
- winehq-staging:i386 (2.10.0~sid), but it is not going to be installed
- winehq-stable:i386 (3.0.4~sid), but it is not going to be installed
- winehq-stable:i386 (3.0.3~sid), but it is not going to be installed
- winehq-stable:i386 (3.0.2~sid), but it is not going to be installed
- winehq-stable:i386 (3.0.1~sid), but it is not going to be installed
- winehq-stable:i386 (3.0.0~sid), but it is not going to be installed
- winehq-stable:i386 (2.0.4~sid), but it is not going to be installed
- winehq-stable:i386 (2.0.3~sid), but it is not going to be installed
- winehq-stable:i386 (2.0.2~sid), but it is not going to be installed
- winehq-stable:i386 (2.0.1~sid), but it is not going to be installed
- winehq-stable:i386 (2.0.0~sid), but it is not going to be installed
- winehq-devel:i386 (4.0~rc2~sid), but it is not going to be installed
- winehq-devel:i386 (4.0~rc1~sid), but it is not going to be installed
- winehq-devel:i386 (3.9.0~sid), but it is not going to be installed
- winehq-devel:i386 (3.8.0~sid), but it is not going to be installed
- winehq-devel:i386 (3.7.0~sid), but it is not going to be installed
- winehq-devel:i386 (3.6.0~sid), but it is not going to be installed
- winehq-devel:i386 (3.5.0~sid), but it is not going to be installed
- winehq-devel:i386 (3.4.0~sid), but it is not going to be installed
- winehq-devel:i386 (3.3.0~sid), but it is not going to be installed
- winehq-devel:i386 (3.21.0~sid), but it is not going to be installed
- winehq-devel:i386 (3.20.0~sid), but it is not going to be installed
- winehq-devel:i386 (3.2.0~sid), but it is not going to be installed
- winehq-devel:i386 (3.19.0~sid), but it is not going to be installed
- winehq-devel:i386 (3.18.0~sid), but it is not going to be installed
- winehq-devel:i386 (3.17.0~sid), but it is not going to be installed
- winehq-devel:i386 (3.16.0~sid), but it is not going to be installed
- winehq-devel:i386 (3.15.0~sid), but it is not going to be installed
- winehq-devel:i386 (3.14.0~sid), but it is not going to be installed
- winehq-devel:i386 (3.13.0~sid), but it is not going to be installed
- winehq-devel:i386 (3.12.0~sid), but it is not going to be installed
- winehq-devel:i386 (3.11.0~sid), but it is not going to be installed
- winehq-devel:i386 (3.10.0~sid), but it is not going to be installed
- winehq-devel:i386 (3.1.0~sid), but it is not going to be installed
- winehq-devel:i386 (3.0~rc6~sid), but it is not going to be installed
- winehq-devel:i386 (3.0~rc5~sid), but it is not going to be installed
- winehq-devel:i386 (3.0~rc4~sid), but it is not going to be installed
- winehq-devel:i386 (3.0~rc3~sid), but it is not going to be installed
- winehq-devel:i386 (3.0~rc2~sid), but it is not going to be installed
- winehq-devel:i386 (3.0~rc1~sid), but it is not going to be installed
- winehq-devel:i386 (2.9.0~sid), but it is not going to be installed
- winehq-devel:i386 (2.8.0~sid), but it is not going to be installed
- winehq-devel:i386 (2.7.0~sid), but it is not going to be installed
- winehq-devel:i386 (2.6.0~sid), but it is not going to be installed
- winehq-devel:i386 (2.5.0~sid), but it is not going to be installed
- winehq-devel:i386 (2.4.0-3~sid), but it is not going to be installed
- winehq-devel:i386 (2.22.0~sid), but it is not going to be installed
- winehq-devel:i386 (2.21.0~sid), but it is not going to be installed
- winehq-devel:i386 (2.20.0~sid), but it is not going to be installed
- winehq-devel:i386 (2.19.0~sid), but it is not going to be installed
- winehq-devel:i386 (2.18.0~sid), but it is not going to be installed
- winehq-devel:i386 (2.17.0~sid), but it is not going to be installed
- winehq-devel:i386 (2.16.0~sid), but it is not going to be installed
- winehq-devel:i386 (2.15.0~sid), but it is not going to be installed
- winehq-devel:i386 (2.14.0~sid), but it is not going to be installed
- winehq-devel:i386 (2.13.0~sid), but it is not going to be installed
- winehq-devel:i386 (2.12.0~sid), but it is not going to be installed
- winehq-devel:i386 (2.11.0~sid), but it is not going to be installed
- winehq-devel:i386 (2.10.0~sid), but it is not going to be installed

wine-stable-i386:i386 : Depends: libc6:i386 (>= 2.28) but 2.27-3 is installed
The following actions will resolve these dependencies:

Keep the following packages at their current version:
1) wine-stable [Not Installed]
2) wine-stable-i386:i386 [Not Installed]
3) winehq-stable [Not Installed]



Accept this solution? [Y/n/q/?] y
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

jothish@jothish-PC:~/Desktop$


thanks
sasi
Delacor
Level 1
Level 1
Posts: 7
Joined: Thu Dec 20, 2018 3:51 am

Re: winehq installation in deepin

Post by Delacor »

--> wine-stable-i386:i386 : Depends: libc6:i386 (>= 2.28) but 2.27-3 is installed

What happens, if you install that missing update? Could that be the new libc6-version, that you are missing?
Locked