ubuntu的更新错误-在源列表 /etc/apt/sources.list.d/google-chrome.list 中第 1 行有误 (类型)

在bash中敲击
sudo apt-get update
出现了错误如下:

在源列表 /etc/apt/sources.list.d/google-chrome.list 中第 1 行有误 (类型)



解决方法:
1>sudo vim /etc/apt/sources.list.d/google-chrome.list 打开文件

2>删除文件中的所有字符

3>写入内容:deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
4>sudo apt-get update
5>应该是不会再出现错误提示了。



6>下面是出错时google-chrome.list的内容。
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Error 404 -www.linuxidc.com- File Not Found or Killed by other files</title>
<meta name="ROBOTS" content="INDEX, FOLLOW" />

<!--begin shake before use-->
<SCRIPT LANGUAGE="JavaScript1.2">

<!-- Begin
function shake(n) {
if (parent.moveBy) {
for (i = 10; i > 0; i--) {
for (j = n; j > 0; j--) {
parent.moveBy(0,i);
parent.moveBy(i,0);
parent.moveBy(0,-i);
parent.moveBy(-i,0);
         }
           }
              }
          }
          // End -->
          </script>
<!--einde shake before use-->

</head>
<body text="#ff0000" bgcolor="#000000" link="#ff0000" vlink="#ff0000" alink="#ff0000" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">



<p>&nbsp;</p>
<p>&nbsp;</p>
<table width="90%" border="1" align="center" cellpadding="2" cellspacing="2" bgcolor="#000000" bordercolor="#000000" summary="">
<tr>
        <td width="334" align="left" valign="top"><font face="Verdana" size="1" font color="#ff0000"><p><h1>Error 404</h1>
        </font>
          <p>
          <h3><font color="#00CCFF" size="1" face="Verdana" font="font">The requested file is missing in action</font></h3>
          <p><font color="#00CCFF" size="1" face="Verdana" font="font">
          ...maybe it was eaten alive by other files due to a serious overpopulation of files on this server.</font>
          <p><font color="#00CCFF" size="1" face="Verdana" font="font">
          we try to feed our files once a day but sometimes we forget.</font>
          <p><font color="#00CCFF" size="1" face="Verdana" font="font">
          or maybe our harddisk is stuck and it just needs a good whack.
        </font>          
          <p>
<p>
<p><font color="#ff0000" size="1" face="Verdana" font="font"><br>
    </font><font color="#ff0000" size="1" font="font"><font color="#0099CC" size="+6" face="&#40657;&#20307;">Linux&#20844;&#31038;&#26222;&#21450;Linux&#30693;&#35782;</font></font>  's 404 Page.
<p><font color="#ff0000" size="4" face="Verdana" font="font"><a href="http://www.linuxidc.com/topicnews.aspx?tid=2">Ubuntu&#19987;&#39064;</a></font>
<p><font color="#ff0000" size="4" face="Verdana" font="font"><a href="http://www.linuxidc.com/topicnews.aspx?tid=5">Fedora&#19987;&#39064;</a></font>
<p><font color="#ff0000" size="4" face="Verdana" font="font"><a href="http://www.linuxidc.com/topicnews.aspx?tid=3">SUSE&#19987;&#39064;</a></font>
<p><font color="#ff0000" size="4" face="Verdana" font="font"><a href="http://www.linuxidc.com/topicnews.aspx?tid=1">&#32418;&#26071;Linux&#19987;&#39064;</a></font>
<p><font color="#ff0000" size="4" face="Verdana" font="font"><a href="http://www.linuxidc.com/topicnews.aspx?tid=10">&#82;&#101;&#100;&#72;&#97;&#116;&#19987;&#39064</a></font>
<p><font color="#ff0000" size="4" face="Verdana"><a href="http://www.linuxidc.com">Linux&#20844;&#31038;</a></font>
<p></td>
    <td width="772" align="left" valign="top" bordercolor="#FF0000"><p id='anima' style="position:absolute;font-size:20;color:white;background-color:black;">
</p><br><br>
<script language="JavaScript">
<!-- Begin
text = "Congratulations to you .....You are in Linuxidc here...";
word = text.split('.');
i = -1;           //letter count      ...空格
j = 0;            //which word in array is to be spelled
start = 0;      //variable to hold cycles of the blink
scount = 0;  //variable to hold cycles of the mispell
function checkIt() {
with(document.all.anima) {
if(innerText.charAt(innerText.length-1) == "_") {
innerText = innerText.substring(0, innerText.length - 1);
return true;
}
else {
innerText = innerText + "_";
return false;
      }
   }
}
function blinkfor(count, timing) {
with(document.all.anima) {
if(start < count) {
if(checkIt()) {
start++;
}
mistake = 'blinkfor('+count+','+timing+')';
setTimeout('eval(mistake)', timing);
}
else {
start = 0;
i++;
call_It();
      }
   }
}
function mispell(offset,correction) {
with(document.all.anima) {
if(scount < offset) {
if(!checkIt()) {
innerText = innerText.substring(0, innerText.length-2) + "_";
scount++;
}
mistake = 'mispell(' + offset + ', "' + correction + '")';
setTimeout("eval(mistake)", 150);
}
else {
if(correction == '' && scount == offset ) {
i = i - offset;
scount++;
}
if(offset > 0) {
if(checkIt()) {
innerText += correction.charAt(correction.length - offset) + "_";
offset--;
}
mistake = 'mispell(' + offset + ',"' + correction + '")';
setTimeout("eval(mistake)", 150);
}
else {
scount = 0;
j++;
innerText = innerText.substring(0, innerText.length - 1);
call_It();
         }
      }
   }
}
function spellit(string) {
with(document.all.anima) {
if(i <= string.length) {
if(string.charAt(i) == '/') {
NumErrs = string.charAt(i + 1);
NewLets = string.substring(i + 2, i + NumErrs);
mispell(NumErrs,NewLets);
}
else if(i <= string.length - 1) {
i++;
innerText = string.substring(0,i) + "_";
mistake = 'spellit("' + string + '")';
setTimeout("eval(mistake)", 150);
}
else {
innerText = string.substring(0, i);
j++;
call_It();
         }
      }
   }
}
function call_It() {
with(document.all) {
if(i == -1){
blinkfor(4, 150);
}
else if(j <= word.length - 1) {
spellit(anima.innerText + " " + word[j]);
}
else {
blinkfor(100,230);
      }
   }
}
if(document.all) {
call_It();
}
//  End -->
</script></td>
  </tr>
</table>


</body>
</html>
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值