Linux软件源的设置方法

1 打开数据源配置文件

vi /etc/apt/sources.list

 

 

添加相关的数据源,可以选择以下的数据源,不要写太多,否则会影响更新速度。

 

之后使用apt-get update更新源列表

 

为防止非官方源中软件包不全的问题,请在sources.list文件中尾部添加一组官方源。

 

#######################################

# 163

#######################################

 

deb http://mirrors.163.com/debian/ lenny main contrib non-free

deb-src http://mirrors.163.com/debian lenny main contrib non-free

 

deb http://mirrors.163.com/debian-security/ stable/updates main

deb-src http://mirrors.163.com/debian-security/ stable/updates main

 

#######################################

# official

#######################################

 

deb http://ftp.debian.org/debian/ lenny main contrib non-free

deb-src http://ftp.debian.org/debian/ lenny main contrib non-free

 

deb http://ftp.us.debian.org/debian/ lenny main contrib non-free

deb-src http://ftp.us.debian.org/debian/ lenny main contrib non-free

 

deb http://security.debian.org/ stable/updates main

deb-src http://security.debian.org/ stable/updates main

 

deb http://volatile.debian.org/debian-volatile stable/volatile main

deb-src http://volatile.debian.org/debian-volatile stable/volatile main

 

#######################################

# 台湾及大陆教育网高校等

#######################################

 

deb http://ftp.tw.debian.org/debian/ lenny main contrib non-free

deb-src http://ftp.tw.debian.org/debian lenny main contrib non-free

 

deb http://mirrors.geekbone.org/debian/ lenny main contrib non-free

deb-src http://mirrors.geekbone.org/debian/ lenny main contrib non-free

 

deb http://mirror.dlut.edu.cn/debian/ lenny main contrib non-free

deb-src http://mirror.dlut.edu.cn/debian/ lenny main contrib non-free

 

deb http://debian.csie.ntu.edu.tw/debian/ lenny main contrib non-free

deb-src http://debian.csie.ntu.edu.tw/debian/ lenny main contrib non-free

 

### ustc debian-multimedia

deb http://debian.ustc.edu.cn/debian-multimedia/ stable main

deb-src http://debian.ustc.edu.cn/debian-multimedia/ stable main

 

### ustc debian-security

deb http://debian.ustc.edu.cn/debian-security/ stable/updates main non-free contrib

deb-src http://debian.ustc.edu.cn/debian-security/ stable/updates main non-free contrib

Linux如何更新软件源的更多相关文章

  1. kali linux 更新软件源,安装中文输入法,修复Linux与windows引导菜单解决windows引导丢失

    1. 更新软件源打开sources.list文件,进行添加更新源:leafpad /etc/apt/sources.list 2. 添加软件源#官方源 deb http://http.kali.org ...

  2. ubuntu 更新软件源

    ubuntu 更新软件源 修改文件sources.list 位于/etc/apt/sources.list,并备份原文件为sources.list.bak deb http://mirrors.163 ...

  3. Debian更新软件源提示There is no public key available for the following key IDs的解决方法

    今天装了的debian7.0 但是更新软件源的时候出错 提示 W: There is no public key available for the following key IDs: 9D6D8F ...

  4. Linux Mint---更新软件源

    安装完系统之后第一件事情就是更新软件源,为接下来的各种工作作准备,这个也很简单,直接打开software source设置一下, 然后打开software manager更新一下就好了.

  5. ubuntu安装软件失败,出现404错误,更新软件源

    更新源方法 备份原来的源 首先备份原来的源,用来出错后进行恢复 sudo cp /etc/apt/sources.list/etc/apt/sources.list_backup 1 如果更新源后出错 ...

  6. linux下获取软件源码包 centos/redhat, debian/ubuntu

    linux下获取软件源码包 centos/redhat, debian/ubuntu centos下: 1. yum install yum-utils 主要为了获取yumdownloader 2. ...

  7. Linux学习笔记——Ubuntu更新软件源

    0.前言     通过改动ubuntu软件源可提高apt命令下载安装软件的速度.     參考资料     [官方资料]--配置文件改动方法     [Ubuntu如何改动软件源地址]--使用ubun ...

  8. RedHat6.5更新软件源

    今天在Red Hat上安装软件时,发现需要依赖软件,然而在用sudo yum指令时,出现了下面的错误: This system is not registered to Red Hat Subscri ...

  9. 修改LinuxMint18更新软件源

    参考文章: http://blog.csdn.net/Notzuonotdied/article/details/53908154 修改软件源 点击Menu->Administration-&g ...

随机推荐

  1. syntax error : missing ';' before identifier

    原文解决方案 #include "string.h" #include "stdafx.h" #include "Chapter 01 MyVersi ...

  2. zeromq编译与应用

    libzmq是c++语言开发的,正式版本在这里: https://github.com/zeromq/libzmq/releases 到这篇文件发布为止,正式稳定版是4.2.2 1,按照给出的链接下载 ...

  3. Linux-01 虚拟机Linux的安装

    学习要点 虚拟机VMware Workstation 11.0 CentOS6.5的安装 Linux简介 Linux 一种免费开源的操作系统 常作为服务器的操作系统使用 基本思想:一切都是文件 常用发 ...

  4. java.sql.SQLException: Data truncated for column 'lastSeason' at row 1

    在使用项目将数据存储到 datetime 的字段 ,抛出了这个异常 而我是使用Java.util.Date 存储过去的 解决代码如下: Date date = new Date(); demo.set ...

  5. POJ 1985 Cow Marathon (求树的直径)

    Description After hearing about the epidemic of obesity in the USA, Farmer John wants his cows to ge ...

  6. list、tuple、dict内部功能释义

    一.list内部功能释义 运用频次:☆☆☆☆☆ 1. append():列表末尾插入元素 [示例] >>> L1=[11,22,33] >>> L1.append( ...

  7. python基础——3(流程控制)

    一.if判断 1.语法一: if 条件: 子代码块 示例代码: sex = 'female' age = 18 is_beautiful = True if sex == 'female' and a ...

  8. C# 禁止通过标题栏移动窗体

    protected override void WndProc(ref Message m) { base.WndProc (ref m); if(m.Msg == 0x84) //不让拖动标题栏 { ...

  9. 使用JQuery.slideBox实现图片滚动效果

    1.下载JQuery.slideBox和jquery插件,并引用 <link href="css/jquery.slideBox.css" rel="stylesh ...

  10. HDU3572:Task Schedule【最大流】

    上了一天课 心塞塞的 果然像刘老师那么说 如果你有挂科+4级没过 那基本上是WF队 题目大意:有时间补吧 思路:给每个任务向每个时间点连边容量为1 每个时间点向汇点连边 容量为机器的个数 源点向每个任 ...