在bash中敲击
sudo apt-get update
出现了错误如下:
1>sudo vim /etc/apt/sources.list.d/google-chrome.list 打开文件
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> </p>
<p> </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="黑体">Linux公社普及Linux知识</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专题</a></font>
<p><font color="#ff0000" size="4" face="Verdana" font="font"><a href="http://www.linuxidc.com/topicnews.aspx?tid=5">Fedora专题</a></font>
<p><font color="#ff0000" size="4" face="Verdana" font="font"><a href="http://www.linuxidc.com/topicnews.aspx?tid=3">SUSE专题</a></font>
<p><font color="#ff0000" size="4" face="Verdana" font="font"><a href="http://www.linuxidc.com/topicnews.aspx?tid=1">红旗Linux专题</a></font>
<p><font color="#ff0000" size="4" face="Verdana" font="font"><a href="http://www.linuxidc.com/topicnews.aspx?tid=10">RedHat专题</a></font>
<p><font color="#ff0000" size="4" face="Verdana"><a href="http://www.linuxidc.com">Linux公社</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>
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 main4>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> </p>
<p> </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="黑体">Linux公社普及Linux知识</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专题</a></font>
<p><font color="#ff0000" size="4" face="Verdana" font="font"><a href="http://www.linuxidc.com/topicnews.aspx?tid=5">Fedora专题</a></font>
<p><font color="#ff0000" size="4" face="Verdana" font="font"><a href="http://www.linuxidc.com/topicnews.aspx?tid=3">SUSE专题</a></font>
<p><font color="#ff0000" size="4" face="Verdana" font="font"><a href="http://www.linuxidc.com/topicnews.aspx?tid=1">红旗Linux专题</a></font>
<p><font color="#ff0000" size="4" face="Verdana" font="font"><a href="http://www.linuxidc.com/topicnews.aspx?tid=10">RedHat专题</a></font>
<p><font color="#ff0000" size="4" face="Verdana"><a href="http://www.linuxidc.com">Linux公社</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>