更新Linux源文件
来源:互联网 发布:阿里云服务器 cdn报价 编辑:程序博客网 时间:2024/06/07 15:46
打开终端之后,就开始更改源的过程了,我知道Ubuntu中源是保存在sources.list文件,首先我要进行备份以防万一,备份的代码是这样的
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
然后使用下面的命令打开他
sudo gedit /etc/apt/sources.list
打开/etc/apt/sources.list文件。
将里面的内容更改如下,行首带#的可以不用删除,是用作解释的。我使用的江苏省常州市电信的升级源,速度不错,下载的时候还可以达到70K左右,推荐电信用户使用。
deb http://ubuntu.cn99.com/ubuntu/ feisty main restricted universe multiversedeb http://ubuntu.cn99.com/ubuntu/ feisty-security main restricted universe multiversedeb http://ubuntu.cn99.com/ubuntu/ feisty-updates main restricted universe multiversedeb http://ubuntu.cn99.com/ubuntu/ feisty-proposed main restricted universe multiversedeb http://ubuntu.cn99.com/ubuntu/ feisty-backports main restricted universe multiversedeb-src http://ubuntu.cn99.com/ubuntu/ feisty main restricted universe multiversedeb-src http://ubuntu.cn99.com/ubuntu/ feisty-security main restricted universe multiversedeb-src http://ubuntu.cn99.com/ubuntu/ feisty-updates main restricted universe multiversedeb-src http://ubuntu.cn99.com/ubuntu/ feisty-proposed main restricted universe multiversedeb-src http://ubuntu.cn99.com/ubuntu/ feisty-backports main restricted universe multiversedeb http://ubuntu.cn99.com/ubuntu-cn/ feisty main restricted universe multiverse
然后保存。之后再使用下面的命令进行更新,这大概需要用时半个小时了,耐心的等待下
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
然后使用下面的命令打开他
sudo gedit /etc/apt/sources.list
打开/etc/apt/sources.list文件。
将里面的内容更改如下,行首带#的可以不用删除,是用作解释的。我使用的江苏省常州市电信的升级源,速度不错,下载的时候还可以达到70K左右,推荐电信用户使用。
deb http://ubuntu.cn99.com/ubuntu/ feisty main restricted universe multiversedeb http://ubuntu.cn99.com/ubuntu/ feisty-security main restricted universe multiversedeb http://ubuntu.cn99.com/ubuntu/ feisty-updates main restricted universe multiversedeb http://ubuntu.cn99.com/ubuntu/ feisty-proposed main restricted universe multiversedeb http://ubuntu.cn99.com/ubuntu/ feisty-backports main restricted universe multiversedeb-src http://ubuntu.cn99.com/ubuntu/ feisty main restricted universe multiversedeb-src http://ubuntu.cn99.com/ubuntu/ feisty-security main restricted universe multiversedeb-src http://ubuntu.cn99.com/ubuntu/ feisty-updates main restricted universe multiversedeb-src http://ubuntu.cn99.com/ubuntu/ feisty-proposed main restricted universe multiversedeb-src http://ubuntu.cn99.com/ubuntu/ feisty-backports main restricted universe multiversedeb http://ubuntu.cn99.com/ubuntu-cn/ feisty main restricted universe multiverse
然后保存。之后再使用下面的命令进行更新,这大概需要用时半个小时了,耐心的等待下
请一定要使用下面的命令哦,不然是不会更新的。
sudo apt-get updatesudo apt-get dist-upgrade完成之后要求重新启动电脑,没办法了,就重启,虽然启动过程很难熬。
PS:一点小曲折,说出来也无妨。其实在更新的时候我遇到了这样的问题,提示是E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. 其实解决方法很简单,只是没想到而已,他提示是要你手动运行pkg --configure -a 打开终端运行就好了,问题就解决了。
- 更新Linux源文件
- 安装 上网 更新源文件
- ununtu 13.10 更新源文件
- ubuntu16.04更新源文件
- 获得linux指令源文件
- linux 编译源文件
- linux 安装编译 源文件
- Linux GCC 编译源文件
- Linux编程yum源文件
- ubuntu linux10.10源文件更新失败
- regForm源文件【待更新……】
- debian apt-get 更新源文件格式说明
- linux字符设备驱动程序源文件
- Linux多源文件Makefile模版
- Linux下的源文件安装
- LINUX源文件的安装方法
- Linux系统源文件sources.list
- 源文件
- 套接字
- mysql date format
- struts2学习笔记(一)
- Linux终端启动方式
- Clusters and Extents
- 更新Linux源文件
- aspx页面事件执行顺序
- MFC实践教程
- 业务流程建模标注(Business Process Modeling Notation,BPMN)详细介绍
- 人月神话读书感想1
- VC笔记
- Winsock程序设计入门(2)
- wince5.0 2440 BSP之摄像头驱动分析
- something I am going to do ^_^