ubuntu软件源 sudo apt-get update更新列表

复制代码

代码如下:

#电子科技大学</p><p>deb http://ubuntu.uestc.edu.cn/ubuntu/ quantal main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ quantal-backports main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ quantal-proposed main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ quantal-security main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ quantal-updates main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ quantal main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ quantal-backports main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ quantal-proposed main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ quantal-security main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ quantal-updates main restricted universe multiverse</p><p># sohu 更新服务器:
deb http://mirrors.sohu.com/ubuntu/ karmic main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ karmic-security main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ karmic-updates main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ karmic-proposed main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ karmic-backports main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ karmic main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ karmic-security main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ karmic-updates main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ karmic-proposed main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ karmic-backports main restricted universe multiverse</p><p># 骨头兄亲自搭建并维护这个Ubuntu源(该源位于浙江杭州百兆共享宽带的电信机房):
deb http://ubuntu.srt.cn/ubuntu/ karmic main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/ karmic-security main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/ karmic-updates main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/ karmic-proposed main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/ karmic-backports main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ karmic main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ karmic-security main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ karmic-updates main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ karmic-proposed main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ karmic-backports main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu/ubuntu-cn karmic main restricted universe multiverse</p><p># Archive.ubuntu.com更新服务器(欧洲,此为官方源,电信网通用户使用):
deb http://archive.ubuntu.com/ubuntu/ karmic main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ karmic-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ karmic-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ karmic-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ karmic main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ karmic-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ karmic-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ karmic-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse</p><p># Mirrors.shlug.org更新服务器(电信服务器,Ubuntu China Official Mirror, maintained by Shanghai Linux User Group):
deb http://cn.archive.ubuntu.com/ubuntu karmic main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu karmic-security main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu karmic-updates main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu karmic-backports main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu karmic-proposed main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu karmic main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu karmic-security main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu karmic-updates main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu karmic-backports main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu karmic-proposed main restricted universe multiverse</p><p># Mirror.lupaworld.com更新服务器(浙江省杭州市双线服务器):
deb http://mirror.lupaworld.com/ubuntu karmic main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu karmic-security main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu karmic-updates main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu karmic-backports main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu karmic-proposed main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu karmic main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu karmic-security main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu karmic-updates main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu karmic-backports main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu karmic-proposed main restricted universe multiverse

执行命令更新

复制代码

代码如下:

sudo apt-get update

使用sudo apt-get update问题总结

复制代码

代码如下:

sudo apt-get update

显示为

E: 无法获得锁 /var/lib/apt/lists/lock - open (11 Resource temporarily unavailable)
E: 无法对状态列表目录加锁

直接把lock 文件删除就是了..

sudo rm /var/lib/apt/lists/lock

我在网上查了一下,还有下面方法

先查看一下是否有使用apt-get的程序,终端输入:ps -aux,找到使用apt-get的程序(最后一列),查看其PID号,然后杀死其进程,输入sudo kill PID,然后升级一下软件源,sudo apt-get update,sudo apt-get dist-update.

Ubuntu 更新软件源出错问题

当执行sudo apt-get update来更新软件源时,若出现以下类似错误: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/Release.gpg Something wicked happened resolving 'cn.archive.ubuntu.com:http' (-5 - No address associated with hostname)

说明DNS解析出现了问题,应着重查看以下方面:

1. cat /etc/resolv.conf

查看里面的domain, search和nameserver配置是否正确。

若通过代理上网,请查看:

2. cat /etc/apt/apt.conf

在里面添加设置:

Acquire::http::proxy "http://xxxxx.xxxxx.xxxx:1080" , 注意是http, 不是https

3. 查看 “系统”--> “首选项”--> “网络代理”,里面的代理是否设置正确

(0)

相关推荐

  • ubuntu软件源的更改

    ubuntu安装好后,里面的软件比较少,那么如何安装其他软件呢? 使用命令:apt-get install 软件名字 --------------------------------------- 上 ...

  • 使用apt-mirror搭建Ubuntu软件源的实例教程

    搭建自有Ubuntu源的原因有很多 节省外网带宽提前下载,缓解国外源下载缓慢私有定制软件包发布 本文测试环境 ubuntu 14.04(LTS) 64位apt-mirror 版本 0.5.1-1ngi ...

  • 用国内软件源为Ubuntu的apt-get提速方法

    默认的,apt-get会连接http://us.archive.ubuntu.com/,看域名就知道这是一个美国的服务器。身处我们伟大的中华局域网中连美国的服务器当然很慢了。 这个软件源可以通过/et ...

  • Kali 2.0替换APT更新源为国内源并更新系统

    操作方法 01 1.登录kali2.0系统 02 2.修改软件源APT-sources.list 03 可以删除该文件中的所有内容,也可以直接在文前添加新的APT源. 这里,为了演示,我输入依次按下& ...

  • 如何制作完整的Ubuntu本地源镜像(以Ubuntu12.04为例)

    本地部分源镜像的优点是占用空间比较小,一个部分软件包源根据系统需要所占的空间大概也就在1G~2G之间.能满足系统备份还原的基本需求,凡是备份下来的软件包都能安装.但是它的缺点和局限性也是很明显的,它只 ...

  • 更改linux软件源产生的Unable to locate package错误解决办法

    刚开始接触ubuntu的朋友可能会按照一些入门文章的步骤更改软件源,可是此时安装软件的话会出现unable to locate package的错误 例如: 复制代码 代码如下: username@u ...

  • Ubuntu软件管理丢失的功能详解

    多数人都认为Ubuntu通过Ubuntu Software Center彻底改革了dpkg包管理.毫无疑问,按照多数人标准来看,Software Center肯定是用户友好的呢.但事实真是如此么?本文 ...

  • Win7 Update更新安装失败或者无法自动更新安装

    Win7自动更新失败怎么办? Win7检查更新失败问题,是Win7用户经常遇到的一个情况。除了传统网络环境影响外,Windows系统自带的Windows Update组件同样也会出故障,导致用户检查更 ...

  • itouch4越狱后如何通过Cydia添加软件源

    反正越狱之后通常只知道无论哪里过来的app都可以安装了,也不知道Cydia到底有什么用,只是隔断时间更新一下它里面的内容,仅此而已。今天看到论坛里面一些帖子,觉得很好,Cydia里面的资源才是真正的海 ...