Ubuntu 18 issue

rabaloum Posted messages 58 Status Member -  
rabaloum Posted messages 58 Status Member -
Hello everyone,
for a few months, I've been using [Linux and I would like to install a Windows game.
It asks me to install Wine, but I can't load the Open GL libraries!
I've also noticed that the Synaptic packages are not on the machine.
In fact, I'd also like to install other software (Skype, for example).
Thank you in advance for your response.

19 answers

  1. Dinath Posted messages 1697 Status Security Contributor 218
     
    Hello,

    I recently installed Wine on Ubuntu 18.04; it didn't work with the official repositories... I had to go through their repository to get it working, maybe this will help you.

    --
    @Dinath_ - Security Contributor
    0
  2. rabaloum Posted messages 58 Status Member 1
     
    Hello Dinath, thanks for the info

    I typed the commands up to the line:
    sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
    where it shows me this:
    E: Entry 52 badly formed in list file /etc/apt/sources.list (Component)
    E: The list of sources cannot be read.

    problem with sources list?

    what should I do?
    0
    1. jns55
       
      Hello,
      "what should I do"

      Edit the file /etc/apt/sources.list.
      sudo nano /etc/apt/sources.list 

      And you check what is wrong in line 52.
      0
    2. Dinath Posted messages 1697 Status Security Contributor 218 > jns55
       
      +1 :)

      sudo nano +52 /etc/apt/sources.list 
      (for the little bonus)
      0
    3. zipe31 Posted messages 34620 Registration date   Status Contributor Last intervention   6 501 > Dinath Posted messages 1697 Status Security Contributor
       
      Hi,

      It's a bit risky to have him open a file directly with root rights without knowing if he is familiar, if not acquainted, with the nano editor ;-(

      sed -n '52p' /etc/apt/sources.list

      And while we're at it, it's better to view the entire file:
      cat -An /etc/apt/sources.list


      ;-)
      0
    4. Dinath Posted messages 1697 Status Security Contributor 218 > zipe31 Posted messages 34620 Registration date   Status Contributor Last intervention  
       
      Hello Zipe ;-)

      I would have opened it with
      view
      , but it could have gotten stuck in the matrix!
      0
    5. zipe31 Posted messages 34620 Registration date   Status Contributor Last intervention   6 501 > Dinath Posted messages 1697 Status Security Contributor
       
      Ouch too,

      Thank goodness you didn't tell him to open it with vim¹ or emacs ;-))


      ¹ I'm old, view doesn't ring a bell for me ;-)
      0
  3. rabaloum Posted messages 58 Status Member 1
     
    Re :)

    By typing cat -An /etc/apt/sources.list
    here is what I got:

    1 # deb cdrom:[Ubuntu-MATE 18.04.2 LTS _Bionic Beaver_ - Release amd64 (20190210)]/ bionic main multiverse restricted universe$
    2 $
    3 # See https://help.ubuntu.com/community/UpgradeNotes for how to upgrade to$
    4 # newer versions of the distribution.$
    5 deb http://fr.archive.ubuntu.com/ubuntu/ bionic main restricted$
    6 # deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic main restricted$
    7 $
    8 ## Major bug fix updates produced after the final release of the$
    9 ## distribution.$
    10 deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates main restricted$
    11 # deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic-updates main restricted$
    12 $
    13 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu$
    14 ## team. Also, please note that software in universe WILL NOT receive any$
    15 ## review or updates from the Ubuntu security team.$
    16 deb http://fr.archive.ubuntu.com/ubuntu/ bionic universe$
    17 # deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic universe$
    18 deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates universe$
    19 # deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic-updates universe$
    20 $
    21 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu $
    22 ## team, and may not be under a free licence. Please satisfy yourself as to $
    23 ## your rights to use the software. Also, please note that software in $
    24 ## multiverse WILL NOT receive any review or updates from the Ubuntu$
    25 ## security team.$
    26 deb http://fr.archive.ubuntu.com/ubuntu/ bionic multiverse$
    27 # deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic multiverse$
    28 deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates multiverse$
    29 # deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic-updates multiverse$
    30 $
    31 ## N.B. software from this repository may not have been tested as$
    32 ## extensively as that contained in the main release, although it includes$
    33 ## newer versions of some applications which may provide useful features.$
    34 ## Also, please note that software in backports WILL NOT receive any review$
    35 ## or updates from the Ubuntu security team.$
    36 deb http://fr.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse$
    37 # deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse$
    38 $
    39 ## Uncomment the following two lines to add software from Canonical's$
    40 ## 'partner' repository.$
    41 ## This software is not part of Ubuntu, but is offered by Canonical and the$
    42 ## respective vendors as a service to Ubuntu users.$
    43 # deb http://archive.canonical.com/ubuntu/ bionic partner$
    44 # deb-src http://archive.canonical.com/ubuntu/ bionic partner$
    45 $
    46 deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted$
    47 # deb-src http://security.ubuntu.com/ubuntu/ bionic-security main restricted$
    48 deb http://security.ubuntu.com/ubuntu/ bionic-security universe$
    49 # deb-src http://security.ubuntu.com/ubuntu/ bionic-security universe$
    50 deb http://security.ubuntu.com/ubuntu/ bionic-security multiverse$
    51 # deb-src http://security.ubuntu.com/ubuntu/ bionic-security multiverse$
    52 deb https://dl.winehq.org/wine-builds/ubuntu/ main$
    53 # deb-src https://dl.winehq.org/wine-builds/ubuntu/ main$
    54 deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main$
    55 # deb-src https://dl.winehq.org/wine-builds/ubuntu/ bionic main$
    56 # deb-src https://dl.winehq.org/wine-builds/ubuntu/ bionic main$
    0
  4. rabaloum Posted messages 58 Status Member 1
     
    exact
    what should I do?
    0
    1. zipe31 Posted messages 34620 Registration date   Status Contributor Last intervention   6 501
       
      To add the word bionic in line 52 as shown above.
      0
  5. rabaloum Posted messages 58 Status Member 1
     
    I'm waiting for your instructions ;)
    0
  6. rabaloum Posted messages 58 Status Member 1
     
    Hi zipe31, I typed the line correctly
    deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main

    here's what it returns to me:

    The command "deb" was not found, did you mean:

    command "den" from snap den (1.2.0-0)
    command "dub" from snap dub (1.19.0)
    command "dub" from deb dub
    command "dab" from deb bsdgames
    command "dep" from deb go-dep
    command "debi" from deb devscripts
    command "derb" from deb icu-devtools
    command "debc" from deb devscripts
    command "edb" from deb edb-debugger
    command "deb3" from deb quilt
    command "dex" from deb dex
    command "xdeb" from deb xdeb

    See "snap info <snapname>" for additional versions.</snapname>
    0
    1. zipe31 Posted messages 34620 Registration date   Status Contributor Last intervention   6 501
       
      I never asked you to type that line in a terminal as far as I know?

      But to add the word bionic on line 52 of the file
      /etc/apt/sources.list
      !
      0
  7. rabaloum Posted messages 58 Status Member 1
     
    I'm going to seem dumb, but I don't know how to do it.
    0
    1. zipe31 Posted messages 34620 Registration date   Status Contributor Last intervention   6 501
       
      In a terminal, type
      sudo gedit /etc/apt/sources.list
      you enter your password and modify the file on line 52.

      Be careful not to make any mistakes, you open the said file with root privileges ;-\
      0
  8. rabaloum Posted messages 58 Status Member 1
     
    it shows this:

    sudo: gedit: command not found
    0
    1. zipe31 Posted messages 34620 Registration date   Status Contributor Last intervention   6 501
       
      Are you on Ubuntu?
      Try using leafpad instead of gedit:
      sudo leafpad /etc/apt/sources.list
      0
  9. rabaloum Posted messages 58 Status Member 1
     
    yes ubuntu 18

    here is the answer:
    sudo: leafpad: command not found
    0
    1. zipe31 Posted messages 34620 Registration date   Status Contributor Last intervention   6 501
       
      So tell me what text editor you have?
      0
  10. rabaloum Posted messages 58 Status Member 1
     
    I use the MATE terminal.
    0
    1. zipe31 Posted messages 34620 Registration date   Status Contributor Last intervention   6 501
       
      sudo pluma /etc/apt/sources.list
      0
  11. rabaloum Posted messages 58 Status Member 1
     
    Ok, I managed to open it with Pluma
    and I just added bionic to line 52

    What should I do next?
    0
    1. zipe31 Posted messages 34620 Registration date   Status Contributor Last intervention   6 501
       
      Record and retry the order that was causing issues.
      0
  12. rabaloum Posted messages 58 Status Member 1
     
    Hello, thank you zipe31
    I typed the line in question, here's what it shows me:

    Hit:1 http://fr.archive.ubuntu.com/ubuntu/ bionic InRelease
    Get:2 http://fr.archive.ubuntu.com/ubuntu/ bionic-updates InRelease [88.7 kB]
    Get:3 http://security.ubuntu.com/ubuntu/ bionic-security InRelease [88.7 kB]
    Hit:4 http://deb.playonlinux.com bionic InRelease
    Get:5 http://fr.archive.ubuntu.com/ubuntu/ bionic-backports InRelease [74.6 kB]
    Get:6 https://dl.winehq.org/wine-builds/ubuntu/ bionic InRelease [6,259 B]
    Get:7 http://fr.archive.ubuntu.com/ubuntu/ bionic-updates/main amd64 Packages [915 kB]
    Get:8 http://fr.archive.ubuntu.com/ubuntu/ bionic-updates/main i386 Packages [668 kB]
    Get:9 http://fr.archive.ubuntu.com/ubuntu/ bionic-updates/main Translation-en [314 kB]
    Get:10 http://security.ubuntu.com/ubuntu/ bionic-security/main amd64 Packages [692 kB]
    Get:11 http://fr.archive.ubuntu.com/ubuntu/ bionic-updates/restricted i386 Packages [9,568 B]
    Get:12 http://fr.archive.ubuntu.com/ubuntu/ bionic-updates/restricted amd64 Packages [43.9 kB]
    Get:13 http://fr.archive.ubuntu.com/ubuntu/ bionic-updates/restricted Translation-en [11.0 kB]
    Get:14 http://fr.archive.ubuntu.com/ubuntu/ bionic-updates/universe i386 Packages [1,013 kB]
    Get:15 http://fr.archive.ubuntu.com/ubuntu/ bionic-updates/universe amd64 Packages [1,065 kB]
    Get:16 http://security.ubuntu.com/ubuntu/ bionic-security/main i386 Packages [459 kB]
    Get:17 https://dl.winehq.org/wine-builds/ubuntu/ bionic/main amd64 Packages [638 kB]
    Get:18 http://security.ubuntu.com/ubuntu/ bionic-security/main Translation-en [221 kB]
    Get:19 http://security.ubuntu.com/ubuntu/ bionic-security/restricted amd64 Packages [34.3 kB]
    Get:20 http://security.ubuntu.com/ubuntu/ bionic-security/restricted Translation-en [8,924 B]
    Get:21 http://security.ubuntu.com/ubuntu/ bionic-security/universe amd64 Packages [657 kB]
    Get:22 http://fr.archive.ubuntu.com/ubuntu/ bionic-updates/universe Translation-en [330 kB]
    Get:23 http://fr.archive.ubuntu.com/ubuntu/ bionic-updates/multiverse amd64 Packages [10.8 kB]
    Get:24 http://fr.archive.ubuntu.com/ubuntu/ bionic-updates/multiverse i386 Packages [7,484 B]
    Get:25 http://fr.archive.ubuntu.com/ubuntu/ bionic-updates/multiverse Translation-en [4,728 B]
    Get:26 http://fr.archive.ubuntu.com/ubuntu/ bionic-backports/universe amd64 Packages [4,020 B]
    Get:27 http://fr.archive.ubuntu.com/ubuntu/ bionic-backports/universe i386 Packages [4,016 B]
    Get:28 http://fr.archive.ubuntu.com/ubuntu/ bionic-backports/universe Translation-en [1,900 B]
    Get:29 http://security.ubuntu.com/ubuntu/ bionic-security/universe i386 Packages [618 kB]
    Get:30 http://security.ubuntu.com/ubuntu/ bionic-security/universe Translation-en [218 kB]
    Get:31 https://dl.winehq.org/wine-builds/ubuntu/ bionic/main i386 Packages [673 kB]
    Get:32 http://security.ubuntu.com/ubuntu/ bionic-security/multiverse amd64 Packages [7,176 B]
    Get:33 http://security.ubuntu.com/ubuntu/ bionic-security/multiverse i386 Packages [4,288 B]
    Get:34 http://security.ubuntu.com/ubuntu/ bionic-security/multiverse Translation-en [2,764 B]
    8,894 kB received in 3s (2,840 kB/s)
    Reading package lists... Done
    W: The target Packages (main/binary-amd64/Packages) is specified multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list:54
    W: The target Packages (main/binary-i386/Packages) is specified multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list:54
    W: The target Packages (main/binary-all/Packages) is specified multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list:54
    W: The target Translations (main/i18n/Translation-fr_FR) is specified multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list:54
    W: The target Translations (main/i18n/Translation-fr) is specified multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list:54
    W: The target Translations (main/i18n/Translation-en) is specified multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list:54
    W: The target CNF (main/cnf/Commands-amd64) is specified multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list:54
    W: The target CNF (main/cnf/Commands-all) is specified multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list:54
    W: The target Packages (main/binary-amd64/Packages) is specified multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list:54
    W: The target Packages (main/binary-i386/Packages) is specified multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list:54
    W: The target Packages (main/binary-all/Packages) is specified multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list:54
    W: The target Translations (main/i18n/Translation-fr_FR) is specified multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list:54
    W: The target Translations (main/i18n/Translation-fr) is specified multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list:54
    W: The target Translations (main/i18n/Translation-en) is specified multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list:54
    W: The target CNF (main/cnf/Commands-amd64) is specified multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list:54
    W: The target CNF (main/cnf/Commands-all) is specified multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list:54
    0
    1. jns55
       
      You can install wine now...
      Line 54 of the sources.list file is a duplicate of line 52. You can delete one of the two lines.
      It's not a big deal and it won't prevent you from installing packages.
      W stands for Warning.
      0
  13. rabaloum Posted messages 58 Status Member 1
     
    how to erase it?
    0
    1. jns55
       
      You edit the file as you corrected it.
      But you can leave it like that; you'll just get warnings every time you run an apt update, but it has no consequences for the stability of the system.
      0
  14. rabaloum Posted messages 58 Status Member 1
     
    I performed the installation of Wine

    by typing: sudo apt install --install-recommends winehq-stable
    here's what it displays:

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Some packages cannot be installed. This may mean
    that you have requested the impossible, or that, if you are using
    the unstable distribution, some packages have not yet
    been created or are not available from Incoming.
    The following information should help you resolve the situation:

    The following packages have unmet dependencies:
    winehq-stable: Depends: wine-stable (= 5.0.0~bionic)
    E: Unable to correct problems, defective packages are in 'hold' state.
    0
    1. jns55
       

      sudo apt install wine
      0
  15. rabaloum Posted messages 58 Status Member 1
     
    ok

    Here is the result:

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The package wine is a virtual package provided by:
    winehq-staging 5.6~bionic
    winehq-stable 5.0.0~bionic
    winehq-devel 5.6~bionic
    wine-development 3.6-1
    You must explicitly select a package to install.

    E: Package 'wine' has no installable version
    0
  16. rabaloum Posted messages 58 Status Member 1
     
    Hello, thanks dinath
    I just installed the SDL2 Backport packages
    and relaunched the Wine installation
    a bunch of files decompressed!

    Can I install my Windows game now?
    0
    1. Dinath Posted messages 1697 Status Security Contributor 218
       
      Sure! Has Wine settled in well? If so, just launch your .exe and see if it works :)
      0
  17. rabaloum Posted messages 58 Status Member 1
     
    I am trying to launch my game from the CD-ROM drive but it shows an error
    "unable to find the autorun program"
    0
  18. rabaloum Posted messages 58 Status Member 1
     
    I just configured Wine, it loaded some packages and then it updated.

    Finally, I installed my game in the directory

    When launching (right click open with Wine), it returns an error:
    "no Windows program is configured to open this type of file"

    (I remember that I had to install DirectX on Seven to get the game to work)

    What should I do?
    0