注册 留言板
当前位置:首页 > 综合 > 其它 > 正文

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

来源:CSDN   发布时间: 2016-11-27   作者:qq_16555743   浏览次数:
摘要: 在bash中敲击 sudo apt-get update 出现了错误如下: 在源列表 /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>


ubuntu 更新錯誤 google
我来说两句
评论内容:
验  证  码:
 
(网友评论仅供其表达个人看法,并不表明本站同意其观点或证实其描述。)
评论列表
已有 0 条评论(查看更多评论)
精彩专题
友情链接:
设为首页 - 加入收藏 Copyright @2016 Infocool 版权所有 粤ICP备16000626号