如何设置快速的debian源(debian怎么用)

如何设置快速的debian源?

  设置快速的debian源的方法:    

1)设置临时源  vi /etc/apt/sources.list  #添加以下一行到文件最后  deb http://http。us。debian。org/debian stable main  

2)更新软件包列表并安装apt-spy  apt-get update  apt-get install apt-spy  

3)自动下载列表并使用apt-spy测试最快的源  apt-spy update  apt-spy -d stable -a asia -t 3  

4)查看生成的配置文件,里面是最快的源  cat /etc/apt/sources.list.d/apt-spy.list  

5)删除临时源  vi /etc/apt/sources.list  #删除以下一行  deb http://http。us。debian。org/debian stable main  6)更新软件包列表  apt-get update  完成!

linux系统装好后怎么更新源?

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

台湾及大陆教育网高校等

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

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

Debian Linux下如何安装软件?

在Debian Linux安装软件首先必须配置好安装源。有几个程序可以用来安装软件:apt-get, aptitude, synaptic.apt-get是命令行工具,aptitude是字符图形界面工具,synaptic是图形界面工具。

1. 配置安装源

/etc/apt/sources.list文件可以这样写

下面我们将以安装firefox浏览器来解释3个安装工具的用法。

2. 使用apt-get安装软件

在终端中输入su和密码后,以root身份运行apt-get update更新软件列表,然后运行apt-get install firefox就可以安装上firefox浏览器了。

3. 使用aptitude安装软件

用apt-get安装软件固然方便,但是,有时候你必须记住软件的全称和具体版本号,用aptitude就不需要了。

在终端中输入su和密码后,以root身份运行aptitude,用鼠标选择Actions菜单——>Update package list更新软件列表或者你按”u”键。然后按”/”键,弹出搜索窗口。输入fire回车,将高亮显示第一个被搜索到的名字含有fire的软件。如果第一 个不是firefox,按”n”(next)键继续搜索下一个。找到后按SHIFT+”+”选定,再按”g”(go)就安装上了。升级软件也是同样的方 法。

4. 使用synaptic安装软件

你可以需要使用前面的两种方法中的一种安装synaptic.

从系统菜单中运行Synaptic Package Manager运行synaptic,输入root密码后就可以使用了。从Edit菜单中选择Reload Package Information更新软件列表。用鼠标点击任意一个软件,以激活软件列表框,然后直接按键盘输入的fire——搜索。按键盘上的向下箭头来搜索下一 个。找到后按回车,然后按工具栏上的Apply就安装上了。

debian下载的iso文件如何作为本地安装库的源?

改用ultraiso工具,直接将下载的ISO文件以启动盘形式写入到U盘中。将U盘做成启动盘。当光驱用;现在的大部分电脑都支持从U盘启动了;这个方法很方便。创建U盘启动盘不到5分钟时间,一张光盘就出来了。

linux下怎么进入本地软件源目录。找不到?急?

要看你的linux系统,一般debian系列的软件源配置文件/etc/apt/sources.list 下载后的软件源文件一般在/var/cache/apt/archives目录。

版权声明