I can not install wine in version 18.04 of ubuntu

Questions about Wine on Linux
Post Reply
xXShadicXx11
Level 1
Level 1
Posts: 6
Joined: Fri Dec 21, 2018 11:47 pm
Location: Argentina

I can not install wine in version 18.04 of ubuntu

Post by xXShadicXx11 » Sat Dec 22, 2018 12:19 am

Hello everyone, those who are reading this topic, I come to ask for help in this forum, because when installing wine in Peppermint 9 I get the following error even following all the steps if someone could guide me.

Code: Select all

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~cosmic)
E: Unable to correct problems, you have held broken packages.
These are the steps I followed before wanting to install wine, according to this source.

https://wiki.winehq.org/Ubuntu

1: sudo dpkg --add-architecture i386
2: wget -nc https://dl.winehq.org/wine-builds/winehq.key
3: sudo apt-key add winehq.key
4: sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
5: sudo apt update
6: sudo apt install --install-recommends winehq-stable

So that's it, I still do not understand what I'm doing wrong. :roll:

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

Re: I can not install wine in version 18.04 of ubuntu

Post by dimesio » Sat Dec 22, 2018 6:47 am

To track down dependency issues, you need to work your way back. Try installing wine-stable rather than winehq-stable, see what your package manager says is preventing the installation, and try installing that. If that doesn't install, try installing whatever is blocking that. Keep going until you find the problem.

jkfloris
Level 6
Level 6
Posts: 663
Joined: Thu Aug 14, 2014 10:10 am

Re: I can not install wine in version 18.04 of ubuntu

Post by jkfloris » Sat Dec 22, 2018 10:18 am

Or try aptitude

Code: Select all

aptitude --with-recommends install winehq-stable

xXShadicXx11
Level 1
Level 1
Posts: 6
Joined: Fri Dec 21, 2018 11:47 pm
Location: Argentina

Re: I can not install wine in version 18.04 of ubuntu

Post by xXShadicXx11 » Sun Dec 23, 2018 2:15 pm

:D Hello, thanks for answering. I did what you said and unfortunately got the following results, I have to clarify that all this took me step by step to each of the following dependencies. Therefore I do not know how I can solve it, since speaking from the ignorance, for what little I can understand on the subject I see that the problem may be in the distribution or the lack of necessary packages or perhaps the repositories of ubuntu 18.04. I repeat and clarify that I am speaking from my ignorance. Thank you very much to all, i wait for your answers.

Code: Select all

sudo apt-get install wine-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:
 wine-stable : Depends: wine-stable-i386 (= 3.0.4~cosmic)
E: Unable to correct problems, you have held broken packages.

Code: Select all

sudo apt-get install wine-stable-i386 
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-stable-i386:i386 : Depends: libc6:i386 (>= 2.28) but 2.27-3ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.

Code: Select all

sudo apt-get install libc6:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libc6:i386 is already the newest version (2.27-3ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

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

Re: I can not install wine in version 18.04 of ubuntu

Post by dimesio » Sun Dec 23, 2018 4:45 pm

Code: Select all

 wine-stable : Depends: wine-stable-i386 (= 3.0.4~cosmic)
Somehow you must have added the cosmic repository, and that's the package your package manager is trying to install. You need to delete the cosmic repository from your /etc/apt/sources.list (or /etc/apt/sources.list.d).

xXShadicXx11
Level 1
Level 1
Posts: 6
Joined: Fri Dec 21, 2018 11:47 pm
Location: Argentina

Re: I can not install wine in version 18.04 of ubuntu

Post by xXShadicXx11 » Mon Dec 24, 2018 1:15 am

Hello, thanks for answering again. I have noticed the file /etc/apt/sources.list and it has thrown me the following results:

Code: Select all

# deb cdrom:[Peppermint 9 (20180621) - Release amd64]/ bionic main multiverse restricted universe

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ar.archive.ubuntu.com/ubuntu/ bionic main restricted
deb-src http://ar.archive.ubuntu.com/ubuntu/ bionic main universe multiverse restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ar.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb-src http://ar.archive.ubuntu.com/ubuntu/ bionic-updates main universe multiverse restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ar.archive.ubuntu.com/ubuntu/ bionic universe
# deb-src http://ar.archive.ubuntu.com/ubuntu/ bionic universe
deb http://ar.archive.ubuntu.com/ubuntu/ bionic-updates universe
# deb-src http://ar.archive.ubuntu.com/ubuntu/ bionic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ar.archive.ubuntu.com/ubuntu/ bionic multiverse
# deb-src http://ar.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://ar.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
# deb-src http://ar.archive.ubuntu.com/ubuntu/ bionic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ar.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://ar.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu bionic partner
# deb-src http://archive.canonical.com/ubuntu bionic partner

deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb-src http://security.ubuntu.com/ubuntu bionic-security main universe multiverse restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
# deb-src http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard ./
# deb-src https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard ./
deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ bionic main
From what I see there is no repository that mentions the cosmic repository. I think this has no solution for what I see. :?

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

Re: I can not install wine in version 18.04 of ubuntu

Post by dimesio » Mon Dec 24, 2018 6:28 am

xXShadicXx11 wrote: From what I see there is no repository that mentions the cosmic repository. I think this has no solution for what I see. :?
Wrong. Ubuntu 18.10 is cosmic. You need to delete this one:

Code: Select all

deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard ./

xXShadicXx11
Level 1
Level 1
Posts: 6
Joined: Fri Dec 21, 2018 11:47 pm
Location: Argentina

Re: I can not install wine in version 18.04 of ubuntu

Post by xXShadicXx11 » Tue Dec 25, 2018 2:26 pm

:lol: Oh my god what a fool I have been good, it seems to work, because I could install it without problems thank you very much for your patience. :D :wink:

SlaboMetal
Level 1
Level 1
Posts: 5
Joined: Tue Dec 18, 2018 9:25 pm

Re: I can not install wine in version 18.04 of ubuntu

Post by SlaboMetal » Wed Dec 26, 2018 6:22 pm

Interesting. I may have done this too as I've been having the same kind of problems in Ubuntu 18.04.1 Now how do I go about deleting the bad file or wrong file that could be messing with things. Apologies to all I'm a newbie.

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

Re: I can not install wine in version 18.04 of ubuntu

Post by dimesio » Wed Dec 26, 2018 7:08 pm

Open /etc/apt/sources.list in a text editor and delete any items that say "cosmic" and/or "18.10."

SlaboMetal
Level 1
Level 1
Posts: 5
Joined: Tue Dec 18, 2018 9:25 pm

Re: I can not install wine in version 18.04 of ubuntu

Post by SlaboMetal » Wed Dec 26, 2018 9:28 pm

dimesio wrote:Open /etc/apt/sources.list in a text editor and delete any items that say "cosmic" and/or "18.10."

Code: Select all

arcman@SlabOMetal:~$ /etc/apt/sources.list
bash: /etc/apt/sources.list: Permission denied
arcman@SlabOMetal:~$ 
Hmmm......did I enter in wrong??

Delacor
Level 1
Level 1
Posts: 7
Joined: Thu Dec 20, 2018 3:51 am
Location: Legoland

Re: I can not install wine in version 18.04 of ubuntu

Post by Delacor » Thu Dec 27, 2018 4:13 am

SlaboMetal wrote:
dimesio wrote:Open /etc/apt/sources.list in a text editor and delete any items that say "cosmic" and/or "18.10."

Code: Select all

arcman@SlabOMetal:~$ /etc/apt/sources.list
bash: /etc/apt/sources.list: Permission denied
arcman@SlabOMetal:~$ 
Hmmm......did I enter in wrong??
You have to specify which Application you want to start at first. This would be "nano" for example. After specifying the Application, it need to know what to do.
So we put the path to the File we want to edit after the application-name.


sudo nano /etc/apt/sources.list


as we are in the "etc" folder, we need sudo-superuser rights to edit the file.


After editing save the file with CTRL+O and close nano with CTRL+X. :-)

Post Reply