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