今天的apt-get有点不对劲

软件源讨论区
回复
xinxin19871118
帖子: 40
注册时间: 2011-11-15 20:43
送出感谢: 0
接收感谢: 0

今天的apt-get有点不对劲

#1

帖子 xinxin19871118 » 2014-05-11 20:35

虽然ubuntu用的不是太多,但是apt-get这个命令还是很熟的。
而且前不久(一个来月以前吧),我还用apt-get好好的装了个arm-linux 的cross compiler

今天奇怪的地方在于,我可以apt-get update,虽说那有很多 忽略 命中 啥的我看不懂,但以前我也经常update也是这德性啊。
大概是没啥问题的。
当然今天我动了一下 sources.list,但我只是把台湾源去掉了
——因为 即使保留了,台湾源,也在最后的时候出现很多 404 not found 这个我以前倒是没见过。

现在想想,我估计大概是这里除了问题。
可是之前用的好好的源,怎么就出问题了呢?

我实在想不懂。
而且如果我没记错,台湾源也是我后来自己加上去的。

然后接下来我就发现,无论我apt-get install什么,我本来是想要装个minicom 或者cutecom的
现在我决定随便试试其他软件,于是我随手试了试 amule 电驴。
这次我耐着性子等,结果我刚刚看了看,居然出现了奇怪的 连接错误。

于是我再一次update---其实我是想准备好东西截图来发贴的......
结果我突然发现,全都命中了~
然后,我又看到忽略了的,真的很奇怪,哪里出问题了呢?谁能说说?
xinxin19871118
帖子: 40
注册时间: 2011-11-15 20:43
送出感谢: 0
接收感谢: 0

Re: 今天的apt-get有点不对劲

#2

帖子 xinxin19871118 » 2014-05-11 20:52

补充一点,现在update过程已经不会出现404 not found了
现在最好的结果是 最后只有3个被忽略了,其他全命中
但我试着再装amule,好像还是不对头,卡着就不对啊。。。。。
头像
九天星
帖子: 1370
注册时间: 2007-07-14 20:45
送出感谢: 67 次
接收感谢: 39 次

Re: 今天的apt-get有点不对劲

#3

帖子 九天星 » 2015-08-29 19:45

源服务器的问题,不是你的问题,莫担心。等几天就好了。
poloshiao
论坛版主
帖子: 18274
注册时间: 2009-08-04 16:33
送出感谢: 21 次
接收感谢: 1948 次

Re: 今天的apt-get有点不对劲

#4

帖子 poloshiao » 2015-08-29 21:41

在最后的时候出现很多 404 not found
把下面指令 複製 貼進終端機 執行
1. sudo cat /etc/apt/sources.list
2. sudo ls -al /etc/apt/sources.list.d
把結果直接 選取/複製 貼上來
914134
帖子: 10
注册时间: 2015-09-07 15:41
系统: Ubuntu14.04.2LTS
送出感谢: 4 次
接收感谢: 0

Re: 今天的apt-get有点不对劲

#5

帖子 914134 » 2015-09-07 16:47

poloshiao 写了:
在最后的时候出现很多 404 not found
把下面指令 複製 貼進終端機 執行
1. sudo cat /etc/apt/sources.list
2. sudo ls -al /etc/apt/sources.list.d
把結果直接 選取/複製 貼上來
$ sudo cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 14.04.2 LTS _Trusty Tahr_ - Release i386 (20150218.1)]/ trusty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://mirrors.sohu.com/ubuntu/ trusty main restricted
deb-src http://mirrors.sohu.com/ubuntu/ trusty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted
deb-src http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://mirrors.sohu.com/ubuntu/ trusty universe
deb-src http://mirrors.sohu.com/ubuntu/ trusty universe
deb http://mirrors.sohu.com/ubuntu/ trusty-updates universe
deb-src http://mirrors.sohu.com/ubuntu/ trusty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://mirrors.sohu.com/ubuntu/ trusty multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-updates multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse

deb http://mirrors.sohu.com/ubuntu/ trusty-security main restricted
deb-src http://mirrors.sohu.com/ubuntu/ trusty-security main restricted
deb http://mirrors.sohu.com/ubuntu/ trusty-security universe
deb-src http://mirrors.sohu.com/ubuntu/ trusty-security universe
deb http://mirrors.sohu.com/ubuntu/ trusty-security multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu trusty partner
# deb-src http://archive.canonical.com/ubuntu trusty partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu trusty main
# deb-src http://extras.ubuntu.com/ubuntu trusty main


$ sudo ls -al /etc/apt/sources.list.d
总用量 16
drwxr-xr-x 2 root root 4096 9月 7 12:42 .
drwxr-xr-x 6 root root 4096 9月 7 12:42 ..
-rw-r--r-- 1 root root 67 9月 7 15:54 sogoupinyin.list
-rw-r--r-- 1 root root 67 9月 7 15:54 sogoupinyin.list.save

$ sudo apt-get clean
$ sudo apt-get update
错误 http://mirrors.sohu.com trusty InRelease

错误 http://mirrors.sohu.com trusty-updates InRelease

错误 http://mirrors.sohu.com trusty-backports InRelease

错误 http://mirrors.sohu.com trusty-security InRelease

错误 http://mirrors.sohu.com trusty Release.gpg
无法解析域名“mirrors.sohu.com”
错误 http://mirrors.sohu.com trusty-updates Release.gpg
无法解析域名“mirrors.sohu.com”
错误 http://mirrors.sohu.com trusty-backports Release.gpg
无法解析域名“mirrors.sohu.com”
错误 http://mirrors.sohu.com trusty-security Release.gpg
无法解析域名“mirrors.sohu.com”
正在读取软件包列表... 完成
W: 无法下载 http://mirrors.sohu.com/ubuntu/dists/trusty/InRelease

W: 无法下载 http://mirrors.sohu.com/ubuntu/dists/tr ... /InRelease

W: 无法下载 http://mirrors.sohu.com/ubuntu/dists/tr ... /InRelease

W: 无法下载 http://mirrors.sohu.com/ubuntu/dists/tr ... /InRelease

W: 无法下载 http://mirrors.sohu.com/ubuntu/dists/trusty/Release.gpg 无法解析域名“mirrors.sohu.com”

W: 无法下载 http://mirrors.sohu.com/ubuntu/dists/tr ... elease.gpg 无法解析域名“mirrors.sohu.com”

W: 无法下载 http://mirrors.sohu.com/ubuntu/dists/tr ... elease.gpg 无法解析域名“mirrors.sohu.com”

W: 无法下载 http://mirrors.sohu.com/ubuntu/dists/tr ... elease.gpg 无法解析域名“mirrors.sohu.com”

W: Some index files failed to download. They have been ignored, or old ones used instead.

$ ping mirrors.sohu.com
PING mirrors.sohu.com (221.236.12.140) 56(84) bytes of data.
64 bytes from 221.236.12.140: icmp_seq=1 ttl=47 time=53.4 ms
64 bytes from 221.236.12.140: icmp_seq=2 ttl=47 time=53.9 ms
64 bytes from 221.236.12.140: icmp_seq=3 ttl=47 time=53.2 ms
64 bytes from 221.236.12.140: icmp_seq=4 ttl=47 time=53.2 ms
64 bytes from 221.236.12.140: icmp_seq=5 ttl=47 time=52.9 ms
64 bytes from 221.236.12.140: icmp_seq=6 ttl=47 time=54.3 ms
^C
--- mirrors.sohu.com ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5006ms
rtt min/avg/max/mdev = 52.968/53.540/54.367/0.476 ms

换别的源都这样,请高手指点,谢谢。。。
回复

回到 “新立得和软件源”