MATE 18.04 Malformed Entry 52

Hello, first time posting here, huge fan of the distro.

I'm having problems with updating; initially I was trying to install WINE on my system, but when I added the repositories to my sources and went to update, this error occurred. I since then removed the repositories, and yet, it still throws the error. The specifically states

Malformed entry 52 in list file /etc/apt/sources.list (component)

here is my sources.list file : https://pastebin.com/sNCbuf0a

I would very much appreciate help on this matter because this is kind of concerning to me. I simply wanted to install WINE to emulate a PS install I have on a separate partition. Thank you in the meantime!

Welcome to Ubuntu MATE community.

You have to remove last 4 lines with ~ characters from the /etc/apt/sources.list file by using one of the editors:

  • Nano - sudo nano /etc/apt/sources.list , remove last 4 lines, press Ctrl+O to save and then Ctrl+X to exit;
  • Pluma - sudo pluma /etc/apt/sources.list , remove last 4 lines, press Ctrl+S to save and then close the editor.

Then update the package lists by sudo apt-get update .

About installing of Wine on 18.04 LTS check the thread on AskUbuntu.

2 Likes

probably there is a file (.list) in /etc/apt/sources.list.d/ that adds wine repo but the wine repo line should be deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main (note there is a space before 'bionic main')

2 Likes

Thank you so much!! I'm glad it was this easy to fix!

1 Like