WINE on Ubuntu 17.10

Ok, there are errors but they’re not directly related to Wine. On a 64 bit distro, Wine installs a lot of 32 bit packages (the ones with :i386 at the end) as dependancies and in your case, it’s the installation of one of these packages that breaks (libsane1, which is a library that handles scanners).

First, try this:

sudo apt-get clean
sudo apt-get autoclean
sudo apt-get install --reinstall libsane1:i386

Have you tried to install at some point packages related to a scanner (maybe a driver)? Did you at some point use the Proposed repository (if you haven’t, don’t −this is not a suggestion to do it)?

emjaycee@ubuntu-mate-mjc:~$ sudo apt-get install --reinstall libsane1:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  cabextract icoutils libmspack0 libwxbase3.0-0v5 libwxgtk3.0-0v5
  python-wxgtk3.0 python-wxversion
Use 'sudo apt autoremove' to remove them.
Suggested packages:
  hplip:i386
The following NEW packages will be installed:
  libsane1:i386
0 to upgrade, 1 to newly install, 0 to remove and 3 not to upgrade.
Need to get 0 B/2,185 kB of archives.
After this operation, 10.8 MB of additional disk space will be used.
(Reading database ... 334879 files and directories currently installed.)
Preparing to unpack .../libsane1_1.0.27-1~experimental2ubuntu2.1_i386.deb ...
Unpacking libsane1:i386 (1.0.27-1~experimental2ubuntu2.1) ...
dpkg: error processing archive /var/cache/apt/archives/libsane1_1.0.27-1~experimental2ubuntu2.1_i386.deb (--unpack):
 trying to overwrite shared '/lib/udev/hwdb.d/20-sane.hwdb', which is different from other instances of package libsane1:i386
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libsane1_1.0.27-1~experimental2ubuntu2.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
emjaycee@ubuntu-mate-mjc:~$ 

Well, apart from me being an idiot the first time and leaving out the ‘1’ and having to do it again (I know I should copy/paste rather than type lol) that is the summary from the ‘proper’ final command.

As to your other questions - yes, I have been trying very damn hard to install my Brother MFC-L2710DW printer scanner but thus far WITHOUT success (actually thought I’d succeeded today but something wasn’t quite right and it printed blank pages).

For some reason I keep getting errors when I try to use the local repositories through the software boutique. Whenever I try to ‘refresh’ the repositories I keep getting an error related to my internet connection… which I KNOW is working properly lol.
Cheers
Michael

If you’re behind a proxy, I know there’s a bug, do a search on the forum, there were recent messages about this.

As for the rest, it won’t be easy to fix and we might need to uninstall your Brother drivers (and reinstall them afterwards).

Does your printer have an integrated scanner? If not, do you have a scanner?

Give me the output of:

apt-cache policy libsane1 libsane1:i386
dpkg -l | grep Brother
emjaycee@ubuntu-mate-mjc:~$ apt-cache policy libsane1 libsane1:i386
libsane1:
  Installed: 1.0.27-1~experimental2ubuntu2.1
  Candidate: 1.0.27-1~experimental2ubuntu2.1
  Version table:
 *** 1.0.27-1~experimental2ubuntu2.1 500
        500 au.archive.ubuntu.com/ubuntu artful-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1.0.27-1~experimental2ubuntu1 500
        500 au.archive.ubuntu.com/ubuntu artful/main amd64 Packages
libsane1:i386:
  Installed: (none)
  Candidate: 1.0.27-1~experimental2ubuntu2.1
  Version table:
     1.0.27-1~experimental2ubuntu2.1 500
        500 au.archive.ubuntu.com/ubuntu artful-updates/main i386 Packages
     1.0.27-1~experimental2ubuntu1 500
        500 au.archive.ubuntu.com/ubuntu artful/main i386 Packages
emjaycee@ubuntu-mate-mjc:~$ dpkg -l | grep Brother
ii  brscan-skey                           0.2.4-1                                  amd64        Brother Linux scanner S-KEY tool
ii  brscan4                               0.4.4-3                                  amd64        Brother Scanner Driver
ii  printer-driver-brlaser                3-5                                      amd64        printer driver for (some) Brother laser printers
ii  printer-driver-ptouch                 1.4.2-2                                  amd64        printer driver Brother P-touch label printers
emjaycee@ubuntu-mate-mjc:~$ 

I’ll have to read this more closely myself lol.

UGH. I had to get ‘inventive’ and hopefully it is inventive enough lol. Every time you see the number ‘500’ there is a http:// straight after it. Newbies aren’t allowed to put more than 2 links in a post either lol.

Cheers
M.

Ok, everything is fine so far. So, we’ll start by uninstalling the Brother drivers:

sudo apt-get remove --purge brscan-skey brscan4 printer-driver-brlaser printer-driver-ptouch

And tell me if your printer has an integrated scanner or not. Or if you have a dedicated scanner.

If everything is ok with the removal of the Brother drivers, try this:

sudo apt-get install -f
emjaycee@ubuntu-mate-mjc:~$ sudo apt-get remove --purge brscan-skey brscan4 printer-driver-brlaser printer-driver
[sudo] password for emjaycee: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package printer-driver
emjaycee@ubuntu-mate-mjc:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  cabextract icoutils libieee1284-3:i386 libmspack0 libwxbase3.0-0v5
  libwxgtk3.0-0v5 python-wxgtk3.0 python-wxversion
Use 'sudo apt autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 3 not to upgrade.
emjaycee@ubuntu-mate-mjc:~$ 

Yep, it’s an MFC a multi-function printer/copier/scanner/fax and probably something else as well… but I only really want it for printing and scannin.
Cheers
M.

You didn’t copy the whole command, the last package should be printer-driver-ptouch and not printer-driver. So:

sudo apt-get remove --purge printer-driver-ptouch

When it’s done, try this again:

sudo apt-get install --reinstall libsane1:i386
emjaycee@ubuntu-mate-mjc:~$ sudo apt-get remove --purge printer-driver-ptouch
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  cabextract icoutils libieee1284-3:i386 libmspack0 libwxbase3.0-0v5
  libwxgtk3.0-0v5 python-wxgtk3.0 python-wxversion
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  printer-driver-ptouch*
0 to upgrade, 0 to newly install, 1 to remove and 3 not to upgrade.
After this operation, 63.5 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 334878 files and directories currently installed.)
Removing printer-driver-ptouch (1.4.2-2) ...
Processing triggers for cups (2.2.4-7ubuntu3) ...
Processing triggers for libc-bin (2.26-0ubuntu2.1) ...
Processing triggers for udev (234-2ubuntu12.1) ...
emjaycee@ubuntu-mate-mjc:~$ sudo apt-get install --reinstall libsane1:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  cabextract icoutils libmspack0 libwxbase3.0-0v5 libwxgtk3.0-0v5
  python-wxgtk3.0 python-wxversion
Use 'sudo apt autoremove' to remove them.
Suggested packages:
  hplip:i386
The following NEW packages will be installed:
  libsane1:i386
0 to upgrade, 1 to newly install, 0 to remove and 3 not to upgrade.
Need to get 0 B/2,185 kB of archives.
After this operation, 10.8 MB of additional disk space will be used.
(Reading database ... 334873 files and directories currently installed.)
Preparing to unpack .../libsane1_1.0.27-1~experimental2ubuntu2.1_i386.deb ...
Unpacking libsane1:i386 (1.0.27-1~experimental2ubuntu2.1) ...
dpkg: error processing archive /var/cache/apt/archives/libsane1_1.0.27-1~experimental2ubuntu2.1_i386.deb (--unpack):
 trying to overwrite shared '/lib/udev/hwdb.d/20-sane.hwdb', which is different from other instances of package libsane1:i386
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libsane1_1.0.27-1~experimental2ubuntu2.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
emjaycee@ubuntu-mate-mjc:~$ 

Sorry… just didn’t ‘copy’ the full command… still getting the same errors again though?

M.

Yep. That’s a bit annoying.

If you try to reinstall Wine, does it still want to install libsane1:i386?

sudo apt-get install --install-recommends winehq-stable

EDIT: it appears that it’s a known bug.

emjaycee@ubuntu-mate-mjc:~$ sudo apt-get install --install-recommends winehq-stable
Reading package lists... Done
Building dependency tree       
Reading state information... Done
winehq-stable is already the newest version (3.0.0~artful).
The following packages were automatically installed and are no longer required:
  cabextract icoutils libieee1284-3:i386 libmspack0 libwxbase3.0-0v5
  libwxgtk3.0-0v5 python-wxgtk3.0 python-wxversion
Use 'sudo apt autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 3 not to upgrade.
emjaycee@ubuntu-mate-mjc:~$ 

Don’t think I see libsane1:i386 mentioned in there… not yet anyway… and yeah, I think there is an issue/bug in there somewhere from what I’ve seen/read as well.

M.

Ok. I see you have three packages marked as not to upgrade. Do this to check if they’re related to the issue:

sudo apt-get update && sudo apt-get dist-upgrade
emjaycee@ubuntu-mate-mjc:~$ wine --version
wine-3.0
emjaycee@ubuntu-mate-mjc:~$ sudo apt-get update && sudo apt-get dist-upgrade
[sudo] password for emjaycee: 
Hit:1 au.archive.ubuntu.com/ubuntu artful InRelease
Get:2 au.archive.ubuntu.com/ubuntu artful-updates InRelease [78.6 kB]   
Get:3 au.archive.ubuntu.com/ubuntu artful-backports InRelease [72.2 kB] 
Hit:4 archive.canonical.com/ubuntu artful InRelease                     
Get:5 security.ubuntu.com/ubuntu artful-security InRelease [78.6 kB]    
Get:6 au.archive.ubuntu.com/ubuntu artful/main amd64 DEP-11 Metadata [397 kB]
Get:7 ppa.launchpad.net/ubuntu-mate-dev/welcome/ubuntu artful InRelease [15.9 kB]
Get:8 au.archive.ubuntu.com/ubuntu artful/main DEP-11 64x64 Icons [263 kB]
Get:9 au.archive.ubuntu.com/ubuntu artful/universe amd64 DEP-11 Metadata [2,845 kB]
Err:7 ppa.launchpad.net/ubuntu-mate-dev/welcome/ubuntu artful InRelease 
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FB01CC26162506E7
Get:10 au.archive.ubuntu.com/ubuntu artful/universe DEP-11 64x64 Icons [7,915 kB]
Hit:11 deb.playonlinux.com xenial InRelease                             
Hit:12 dl.winehq.org/wine-builds/ubuntu artful InRelease               
Get:13 security.ubuntu.com/ubuntu artful-security/main amd64 DEP-11 Metadata [2,924 B]
Get:14 security.ubuntu.com/ubuntu artful-security/main DEP-11 64x64 Icons [4,471 B]
Get:15 security.ubuntu.com/ubuntu artful-security/universe amd64 DEP-11 Metadata [10.4 kB]
Get:16 security.ubuntu.com/ubuntu artful-security/universe DEP-11 64x64 Icons [10.2 kB]
Get:17 au.archive.ubuntu.com/ubuntu artful/multiverse amd64 DEP-11 Metadata [43.8 kB]
Get:18 au.archive.ubuntu.com/ubuntu artful/multiverse DEP-11 64x64 Icons [207 kB]
Get:19 au.archive.ubuntu.com/ubuntu artful-updates/main amd64 Packages [174 kB]
Get:20 au.archive.ubuntu.com/ubuntu artful-updates/main i386 Packages [172 kB]
Get:21 au.archive.ubuntu.com/ubuntu artful-updates/main amd64 DEP-11 Metadata [73.3 kB]
Get:22 au.archive.ubuntu.com/ubuntu artful-updates/main DEP-11 64x64 Icons [49.2 kB]
Get:23 au.archive.ubuntu.com/ubuntu artful-updates/universe amd64 Packages [69.8 kB]
Get:24 au.archive.ubuntu.com/ubuntu artful-updates/universe i386 Packages [69.3 kB]
Get:25 au.archive.ubuntu.com/ubuntu artful-updates/universe amd64 DEP-11 Metadata [48.5 kB]
Get:26 au.archive.ubuntu.com/ubuntu artful-updates/universe DEP-11 64x64 Icons [52.8 kB]
Get:27 au.archive.ubuntu.com/ubuntu artful-backports/universe amd64 Packages [3,404 B]
Get:28 au.archive.ubuntu.com/ubuntu artful-backports/universe i386 Packages [3,396 B]
Get:29 au.archive.ubuntu.com/ubuntu artful-backports/universe amd64 DEP-11 Metadata [4,712 B]
Get:30 au.archive.ubuntu.com/ubuntu artful-backports/universe DEP-11 64x64 Icons [2,717 B]
Ign:31 download.videolan.org/pub/debian/stable  InRelease               
Hit:32 download.videolan.org/pub/debian/stable  Release
Reading package lists... Done
W: GPG error: ppa.launchpad.net/ubuntu-mate-dev/welcome/ubuntu artful InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FB01CC26162506E7
E: The repository 'ppa.launchpad.net/ubuntu-mate-dev/welcome/ubuntu artful InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Skipping acquire of configured file 'main/source/Sources' as repository 'https://dl.winehq.org/wine-builds/ubuntu artful InRelease' does not seem to provide it (sources.list entry misspelt?)
emjaycee@ubuntu-mate-mjc:~$ wine --version
wine-3.0
emjaycee@ubuntu-mate-mjc:~$ 

Okay, I had to take out 33 instances of http:// to let this have a chance of going through. Before and after that I also did a wine version check and both times it’s telling me I have 3.0 installed… I think?

Does that mean you’ve done it… or am I missing something lol?
M.

I guess it’s somewhat ok. The installation of Wine probably went through despite the issue with libsane. Anyway, there are some issues with some of your sources:

  • the Ubuntu MATE dev repo is not signed; not sure how you added it as it’s supposed to sign itself when adding it;
  • the repo for Wine triggers a warning that I don’t really understand, especially as it seems ok in your sources.list.

We’ll try to fix the first issue:

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 162506E7

As for the second one, as I said, I’m not sure. It might be that the repo doesn’t provide sources packages. You don’t really need them anyway. Let’s tidy up a bit your sources. First, create a new dedicated .list file for the Wine repo (it’ll be better than keeping it in the main sources.list):

sudo pluma /etc/apt/sources.list.d/winehq.list

In the blank file that opens, put this and save the file:

deb https://dl.winehq.org/wine-builds/ubuntu/ artful main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ artful main

Then, open your main sources.list:

sudo pluma /etc/apt/sources.list

Delete the two lines at the end (should be lines 52 & 53, the two about dl.winehq.org/wine-builds) and save the file.

Then, reload the sources again and tell me if you still have the errors and warnings at the end (the lines starting with W:, E: and N: in your previous message):

sudo apt-get update

Okay. But before I do anything else… I just wanted you to know that the program I wanted has downloaded and executed with WINE. There is an error associated with it but I’ve opened it and it is definitely usable. If I go ahead with the commands you’ve got above, am I likely to lose the program I just managed to add? Sorry to pre-empt you with this but I got a bit excited lol.

So, definitely go ahead with this new stuff as well?

And, before I forget or get distracted, an absolutely HUGE thank you for all the work you’ve put in on this… it’s unbelievable… I wouldn’t have had a clue what you were even doing most of the time… let alone knowing all the commands to write!

Oh, it wouldn’t at all surprise me if I get kicked off here again soon for too many messages… just so you know lol. So, if you still think I should do the last set let me know and I’ll still do them, even if you don’t get the results until tomorrow or something.

Thank you
Michael

Don’t worry, your Wine installation won’t be modified. :wink:

What I’m asking you to do is just a bit of tidying/fixes in your sources so you don’t have other issues when installing softwares, but it’s not related to Wine.

After it’s done, you’ll reinstall your printer driver and we’ll quickly look into your blank pages issues, I might know why it happens (I had the same issue on a Brother printer too, so hopefully it’s the same problem).

Okay. Do I assume I’ll be opening a ‘pluma’ file and saving it eventually with all this? Do you want me to save the file in a particular location at all?

emjaycee@ubuntu-mate-mjc:~$ sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 162506E7
[sudo] password for emjaycee: 
Executing: /tmp/apt-key-gpghome.2Idtlk1y7Q/gpg.1.sh --recv-keys --keyserver keyserver.ubuntu.com 162506E7
gpg: keyserver receive failed: No keyserver available
emjaycee@ubuntu-mate-mjc:~$ 

There’s the result of the first one anyway. I assume no keyserver isn’t a good thing lol.

Will do what I can of the next bits and see what happens… just not sure about the file I’m supposed to be opening and what exactly i’m supposed to do with it… but one step at a time :slight_smile:

M.

Pluma is the MATE text editor. The commands I gave will open existing files, so just save (ctrl + S) after the modifications, it will update these files. Don’t save as different names/locations or anything.

The keyserver issue is not normal. Eventually try with the full key with the following command but it looks like it can’t find the server at all, which is surprising. Are you behind a proxy?

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 709A860A600B9A61FEF5346AFB01CC26162506E7
emjaycee@ubuntu-mate-mjc:~$ sudo pluma /etc/apt/sources.list.d/winehq.list

** (pluma:15137): WARNING **: Could not load Pluma repository: Typelib file for namespace 'Pluma', version '1.0' not found

And, it didn’t even leave me with a ‘emjaycee@ubuntu-mate-mjc:~$’ to start the next command with? Can I just type that myself? And I just hit ‘save’ on the pluma file but I’ve still left it open on my desktop.

M.

Yeah, don’t worry about the warning. It opened Pluma with the file, right? If that’s the case, make the edits, save the file (ctrl + S) and close Pluma (I didn’t say it because I thought it was obvious), you’ll get back to the command line.

When you run a command in the terminal, you can’t continue until it finishes. So, when opening Pluma, it “locks” the terminal until you close it.
It’s possible to run commands and get the input back but you’ll see this later. :slight_smile:

emjaycee@ubuntu-mate-mjc:~$ sudo apt-get update && sudo apt-get dist-upgrade
Hit:1 au.archive.ubuntu.com/ubuntu artful InRelease
Hit:2 au.archive.ubuntu.com/ubuntu artful-updates InRelease             
Hit:3 au.archive.ubuntu.com/ubuntu artful-backports InRelease           
Get:4 security.ubuntu.com/ubuntu artful-security InRelease [78.6 kB]    
Hit:5 archive.canonical.com/ubuntu artful InRelease                     
Hit:7 deb.playonlinux.com xenial InRelease                              
Hit:8 dl.winehq.org/wine-builds/ubuntu artful InRelease                
Ign:9 download.videolan.org/pub/debian/stable  InRelease                
Get:6 ppa.launchpad.net/ubuntu-mate-dev/welcome/ubuntu artful InRelease [15.9 kB]
Get:10 security.ubuntu.com/ubuntu artful-security/main amd64 DEP-11 Metadata [2,924 B]
Hit:11 download.videolan.org/pub/debian/stable  Release                 
Err:6 ppa.launchpad.net/ubuntu-mate-dev/welcome/ubuntu artful InRelease 
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FB01CC26162506E7
Get:13 security.ubuntu.com/ubuntu artful-security/universe amd64 DEP-11 Metadata [10.4 kB]
Reading package lists... Done                
W: GPG error: ppa.launchpad.net/ubuntu-mate-dev/welcome/ubuntu artful InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FB01CC26162506E7
E: The repository 'ppa.launchpad.net/ubuntu-mate-dev/welcome/ubuntu artful InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
emjaycee@ubuntu-mate-mjc:~$ 

Multiple http:// deletes again. Did i run the command you wanted me to, or did I run the wrong one?

M.