Ubuntu安装源配置文件"/etc/apt/sources.list"第X行有错误
来源:互联网 发布:中超后卫数据 编辑:程序博客网 时间:2024/05/24 05:18
出现这个错误,是因为sources.list文件中的获取源有问题
找到那个文件,打开文件,我们可以把里面的出现问题的行注释掉,也可以干脆把所有的源文件都换掉
下面提供一个163的源,如下
deb http://mirrors.163.com/ubuntu/ natty main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ natty main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ natty-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ natty-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ natty-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ natty-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ natty-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ natty-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ natty-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ natty-updates universe main multiverse restricted
之后执行$sudo apt-get update命令重新获取源
使用命令行添加源地址的方法是:
$sudo add-apt-repository "deb http://cn.archive.ubuntu.com/ubuntu/jaunty multiverse"
$sudo add-apt-repository "deb http://cn.archive.ubuntu.com/ubuntu/jaunty-updates multiverse"
$sudo apt-get update
注意上面的源地址需要根据你的需要进行修改
- Ubuntu安装源配置文件"/etc/apt/sources.list"第X行有错误
- E:安装源配置文件“/etc/apt/sources.list"第59行有错误(发行版解析) 出错原因
- /etc/apt/sources.list ubuntu
- ubuntu的更新错误-在源列表 /etc/apt/sources.list.d/google-chrome.list 中第 1 行有误 (类型)
- E: 无法识别在安装源列表 /etc/apt/sources.list 里,第 64 行中的软件包类别“http://mirror.lupaworld.com/ubuntu”
- ubuntu中的/etc/apt/sources.list.d
- /etc/apt/sources.list
- /etc/apt/sources.list
- 修改 /etc/apt/sources.list
- /etc/apt/sources.list文件
- /etc/apt/sources.list 详解
- /etc/apt/sources.list 详解
- /etc/apt/sources.list -- 乌班图国内更新源 ubuntu
- ubuntu原来/etc/apt/sources.list中的内容
- Modify the /etc/apt/sources.list for Ubuntu
- debian apt /etc/apt/sources.list
- 关于apt配置文件sources.list
- ubuntu10.04的源/etc/apt/sources.list
- Transfer与Redirect区别
- windows 核心编程学习笔记3
- Spinner(1): 由SDK引发的问题
- 春江赞
- 这些话,或许你听进心里了,就可以改变你的人生!
- Ubuntu安装源配置文件"/etc/apt/sources.list"第X行有错误
- 分布式缓存系统Memcached简介与实践
- Struts2拦截器(Interceptor
- 原型模式(Prototype)
- C++/CLI思辨录之拷贝构造函数
- [Asp.net4.0]在 IIS6 ASP.NET 4.0 安装 最常遇到的四个问题
- 浅谈Ogre的四元数与旋转-1
- currentStyle使用示例
- VIP