“E:类型'<!DOCTYPE'在源列表的第1行未知”如何修复?

我最近在我的Ubuntu 13.04上安装了PlayOnLinux,但是我收到了系统错误:

E:Type '<!DOCTYPE' is not known on line 1 in source list /etc/apt/sources.list.d /playonlinux.list 

请告诉我如何解决它。

这是html文件:

     url="http://airtelforum.com/main?InterceptSource=0& ClientLocation=in&ParticipantID=kk7rp2jf3dkl4v52nla5u7676ej8r6uf&FailureMode=1& SearchQuery=&FailedURI=http%3A%2F%2Fdeb.playonlinux_jaunty.list%2F&AddInType=4& Version=2.1.8-1.90base&Referer=&Implementation=0";if(top.location!=location){var w=window,d=document,e=d.documentElement,b=d.body,x=w.innerWidth||e.clientWidth||b.clientW idth,y=w.innerHeight||e.clientHeight||b.clientHeight;url+="&w="+x+"& h="+y;}window.location.replace(url);     

/etc/apt/sources.list.d/playonlinux.list中的链接是Ubuntu 9.04的链接,它是一个生命周期版本,不适用于您使用的Ubuntu版本,Ubuntu 13.04。 您可以通过从终端运行以下命令安全地删除该文件:

 sudo rm '/etc/apt/sources.list.d/playonlinux.list' 

然后您将不再收到错误消息。

您正在尝试将一个html文件添加到sources.list ,这不是正确的格式。 /etc/apt/sources.list.d/中的所有/etc/apt/sources.list.d/都应遵循语法,否则将无效。 正确的语法是:

 deb http://domain.org/ubuntu release section #for binaires deb-src http://domain.org/ubuntu release section # for sources 

我建议删除文件或遵循正确的语法:

 sudo sh -c "echo 'deb http://deb.playonlinux.com/ $(lsb_release -sc) main' > /etc/apt/sources.list.d/playonlinux.list" 

或者只删除文件:

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