linux 更新源miss问题

   1.之前新装的linuxMint 执行 apt-get install vim 安装失败 发现原因是源更新失败导致,后来执行apt-get update 发现老是获取失败,查了google总结出以下解决办法;

  以下分为4个步骤进行处理:

   1. 打开我们系统的 ‘软件源’ 界面 如下图;

    

 

2. 进入‘软件源’ 界面 选择官方仓库, 如下图:

3. 进行source.list文件的修改,将163源url copy进去 ,操作如下图:

命令:sudo gedit /etc/apt/sources.list ;

 

4. 执行一次更新源命令,如下图:

命令:sudo apt-get update;

 

  总结:经过以上几个步骤,在我的环境中再次执行apt-get install vim 就能够正确安装vim编辑器了;

  注意:执行命令的过程中可能由于权限问题,需要sudo一下;

  附上源:

deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse

 

posted @ 2017-01-20 14:45  qinmp  阅读(264)  评论(0编辑  收藏  举报