如何在 Debian GNU/Linux 添加修改软件源
我们在 Debian GNU/Linux 中有时软件源的网络速度慢,在使用 apt 安装源中的软件时总是因源服务器负荷大而时间很长,所以想换个软件源或添加软件源又不知道怎么做,现在就给您讲一下 Debian GNU/Linux 中软件源的修改方法。
步骤很简单,只要修改在 /etc/apt/sources.list 文件中的软件源地址就可以了,但要记得这个文件不是谁都能修改的,要有系统管理员权限才行。
首先要以 系统管理员 的身份登录系统,Debian GNU/Linux 中一般在 启动引导器 选项里以 单用户方式(一般以 single-user Mode 注明的项),选中此项启动系统再输入 系统管理员用户名(root)和密码,然后再输入桌面启动命令:# startx 这样就可以在桌面模式下面更方便地修改。
进入 /etc/apt/ 目录中用文本编辑器打开 sources.list 文件,修改或添加已知的软件源地址再保存就可以了。
如果您觉得重新登录 root 帐号麻烦,那么您可以在您当前帐户以 sudo 方式提升您的权限来操作,具体方法如下: 打开终端,在终端里输入$ sudo gedit /etc/apt/sources.list Password: 命令的意思是以系统管理员的身份用系统己有的 gedit 编辑器打开路径为 /etc/apt/sources.list 的文件。
输入您当前帐户密码,回车确认。
之后系统就会按命令调用 gedit 编辑器打开指定的文件以待编辑(如果您的系统中没有 gedit 编辑器也可以改用其它的编辑器),您可以方便地添加或修改已知的软件源。
如果您的 Debian GNU/Linux 不能 sudo ,那么您的帐户还没有 sudo 权限,因为 Debian GNU/Linux 默认只有 root 有 sudo 权限,您要先设置您使用的当前帐户有 sudo 权限,设置方法请参考 让 Debian GNU/Linux 能使用 sudo 命令。
当然您也可以使用 su 方式直接以管理员身份在终端登录,方法如下:$ su Password: 在此输入 root 密码,在登录后,按以下操作:# gedit /etc/apt/sources.list 之后的就会以 gedit 编辑器打开路径为 /etc/apt/sources.list 的文件,操作同上说明。
源的添加格式 要在 sources.list 中添加源格式很重要,格式不正确将无法正常使用新添加的源 书写格式: deb 地 址 找到包含dists和pool这两个目录的地址,例: http://mirrors.geekbone.org/debian/ 目录名 打开 dists 目录,里面包含的目录名字,记下来。
比如dists/包含sarge、etch、woody、sid。
组件名 打开 pool 目录,看看里面包含哪些组件名字,比如main、contrib、non-free;例:deb ftp://ftp.linuxforum.net/debian/ sarge main contrib non-free deb http://ftp.isu.edu.tw/pub/Linux/Debian/debian/ sarge main contrib non-free deb http://debian.ustc.edu.cn/debian-non-US sarge/non-US main non-free contrib deb http://debian.ustc.edu.cn/debian-uo sid marillat rareware misc ustc firefly jrfonseca java 版本说明: 一般有三个版本:stable , testing , unstable 当前的stable是sarge ,unstable是sid ,testing是etch stable — 稳定版本,广泛的用于架设产品化服务器,只包含安全更新。
testing — 测试版本,推荐工作站用户使用的发行版,包含有最近发布的软件,这些软件已经接受了少量测试。
unstable — 不稳定版本,供 Debian 开发者选用。
出自:http://www.zzzke.cn/H/wd/10024103/45c48cce2e2d7fbdea1afc51c7c6ad26.html
求教Debian软件源问题
系统安装好后,先运行apt-getupdate然后安装apt-spyapt-getinstallapt-spy最后用apt-spy-dunstable-aasia-t5命令行中的-d选项指定发行版本,如stable、testing、unstable。
-a选项指定debian安装源服务器的区域,如asia、Europe、North-America等。
这些区域信息保存在/etc/apt-spy.conf文档中,如果要测试所有服务器,还可用ALL关健字代替具体的区域。
-t选项指定连接超时阀值,阀值以秒为单位,设置较小的阀值能有效提高测试速度,忽略慢速服务器。
测试完成后,apt-spy会自动创建/etc/apt/sources.list.d文件夹,并在里面创建apt-spy.list文件。
所以把apt-spy.list拷贝到/etc/apt/sources.list文件,就能把寻找到的源使用了,记得要备份你原来的sources.list文件。
随后就可以用apt-getupdate来更新镜像站点这样,我们以后安装软件就很快了!附:apt-spy[options]选项:-ddistribution选择debian的发行版本,例如stable。
除升级外,必须使用此参数。
-aarea选择进行测试的区域,例如Aisa。
-cconfig指定配置文件。
-enumber指定测试的服务器数量。
-ffile测试时抓取制定的文件(文件相对debianbase的路径)。
-ifile指定输入的文件,配合-w参数使用。
-mmirror-list指定要升级的镜像列表文件。
-ooutput-file重定向输出到指定文件。
-pproxy指定使用的代理服务器,需要遵从[server]:[port]的格式。
-scountry_list指定要进行测试的国家。
不能和-a参数同时使用。
-ttime指定进行测试时每台服务器的超时时间,只能是正整数。
-uupdate-URL从指定的URL获得镜像列表更新。
-wfile输出-i参数提供的服务器列表中速度最快的前几台镜像服务器(缺省是前5台)。
-nnumber制定-w参数输出的服务器数量。
-v输出版本信息。
-h输出当前帮助信息
Ubuntu的软件源地址
8.10的Archive.ubuntu.com更新服务器(欧洲,此为官方源,电信网通用户使用):deb http://archive.ubuntu.com/ubuntu/ intrepid main restricted universe multiversedeb http://archive.ubuntu.com/ubuntu/ intrepid-security main restricted universe multiversedeb http://archive.ubuntu.com/ubuntu/ intrepid-updates main restricted universe multiversedeb http://archive.ubuntu.com/ubuntu/ intrepid-proposed main restricted universe multiversedeb http://archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiversedeb-src http://archive.ubuntu.com/ubuntu/ intrepid main restricted universe multiversedeb-src http://archive.ubuntu.com/ubuntu/ intrepid-security main restricted universe multiversedeb-src http://archive.ubuntu.com/ubuntu/ intrepid-updates main restricted universe multiversedeb-src http://archive.ubuntu.com/ubuntu/ intrepid-proposed main restricted universe multiversedeb-src http://archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverseUbuntu.cn99.com更新服务器(江苏省常州市电信,推荐电信用户使用):deb http://ubuntu.cn99.com/ubuntu/ intrepid main restricted universe multiversedeb http://ubuntu.cn99.com/ubuntu/ intrepid-security main restricted universe multiversedeb http://ubuntu.cn99.com/ubuntu/ intrepid-updates main restricted universe multiversedeb http://ubuntu.cn99.com/ubuntu/ intrepid-proposed main restricted universe multiversedeb http://ubuntu.cn99.com/ubuntu/ intrepid-backports main restricted universe multiversedeb-src http://ubuntu.cn99.com/ubuntu/ intrepid main restricted universe multiversedeb-src http://ubuntu.cn99.com/ubuntu/ intrepid-security main restricted universe multiversedeb-src http://ubuntu.cn99.com/ubuntu/ intrepid-updates main restricted universe multiversedeb-src http://ubuntu.cn99.com/ubuntu/ intrepid-proposed main restricted universe multiversedeb-src http://ubuntu.cn99.com/ubuntu/ intrepid-backports main restricted universe multiverseMirrors.shlug.org更新服务器(电信服务器,Ubuntu China Official Mirror, maintained by Shanghai Linux User Group):deb http://cn.archive.ubuntu.com/ubuntu intrepid main restricted universe multiversedeb http://cn.archive.ubuntu.com/ubuntu intrepid-security main restricted universe multiversedeb http://cn.archive.ubuntu.com/ubuntu intrepid-updates main restricted universe multiversedeb http://cn.archive.ubuntu.com/ubuntu intrepid-backports main restricted universe multiversedeb http://cn.archive.ubuntu.com/ubuntu intrepid-proposed main restricted universe multiversedeb-src http://cn.archive.ubuntu.com/ubuntu intrepid main restricted universe multiversedeb-src http://cn.archive.ubuntu.com/ubuntu intrepid-security main restricted universe multiversedeb-src http://cn.archive.ubuntu.com/ubuntu intrepid-updates main restricted universe multiversedeb-src http://cn.archive.ubuntu.com/ubuntu intrepid-backports main restricted universe multiversedeb-src http://cn.archive.ubuntu.com/ubuntu intrepid-proposed main restricted universe multiverseMirror.lupaworld.com更新服务器(浙江省杭州市双线服务器):deb http://mirror.lupaworld.com/ubuntu intrepid main restricted universe multiversedeb http://mirror.lupaworld.com/ubuntu intrepid-security main restricted universe multiversedeb http://mirror.lupaworld.com/ubuntu intrepid-updates main restricted universe multiversedeb http://mirror.lupaworld.com/ubuntu intrepid-backports main restricted universe multiversedeb http://mirror.lupaworld.com/ubuntu intrepid-proposed main restricted universe multiversedeb-src http://mirror.lupaworld.com/ubuntu intrepid main restricted universe multiversedeb-src http://mirror.lupaworld.com/ubuntu intrepid-security main restricted universe multiversedeb-src http://mirror.lupaworld.com/ubuntu intrepid-updates main restricted universe multiversedeb-src http://mirror.lupaworld.com/ubuntu intrepid-backports main restricted universe multiversedeb-src http://mirror.lupaworld.com/ubuntu intrepid-proposed main restricted universe multiverse厦门大学更新服务器(教育网服务器):deb ftp://ubuntu.realss.cn/ubuntu/ intrepid main restricted universe multiversedeb ftp://ubuntu.realss.cn/ubuntu/ intrepid-backports restricted universe multiversedeb ftp://ubuntu.realss.cn/ubuntu/ intrepid-proposed main restricted universe multiversedeb ftp://ubuntu.realss.cn/ubuntu/ intrepid-security main restricted universe multiversedeb ftp://ubuntu.realss.cn/ubuntu/ intrepid-updates main restricted universe multiversedeb-src ftp://ubuntu.realss.cn/ubuntu/ intrepid main restricted universe multiversedeb-src ftp://ubuntu.realss.cn/ubuntu/ intrepid-backports main restricted universe multiversedeb-src ftp://ubuntu.realss....
如何在debian上安装kali软件
1、先备份sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak2、修改更新源vi /etc/apt/sources.list把下面的列表添加sources.list文件里因为我这里安装的是debian 6 amd64 squeeze版本。
所以这里要稍微修改一下。
#apt-get update测试一下安装个VIM和一些lib依赖包:# aptitude install vim# apt-get install libqt4-opengl libqt4-opengl-dev
Debian系统怎么样?
我用的是win10+debian9 testing。
软件包很新,比ubuntu新,有的软件包甚至比fedora都新。
我觉得Debian的软件还是很多的,当然都是开源软件。
Debian主要还是用于服务器非桌面环境,包含大多数开源软件,几乎 没有闭源软件,Debian的管理最好也是通过直接修改配置文件而不是通过GUI。
如果你主要用桌面版,最好选用ubuntu之类的系统,ubuntu集成了大量的闭源软件,使用起来方便,因为我们日常使用基本上离不开闭源软件,这也是Ubuntu流行的重要原因。
安装Debian软件时,如果依赖包不能自动安装,可以到Debian软件包仓库查询,一般都能找到,你可以手动下载并安装。
另外,Debian stable和testing版本的软件包可能不一致,即testing版中没有的软件包stable版中可能就有。
如果你对Debian不满意,可以换一个发行版,开源软件都免费,你觉得好用就用不好用就别用,一切都由你自己决定,由你自己承担责任。
这不像Windows,你是付了费的,吐槽可能是你的权力。
开源软件没必要吐槽,因为一切由你决定用不用,一切后果也由你承受。
作者:Xiao Wei链接:https://www.zhihu.com/question/265812104/answer/300415124来源:知乎著作权归作者所有。
商业转载请联系作者获得授权,非商业转载请注明出处。
苹果越狱后PP助手下载软件源
PP助手无法下载软件源的。
软件源是一个应用程序安装库,很多很多的应用软件都在这个库里面。
可以是网络服务器,是光盘,甚至是硬盘上的一个目录。
作为debian系的ubuntu,继承了debian的deb和apt系统,只要设定好软件源,就能很方便的安装软件了。
添加软件源的正确步骤如下;1.点击桌面【cydia】图标进入。
2.点击下方菜单栏的“软件源”。
3.默认会显示现有的全部已经安装软件源列表。
点击右上角的“编辑”。
4.点击左上角的“添加”。
5.输入软件源地址并点击“添加源”。
6.如果弹出警告对话框,选择“仍然添加”。
7.软件将自动更新,更新完毕后点击“回到cydia"。
8.新添加的软件源 将显示在下方。
怎么搭建debian私有源
本文将指导你如何搭建私有docker registry,并确保其安全性。
在本教程的最后,你将亲身体验上传自制的docker镜像到私有registry,并在不同的机器上安全的将该其拉去下来。
本教程不包含如何容器化应用服务的内容,而是旨在引导你去创建registry来存储你要部署的服务资源。
如果你想要docker的入门教程,也许这儿可以帮到你。
基于Ubuntu14.04系统的单registry和单客户机模式,本教程已经通过测试,也许在其他基于debian的发布上仍可以运行。
docker概念如果在此之前你尚未接触过docker,这需要花费你几分钟的时间来熟悉docker的关键概念。
如果你对docker已得心应手,只是想了解如何构建私有registry的话,那么,你可以直接进入下一小节。
对于一个新手该如何使用docker,不妨试试这里优秀的docker笔记。
docker的核心就是要对应用以及应用的依赖与操作系统分离。
为了达到上述目的,docker采用容器与镜像机制。
一个docker镜像基本上是一个文件系统的模板。
当你通过docker run命令运行一个docker镜像时,该文件系统的一个实例即被激活,并且运行在系统内的docker容器之中。
默认的,该容器无法触及原始镜像以及docker本身所运行在的主机的文件系统。
这是一个独立的环境。
对容器所做的任何改动都将保存在容器本身之内,并不会影响原始的镜像。
如果想保留这些改动,那么,可以通过docker commit命令将容器保存为镜像。
这意味你可以通过原有的容器来衍生出新的容器,而不会对原始容器(或镜像)造成任何影响。
如果你熟悉git,那么你会觉得该流程十分眼熟:从任意的容器上去创建新的分支(这里,分支的意思即为docker中的镜像)。
运行镜像类似于执行git checkout操作。
更进一步形容,运行私有docker registry,就好比为docker镜像运行私有git仓库。
第一步——安装必要的软件在docker registry服务器上,应当创建一个拥有sudo权限的用户(如果可以,在客户机上也如此)。
docker registry软件是一款python应用,因此为了使其能够运行起来,需要安装python开发环境以及必要的库:sudo apt-get updatesudo apt-get -y install build-essential python-dev libevent-dev python-pip liblzma-dev第二步——安装并配置docker registry为了安装最新的稳定的docker registry发行版(作者撰文时为0.7.3,译者译时为0.9.1),我们将使用python包管理工具pip:sudo pip install docker-registrydocker-registry需要配置文件。
默认地,pip将该配置文件放置在相当偏僻的地方,因系统中python的安装位置而异。
因此,为了找到该路径,我们将尝试运行registry,以查看相关的输出:gunicorn --access-logfile - --debug -k gevent -b 0.0.0.0:5000 -w 1 docker_registry.wsgi:application由于配置文件不在正确的位置,上述尝试将会以失败而告终,并输出一条包含FileNotFoundError错误消息,如下所示[在某些版本中,无下述信
Debian Linux下如何安装软件
有几个程序可以用来安装软件:apt-get, aptitude, synaptic.apt-get是命令行工具,aptitude是字符图形界面工具,synaptic是图形界面工具。
1. 配置安装源/etc/apt/sources.list文件可以这样写deb ftp://debian.ustc.edu.cn/debian stable main non-free contribdeb ftp://debian.ustc.edu.cn/debian testing main non-free contrib下面我们将以安装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——搜索。
按键盘上的向下箭头来搜索下一个。
debian怎么配置apt
debian配置apt-get方法如下:1、需要电脑联网状态,在没有接入网络的情况下,采用最小化方式安装debian,默认是没有配置apt-get源的,这个时候是无法使用apt-get install 在线安装软件的,也无法使用putty等远程管理客户端连接服务器;2、配置apt-get源:cp /etc/apt/sources.list /etc/apt/sources.listbak #备份原有配置文件nano /etc/apt/sources.list #编辑注释掉如图本地光盘源这一行:deb cdrom:[Debian GNU/Linux 6.0.4 _Squeeze_ - Official i386 DVD Binary-1 20120128-12:53]/ squeeze contrib main取消下面两行官方源前面的注释,添加以下代码:deb http://mirrors.163.com/debian/ squeeze main non-free contribdeb http://mirrors.163.com/debian/ squeeze-proposed-updates main contrib non-freedeb http://mirrors.163.com/debian-security/ squeeze/updates main contrib non-freedeb-src http://mirrors.163.com/debian/ squeeze main non-free contribdeb-src http://mirrors.163.com/debian/ squeeze-proposed-updates main contrib non-freedeb-src http://mirrors.163.com/debian-security/ squeeze/updates main contrib non-freedeb http://ftp.sjtu.edu.cn/debian/ squeeze main non-free contribdeb http://ftp.sjtu.edu.cn/debian/ squeeze-proposed-updates main contrib non-freedeb http://ftp.sjtu.edu.cn/debian-security/ squeeze/updates main contrib non-freedeb-src http://ftp.sjtu.edu.cn/debian/ squeeze main non-free contribdeb-src http://ftp.sjtu.edu.cn/debian/ squeeze-proposed-updates main contrib non-freedeb-src http://ftp.sjtu.edu.cn/debian-security/ squeeze/updates main contrib non-free3、ctrl+o #保存配置,ctrl+x #退出;4、apt-get update #更新源,apt-get upgrade #更新系统。
转载请注明出处51数据库 » debian 8.8 软件源
那晚越女说我?