0

So I recently tried to install playonlinux on Ubuntu 16.04 and it was installing but stopped halfway through the installation, so I closed it and that was where I messed up.
Now every time I enter

sudo apt-get update

in the terminal the error is:

E: Type '--2017-01-12' is not known on line 1 in source list /etc/apt/sources.list.d/playonlinux.list  
E: The list of sources could not be read.

marked as duplicate by David Foerster, karel, Fabby, Zanna, Eric Carvalho Apr 3 '17 at 16:08

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Which version of Ubuntu are you running? – L. D. James Apr 2 '17 at 18:26
  • I'm running Ubuntu Version 16.04 – Javi Apr 2 '17 at 18:30
  • Try sudo apt remove --purge {installation}, then try again. – EODCraft Staff Apr 2 '17 at 18:30
  • I did this and it said: N: Ignoring file 'playonlinux.list.save.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension E: Type '--2017-01-12' is not known on line 1 in source list /etc/apt/sources.list.d/playonlinux.list E: The list of sources could not be read. – Javi Apr 2 '17 at 18:37
  • What does that mean? I'm new to linux – Javi Apr 2 '17 at 18:38
1

Remove, rename or disable this repository entry file:

/etc/apt/sources.list.d/playonlinux.list

Then run these commands:

$ sudo apt update
$ sudo apt apt autoremove
$ sudo apt install --reinstall playonlinux

Not the answer you're looking for? Browse other questions tagged or ask your own question.